@keystrokehq/spoki 0.1.2 → 0.1.3

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 (349) hide show
  1. package/dist/actions/add-contact-operator.cjs +1 -1
  2. package/dist/actions/add-contact-operator.cjs.map +1 -1
  3. package/dist/actions/add-contact-operator.d.cts +1 -1
  4. package/dist/actions/add-contact-operator.d.cts.map +1 -1
  5. package/dist/actions/add-contact-operator.d.mts +1 -1
  6. package/dist/actions/add-contact-operator.d.mts.map +1 -1
  7. package/dist/actions/add-contact-operator.mjs +1 -1
  8. package/dist/actions/add-contact-operator.mjs.map +1 -1
  9. package/dist/actions/add-service-user.cjs +1 -1
  10. package/dist/actions/add-service-user.cjs.map +1 -1
  11. package/dist/actions/add-service-user.d.cts +1 -1
  12. package/dist/actions/add-service-user.d.mts +1 -1
  13. package/dist/actions/add-service-user.mjs +1 -1
  14. package/dist/actions/add-service-user.mjs.map +1 -1
  15. package/dist/actions/check-role-private-key.cjs +1 -1
  16. package/dist/actions/check-role-private-key.cjs.map +1 -1
  17. package/dist/actions/check-role-private-key.d.cts +1 -1
  18. package/dist/actions/check-role-private-key.d.mts +1 -1
  19. package/dist/actions/check-role-private-key.mjs +1 -1
  20. package/dist/actions/check-role-private-key.mjs.map +1 -1
  21. package/dist/actions/clone-template.cjs +4 -4
  22. package/dist/actions/clone-template.cjs.map +1 -1
  23. package/dist/actions/clone-template.d.cts +6 -6
  24. package/dist/actions/clone-template.d.mts +6 -6
  25. package/dist/actions/clone-template.mjs +4 -4
  26. package/dist/actions/clone-template.mjs.map +1 -1
  27. package/dist/actions/create-account-onboarding-link.cjs +1 -1
  28. package/dist/actions/create-account-onboarding-link.cjs.map +1 -1
  29. package/dist/actions/create-account-onboarding-link.d.cts +1 -1
  30. package/dist/actions/create-account-onboarding-link.d.mts +1 -1
  31. package/dist/actions/create-account-onboarding-link.mjs +1 -1
  32. package/dist/actions/create-account-onboarding-link.mjs.map +1 -1
  33. package/dist/actions/create-custom-field.cjs +1 -1
  34. package/dist/actions/create-custom-field.cjs.map +1 -1
  35. package/dist/actions/create-custom-field.d.cts +1 -1
  36. package/dist/actions/create-custom-field.d.mts +1 -1
  37. package/dist/actions/create-custom-field.mjs +1 -1
  38. package/dist/actions/create-custom-field.mjs.map +1 -1
  39. package/dist/actions/create-list.cjs +1 -1
  40. package/dist/actions/create-list.cjs.map +1 -1
  41. package/dist/actions/create-list.d.cts +1 -1
  42. package/dist/actions/create-list.d.mts +1 -1
  43. package/dist/actions/create-list.mjs +1 -1
  44. package/dist/actions/create-list.mjs.map +1 -1
  45. package/dist/actions/create-media.cjs +1 -1
  46. package/dist/actions/create-media.cjs.map +1 -1
  47. package/dist/actions/create-media.d.cts +1 -1
  48. package/dist/actions/create-media.d.mts +1 -1
  49. package/dist/actions/create-media.mjs +1 -1
  50. package/dist/actions/create-media.mjs.map +1 -1
  51. package/dist/actions/create-or-update-contact.cjs +2 -2
  52. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  53. package/dist/actions/create-or-update-contact.d.cts +3 -3
  54. package/dist/actions/create-or-update-contact.d.mts +3 -3
  55. package/dist/actions/create-or-update-contact.mjs +2 -2
  56. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  57. package/dist/actions/create-template.cjs +7 -7
  58. package/dist/actions/create-template.cjs.map +1 -1
  59. package/dist/actions/create-template.d.cts +11 -9
  60. package/dist/actions/create-template.d.mts +11 -9
  61. package/dist/actions/create-template.mjs +7 -7
  62. package/dist/actions/create-template.mjs.map +1 -1
  63. package/dist/actions/create-ticket.cjs +4 -4
  64. package/dist/actions/create-ticket.cjs.map +1 -1
  65. package/dist/actions/create-ticket.d.cts +5 -5
  66. package/dist/actions/create-ticket.d.mts +5 -5
  67. package/dist/actions/create-ticket.mjs +4 -4
  68. package/dist/actions/create-ticket.mjs.map +1 -1
  69. package/dist/actions/delete-contact.cjs +1 -1
  70. package/dist/actions/delete-contact.cjs.map +1 -1
  71. package/dist/actions/delete-contact.d.cts +1 -1
  72. package/dist/actions/delete-contact.d.cts.map +1 -1
  73. package/dist/actions/delete-contact.d.mts +1 -1
  74. package/dist/actions/delete-contact.d.mts.map +1 -1
  75. package/dist/actions/delete-contact.mjs +1 -1
  76. package/dist/actions/delete-contact.mjs.map +1 -1
  77. package/dist/actions/delete-custom-field.cjs +1 -1
  78. package/dist/actions/delete-custom-field.cjs.map +1 -1
  79. package/dist/actions/delete-custom-field.d.cts +1 -1
  80. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  81. package/dist/actions/delete-custom-field.d.mts +1 -1
  82. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  83. package/dist/actions/delete-custom-field.mjs +1 -1
  84. package/dist/actions/delete-custom-field.mjs.map +1 -1
  85. package/dist/actions/delete-list.cjs +1 -1
  86. package/dist/actions/delete-list.cjs.map +1 -1
  87. package/dist/actions/delete-list.d.cts +1 -1
  88. package/dist/actions/delete-list.d.cts.map +1 -1
  89. package/dist/actions/delete-list.d.mts +1 -1
  90. package/dist/actions/delete-list.d.mts.map +1 -1
  91. package/dist/actions/delete-list.mjs +1 -1
  92. package/dist/actions/delete-list.mjs.map +1 -1
  93. package/dist/actions/delete-media.cjs +1 -1
  94. package/dist/actions/delete-media.cjs.map +1 -1
  95. package/dist/actions/delete-media.d.cts +1 -1
  96. package/dist/actions/delete-media.d.cts.map +1 -1
  97. package/dist/actions/delete-media.d.mts +1 -1
  98. package/dist/actions/delete-media.d.mts.map +1 -1
  99. package/dist/actions/delete-media.mjs +1 -1
  100. package/dist/actions/delete-media.mjs.map +1 -1
  101. package/dist/actions/delete-role.cjs +1 -1
  102. package/dist/actions/delete-role.cjs.map +1 -1
  103. package/dist/actions/delete-role.d.cts +1 -1
  104. package/dist/actions/delete-role.d.cts.map +1 -1
  105. package/dist/actions/delete-role.d.mts +1 -1
  106. package/dist/actions/delete-role.d.mts.map +1 -1
  107. package/dist/actions/delete-role.mjs +1 -1
  108. package/dist/actions/delete-role.mjs.map +1 -1
  109. package/dist/actions/delete-template.cjs +1 -1
  110. package/dist/actions/delete-template.cjs.map +1 -1
  111. package/dist/actions/delete-template.d.cts +1 -1
  112. package/dist/actions/delete-template.d.mts +1 -1
  113. package/dist/actions/delete-template.mjs +1 -1
  114. package/dist/actions/delete-template.mjs.map +1 -1
  115. package/dist/actions/delete-ticket.cjs +1 -1
  116. package/dist/actions/delete-ticket.cjs.map +1 -1
  117. package/dist/actions/delete-ticket.d.cts +1 -1
  118. package/dist/actions/delete-ticket.d.cts.map +1 -1
  119. package/dist/actions/delete-ticket.d.mts +1 -1
  120. package/dist/actions/delete-ticket.d.mts.map +1 -1
  121. package/dist/actions/delete-ticket.mjs +1 -1
  122. package/dist/actions/delete-ticket.mjs.map +1 -1
  123. package/dist/actions/generate-role-private-key.cjs +1 -1
  124. package/dist/actions/generate-role-private-key.cjs.map +1 -1
  125. package/dist/actions/generate-role-private-key.d.cts +1 -1
  126. package/dist/actions/generate-role-private-key.d.mts +1 -1
  127. package/dist/actions/generate-role-private-key.mjs +1 -1
  128. package/dist/actions/generate-role-private-key.mjs.map +1 -1
  129. package/dist/actions/get-account-current-report.cjs +1 -1
  130. package/dist/actions/get-account-current-report.cjs.map +1 -1
  131. package/dist/actions/get-account-current-report.d.cts +1 -1
  132. package/dist/actions/get-account-current-report.d.mts +1 -1
  133. package/dist/actions/get-account-current-report.mjs +1 -1
  134. package/dist/actions/get-account-current-report.mjs.map +1 -1
  135. package/dist/actions/list-accounts.cjs +2 -2
  136. package/dist/actions/list-accounts.cjs.map +1 -1
  137. package/dist/actions/list-accounts.d.cts +2 -2
  138. package/dist/actions/list-accounts.d.mts +2 -2
  139. package/dist/actions/list-accounts.mjs +2 -2
  140. package/dist/actions/list-accounts.mjs.map +1 -1
  141. package/dist/actions/list-automations.cjs +3 -3
  142. package/dist/actions/list-automations.cjs.map +1 -1
  143. package/dist/actions/list-automations.d.cts +3 -3
  144. package/dist/actions/list-automations.d.mts +3 -3
  145. package/dist/actions/list-automations.mjs +3 -3
  146. package/dist/actions/list-automations.mjs.map +1 -1
  147. package/dist/actions/list-campaigns.cjs +4 -4
  148. package/dist/actions/list-campaigns.cjs.map +1 -1
  149. package/dist/actions/list-campaigns.d.cts +4 -4
  150. package/dist/actions/list-campaigns.d.mts +4 -4
  151. package/dist/actions/list-campaigns.mjs +4 -4
  152. package/dist/actions/list-campaigns.mjs.map +1 -1
  153. package/dist/actions/list-contacts.cjs +5 -5
  154. package/dist/actions/list-contacts.cjs.map +1 -1
  155. package/dist/actions/list-contacts.d.cts +5 -5
  156. package/dist/actions/list-contacts.d.mts +5 -5
  157. package/dist/actions/list-contacts.mjs +5 -5
  158. package/dist/actions/list-contacts.mjs.map +1 -1
  159. package/dist/actions/list-custom-fields.cjs +2 -2
  160. package/dist/actions/list-custom-fields.cjs.map +1 -1
  161. package/dist/actions/list-custom-fields.d.cts +2 -2
  162. package/dist/actions/list-custom-fields.d.mts +2 -2
  163. package/dist/actions/list-custom-fields.mjs +2 -2
  164. package/dist/actions/list-custom-fields.mjs.map +1 -1
  165. package/dist/actions/list-lists.cjs +2 -2
  166. package/dist/actions/list-lists.cjs.map +1 -1
  167. package/dist/actions/list-lists.d.cts +2 -2
  168. package/dist/actions/list-lists.d.mts +2 -2
  169. package/dist/actions/list-lists.mjs +2 -2
  170. package/dist/actions/list-lists.mjs.map +1 -1
  171. package/dist/actions/list-media.cjs +2 -2
  172. package/dist/actions/list-media.cjs.map +1 -1
  173. package/dist/actions/list-media.d.cts +2 -2
  174. package/dist/actions/list-media.d.mts +2 -2
  175. package/dist/actions/list-media.mjs +2 -2
  176. package/dist/actions/list-media.mjs.map +1 -1
  177. package/dist/actions/list-reports.cjs +2 -2
  178. package/dist/actions/list-reports.cjs.map +1 -1
  179. package/dist/actions/list-reports.d.cts +2 -2
  180. package/dist/actions/list-reports.d.mts +2 -2
  181. package/dist/actions/list-reports.mjs +2 -2
  182. package/dist/actions/list-reports.mjs.map +1 -1
  183. package/dist/actions/list-roles.cjs +3 -3
  184. package/dist/actions/list-roles.cjs.map +1 -1
  185. package/dist/actions/list-roles.d.cts +3 -3
  186. package/dist/actions/list-roles.d.mts +3 -3
  187. package/dist/actions/list-roles.mjs +3 -3
  188. package/dist/actions/list-roles.mjs.map +1 -1
  189. package/dist/actions/list-tags.cjs +2 -2
  190. package/dist/actions/list-tags.cjs.map +1 -1
  191. package/dist/actions/list-tags.d.cts +2 -2
  192. package/dist/actions/list-tags.d.mts +2 -2
  193. package/dist/actions/list-tags.mjs +2 -2
  194. package/dist/actions/list-tags.mjs.map +1 -1
  195. package/dist/actions/list-templates.cjs +6 -6
  196. package/dist/actions/list-templates.cjs.map +1 -1
  197. package/dist/actions/list-templates.d.cts +8 -8
  198. package/dist/actions/list-templates.d.mts +8 -8
  199. package/dist/actions/list-templates.mjs +6 -6
  200. package/dist/actions/list-templates.mjs.map +1 -1
  201. package/dist/actions/list-tickets.cjs +5 -5
  202. package/dist/actions/list-tickets.cjs.map +1 -1
  203. package/dist/actions/list-tickets.d.cts +6 -6
  204. package/dist/actions/list-tickets.d.mts +6 -6
  205. package/dist/actions/list-tickets.mjs +5 -5
  206. package/dist/actions/list-tickets.mjs.map +1 -1
  207. package/dist/actions/remove-all-list-contacts.cjs +1 -1
  208. package/dist/actions/remove-all-list-contacts.cjs.map +1 -1
  209. package/dist/actions/remove-all-list-contacts.d.cts +1 -1
  210. package/dist/actions/remove-all-list-contacts.d.mts +1 -1
  211. package/dist/actions/remove-all-list-contacts.mjs +1 -1
  212. package/dist/actions/remove-all-list-contacts.mjs.map +1 -1
  213. package/dist/actions/remove-contact-operator.cjs +1 -1
  214. package/dist/actions/remove-contact-operator.cjs.map +1 -1
  215. package/dist/actions/remove-contact-operator.d.cts +1 -1
  216. package/dist/actions/remove-contact-operator.d.mts +1 -1
  217. package/dist/actions/remove-contact-operator.mjs +1 -1
  218. package/dist/actions/remove-contact-operator.mjs.map +1 -1
  219. package/dist/actions/remove-list-contacts.cjs +1 -1
  220. package/dist/actions/remove-list-contacts.cjs.map +1 -1
  221. package/dist/actions/remove-list-contacts.d.cts +1 -1
  222. package/dist/actions/remove-list-contacts.d.mts +1 -1
  223. package/dist/actions/remove-list-contacts.mjs +1 -1
  224. package/dist/actions/remove-list-contacts.mjs.map +1 -1
  225. package/dist/actions/resend-invitation.cjs +1 -1
  226. package/dist/actions/resend-invitation.cjs.map +1 -1
  227. package/dist/actions/resend-invitation.d.cts +1 -1
  228. package/dist/actions/resend-invitation.d.mts +1 -1
  229. package/dist/actions/resend-invitation.mjs +1 -1
  230. package/dist/actions/resend-invitation.mjs.map +1 -1
  231. package/dist/actions/retrieve-account.cjs +1 -1
  232. package/dist/actions/retrieve-account.cjs.map +1 -1
  233. package/dist/actions/retrieve-account.d.cts +1 -1
  234. package/dist/actions/retrieve-account.d.mts +1 -1
  235. package/dist/actions/retrieve-account.mjs +1 -1
  236. package/dist/actions/retrieve-account.mjs.map +1 -1
  237. package/dist/actions/retrieve-automation.cjs +2 -2
  238. package/dist/actions/retrieve-automation.cjs.map +1 -1
  239. package/dist/actions/retrieve-automation.d.cts +2 -2
  240. package/dist/actions/retrieve-automation.d.mts +2 -2
  241. package/dist/actions/retrieve-automation.mjs +2 -2
  242. package/dist/actions/retrieve-automation.mjs.map +1 -1
  243. package/dist/actions/retrieve-contact.cjs +6 -6
  244. package/dist/actions/retrieve-contact.cjs.map +1 -1
  245. package/dist/actions/retrieve-contact.d.cts +6 -6
  246. package/dist/actions/retrieve-contact.d.mts +6 -6
  247. package/dist/actions/retrieve-contact.mjs +6 -6
  248. package/dist/actions/retrieve-contact.mjs.map +1 -1
  249. package/dist/actions/retrieve-custom-field.cjs +1 -1
  250. package/dist/actions/retrieve-custom-field.cjs.map +1 -1
  251. package/dist/actions/retrieve-custom-field.d.cts +1 -1
  252. package/dist/actions/retrieve-custom-field.d.mts +1 -1
  253. package/dist/actions/retrieve-custom-field.mjs +1 -1
  254. package/dist/actions/retrieve-custom-field.mjs.map +1 -1
  255. package/dist/actions/retrieve-list.cjs +1 -1
  256. package/dist/actions/retrieve-list.cjs.map +1 -1
  257. package/dist/actions/retrieve-list.d.cts +1 -1
  258. package/dist/actions/retrieve-list.d.mts +1 -1
  259. package/dist/actions/retrieve-list.mjs +1 -1
  260. package/dist/actions/retrieve-list.mjs.map +1 -1
  261. package/dist/actions/retrieve-media.cjs +1 -1
  262. package/dist/actions/retrieve-media.cjs.map +1 -1
  263. package/dist/actions/retrieve-media.d.cts +1 -1
  264. package/dist/actions/retrieve-media.d.mts +1 -1
  265. package/dist/actions/retrieve-media.mjs +1 -1
  266. package/dist/actions/retrieve-media.mjs.map +1 -1
  267. package/dist/actions/retrieve-role.cjs +2 -2
  268. package/dist/actions/retrieve-role.cjs.map +1 -1
  269. package/dist/actions/retrieve-role.d.cts +2 -2
  270. package/dist/actions/retrieve-role.d.mts +2 -2
  271. package/dist/actions/retrieve-role.mjs +2 -2
  272. package/dist/actions/retrieve-role.mjs.map +1 -1
  273. package/dist/actions/retrieve-tag.cjs +1 -1
  274. package/dist/actions/retrieve-tag.cjs.map +1 -1
  275. package/dist/actions/retrieve-tag.d.cts +1 -1
  276. package/dist/actions/retrieve-tag.d.mts +1 -1
  277. package/dist/actions/retrieve-tag.mjs +1 -1
  278. package/dist/actions/retrieve-tag.mjs.map +1 -1
  279. package/dist/actions/retrieve-template.cjs +5 -5
  280. package/dist/actions/retrieve-template.cjs.map +1 -1
  281. package/dist/actions/retrieve-template.d.cts +7 -7
  282. package/dist/actions/retrieve-template.d.mts +7 -7
  283. package/dist/actions/retrieve-template.mjs +5 -5
  284. package/dist/actions/retrieve-template.mjs.map +1 -1
  285. package/dist/actions/revert-template-to-draft.cjs +1 -1
  286. package/dist/actions/revert-template-to-draft.cjs.map +1 -1
  287. package/dist/actions/revert-template-to-draft.d.cts +1 -1
  288. package/dist/actions/revert-template-to-draft.d.mts +1 -1
  289. package/dist/actions/revert-template-to-draft.mjs +1 -1
  290. package/dist/actions/revert-template-to-draft.mjs.map +1 -1
  291. package/dist/actions/sync-contacts-bulk.cjs +5 -5
  292. package/dist/actions/sync-contacts-bulk.cjs.map +1 -1
  293. package/dist/actions/sync-contacts-bulk.d.cts +7 -6
  294. package/dist/actions/sync-contacts-bulk.d.cts.map +1 -1
  295. package/dist/actions/sync-contacts-bulk.d.mts +7 -6
  296. package/dist/actions/sync-contacts-bulk.d.mts.map +1 -1
  297. package/dist/actions/sync-contacts-bulk.mjs +5 -5
  298. package/dist/actions/sync-contacts-bulk.mjs.map +1 -1
  299. package/dist/actions/sync-list-contacts.cjs +3 -3
  300. package/dist/actions/sync-list-contacts.cjs.map +1 -1
  301. package/dist/actions/sync-list-contacts.d.cts +6 -5
  302. package/dist/actions/sync-list-contacts.d.cts.map +1 -1
  303. package/dist/actions/sync-list-contacts.d.mts +6 -5
  304. package/dist/actions/sync-list-contacts.d.mts.map +1 -1
  305. package/dist/actions/sync-list-contacts.mjs +3 -3
  306. package/dist/actions/sync-list-contacts.mjs.map +1 -1
  307. package/dist/actions/update-campaign.cjs +1 -1
  308. package/dist/actions/update-campaign.cjs.map +1 -1
  309. package/dist/actions/update-campaign.d.cts +1 -1
  310. package/dist/actions/update-campaign.d.mts +1 -1
  311. package/dist/actions/update-campaign.mjs +1 -1
  312. package/dist/actions/update-campaign.mjs.map +1 -1
  313. package/dist/actions/update-contact.cjs +2 -2
  314. package/dist/actions/update-contact.cjs.map +1 -1
  315. package/dist/actions/update-contact.d.cts +3 -3
  316. package/dist/actions/update-contact.d.mts +3 -3
  317. package/dist/actions/update-contact.mjs +2 -2
  318. package/dist/actions/update-contact.mjs.map +1 -1
  319. package/dist/actions/update-custom-field.cjs +1 -1
  320. package/dist/actions/update-custom-field.cjs.map +1 -1
  321. package/dist/actions/update-custom-field.d.cts +1 -1
  322. package/dist/actions/update-custom-field.d.mts +1 -1
  323. package/dist/actions/update-custom-field.mjs +1 -1
  324. package/dist/actions/update-custom-field.mjs.map +1 -1
  325. package/dist/actions/update-invitation-role.cjs +1 -1
  326. package/dist/actions/update-invitation-role.cjs.map +1 -1
  327. package/dist/actions/update-invitation-role.d.cts +1 -1
  328. package/dist/actions/update-invitation-role.d.mts +1 -1
  329. package/dist/actions/update-invitation-role.mjs +1 -1
  330. package/dist/actions/update-invitation-role.mjs.map +1 -1
  331. package/dist/actions/update-media.cjs +1 -1
  332. package/dist/actions/update-media.cjs.map +1 -1
  333. package/dist/actions/update-media.d.cts +1 -1
  334. package/dist/actions/update-media.d.mts +1 -1
  335. package/dist/actions/update-media.mjs +1 -1
  336. package/dist/actions/update-media.mjs.map +1 -1
  337. package/dist/actions/update-role.cjs +1 -1
  338. package/dist/actions/update-role.cjs.map +1 -1
  339. package/dist/actions/update-role.d.cts +1 -1
  340. package/dist/actions/update-role.d.mts +1 -1
  341. package/dist/actions/update-role.mjs +1 -1
  342. package/dist/actions/update-role.mjs.map +1 -1
  343. package/dist/actions/update-template.cjs +8 -8
  344. package/dist/actions/update-template.cjs.map +1 -1
  345. package/dist/actions/update-template.d.cts +10 -8
  346. package/dist/actions/update-template.d.mts +10 -8
  347. package/dist/actions/update-template.mjs +8 -8
  348. package/dist/actions/update-template.mjs.map +1 -1
  349. package/package.json +1 -1
@@ -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.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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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.record(z.string(), z.unknown()).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}).passthrough();\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,OA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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const SpokiUpdateContactInput: z.ZodObject<{
8
8
  language: z.ZodOptional<z.ZodString>;
9
9
  last_name: z.ZodOptional<z.ZodString>;
10
10
  first_name: z.ZodOptional<z.ZodString>;
11
- custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
12
  }, z.core.$strip>;
13
13
  declare const SpokiUpdateContactOutput: z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodNumber>;
@@ -23,7 +23,7 @@ declare const SpokiUpdateContactOutput: z.ZodObject<{
23
23
  is_restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
24
24
  has_invalid_phone: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
25
25
  is_first_message_sent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  id: string;
29
29
  email?: string | undefined;
@@ -31,7 +31,7 @@ declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDe
31
31
  language?: string | undefined;
32
32
  last_name?: string | undefined;
33
33
  first_name?: string | undefined;
34
- custom_fields?: Record<string, never> | undefined;
34
+ custom_fields?: Record<string, unknown> | undefined;
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
36
  //#endregion
37
37
  export { spokiUpdateContact };
@@ -8,7 +8,7 @@ declare const SpokiUpdateContactInput: z.ZodObject<{
8
8
  language: z.ZodOptional<z.ZodString>;
9
9
  last_name: z.ZodOptional<z.ZodString>;
10
10
  first_name: z.ZodOptional<z.ZodString>;
11
- custom_fields: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
11
+ custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
12
  }, z.core.$strip>;
13
13
  declare const SpokiUpdateContactOutput: z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodNumber>;
@@ -23,7 +23,7 @@ declare const SpokiUpdateContactOutput: z.ZodObject<{
23
23
  is_restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
24
24
  has_invalid_phone: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
25
25
  is_first_message_sent: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  id: string;
29
29
  email?: string | undefined;
@@ -31,7 +31,7 @@ declare const spokiUpdateContact: import("@keystrokehq/action").WorkflowActionDe
31
31
  language?: string | undefined;
32
32
  last_name?: string | undefined;
33
33
  first_name?: string | undefined;
34
- custom_fields?: Record<string, never> | undefined;
34
+ custom_fields?: Record<string, unknown> | undefined;
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
36
36
  //#endregion
37
37
  export { spokiUpdateContact };
@@ -11,7 +11,7 @@ const spokiUpdateContact = action("SPOKI_UPDATE_CONTACT", {
11
11
  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(),
12
12
  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(),
13
13
  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(),
14
- 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()
14
+ custom_fields: z.record(z.string(), z.unknown()).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()
15
15
  }),
16
16
  output: z.object({
17
17
  id: z.number().int().describe("Unique ID of the contact").nullable(),
@@ -26,7 +26,7 @@ const spokiUpdateContact = action("SPOKI_UPDATE_CONTACT", {
26
26
  is_restricted: z.boolean().describe("Whether the contact is restricted").nullable().optional(),
27
27
  has_invalid_phone: z.boolean().describe("Whether the phone number is invalid").nullable().optional(),
28
28
  is_first_message_sent: z.boolean().describe("Whether the first message has been sent to this contact").nullable().optional()
29
- })
29
+ }).passthrough()
30
30
  });
31
31
  //#endregion
32
32
  export { spokiUpdateContact };
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateContactInput = z.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":";;AA4BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;EACvI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;EACnN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS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CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact.mjs","names":[],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateContactInput = z.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.record(z.string(), z.unknown()).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}).passthrough();\n\nexport const spokiUpdateContact = action(\"SPOKI_UPDATE_CONTACT\", {\n slug: \"spoki-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update an existing contact in Spoki. Use when you need to modify contact information for a specific contact ID. Only the fields provided will be updated; other fields remain unchanged.\",\n input: SpokiUpdateContactInput,\n output: SpokiUpdateContactOutput,\n});\n"],"mappings":";;AA4BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;EACvI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;EACnN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;EAClO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC/J,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CAChQ,CAoBS;CACP,QApBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAChG,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC5E,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -16,7 +16,7 @@ const SpokiUpdateCustomFieldOutput = zod.z.object({
16
16
  zod.z.literal(2),
17
17
  zod.z.literal(3)
18
18
  ]).describe("Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME").nullable()
19
- }).describe("Response model containing details of the updated custom field.");
19
+ }).passthrough().describe("Response model containing details of the updated custom field.");
20
20
  const spokiUpdateCustomField = require_action.action("SPOKI_UPDATE_CUSTOM_FIELD", {
21
21
  slug: "spoki-update-custom-field",
22
22
  name: "Update Custom Field",
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCustomFieldInput = z.object({\n label: z.string().describe(\"New display label of the custom field\"),\n custom_field_id: z.number().int().describe(\"Unique identifier of the custom field to update\"),\n}).describe(\"Request model for updating a specific custom field.\");\nexport const SpokiUpdateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Programmatic code used to reference the custom field\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether the custom field is linked/associated with contacts\").nullable(),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).describe(\"Response model containing details of the updated custom field.\");\n\nexport const spokiUpdateCustomField = action(\"SPOKI_UPDATE_CUSTOM_FIELD\", {\n slug: \"spoki-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Tool to update a specific custom field. Use after retrieving a field to change its label.\",\n input: SpokiUpdateCustomFieldInput,\n output: SpokiUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;AAC9F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCustomFieldInput = z.object({\n label: z.string().describe(\"New display label of the custom field\"),\n custom_field_id: z.number().int().describe(\"Unique identifier of the custom field to update\"),\n}).describe(\"Request model for updating a specific custom field.\");\nexport const SpokiUpdateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Programmatic code used to reference the custom field\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether the custom field is linked/associated with contacts\").nullable(),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough().describe(\"Response model containing details of the updated custom field.\");\n\nexport const spokiUpdateCustomField = action(\"SPOKI_UPDATE_CUSTOM_FIELD\", {\n slug: \"spoki-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Tool to update a specific custom field. Use after retrieving a field to change its label.\",\n input: SpokiUpdateCustomFieldInput,\n output: SpokiUpdateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;AAC9F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -12,7 +12,7 @@ declare const SpokiUpdateCustomFieldOutput: z.ZodObject<{
12
12
  example: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  is_linked: z.ZodNullable<z.ZodBoolean>;
14
14
  field_type: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
15
- }, z.core.$strip>;
15
+ }, z.core.$loose>;
16
16
  declare const spokiUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  label: string;
18
18
  custom_field_id: number;
@@ -12,7 +12,7 @@ declare const SpokiUpdateCustomFieldOutput: z.ZodObject<{
12
12
  example: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  is_linked: z.ZodNullable<z.ZodBoolean>;
14
14
  field_type: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
15
- }, z.core.$strip>;
15
+ }, z.core.$loose>;
16
16
  declare const spokiUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
17
17
  label: string;
18
18
  custom_field_id: number;
@@ -19,7 +19,7 @@ const spokiUpdateCustomField = action("SPOKI_UPDATE_CUSTOM_FIELD", {
19
19
  z.literal(2),
20
20
  z.literal(3)
21
21
  ]).describe("Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME").nullable()
22
- }).describe("Response model containing details of the updated custom field.")
22
+ }).passthrough().describe("Response model containing details of the updated custom field.")
23
23
  });
24
24
  //#endregion
25
25
  export { spokiUpdateCustomField };
@@ -1 +1 @@
1
- {"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCustomFieldInput = z.object({\n label: z.string().describe(\"New display label of the custom field\"),\n custom_field_id: z.number().int().describe(\"Unique identifier of the custom field to update\"),\n}).describe(\"Request model for updating a specific custom field.\");\nexport const SpokiUpdateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Programmatic code used to reference the custom field\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether the custom field is linked/associated with contacts\").nullable(),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).describe(\"Response model containing details of the updated custom field.\");\n\nexport const spokiUpdateCustomField = action(\"SPOKI_UPDATE_CUSTOM_FIELD\", {\n slug: \"spoki-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Tool to update a specific custom field. Use after retrieving a field to change its label.\",\n input: SpokiUpdateCustomFieldInput,\n output: SpokiUpdateCustomFieldOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CAC9F,CAAC,CAAC,CAAC,SAAS,qDAcH;CACP,QAd0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,MAAM;GAAC,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateCustomFieldInput = z.object({\n label: z.string().describe(\"New display label of the custom field\"),\n custom_field_id: z.number().int().describe(\"Unique identifier of the custom field to update\"),\n}).describe(\"Request model for updating a specific custom field.\");\nexport const SpokiUpdateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Programmatic code used to reference the custom field\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether the custom field is linked/associated with contacts\").nullable(),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Type of the custom field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough().describe(\"Response model containing details of the updated custom field.\");\n\nexport const spokiUpdateCustomField = action(\"SPOKI_UPDATE_CUSTOM_FIELD\", {\n slug: \"spoki-update-custom-field\",\n name: \"Update Custom Field\",\n description: \"Tool to update a specific custom field. Use after retrieving a field to change its label.\",\n input: SpokiUpdateCustomFieldInput,\n output: SpokiUpdateCustomFieldOutput,\n});\n"],"mappings":";;AAiBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CAC9F,CAAC,CAAC,CAAC,SAAS,qDAcH;CACP,QAd0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,MAAM;GAAC,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
@@ -10,7 +10,7 @@ const SpokiUpdateInvitationRoleOutput = zod.z.object({
10
10
  role: zod.z.string().describe("The updated role for the invitation").nullable().optional(),
11
11
  message: zod.z.string().describe("Message from the API about the update operation").nullable().optional(),
12
12
  success: zod.z.boolean().describe("Indicates whether the role update was successful").nullable().optional()
13
- }).describe("Response from updating an invitation role.");
13
+ }).passthrough().describe("Response from updating an invitation role.");
14
14
  const spokiUpdateInvitationRole = require_action.action("SPOKI_UPDATE_INVITATION_ROLE", {
15
15
  slug: "spoki-update-invitation-role",
16
16
  name: "Update Invitation Role",
@@ -1 +1 @@
1
- {"version":3,"file":"update-invitation-role.cjs","names":["z","action"],"sources":["../../src/actions/update-invitation-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateInvitationRoleInput = z.object({\n id: z.string().describe(\"The invitation ID to update the role for\"),\n role: z.string().describe(\"New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.\"),\n}).describe(\"Request parameters for updating an invitation role.\");\nexport const SpokiUpdateInvitationRoleOutput = z.object({\n id: z.number().int().describe(\"The invitation ID\").nullable().optional(),\n role: z.string().describe(\"The updated role for the invitation\").nullable().optional(),\n message: z.string().describe(\"Message from the API about the update operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the role update was successful\").nullable().optional(),\n}).describe(\"Response from updating an invitation role.\");\n\nexport const spokiUpdateInvitationRole = action(\"SPOKI_UPDATE_INVITATION_ROLE\", {\n slug: \"spoki-update-invitation-role\",\n name: \"Update Invitation Role\",\n description: \"Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiUpdateInvitationRoleInput,\n output: SpokiUpdateInvitationRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;AACjJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-invitation-role.cjs","names":["z","action"],"sources":["../../src/actions/update-invitation-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateInvitationRoleInput = z.object({\n id: z.string().describe(\"The invitation ID to update the role for\"),\n role: z.string().describe(\"New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.\"),\n}).describe(\"Request parameters for updating an invitation role.\");\nexport const SpokiUpdateInvitationRoleOutput = z.object({\n id: z.number().int().describe(\"The invitation ID\").nullable().optional(),\n role: z.string().describe(\"The updated role for the invitation\").nullable().optional(),\n message: z.string().describe(\"Message from the API about the update operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the role update was successful\").nullable().optional(),\n}).passthrough().describe(\"Response from updating an invitation role.\");\n\nexport const spokiUpdateInvitationRole = action(\"SPOKI_UPDATE_INVITATION_ROLE\", {\n slug: \"spoki-update-invitation-role\",\n name: \"Update Invitation Role\",\n description: \"Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiUpdateInvitationRoleInput,\n output: SpokiUpdateInvitationRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;AACjJ,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,7 +10,7 @@ declare const SpokiUpdateInvitationRoleOutput: z.ZodObject<{
10
10
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
12
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const spokiUpdateInvitationRole: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
16
  role: string;
@@ -10,7 +10,7 @@ declare const SpokiUpdateInvitationRoleOutput: z.ZodObject<{
10
10
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
12
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const spokiUpdateInvitationRole: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
16
  role: string;
@@ -13,7 +13,7 @@ const spokiUpdateInvitationRole = action("SPOKI_UPDATE_INVITATION_ROLE", {
13
13
  role: z.string().describe("The updated role for the invitation").nullable().optional(),
14
14
  message: z.string().describe("Message from the API about the update operation").nullable().optional(),
15
15
  success: z.boolean().describe("Indicates whether the role update was successful").nullable().optional()
16
- }).describe("Response from updating an invitation role.")
16
+ }).passthrough().describe("Response from updating an invitation role.")
17
17
  });
18
18
  //#endregion
19
19
  export { spokiUpdateInvitationRole };
@@ -1 +1 @@
1
- {"version":3,"file":"update-invitation-role.mjs","names":[],"sources":["../../src/actions/update-invitation-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateInvitationRoleInput = z.object({\n id: z.string().describe(\"The invitation ID to update the role for\"),\n role: z.string().describe(\"New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.\"),\n}).describe(\"Request parameters for updating an invitation role.\");\nexport const SpokiUpdateInvitationRoleOutput = z.object({\n id: z.number().int().describe(\"The invitation ID\").nullable().optional(),\n role: z.string().describe(\"The updated role for the invitation\").nullable().optional(),\n message: z.string().describe(\"Message from the API about the update operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the role update was successful\").nullable().optional(),\n}).describe(\"Response from updating an invitation role.\");\n\nexport const spokiUpdateInvitationRole = action(\"SPOKI_UPDATE_INVITATION_ROLE\", {\n slug: \"spoki-update-invitation-role\",\n name: \"Update Invitation Role\",\n description: \"Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiUpdateInvitationRoleInput,\n output: SpokiUpdateInvitationRoleOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CACjJ,CAAC,CAAC,CAAC,SAAS,qDAYH;CACP,QAZ6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-invitation-role.mjs","names":[],"sources":["../../src/actions/update-invitation-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateInvitationRoleInput = z.object({\n id: z.string().describe(\"The invitation ID to update the role for\"),\n role: z.string().describe(\"New role to assign to the invitation. Common roles include 'Administrator', 'Chat Operator', 'Admin', 'Agent', etc.\"),\n}).describe(\"Request parameters for updating an invitation role.\");\nexport const SpokiUpdateInvitationRoleOutput = z.object({\n id: z.number().int().describe(\"The invitation ID\").nullable().optional(),\n role: z.string().describe(\"The updated role for the invitation\").nullable().optional(),\n message: z.string().describe(\"Message from the API about the update operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the role update was successful\").nullable().optional(),\n}).passthrough().describe(\"Response from updating an invitation role.\");\n\nexport const spokiUpdateInvitationRole = action(\"SPOKI_UPDATE_INVITATION_ROLE\", {\n slug: \"spoki-update-invitation-role\",\n name: \"Update Invitation Role\",\n description: \"Tool to update the role of a pending invitation. Use when you need to change the role assigned to an existing invitation. Rate limit: 5 requests per minute.\",\n input: SpokiUpdateInvitationRoleInput,\n output: SpokiUpdateInvitationRoleOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CACjJ,CAAC,CAAC,CAAC,SAAS,qDAYH;CACP,QAZ6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -14,7 +14,7 @@ const SpokiUpdateMediaOutput = zod.z.object({
14
14
  mime_type: zod.z.string().describe("MIME type of the media file").nullable().optional(),
15
15
  created_datetime: zod.z.string().describe("Timestamp when the media was created, ISO 8601 format").nullable().optional(),
16
16
  updated_datetime: zod.z.string().describe("Timestamp when the media was last updated, ISO 8601 format").nullable().optional()
17
- }).describe("Response model containing details of the updated media file.");
17
+ }).passthrough().describe("Response model containing details of the updated media file.");
18
18
  const spokiUpdateMedia = require_action.action("SPOKI_UPDATE_MEDIA", {
19
19
  slug: "spoki-update-media",
20
20
  name: "Update Media",
@@ -1 +1 @@
1
- {"version":3,"file":"update-media.cjs","names":["z","action"],"sources":["../../src/actions/update-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateMediaInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file to update\"),\n title: z.string().describe(\"New title for the media file\"),\n}).describe(\"Request model for updating a media file.\");\nexport const SpokiUpdateMediaOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\").nullable(),\n url: z.string().describe(\"URL where the media file is accessible\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\").nullable(),\n file_name: z.string().describe(\"Name of the media file\").nullable().optional(),\n file_size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the media file\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the media was created, ISO 8601 format\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the media was last updated, ISO 8601 format\").nullable().optional(),\n}).describe(\"Response model containing details of the updated media file.\");\n\nexport const spokiUpdateMedia = action(\"SPOKI_UPDATE_MEDIA\", {\n slug: \"spoki-update-media\",\n name: \"Update Media\",\n description: \"Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.\",\n input: SpokiUpdateMediaInput,\n output: SpokiUpdateMediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC3D,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-media.cjs","names":["z","action"],"sources":["../../src/actions/update-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateMediaInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file to update\"),\n title: z.string().describe(\"New title for the media file\"),\n}).describe(\"Request model for updating a media file.\");\nexport const SpokiUpdateMediaOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\").nullable(),\n url: z.string().describe(\"URL where the media file is accessible\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\").nullable(),\n file_name: z.string().describe(\"Name of the media file\").nullable().optional(),\n file_size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the media file\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the media was created, ISO 8601 format\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the media was last updated, ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Response model containing details of the updated media file.\");\n\nexport const spokiUpdateMedia = action(\"SPOKI_UPDATE_MEDIA\", {\n slug: \"spoki-update-media\",\n name: \"Update Media\",\n description: \"Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.\",\n input: SpokiUpdateMediaInput,\n output: SpokiUpdateMediaOutput,\n});\n"],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are const SpokiUpdateMediaOutput: z.ZodObject<{
14
14
  mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  created_datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  updated_datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, z.core.$strip>;
17
+ }, z.core.$loose>;
18
18
  declare const spokiUpdateMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  id: number;
20
20
  title: string;
@@ -14,7 +14,7 @@ declare const SpokiUpdateMediaOutput: z.ZodObject<{
14
14
  mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  created_datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  updated_datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, z.core.$strip>;
17
+ }, z.core.$loose>;
18
18
  declare const spokiUpdateMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  id: number;
20
20
  title: string;
@@ -17,7 +17,7 @@ const spokiUpdateMedia = action("SPOKI_UPDATE_MEDIA", {
17
17
  mime_type: z.string().describe("MIME type of the media file").nullable().optional(),
18
18
  created_datetime: z.string().describe("Timestamp when the media was created, ISO 8601 format").nullable().optional(),
19
19
  updated_datetime: z.string().describe("Timestamp when the media was last updated, ISO 8601 format").nullable().optional()
20
- }).describe("Response model containing details of the updated media file.")
20
+ }).passthrough().describe("Response model containing details of the updated media file.")
21
21
  });
22
22
  //#endregion
23
23
  export { spokiUpdateMedia };
@@ -1 +1 @@
1
- {"version":3,"file":"update-media.mjs","names":[],"sources":["../../src/actions/update-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateMediaInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file to update\"),\n title: z.string().describe(\"New title for the media file\"),\n}).describe(\"Request model for updating a media file.\");\nexport const SpokiUpdateMediaOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\").nullable(),\n url: z.string().describe(\"URL where the media file is accessible\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\").nullable(),\n file_name: z.string().describe(\"Name of the media file\").nullable().optional(),\n file_size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the media file\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the media was created, ISO 8601 format\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the media was last updated, ISO 8601 format\").nullable().optional(),\n}).describe(\"Response model containing details of the updated media file.\");\n\nexport const spokiUpdateMedia = action(\"SPOKI_UPDATE_MEDIA\", {\n slug: \"spoki-update-media\",\n name: \"Update Media\",\n description: \"Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.\",\n input: SpokiUpdateMediaInput,\n output: SpokiUpdateMediaOutput,\n});\n"],"mappings":";;AAmBA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBmC,EAAE,OAAO;EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,CAAC,CAAC,CAAC,SAAS,0CAgBH;CACP,QAhBoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-media.mjs","names":[],"sources":["../../src/actions/update-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateMediaInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file to update\"),\n title: z.string().describe(\"New title for the media file\"),\n}).describe(\"Request model for updating a media file.\");\nexport const SpokiUpdateMediaOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\").nullable(),\n url: z.string().describe(\"URL where the media file is accessible\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\").nullable(),\n file_name: z.string().describe(\"Name of the media file\").nullable().optional(),\n file_size: z.number().int().describe(\"Size of the file in bytes\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the media file\").nullable().optional(),\n created_datetime: z.string().describe(\"Timestamp when the media was created, ISO 8601 format\").nullable().optional(),\n updated_datetime: z.string().describe(\"Timestamp when the media was last updated, ISO 8601 format\").nullable().optional(),\n}).passthrough().describe(\"Response model containing details of the updated media file.\");\n\nexport const spokiUpdateMedia = action(\"SPOKI_UPDATE_MEDIA\", {\n slug: \"spoki-update-media\",\n name: \"Update Media\",\n description: \"Tool to update an existing media file in Spoki. Use when you need to modify media file details like title. Rate limit: 120 requests per minute.\",\n input: SpokiUpdateMediaInput,\n output: SpokiUpdateMediaOutput,\n});\n"],"mappings":";;AAmBA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBmC,EAAE,OAAO;EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,CAAC,CAAC,CAAC,SAAS,0CAgBH;CACP,QAhBoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAOhB;AACV,CAAC"}
@@ -9,7 +9,7 @@ const SpokiUpdateRoleOutput = zod.z.object({
9
9
  id: zod.z.number().int().describe("Unique identifier of the role").nullable(),
10
10
  name: zod.z.string().describe("Name of the role").nullable(),
11
11
  permission_set: zod.z.array(zod.z.string()).describe("List of permissions assigned to this role").nullable().optional()
12
- }).describe("Response containing details of the updated role.");
12
+ }).passthrough().describe("Response containing details of the updated role.");
13
13
  const spokiUpdateRole = require_action.action("SPOKI_UPDATE_ROLE", {
14
14
  slug: "spoki-update-role",
15
15
  name: "Update Role",
@@ -1 +1 @@
1
- {"version":3,"file":"update-role.cjs","names":["z","action"],"sources":["../../src/actions/update-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateRoleInput = z.object({\n id: z.string().describe(\"The role ID to update\"),\n role: z.string().describe(\"New role name to assign to the user\"),\n}).describe(\"Request parameters for updating a user's role. Provide the role ID and the new role name.\");\nexport const SpokiUpdateRoleOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n permission_set: z.array(z.string()).describe(\"List of permissions assigned to this role\").nullable().optional(),\n}).describe(\"Response containing details of the updated role.\");\n\nexport const spokiUpdateRole = action(\"SPOKI_UPDATE_ROLE\", {\n slug: \"spoki-update-role\",\n name: \"Update Role\",\n description: \"Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateRoleInput,\n output: SpokiUpdateRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACjE,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-role.cjs","names":["z","action"],"sources":["../../src/actions/update-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateRoleInput = z.object({\n id: z.string().describe(\"The role ID to update\"),\n role: z.string().describe(\"New role name to assign to the user\"),\n}).describe(\"Request parameters for updating a user's role. Provide the role ID and the new role name.\");\nexport const SpokiUpdateRoleOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n permission_set: z.array(z.string()).describe(\"List of permissions assigned to this role\").nullable().optional(),\n}).passthrough().describe(\"Response containing details of the updated role.\");\n\nexport const spokiUpdateRole = action(\"SPOKI_UPDATE_ROLE\", {\n slug: \"spoki-update-role\",\n name: \"Update Role\",\n description: \"Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateRoleInput,\n output: SpokiUpdateRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACjE,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,7 +9,7 @@ declare const SpokiUpdateRoleOutput: z.ZodObject<{
9
9
  id: z.ZodNullable<z.ZodNumber>;
10
10
  name: z.ZodNullable<z.ZodString>;
11
11
  permission_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const spokiUpdateRole: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  id: string;
15
15
  role: string;
@@ -9,7 +9,7 @@ declare const SpokiUpdateRoleOutput: z.ZodObject<{
9
9
  id: z.ZodNullable<z.ZodNumber>;
10
10
  name: z.ZodNullable<z.ZodString>;
11
11
  permission_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const spokiUpdateRole: import("@keystrokehq/action").WorkflowActionDefinition<{
14
14
  id: string;
15
15
  role: string;
@@ -12,7 +12,7 @@ const spokiUpdateRole = action("SPOKI_UPDATE_ROLE", {
12
12
  id: z.number().int().describe("Unique identifier of the role").nullable(),
13
13
  name: z.string().describe("Name of the role").nullable(),
14
14
  permission_set: z.array(z.string()).describe("List of permissions assigned to this role").nullable().optional()
15
- }).describe("Response containing details of the updated role.")
15
+ }).passthrough().describe("Response containing details of the updated role.")
16
16
  });
17
17
  //#endregion
18
18
  export { spokiUpdateRole };
@@ -1 +1 @@
1
- {"version":3,"file":"update-role.mjs","names":[],"sources":["../../src/actions/update-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateRoleInput = z.object({\n id: z.string().describe(\"The role ID to update\"),\n role: z.string().describe(\"New role name to assign to the user\"),\n}).describe(\"Request parameters for updating a user's role. Provide the role ID and the new role name.\");\nexport const SpokiUpdateRoleOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n permission_set: z.array(z.string()).describe(\"List of permissions assigned to this role\").nullable().optional(),\n}).describe(\"Response containing details of the updated role.\");\n\nexport const spokiUpdateRole = action(\"SPOKI_UPDATE_ROLE\", {\n slug: \"spoki-update-role\",\n name: \"Update Role\",\n description: \"Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateRoleInput,\n output: SpokiUpdateRoleOutput,\n});\n"],"mappings":";;AAcA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACjE,CAAC,CAAC,CAAC,SAAS,2FAWH;CACP,QAXmC,EAAE,OAAO;EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACvD,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-role.mjs","names":[],"sources":["../../src/actions/update-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateRoleInput = z.object({\n id: z.string().describe(\"The role ID to update\"),\n role: z.string().describe(\"New role name to assign to the user\"),\n}).describe(\"Request parameters for updating a user's role. Provide the role ID and the new role name.\");\nexport const SpokiUpdateRoleOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the role\").nullable(),\n name: z.string().describe(\"Name of the role\").nullable(),\n permission_set: z.array(z.string()).describe(\"List of permissions assigned to this role\").nullable().optional(),\n}).passthrough().describe(\"Response containing details of the updated role.\");\n\nexport const spokiUpdateRole = action(\"SPOKI_UPDATE_ROLE\", {\n slug: \"spoki-update-role\",\n name: \"Update Role\",\n description: \"Tool to update a user's role. Use when you need to change a user's role assignment. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateRoleInput,\n output: SpokiUpdateRoleOutput,\n});\n"],"mappings":";;AAcA,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACjE,CAAC,CAAC,CAAC,SAAS,2FAWH;CACP,QAXmC,EAAE,OAAO;EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACvD,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -30,18 +30,18 @@ const SpokiUpdateTemplateInput = zod.z.object({
30
30
  order: zod.z.number().int().describe("Order index of the button").optional(),
31
31
  button_type: zod.z.string().describe("Type of button, e.g., 'quick_reply'").optional(),
32
32
  phone_number: zod.z.string().describe("Phone number for call button, if applicable").optional()
33
- }).describe("Button definition within a template localization.")).describe("List of buttons defined for this localization").optional()
34
- }).describe("Localization details for updating a template.")).describe("Array of localizations to update for this template").optional()
33
+ }).passthrough().describe("Button definition within a template localization.")).describe("List of buttons defined for this localization").optional()
34
+ }).passthrough().describe("Localization details for updating a template.")).describe("Array of localizations to update for this template").optional()
35
35
  }).describe("Request model for updating an existing WhatsApp template.");
36
36
  const SpokiUpdateTemplate_TemplateLocalizationResponseSchema = zod.z.object({
37
- body: zod.z.object({}).describe("Body component of the template").nullable().optional(),
38
- footer: zod.z.object({}).describe("Footer component of the template").nullable().optional(),
39
- header: zod.z.object({}).describe("Header component of the template").nullable().optional(),
37
+ body: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Body component of the template").nullable().optional(),
38
+ footer: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Footer component of the template").nullable().optional(),
39
+ header: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Header component of the template").nullable().optional(),
40
40
  status: zod.z.string().describe("Approval status of this localization").nullable(),
41
41
  language: zod.z.string().describe("Language code of this localization").nullable(),
42
- button_set: zod.z.array(zod.z.object({})).describe("List of buttons defined for this localization").nullable().optional(),
42
+ button_set: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of buttons defined for this localization").nullable().optional(),
43
43
  rejection_reason: zod.z.string().describe("Reason for rejection, if any").nullable().optional()
44
- }).describe("Localization details in the response.");
44
+ }).passthrough().describe("Localization details in the response.");
45
45
  const SpokiUpdateTemplateOutput = zod.z.object({
46
46
  id: zod.z.number().int().describe("Template unique identifier").nullable(),
47
47
  name: zod.z.string().describe("Template name").nullable(),
@@ -50,7 +50,7 @@ const SpokiUpdateTemplateOutput = zod.z.object({
50
50
  is_favorite: zod.z.boolean().describe("Whether the template is marked as favorite").nullable().optional(),
51
51
  customfield_set: zod.z.array(zod.z.string()).describe("List of dynamic field codes used in the template").nullable().optional(),
52
52
  templatelocalization_set: zod.z.array(SpokiUpdateTemplate_TemplateLocalizationResponseSchema).describe("Localizations available for this template").nullable().optional()
53
- }).describe("Response model containing details of the updated template.");
53
+ }).passthrough().describe("Response model containing details of the updated template.");
54
54
  const spokiUpdateTemplate = require_action.action("SPOKI_UPDATE_TEMPLATE", {
55
55
  slug: "spoki-update-template",
56
56
  name: "Update Template",
@@ -1 +1 @@
1
- {"version":3,"file":"update-template.cjs","names":["z","action"],"sources":["../../src/actions/update-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateTemplateInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the template to update\"),\n name: z.string().describe(\"New name for the template\").optional(),\n category: z.string().describe(\"Template category (e.g., 'ACCOUNT_UPDATE', 'MARKETING', 'UTILITY')\").optional(),\n subcategory: z.string().describe(\"Template subcategory for further classification\").optional(),\n templatelocalization_set: z.array(z.object({\n body: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n footer: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n header: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n status: z.string().describe(\"Approval status of this localization\").optional(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it', 'en'\").optional(),\n button_set: z.array(z.object({\n url: z.string().describe(\"URL for link button, if applicable\").optional(),\n text: z.string().describe(\"Text displayed on the button\").optional(),\n order: z.number().int().describe(\"Order index of the button\").optional(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").optional(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").optional(),\n}).describe(\"Button definition within a template localization.\")).describe(\"List of buttons defined for this localization\").optional(),\n}).describe(\"Localization details for updating a template.\")).describe(\"Array of localizations to update for this template\").optional(),\n}).describe(\"Request model for updating an existing WhatsApp template.\");\nconst SpokiUpdateTemplate_TemplateLocalizationResponseSchema = z.object({\n body: z.object({}).describe(\"Body component of the template\").nullable().optional(),\n footer: z.object({}).describe(\"Footer component of the template\").nullable().optional(),\n header: z.object({}).describe(\"Header component of the template\").nullable().optional(),\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization\").nullable(),\n button_set: z.array(z.object({})).describe(\"List of buttons defined for this localization\").nullable().optional(),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n}).describe(\"Localization details in the response.\");\nexport const SpokiUpdateTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category\").nullable(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable().optional(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable().optional(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\").nullable().optional(),\n templatelocalization_set: z.array(SpokiUpdateTemplate_TemplateLocalizationResponseSchema).describe(\"Localizations available for this template\").nullable().optional(),\n}).describe(\"Response model containing details of the updated template.\");\n\nexport const spokiUpdateTemplate = action(\"SPOKI_UPDATE_TEMPLATE\", {\n slug: \"spoki-update-template\",\n name: \"Update Template\",\n description: \"Tool to update an existing WhatsApp template in Spoki. Use when you need to modify template name, category, subcategory, or localization details. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateTemplateInput,\n output: SpokiUpdateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA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ExE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-template.cjs","names":["z","action"],"sources":["../../src/actions/update-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiUpdateTemplateInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the template to update\"),\n name: z.string().describe(\"New name for the template\").optional(),\n category: z.string().describe(\"Template category (e.g., 'ACCOUNT_UPDATE', 'MARKETING', 'UTILITY')\").optional(),\n subcategory: z.string().describe(\"Template subcategory for further classification\").optional(),\n templatelocalization_set: z.array(z.object({\n body: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n footer: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n header: z.object({\n text: z.string().describe(\"Text content of the component\").optional(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body', 'header', 'footer'\").optional(),\n}).describe(\"Component for template parts such as header, body, footer.\").optional(),\n status: z.string().describe(\"Approval status of this localization\").optional(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it', 'en'\").optional(),\n button_set: z.array(z.object({\n url: z.string().describe(\"URL for link button, if applicable\").optional(),\n text: z.string().describe(\"Text displayed on the button\").optional(),\n order: z.number().int().describe(\"Order index of the button\").optional(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").optional(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").optional(),\n}).passthrough().describe(\"Button definition within a template localization.\")).describe(\"List of buttons defined for this localization\").optional(),\n}).passthrough().describe(\"Localization details for updating a template.\")).describe(\"Array of localizations to update for this template\").optional(),\n}).describe(\"Request model for updating an existing WhatsApp template.\");\nconst SpokiUpdateTemplate_TemplateLocalizationResponseSchema = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Body component of the template\").nullable().optional(),\n footer: z.record(z.string(), z.unknown()).describe(\"Footer component of the template\").nullable().optional(),\n header: z.record(z.string(), z.unknown()).describe(\"Header component of the template\").nullable().optional(),\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization\").nullable(),\n button_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of buttons defined for this localization\").nullable().optional(),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n}).passthrough().describe(\"Localization details in the response.\");\nexport const SpokiUpdateTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category\").nullable(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable().optional(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable().optional(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\").nullable().optional(),\n templatelocalization_set: z.array(SpokiUpdateTemplate_TemplateLocalizationResponseSchema).describe(\"Localizations available for this template\").nullable().optional(),\n}).passthrough().describe(\"Response model containing details of the updated template.\");\n\nexport const spokiUpdateTemplate = action(\"SPOKI_UPDATE_TEMPLATE\", {\n slug: \"spoki-update-template\",\n name: \"Update Template\",\n description: \"Tool to update an existing WhatsApp template in Spoki. Use when you need to modify template name, category, subcategory, or localization details. Rate limit: 10 requests per minute.\",\n input: SpokiUpdateTemplateInput,\n output: SpokiUpdateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,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AAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,0BAA0BA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -30,8 +30,8 @@ declare const SpokiUpdateTemplateInput: z.ZodObject<{
30
30
  order: z.ZodOptional<z.ZodNumber>;
31
31
  button_type: z.ZodOptional<z.ZodString>;
32
32
  phone_number: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>>>;
34
- }, z.core.$strip>>>;
33
+ }, z.core.$loose>>>;
34
+ }, z.core.$loose>>>;
35
35
  }, z.core.$strip>;
36
36
  declare const SpokiUpdateTemplateOutput: z.ZodObject<{
37
37
  id: z.ZodNullable<z.ZodNumber>;
@@ -41,21 +41,22 @@ declare const SpokiUpdateTemplateOutput: z.ZodObject<{
41
41
  is_favorite: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
42
42
  customfield_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
43
43
  templatelocalization_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
- body: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
45
- footer: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
46
- header: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
44
+ body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
45
+ footer: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
46
+ header: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
47
  status: z.ZodNullable<z.ZodString>;
48
48
  language: z.ZodNullable<z.ZodString>;
49
- button_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
49
+ button_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
50
50
  rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>>>>;
52
- }, z.core.$strip>;
51
+ }, z.core.$loose>>>>;
52
+ }, z.core.$loose>;
53
53
  declare const spokiUpdateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
54
54
  id: number;
55
55
  name?: string | undefined;
56
56
  category?: string | undefined;
57
57
  subcategory?: string | undefined;
58
58
  templatelocalization_set?: {
59
+ [x: string]: unknown;
59
60
  body?: {
60
61
  text?: string | undefined;
61
62
  format?: string | undefined;
@@ -74,6 +75,7 @@ declare const spokiUpdateTemplate: import("@keystrokehq/action").WorkflowActionD
74
75
  status?: string | undefined;
75
76
  language?: string | undefined;
76
77
  button_set?: {
78
+ [x: string]: unknown;
77
79
  url?: string | undefined;
78
80
  text?: string | undefined;
79
81
  order?: number | undefined;
@@ -30,8 +30,8 @@ declare const SpokiUpdateTemplateInput: z.ZodObject<{
30
30
  order: z.ZodOptional<z.ZodNumber>;
31
31
  button_type: z.ZodOptional<z.ZodString>;
32
32
  phone_number: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>>>;
34
- }, z.core.$strip>>>;
33
+ }, z.core.$loose>>>;
34
+ }, z.core.$loose>>>;
35
35
  }, z.core.$strip>;
36
36
  declare const SpokiUpdateTemplateOutput: z.ZodObject<{
37
37
  id: z.ZodNullable<z.ZodNumber>;
@@ -41,21 +41,22 @@ declare const SpokiUpdateTemplateOutput: z.ZodObject<{
41
41
  is_favorite: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
42
42
  customfield_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
43
43
  templatelocalization_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
44
- body: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
45
- footer: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
46
- header: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
44
+ body: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
45
+ footer: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
46
+ header: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
47
47
  status: z.ZodNullable<z.ZodString>;
48
48
  language: z.ZodNullable<z.ZodString>;
49
- button_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
49
+ button_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
50
50
  rejection_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>>>>;
52
- }, z.core.$strip>;
51
+ }, z.core.$loose>>>>;
52
+ }, z.core.$loose>;
53
53
  declare const spokiUpdateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
54
54
  id: number;
55
55
  name?: string | undefined;
56
56
  category?: string | undefined;
57
57
  subcategory?: string | undefined;
58
58
  templatelocalization_set?: {
59
+ [x: string]: unknown;
59
60
  body?: {
60
61
  text?: string | undefined;
61
62
  format?: string | undefined;
@@ -74,6 +75,7 @@ declare const spokiUpdateTemplate: import("@keystrokehq/action").WorkflowActionD
74
75
  status?: string | undefined;
75
76
  language?: string | undefined;
76
77
  button_set?: {
78
+ [x: string]: unknown;
77
79
  url?: string | undefined;
78
80
  text?: string | undefined;
79
81
  order?: number | undefined;