@keystrokehq/spoki 0.1.5 → 0.1.6

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 (469) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-contact-operator.cjs +1 -0
  4. package/dist/actions/add-contact-operator.cjs.map +1 -1
  5. package/dist/actions/add-contact-operator.d.cts +3 -16
  6. package/dist/actions/add-contact-operator.d.cts.map +1 -1
  7. package/dist/actions/add-contact-operator.d.mts +3 -16
  8. package/dist/actions/add-contact-operator.d.mts.map +1 -1
  9. package/dist/actions/add-contact-operator.mjs +1 -0
  10. package/dist/actions/add-contact-operator.mjs.map +1 -1
  11. package/dist/actions/add-service-user.cjs +1 -0
  12. package/dist/actions/add-service-user.cjs.map +1 -1
  13. package/dist/actions/add-service-user.d.cts +3 -16
  14. package/dist/actions/add-service-user.d.cts.map +1 -1
  15. package/dist/actions/add-service-user.d.mts +3 -16
  16. package/dist/actions/add-service-user.d.mts.map +1 -1
  17. package/dist/actions/add-service-user.mjs +1 -0
  18. package/dist/actions/add-service-user.mjs.map +1 -1
  19. package/dist/actions/check-role-private-key.cjs +1 -0
  20. package/dist/actions/check-role-private-key.cjs.map +1 -1
  21. package/dist/actions/check-role-private-key.d.cts +3 -15
  22. package/dist/actions/check-role-private-key.d.cts.map +1 -1
  23. package/dist/actions/check-role-private-key.d.mts +3 -15
  24. package/dist/actions/check-role-private-key.d.mts.map +1 -1
  25. package/dist/actions/check-role-private-key.mjs +1 -0
  26. package/dist/actions/check-role-private-key.mjs.map +1 -1
  27. package/dist/actions/clone-template.cjs +1 -0
  28. package/dist/actions/clone-template.cjs.map +1 -1
  29. package/dist/actions/clone-template.d.cts +3 -15
  30. package/dist/actions/clone-template.d.cts.map +1 -1
  31. package/dist/actions/clone-template.d.mts +3 -15
  32. package/dist/actions/clone-template.d.mts.map +1 -1
  33. package/dist/actions/clone-template.mjs +1 -0
  34. package/dist/actions/clone-template.mjs.map +1 -1
  35. package/dist/actions/create-account-onboarding-link.cjs +1 -0
  36. package/dist/actions/create-account-onboarding-link.cjs.map +1 -1
  37. package/dist/actions/create-account-onboarding-link.d.cts +3 -15
  38. package/dist/actions/create-account-onboarding-link.d.cts.map +1 -1
  39. package/dist/actions/create-account-onboarding-link.d.mts +3 -15
  40. package/dist/actions/create-account-onboarding-link.d.mts.map +1 -1
  41. package/dist/actions/create-account-onboarding-link.mjs +1 -0
  42. package/dist/actions/create-account-onboarding-link.mjs.map +1 -1
  43. package/dist/actions/create-custom-field.cjs +1 -0
  44. package/dist/actions/create-custom-field.cjs.map +1 -1
  45. package/dist/actions/create-custom-field.d.cts +3 -18
  46. package/dist/actions/create-custom-field.d.cts.map +1 -1
  47. package/dist/actions/create-custom-field.d.mts +3 -18
  48. package/dist/actions/create-custom-field.d.mts.map +1 -1
  49. package/dist/actions/create-custom-field.mjs +1 -0
  50. package/dist/actions/create-custom-field.mjs.map +1 -1
  51. package/dist/actions/create-list.cjs +1 -0
  52. package/dist/actions/create-list.cjs.map +1 -1
  53. package/dist/actions/create-list.d.cts +3 -15
  54. package/dist/actions/create-list.d.cts.map +1 -1
  55. package/dist/actions/create-list.d.mts +3 -15
  56. package/dist/actions/create-list.d.mts.map +1 -1
  57. package/dist/actions/create-list.mjs +1 -0
  58. package/dist/actions/create-list.mjs.map +1 -1
  59. package/dist/actions/create-media.cjs +1 -0
  60. package/dist/actions/create-media.cjs.map +1 -1
  61. package/dist/actions/create-media.d.cts +3 -18
  62. package/dist/actions/create-media.d.cts.map +1 -1
  63. package/dist/actions/create-media.d.mts +3 -18
  64. package/dist/actions/create-media.d.mts.map +1 -1
  65. package/dist/actions/create-media.mjs +1 -0
  66. package/dist/actions/create-media.mjs.map +1 -1
  67. package/dist/actions/create-or-update-contact.cjs +1 -0
  68. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  69. package/dist/actions/create-or-update-contact.d.cts +3 -20
  70. package/dist/actions/create-or-update-contact.d.cts.map +1 -1
  71. package/dist/actions/create-or-update-contact.d.mts +3 -20
  72. package/dist/actions/create-or-update-contact.d.mts.map +1 -1
  73. package/dist/actions/create-or-update-contact.mjs +1 -0
  74. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  75. package/dist/actions/create-template.cjs +1 -0
  76. package/dist/actions/create-template.cjs.map +1 -1
  77. package/dist/actions/create-template.d.cts +3 -32
  78. package/dist/actions/create-template.d.cts.map +1 -1
  79. package/dist/actions/create-template.d.mts +3 -32
  80. package/dist/actions/create-template.d.mts.map +1 -1
  81. package/dist/actions/create-template.mjs +1 -0
  82. package/dist/actions/create-template.mjs.map +1 -1
  83. package/dist/actions/create-ticket.cjs +1 -0
  84. package/dist/actions/create-ticket.cjs.map +1 -1
  85. package/dist/actions/create-ticket.d.cts +3 -20
  86. package/dist/actions/create-ticket.d.cts.map +1 -1
  87. package/dist/actions/create-ticket.d.mts +3 -20
  88. package/dist/actions/create-ticket.d.mts.map +1 -1
  89. package/dist/actions/create-ticket.mjs +1 -0
  90. package/dist/actions/create-ticket.mjs.map +1 -1
  91. package/dist/actions/delete-contact.cjs +1 -0
  92. package/dist/actions/delete-contact.cjs.map +1 -1
  93. package/dist/actions/delete-contact.d.cts +3 -15
  94. package/dist/actions/delete-contact.d.cts.map +1 -1
  95. package/dist/actions/delete-contact.d.mts +3 -15
  96. package/dist/actions/delete-contact.d.mts.map +1 -1
  97. package/dist/actions/delete-contact.mjs +1 -0
  98. package/dist/actions/delete-contact.mjs.map +1 -1
  99. package/dist/actions/delete-custom-field.cjs +1 -0
  100. package/dist/actions/delete-custom-field.cjs.map +1 -1
  101. package/dist/actions/delete-custom-field.d.cts +3 -15
  102. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  103. package/dist/actions/delete-custom-field.d.mts +3 -15
  104. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  105. package/dist/actions/delete-custom-field.mjs +1 -0
  106. package/dist/actions/delete-custom-field.mjs.map +1 -1
  107. package/dist/actions/delete-list.cjs +1 -0
  108. package/dist/actions/delete-list.cjs.map +1 -1
  109. package/dist/actions/delete-list.d.cts +3 -15
  110. package/dist/actions/delete-list.d.cts.map +1 -1
  111. package/dist/actions/delete-list.d.mts +3 -15
  112. package/dist/actions/delete-list.d.mts.map +1 -1
  113. package/dist/actions/delete-list.mjs +1 -0
  114. package/dist/actions/delete-list.mjs.map +1 -1
  115. package/dist/actions/delete-media.cjs +1 -0
  116. package/dist/actions/delete-media.cjs.map +1 -1
  117. package/dist/actions/delete-media.d.cts +3 -15
  118. package/dist/actions/delete-media.d.cts.map +1 -1
  119. package/dist/actions/delete-media.d.mts +3 -15
  120. package/dist/actions/delete-media.d.mts.map +1 -1
  121. package/dist/actions/delete-media.mjs +1 -0
  122. package/dist/actions/delete-media.mjs.map +1 -1
  123. package/dist/actions/delete-role.cjs +1 -0
  124. package/dist/actions/delete-role.cjs.map +1 -1
  125. package/dist/actions/delete-role.d.cts +3 -15
  126. package/dist/actions/delete-role.d.cts.map +1 -1
  127. package/dist/actions/delete-role.d.mts +3 -15
  128. package/dist/actions/delete-role.d.mts.map +1 -1
  129. package/dist/actions/delete-role.mjs +1 -0
  130. package/dist/actions/delete-role.mjs.map +1 -1
  131. package/dist/actions/delete-template.cjs +1 -0
  132. package/dist/actions/delete-template.cjs.map +1 -1
  133. package/dist/actions/delete-template.d.cts +3 -16
  134. package/dist/actions/delete-template.d.cts.map +1 -1
  135. package/dist/actions/delete-template.d.mts +3 -16
  136. package/dist/actions/delete-template.d.mts.map +1 -1
  137. package/dist/actions/delete-template.mjs +1 -0
  138. package/dist/actions/delete-template.mjs.map +1 -1
  139. package/dist/actions/delete-ticket.cjs +1 -0
  140. package/dist/actions/delete-ticket.cjs.map +1 -1
  141. package/dist/actions/delete-ticket.d.cts +3 -15
  142. package/dist/actions/delete-ticket.d.cts.map +1 -1
  143. package/dist/actions/delete-ticket.d.mts +3 -15
  144. package/dist/actions/delete-ticket.d.mts.map +1 -1
  145. package/dist/actions/delete-ticket.mjs +1 -0
  146. package/dist/actions/delete-ticket.mjs.map +1 -1
  147. package/dist/actions/generate-role-private-key.cjs +1 -0
  148. package/dist/actions/generate-role-private-key.cjs.map +1 -1
  149. package/dist/actions/generate-role-private-key.d.cts +3 -15
  150. package/dist/actions/generate-role-private-key.d.cts.map +1 -1
  151. package/dist/actions/generate-role-private-key.d.mts +3 -15
  152. package/dist/actions/generate-role-private-key.d.mts.map +1 -1
  153. package/dist/actions/generate-role-private-key.mjs +1 -0
  154. package/dist/actions/generate-role-private-key.mjs.map +1 -1
  155. package/dist/actions/get-account-current-report.cjs +1 -0
  156. package/dist/actions/get-account-current-report.cjs.map +1 -1
  157. package/dist/actions/get-account-current-report.d.cts +3 -15
  158. package/dist/actions/get-account-current-report.d.cts.map +1 -1
  159. package/dist/actions/get-account-current-report.d.mts +3 -15
  160. package/dist/actions/get-account-current-report.d.mts.map +1 -1
  161. package/dist/actions/get-account-current-report.mjs +1 -0
  162. package/dist/actions/get-account-current-report.mjs.map +1 -1
  163. package/dist/actions/list-accounts.cjs +1 -0
  164. package/dist/actions/list-accounts.cjs.map +1 -1
  165. package/dist/actions/list-accounts.d.cts +3 -16
  166. package/dist/actions/list-accounts.d.cts.map +1 -1
  167. package/dist/actions/list-accounts.d.mts +3 -16
  168. package/dist/actions/list-accounts.d.mts.map +1 -1
  169. package/dist/actions/list-accounts.mjs +1 -0
  170. package/dist/actions/list-accounts.mjs.map +1 -1
  171. package/dist/actions/list-agencies.cjs +1 -0
  172. package/dist/actions/list-agencies.cjs.map +1 -1
  173. package/dist/actions/list-agencies.d.cts +3 -13
  174. package/dist/actions/list-agencies.d.cts.map +1 -1
  175. package/dist/actions/list-agencies.d.mts +3 -13
  176. package/dist/actions/list-agencies.d.mts.map +1 -1
  177. package/dist/actions/list-agencies.mjs +1 -0
  178. package/dist/actions/list-agencies.mjs.map +1 -1
  179. package/dist/actions/list-automations.cjs +1 -0
  180. package/dist/actions/list-automations.cjs.map +1 -1
  181. package/dist/actions/list-automations.d.cts +3 -17
  182. package/dist/actions/list-automations.d.cts.map +1 -1
  183. package/dist/actions/list-automations.d.mts +3 -17
  184. package/dist/actions/list-automations.d.mts.map +1 -1
  185. package/dist/actions/list-automations.mjs +1 -0
  186. package/dist/actions/list-automations.mjs.map +1 -1
  187. package/dist/actions/list-campaigns.cjs +1 -0
  188. package/dist/actions/list-campaigns.cjs.map +1 -1
  189. package/dist/actions/list-campaigns.d.cts +3 -18
  190. package/dist/actions/list-campaigns.d.cts.map +1 -1
  191. package/dist/actions/list-campaigns.d.mts +3 -18
  192. package/dist/actions/list-campaigns.d.mts.map +1 -1
  193. package/dist/actions/list-campaigns.mjs +1 -0
  194. package/dist/actions/list-campaigns.mjs.map +1 -1
  195. package/dist/actions/list-contacts.cjs +1 -0
  196. package/dist/actions/list-contacts.cjs.map +1 -1
  197. package/dist/actions/list-contacts.d.cts +3 -24
  198. package/dist/actions/list-contacts.d.cts.map +1 -1
  199. package/dist/actions/list-contacts.d.mts +3 -24
  200. package/dist/actions/list-contacts.d.mts.map +1 -1
  201. package/dist/actions/list-contacts.mjs +1 -0
  202. package/dist/actions/list-contacts.mjs.map +1 -1
  203. package/dist/actions/list-custom-fields.cjs +1 -0
  204. package/dist/actions/list-custom-fields.cjs.map +1 -1
  205. package/dist/actions/list-custom-fields.d.cts +3 -16
  206. package/dist/actions/list-custom-fields.d.cts.map +1 -1
  207. package/dist/actions/list-custom-fields.d.mts +3 -16
  208. package/dist/actions/list-custom-fields.d.mts.map +1 -1
  209. package/dist/actions/list-custom-fields.mjs +1 -0
  210. package/dist/actions/list-custom-fields.mjs.map +1 -1
  211. package/dist/actions/list-lists.cjs +1 -0
  212. package/dist/actions/list-lists.cjs.map +1 -1
  213. package/dist/actions/list-lists.d.cts +3 -17
  214. package/dist/actions/list-lists.d.cts.map +1 -1
  215. package/dist/actions/list-lists.d.mts +3 -17
  216. package/dist/actions/list-lists.d.mts.map +1 -1
  217. package/dist/actions/list-lists.mjs +1 -0
  218. package/dist/actions/list-lists.mjs.map +1 -1
  219. package/dist/actions/list-media.cjs +1 -0
  220. package/dist/actions/list-media.cjs.map +1 -1
  221. package/dist/actions/list-media.d.cts +3 -16
  222. package/dist/actions/list-media.d.cts.map +1 -1
  223. package/dist/actions/list-media.d.mts +3 -16
  224. package/dist/actions/list-media.d.mts.map +1 -1
  225. package/dist/actions/list-media.mjs +1 -0
  226. package/dist/actions/list-media.mjs.map +1 -1
  227. package/dist/actions/list-partners.cjs +1 -0
  228. package/dist/actions/list-partners.cjs.map +1 -1
  229. package/dist/actions/list-partners.d.cts +3 -13
  230. package/dist/actions/list-partners.d.cts.map +1 -1
  231. package/dist/actions/list-partners.d.mts +3 -13
  232. package/dist/actions/list-partners.d.mts.map +1 -1
  233. package/dist/actions/list-partners.mjs +1 -0
  234. package/dist/actions/list-partners.mjs.map +1 -1
  235. package/dist/actions/list-reports.cjs +1 -0
  236. package/dist/actions/list-reports.cjs.map +1 -1
  237. package/dist/actions/list-reports.d.cts +3 -19
  238. package/dist/actions/list-reports.d.cts.map +1 -1
  239. package/dist/actions/list-reports.d.mts +3 -19
  240. package/dist/actions/list-reports.d.mts.map +1 -1
  241. package/dist/actions/list-reports.mjs +1 -0
  242. package/dist/actions/list-reports.mjs.map +1 -1
  243. package/dist/actions/list-roles.cjs +1 -0
  244. package/dist/actions/list-roles.cjs.map +1 -1
  245. package/dist/actions/list-roles.d.cts +3 -13
  246. package/dist/actions/list-roles.d.cts.map +1 -1
  247. package/dist/actions/list-roles.d.mts +3 -13
  248. package/dist/actions/list-roles.d.mts.map +1 -1
  249. package/dist/actions/list-roles.mjs +1 -0
  250. package/dist/actions/list-roles.mjs.map +1 -1
  251. package/dist/actions/list-tags.cjs +1 -0
  252. package/dist/actions/list-tags.cjs.map +1 -1
  253. package/dist/actions/list-tags.d.cts +3 -13
  254. package/dist/actions/list-tags.d.cts.map +1 -1
  255. package/dist/actions/list-tags.d.mts +3 -13
  256. package/dist/actions/list-tags.d.mts.map +1 -1
  257. package/dist/actions/list-tags.mjs +1 -0
  258. package/dist/actions/list-tags.mjs.map +1 -1
  259. package/dist/actions/list-templates.cjs +1 -0
  260. package/dist/actions/list-templates.cjs.map +1 -1
  261. package/dist/actions/list-templates.d.cts +3 -15
  262. package/dist/actions/list-templates.d.cts.map +1 -1
  263. package/dist/actions/list-templates.d.mts +3 -15
  264. package/dist/actions/list-templates.d.mts.map +1 -1
  265. package/dist/actions/list-templates.mjs +1 -0
  266. package/dist/actions/list-templates.mjs.map +1 -1
  267. package/dist/actions/list-tickets.cjs +1 -0
  268. package/dist/actions/list-tickets.cjs.map +1 -1
  269. package/dist/actions/list-tickets.d.cts +3 -18
  270. package/dist/actions/list-tickets.d.cts.map +1 -1
  271. package/dist/actions/list-tickets.d.mts +3 -18
  272. package/dist/actions/list-tickets.d.mts.map +1 -1
  273. package/dist/actions/list-tickets.mjs +1 -0
  274. package/dist/actions/list-tickets.mjs.map +1 -1
  275. package/dist/actions/remove-all-list-contacts.cjs +1 -0
  276. package/dist/actions/remove-all-list-contacts.cjs.map +1 -1
  277. package/dist/actions/remove-all-list-contacts.d.cts +3 -15
  278. package/dist/actions/remove-all-list-contacts.d.cts.map +1 -1
  279. package/dist/actions/remove-all-list-contacts.d.mts +3 -15
  280. package/dist/actions/remove-all-list-contacts.d.mts.map +1 -1
  281. package/dist/actions/remove-all-list-contacts.mjs +1 -0
  282. package/dist/actions/remove-all-list-contacts.mjs.map +1 -1
  283. package/dist/actions/remove-contact-operator.cjs +1 -0
  284. package/dist/actions/remove-contact-operator.cjs.map +1 -1
  285. package/dist/actions/remove-contact-operator.d.cts +3 -16
  286. package/dist/actions/remove-contact-operator.d.cts.map +1 -1
  287. package/dist/actions/remove-contact-operator.d.mts +3 -16
  288. package/dist/actions/remove-contact-operator.d.mts.map +1 -1
  289. package/dist/actions/remove-contact-operator.mjs +1 -0
  290. package/dist/actions/remove-contact-operator.mjs.map +1 -1
  291. package/dist/actions/remove-list-contacts.cjs +1 -0
  292. package/dist/actions/remove-list-contacts.cjs.map +1 -1
  293. package/dist/actions/remove-list-contacts.d.cts +3 -16
  294. package/dist/actions/remove-list-contacts.d.cts.map +1 -1
  295. package/dist/actions/remove-list-contacts.d.mts +3 -16
  296. package/dist/actions/remove-list-contacts.d.mts.map +1 -1
  297. package/dist/actions/remove-list-contacts.mjs +1 -0
  298. package/dist/actions/remove-list-contacts.mjs.map +1 -1
  299. package/dist/actions/resend-invitation.cjs +1 -0
  300. package/dist/actions/resend-invitation.cjs.map +1 -1
  301. package/dist/actions/resend-invitation.d.cts +3 -15
  302. package/dist/actions/resend-invitation.d.cts.map +1 -1
  303. package/dist/actions/resend-invitation.d.mts +3 -15
  304. package/dist/actions/resend-invitation.d.mts.map +1 -1
  305. package/dist/actions/resend-invitation.mjs +1 -0
  306. package/dist/actions/resend-invitation.mjs.map +1 -1
  307. package/dist/actions/retrieve-account.cjs +1 -0
  308. package/dist/actions/retrieve-account.cjs.map +1 -1
  309. package/dist/actions/retrieve-account.d.cts +3 -15
  310. package/dist/actions/retrieve-account.d.cts.map +1 -1
  311. package/dist/actions/retrieve-account.d.mts +3 -15
  312. package/dist/actions/retrieve-account.d.mts.map +1 -1
  313. package/dist/actions/retrieve-account.mjs +1 -0
  314. package/dist/actions/retrieve-account.mjs.map +1 -1
  315. package/dist/actions/retrieve-automation.cjs +1 -0
  316. package/dist/actions/retrieve-automation.cjs.map +1 -1
  317. package/dist/actions/retrieve-automation.d.cts +3 -15
  318. package/dist/actions/retrieve-automation.d.cts.map +1 -1
  319. package/dist/actions/retrieve-automation.d.mts +3 -15
  320. package/dist/actions/retrieve-automation.d.mts.map +1 -1
  321. package/dist/actions/retrieve-automation.mjs +1 -0
  322. package/dist/actions/retrieve-automation.mjs.map +1 -1
  323. package/dist/actions/retrieve-contact.cjs +1 -0
  324. package/dist/actions/retrieve-contact.cjs.map +1 -1
  325. package/dist/actions/retrieve-contact.d.cts +3 -15
  326. package/dist/actions/retrieve-contact.d.cts.map +1 -1
  327. package/dist/actions/retrieve-contact.d.mts +3 -15
  328. package/dist/actions/retrieve-contact.d.mts.map +1 -1
  329. package/dist/actions/retrieve-contact.mjs +1 -0
  330. package/dist/actions/retrieve-contact.mjs.map +1 -1
  331. package/dist/actions/retrieve-custom-field.cjs +1 -0
  332. package/dist/actions/retrieve-custom-field.cjs.map +1 -1
  333. package/dist/actions/retrieve-custom-field.d.cts +3 -15
  334. package/dist/actions/retrieve-custom-field.d.cts.map +1 -1
  335. package/dist/actions/retrieve-custom-field.d.mts +3 -15
  336. package/dist/actions/retrieve-custom-field.d.mts.map +1 -1
  337. package/dist/actions/retrieve-custom-field.mjs +1 -0
  338. package/dist/actions/retrieve-custom-field.mjs.map +1 -1
  339. package/dist/actions/retrieve-list.cjs +1 -0
  340. package/dist/actions/retrieve-list.cjs.map +1 -1
  341. package/dist/actions/retrieve-list.d.cts +3 -15
  342. package/dist/actions/retrieve-list.d.cts.map +1 -1
  343. package/dist/actions/retrieve-list.d.mts +3 -15
  344. package/dist/actions/retrieve-list.d.mts.map +1 -1
  345. package/dist/actions/retrieve-list.mjs +1 -0
  346. package/dist/actions/retrieve-list.mjs.map +1 -1
  347. package/dist/actions/retrieve-media.cjs +1 -0
  348. package/dist/actions/retrieve-media.cjs.map +1 -1
  349. package/dist/actions/retrieve-media.d.cts +3 -15
  350. package/dist/actions/retrieve-media.d.cts.map +1 -1
  351. package/dist/actions/retrieve-media.d.mts +3 -15
  352. package/dist/actions/retrieve-media.d.mts.map +1 -1
  353. package/dist/actions/retrieve-media.mjs +1 -0
  354. package/dist/actions/retrieve-media.mjs.map +1 -1
  355. package/dist/actions/retrieve-role.cjs +1 -0
  356. package/dist/actions/retrieve-role.cjs.map +1 -1
  357. package/dist/actions/retrieve-role.d.cts +3 -15
  358. package/dist/actions/retrieve-role.d.cts.map +1 -1
  359. package/dist/actions/retrieve-role.d.mts +3 -15
  360. package/dist/actions/retrieve-role.d.mts.map +1 -1
  361. package/dist/actions/retrieve-role.mjs +1 -0
  362. package/dist/actions/retrieve-role.mjs.map +1 -1
  363. package/dist/actions/retrieve-tag.cjs +1 -0
  364. package/dist/actions/retrieve-tag.cjs.map +1 -1
  365. package/dist/actions/retrieve-tag.d.cts +3 -15
  366. package/dist/actions/retrieve-tag.d.cts.map +1 -1
  367. package/dist/actions/retrieve-tag.d.mts +3 -15
  368. package/dist/actions/retrieve-tag.d.mts.map +1 -1
  369. package/dist/actions/retrieve-tag.mjs +1 -0
  370. package/dist/actions/retrieve-tag.mjs.map +1 -1
  371. package/dist/actions/retrieve-template.cjs +1 -0
  372. package/dist/actions/retrieve-template.cjs.map +1 -1
  373. package/dist/actions/retrieve-template.d.cts +3 -15
  374. package/dist/actions/retrieve-template.d.cts.map +1 -1
  375. package/dist/actions/retrieve-template.d.mts +3 -15
  376. package/dist/actions/retrieve-template.d.mts.map +1 -1
  377. package/dist/actions/retrieve-template.mjs +1 -0
  378. package/dist/actions/retrieve-template.mjs.map +1 -1
  379. package/dist/actions/revert-template-to-draft.cjs +1 -0
  380. package/dist/actions/revert-template-to-draft.cjs.map +1 -1
  381. package/dist/actions/revert-template-to-draft.d.cts +3 -15
  382. package/dist/actions/revert-template-to-draft.d.cts.map +1 -1
  383. package/dist/actions/revert-template-to-draft.d.mts +3 -15
  384. package/dist/actions/revert-template-to-draft.d.mts.map +1 -1
  385. package/dist/actions/revert-template-to-draft.mjs +1 -0
  386. package/dist/actions/revert-template-to-draft.mjs.map +1 -1
  387. package/dist/actions/sync-contacts-bulk.cjs +1 -0
  388. package/dist/actions/sync-contacts-bulk.cjs.map +1 -1
  389. package/dist/actions/sync-contacts-bulk.d.cts +3 -23
  390. package/dist/actions/sync-contacts-bulk.d.cts.map +1 -1
  391. package/dist/actions/sync-contacts-bulk.d.mts +3 -23
  392. package/dist/actions/sync-contacts-bulk.d.mts.map +1 -1
  393. package/dist/actions/sync-contacts-bulk.mjs +1 -0
  394. package/dist/actions/sync-contacts-bulk.mjs.map +1 -1
  395. package/dist/actions/sync-list-contacts.cjs +1 -0
  396. package/dist/actions/sync-list-contacts.cjs.map +1 -1
  397. package/dist/actions/sync-list-contacts.d.cts +3 -24
  398. package/dist/actions/sync-list-contacts.d.cts.map +1 -1
  399. package/dist/actions/sync-list-contacts.d.mts +3 -24
  400. package/dist/actions/sync-list-contacts.d.mts.map +1 -1
  401. package/dist/actions/sync-list-contacts.mjs +1 -0
  402. package/dist/actions/sync-list-contacts.mjs.map +1 -1
  403. package/dist/actions/update-campaign.cjs +1 -0
  404. package/dist/actions/update-campaign.cjs.map +1 -1
  405. package/dist/actions/update-campaign.d.cts +3 -18
  406. package/dist/actions/update-campaign.d.cts.map +1 -1
  407. package/dist/actions/update-campaign.d.mts +3 -18
  408. package/dist/actions/update-campaign.d.mts.map +1 -1
  409. package/dist/actions/update-campaign.mjs +1 -0
  410. package/dist/actions/update-campaign.mjs.map +1 -1
  411. package/dist/actions/update-contact.cjs +1 -0
  412. package/dist/actions/update-contact.cjs.map +1 -1
  413. package/dist/actions/update-contact.d.cts +3 -21
  414. package/dist/actions/update-contact.d.cts.map +1 -1
  415. package/dist/actions/update-contact.d.mts +3 -21
  416. package/dist/actions/update-contact.d.mts.map +1 -1
  417. package/dist/actions/update-contact.mjs +1 -0
  418. package/dist/actions/update-contact.mjs.map +1 -1
  419. package/dist/actions/update-custom-field.cjs +1 -0
  420. package/dist/actions/update-custom-field.cjs.map +1 -1
  421. package/dist/actions/update-custom-field.d.cts +3 -16
  422. package/dist/actions/update-custom-field.d.cts.map +1 -1
  423. package/dist/actions/update-custom-field.d.mts +3 -16
  424. package/dist/actions/update-custom-field.d.mts.map +1 -1
  425. package/dist/actions/update-custom-field.mjs +1 -0
  426. package/dist/actions/update-custom-field.mjs.map +1 -1
  427. package/dist/actions/update-invitation-role.cjs +1 -0
  428. package/dist/actions/update-invitation-role.cjs.map +1 -1
  429. package/dist/actions/update-invitation-role.d.cts +3 -16
  430. package/dist/actions/update-invitation-role.d.cts.map +1 -1
  431. package/dist/actions/update-invitation-role.d.mts +3 -16
  432. package/dist/actions/update-invitation-role.d.mts.map +1 -1
  433. package/dist/actions/update-invitation-role.mjs +1 -0
  434. package/dist/actions/update-invitation-role.mjs.map +1 -1
  435. package/dist/actions/update-media.cjs +1 -0
  436. package/dist/actions/update-media.cjs.map +1 -1
  437. package/dist/actions/update-media.d.cts +3 -16
  438. package/dist/actions/update-media.d.cts.map +1 -1
  439. package/dist/actions/update-media.d.mts +3 -16
  440. package/dist/actions/update-media.d.mts.map +1 -1
  441. package/dist/actions/update-media.mjs +1 -0
  442. package/dist/actions/update-media.mjs.map +1 -1
  443. package/dist/actions/update-role.cjs +1 -0
  444. package/dist/actions/update-role.cjs.map +1 -1
  445. package/dist/actions/update-role.d.cts +3 -16
  446. package/dist/actions/update-role.d.cts.map +1 -1
  447. package/dist/actions/update-role.d.mts +3 -16
  448. package/dist/actions/update-role.d.mts.map +1 -1
  449. package/dist/actions/update-role.mjs +1 -0
  450. package/dist/actions/update-role.mjs.map +1 -1
  451. package/dist/actions/update-template.cjs +1 -0
  452. package/dist/actions/update-template.cjs.map +1 -1
  453. package/dist/actions/update-template.d.cts +3 -46
  454. package/dist/actions/update-template.d.cts.map +1 -1
  455. package/dist/actions/update-template.d.mts +3 -46
  456. package/dist/actions/update-template.d.mts.map +1 -1
  457. package/dist/actions/update-template.mjs +1 -0
  458. package/dist/actions/update-template.mjs.map +1 -1
  459. package/dist/app.cjs +2 -2
  460. package/dist/app.cjs.map +1 -1
  461. package/dist/app.d.cts +4 -6
  462. package/dist/app.d.cts.map +1 -1
  463. package/dist/app.d.mts +4 -6
  464. package/dist/app.d.mts.map +1 -1
  465. package/dist/app.mjs +0 -1
  466. package/dist/app.mjs.map +1 -1
  467. package/dist/index.d.cts +1 -1
  468. package/dist/index.d.mts +1 -1
  469. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"list-campaigns.d.cts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAqCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-campaigns.d.cts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAqCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-campaigns.d.ts
@@ -41,24 +43,7 @@ declare const SpokiListCampaignsOutput: z.ZodObject<{
41
43
  }, z.core.$loose>>;
42
44
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
45
  }, z.core.$loose>;
44
- declare const spokiListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- page?: number | undefined;
46
- per_page?: number | undefined;
47
- scheduled_datetime_gte?: string | undefined;
48
- scheduled_datetime_lte?: string | undefined;
49
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
50
- connectionId: z.ZodString;
51
- entityId: z.ZodString;
52
- instanceId: z.ZodString;
53
- }, z.core.$strip>, z.ZodObject<{
54
- generic_api_key: z.ZodString;
55
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
56
- connectionId: z.ZodString;
57
- entityId: z.ZodString;
58
- instanceId: z.ZodString;
59
- }, z.core.$strip>, z.ZodObject<{
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
46
+ declare const spokiListCampaigns: AppAction<typeof SpokiListCampaignsInput, typeof SpokiListCampaignsOutput, typeof spoki.credential>;
62
47
  //#endregion
63
48
  export { spokiListCampaigns };
64
49
  //# sourceMappingURL=list-campaigns.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-campaigns.d.mts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAqCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"list-campaigns.d.mts","names":[],"sources":["../../src/actions/list-campaigns.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;cAqCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-campaigns.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-campaigns.mjs","names":[],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCampaignsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n scheduled_datetime_gte: z.string().describe(\"Only include campaigns scheduled on or after this timestamp (ISO 8601).\").optional(),\n scheduled_datetime_lte: z.string().describe(\"Only include campaigns scheduled on or before this timestamp (ISO 8601).\").optional(),\n}).describe(\"Query parameters for listing, searching, and filtering campaigns.\\nUse ISO 8601 strings for date constraints.\");\nconst SpokiListCampaigns_ListResourceSchema = z.object({\n id: z.number().int().describe(\"List ID targeted by the campaign.\").nullable(),\n name: z.string().describe(\"List name.\").nullable(),\n color: z.string().describe(\"List display color, if any.\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list.\").nullable(),\n created_datetime: z.string().describe(\"When this list was created (ISO 8601).\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_AutomationRefSchema = z.object({\n id: z.number().int().describe(\"Automation ID associated with the campaign.\").nullable(),\n name: z.string().describe(\"Automation name.\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_CampaignItemSchema = z.object({\n id: z.number().int().describe(\"Campaign unique ID.\").nullable(),\n name: z.string().describe(\"Campaign name.\").nullable(),\n lists: z.array(SpokiListCampaigns_ListResourceSchema).describe(\"Lists associated with the campaign.\"),\n status: z.string().describe(\"Campaign status: Draft, Scheduled, Processing, or Completed.\").nullable(),\n automation: SpokiListCampaigns_AutomationRefSchema.nullable(),\n messages_read: z.number().int().nullable(),\n messages_sent: z.number().int().nullable(),\n contacts_count: z.number().int().describe(\"Total number of contacts.\").nullable(),\n other_contacts: z.array(z.number().int()).describe(\"Additional contact IDs if specified.\"),\n messages_failed: z.number().int().nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601).\").nullable(),\n automation_failed: z.number().int().nullable(),\n messages_received: z.number().int().nullable(),\n automation_started: z.number().int().nullable(),\n scheduled_datetime: z.string().describe(\"Datetime when campaign is scheduled (ISO 8601).\").nullable(),\n automation_completed: z.number().int().nullable(),\n automation_valid_failed: z.number().int().nullable(),\n automation_interacted_with: z.number().int().nullable(),\n}).passthrough().describe(\"A detailed campaign record returned by the list endpoint.\");\nexport const SpokiListCampaignsOutput = z.object({\n next: z.string().describe(\"URL to next page of results, if any.\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matched campaigns.\").nullable(),\n results: z.array(SpokiListCampaigns_CampaignItemSchema).describe(\"List of campaign records.\"),\n previous: z.string().describe(\"URL to previous page of results, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListCampaigns = action(\"SPOKI_LIST_CAMPAIGNS\", {\n slug: \"spoki-list-campaigns\",\n name: \"List campaigns\",\n description: \"Tool to list, search, and filter campaigns. Use when you need to retrieve campaigns optionally filtered by scheduled datetime.\",\n input: SpokiListCampaignsInput,\n output: SpokiListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAChI,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAA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AAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAQrF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2BAA2B;EAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-campaigns.mjs","names":[],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListCampaignsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n scheduled_datetime_gte: z.string().describe(\"Only include campaigns scheduled on or after this timestamp (ISO 8601).\").optional(),\n scheduled_datetime_lte: z.string().describe(\"Only include campaigns scheduled on or before this timestamp (ISO 8601).\").optional(),\n}).describe(\"Query parameters for listing, searching, and filtering campaigns.\\nUse ISO 8601 strings for date constraints.\");\nconst SpokiListCampaigns_ListResourceSchema = z.object({\n id: z.number().int().describe(\"List ID targeted by the campaign.\").nullable(),\n name: z.string().describe(\"List name.\").nullable(),\n color: z.string().describe(\"List display color, if any.\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list.\").nullable(),\n created_datetime: z.string().describe(\"When this list was created (ISO 8601).\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_AutomationRefSchema = z.object({\n id: z.number().int().describe(\"Automation ID associated with the campaign.\").nullable(),\n name: z.string().describe(\"Automation name.\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_CampaignItemSchema = z.object({\n id: z.number().int().describe(\"Campaign unique ID.\").nullable(),\n name: z.string().describe(\"Campaign name.\").nullable(),\n lists: z.array(SpokiListCampaigns_ListResourceSchema).describe(\"Lists associated with the campaign.\"),\n status: z.string().describe(\"Campaign status: Draft, Scheduled, Processing, or Completed.\").nullable(),\n automation: SpokiListCampaigns_AutomationRefSchema.nullable(),\n messages_read: z.number().int().nullable(),\n messages_sent: z.number().int().nullable(),\n contacts_count: z.number().int().describe(\"Total number of contacts.\").nullable(),\n other_contacts: z.array(z.number().int()).describe(\"Additional contact IDs if specified.\"),\n messages_failed: z.number().int().nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601).\").nullable(),\n automation_failed: z.number().int().nullable(),\n messages_received: z.number().int().nullable(),\n automation_started: z.number().int().nullable(),\n scheduled_datetime: z.string().describe(\"Datetime when campaign is scheduled (ISO 8601).\").nullable(),\n automation_completed: z.number().int().nullable(),\n automation_valid_failed: z.number().int().nullable(),\n automation_interacted_with: z.number().int().nullable(),\n}).passthrough().describe(\"A detailed campaign record returned by the list endpoint.\");\nexport const SpokiListCampaignsOutput = z.object({\n next: z.string().describe(\"URL to next page of results, if any.\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matched campaigns.\").nullable(),\n results: z.array(SpokiListCampaigns_CampaignItemSchema).describe(\"List of campaign records.\"),\n previous: z.string().describe(\"URL to previous page of results, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListCampaigns: AppAction<\n typeof SpokiListCampaignsInput,\n typeof SpokiListCampaignsOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_CAMPAIGNS\", {\n slug: \"spoki-list-campaigns\",\n name: \"List campaigns\",\n description: \"Tool to list, search, and filter campaigns. Use when you need to retrieve campaigns optionally filtered by scheduled datetime.\",\n input: SpokiListCampaignsInput,\n output: SpokiListCampaignsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAChI,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD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C,SAAS,2DAA2D;AAQrF,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2BAA2B;EAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-contacts.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n}).passthrough();\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").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 contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n}).passthrough();\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListContacts = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,8BAA8BA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AAC/F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,yBAAyB;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n}).passthrough();\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").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 contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n}).passthrough();\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListContacts: AppAction<\n typeof SpokiListContactsInput,\n typeof SpokiListContactsOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,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AAS;CACzF,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,yBAAyB;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-contacts.d.ts
@@ -49,30 +51,7 @@ declare const SpokiListContactsOutput: z.ZodObject<{
49
51
  }, z.core.$loose>>;
50
52
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
53
  }, z.core.$loose>;
52
- declare const spokiListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
53
- tag?: number | undefined;
54
- page?: number | undefined;
55
- email?: string | undefined;
56
- phone?: string | undefined;
57
- search?: string | undefined;
58
- language?: string | undefined;
59
- per_page?: number | undefined;
60
- last_name?: string | undefined;
61
- first_name?: string | undefined;
62
- is_blocked?: boolean | undefined;
63
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- generic_api_key: z.ZodString;
69
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
70
- connectionId: z.ZodString;
71
- entityId: z.ZodString;
72
- instanceId: z.ZodString;
73
- }, z.core.$strip>, z.ZodObject<{
74
- generic_api_key: z.ZodString;
75
- }, z.core.$strip>>]>;
54
+ declare const spokiListContacts: AppAction<typeof SpokiListContactsInput, typeof SpokiListContactsOutput, typeof spoki.credential>;
76
55
  //#endregion
77
56
  export { spokiListContacts };
78
57
  //# sourceMappingURL=list-contacts.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA8CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA8CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-contacts.d.ts
@@ -49,30 +51,7 @@ declare const SpokiListContactsOutput: z.ZodObject<{
49
51
  }, z.core.$loose>>;
50
52
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
53
  }, z.core.$loose>;
52
- declare const spokiListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
53
- tag?: number | undefined;
54
- page?: number | undefined;
55
- email?: string | undefined;
56
- phone?: string | undefined;
57
- search?: string | undefined;
58
- language?: string | undefined;
59
- per_page?: number | undefined;
60
- last_name?: string | undefined;
61
- first_name?: string | undefined;
62
- is_blocked?: boolean | undefined;
63
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- generic_api_key: z.ZodString;
69
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
70
- connectionId: z.ZodString;
71
- entityId: z.ZodString;
72
- instanceId: z.ZodString;
73
- }, z.core.$strip>, z.ZodObject<{
74
- generic_api_key: z.ZodString;
75
- }, z.core.$strip>>]>;
54
+ declare const spokiListContacts: AppAction<typeof SpokiListContactsInput, typeof SpokiListContactsOutput, typeof spoki.credential>;
76
55
  //#endregion
77
56
  export { spokiListContacts };
78
57
  //# sourceMappingURL=list-contacts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-contacts.d.mts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA8CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"list-contacts.d.mts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA8CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-contacts.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n}).passthrough();\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").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 contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n}).passthrough();\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListContacts = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE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CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkB,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mDAAmD;CAC5H,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,yBAAyB;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n}).passthrough();\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").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 contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n}).passthrough();\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListContacts: AppAction<\n typeof SpokiListContactsInput,\n typeof SpokiListContactsOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAA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,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,yBAAyB;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-custom-fields.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough();\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).passthrough().describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,eAAeA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough();\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).passthrough().describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields: AppAction<\n typeof SpokiListCustomFieldsInput,\n typeof SpokiListCustomFieldsOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,eAAeA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-custom-fields.d.ts
@@ -15,22 +17,7 @@ declare const SpokiListCustomFieldsOutput: z.ZodObject<{
15
17
  field_type: z.ZodNullable<z.ZodNumber>;
16
18
  }, z.core.$loose>>;
17
19
  }, z.core.$loose>;
18
- declare const spokiListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- code?: string | undefined;
20
- label?: string | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
20
+ declare const spokiListCustomFields: AppAction<typeof SpokiListCustomFieldsInput, typeof SpokiListCustomFieldsOutput, typeof spoki.credential>;
34
21
  //#endregion
35
22
  export { spokiListCustomFields };
36
23
  //# sourceMappingURL=list-custom-fields.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-custom-fields.d.ts
@@ -15,22 +17,7 @@ declare const SpokiListCustomFieldsOutput: z.ZodObject<{
15
17
  field_type: z.ZodNullable<z.ZodNumber>;
16
18
  }, z.core.$loose>>;
17
19
  }, z.core.$loose>;
18
- declare const spokiListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- code?: string | undefined;
20
- label?: string | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
20
+ declare const spokiListCustomFields: AppAction<typeof SpokiListCustomFieldsInput, typeof SpokiListCustomFieldsOutput, typeof spoki.credential>;
34
21
  //#endregion
35
22
  export { spokiListCustomFields };
36
23
  //# sourceMappingURL=list-custom-fields.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-custom-fields.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-custom-fields.mjs","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough();\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).passthrough().describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,eAAe,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-custom-fields.mjs","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough();\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).passthrough().describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields: AppAction<\n typeof SpokiListCustomFieldsInput,\n typeof SpokiListCustomFieldsOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbyC,EAAE,OAAO,EAClD,eAAe,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-lists.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-lists.cjs","names":["z","action"],"sources":["../../src/actions/list-lists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListListsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Search query to filter lists by name\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contact lists.\");\nconst SpokiListLists_ListItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough().describe(\"Represents a contact list resource.\");\nexport const SpokiListListsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of lists matching the filters\").nullable(),\n results: z.array(SpokiListLists_ListItemSchema).describe(\"List of contact list objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing contact lists.\");\n\nexport const spokiListLists = action(\"SPOKI_LIST_LISTS\", {\n slug: \"spoki-list-lists\",\n name: \"List Lists\",\n description: \"Tool to list, search, and filter contact lists. Use when you need to retrieve all lists or find specific lists by name. Rate limit: 5 requests per minute.\",\n input: SpokiListListsInput,\n output: SpokiListListsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,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,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,8BAA8B;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-lists.cjs","names":["z","action"],"sources":["../../src/actions/list-lists.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListListsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Search query to filter lists by name\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contact lists.\");\nconst SpokiListLists_ListItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough().describe(\"Represents a contact list resource.\");\nexport const SpokiListListsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of lists matching the filters\").nullable(),\n results: z.array(SpokiListLists_ListItemSchema).describe(\"List of contact list objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing contact lists.\");\n\nexport const spokiListLists: AppAction<\n typeof SpokiListListsInput,\n typeof SpokiListListsOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_LISTS\", {\n slug: \"spoki-list-lists\",\n name: \"List Lists\",\n description: \"Tool to list, search, and filter contact lists. Use when you need to retrieve all lists or find specific lists by name. Rate limit: 5 requests per minute.\",\n input: SpokiListListsInput,\n output: SpokiListListsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,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,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,8BAA8B;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-lists.d.ts
@@ -18,23 +20,7 @@ declare const SpokiListListsOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  }, z.core.$loose>;
21
- declare const spokiListLists: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- page?: number | undefined;
23
- search?: string | undefined;
24
- per_page?: number | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
23
+ declare const spokiListLists: AppAction<typeof SpokiListListsInput, typeof SpokiListListsOutput, typeof spoki.credential>;
38
24
  //#endregion
39
25
  export { spokiListLists };
40
26
  //# sourceMappingURL=list-lists.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-lists.d.cts","names":[],"sources":["../../src/actions/list-lists.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"list-lists.d.cts","names":[],"sources":["../../src/actions/list-lists.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-lists.d.ts
@@ -18,23 +20,7 @@ declare const SpokiListListsOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  }, z.core.$loose>;
21
- declare const spokiListLists: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- page?: number | undefined;
23
- search?: string | undefined;
24
- per_page?: number | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>;
23
+ declare const spokiListLists: AppAction<typeof SpokiListListsInput, typeof SpokiListListsOutput, typeof spoki.credential>;
38
24
  //#endregion
39
25
  export { spokiListLists };
40
26
  //# sourceMappingURL=list-lists.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-lists.d.mts","names":[],"sources":["../../src/actions/list-lists.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"list-lists.d.mts","names":[],"sources":["../../src/actions/list-lists.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-lists.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-lists.mjs","names":[],"sources":["../../src/actions/list-lists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListListsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Search query to filter lists by name\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contact lists.\");\nconst SpokiListLists_ListItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough().describe(\"Represents a contact list resource.\");\nexport const SpokiListListsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of lists matching the filters\").nullable(),\n results: z.array(SpokiListLists_ListItemSchema).describe(\"List of contact list objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing contact lists.\");\n\nexport const spokiListLists = action(\"SPOKI_LIST_LISTS\", {\n slug: \"spoki-list-lists\",\n name: \"List Lists\",\n description: \"Tool to list, search, and filter contact lists. Use when you need to retrieve all lists or find specific lists by name. Rate limit: 5 requests per minute.\",\n input: SpokiListListsInput,\n output: SpokiListListsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAQ/D,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZkC,EAAE,OAAO;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,8BAA8B;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-lists.mjs","names":[],"sources":["../../src/actions/list-lists.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListListsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Search query to filter lists by name\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contact lists.\");\nconst SpokiListLists_ListItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough().describe(\"Represents a contact list resource.\");\nexport const SpokiListListsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of lists matching the filters\").nullable(),\n results: z.array(SpokiListLists_ListItemSchema).describe(\"List of contact list objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing contact lists.\");\n\nexport const spokiListLists: AppAction<\n typeof SpokiListListsInput,\n typeof SpokiListListsOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_LISTS\", {\n slug: \"spoki-list-lists\",\n name: \"List Lists\",\n description: \"Tool to list, search, and filter contact lists. Use when you need to retrieve all lists or find specific lists by name. Rate limit: 5 requests per minute.\",\n input: SpokiListListsInput,\n output: SpokiListListsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAQ/D,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBkC,EAAE,OAAO;EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,8BAA8B;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-media.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-media.cjs","names":["z","action"],"sources":["../../src/actions/list-media.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListMediaInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request model for listing media files.\");\nconst SpokiListMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\").nullable(),\n media: z.string().describe(\"Media file URL or reference\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\").nullable(),\n is_deleted: z.boolean().describe(\"Indicates whether the media file has been deleted\").nullable(),\n external_id: z.string().describe(\"External identifier for the media file, if any\").nullable().optional(),\n format_type: z.string().describe(\"Format type of the media file, e.g. image, video, audio\").nullable(),\n content_type: z.string().describe(\"MIME type of the media file, e.g. image/jpeg, video/mp4\").nullable(),\n external_url: z.string().describe(\"External URL where the media file is accessible\").nullable(),\n}).passthrough().describe(\"Represents a media file resource.\");\nexport const SpokiListMediaOutput = z.object({\n next: z.string().describe(\"URL for next page of results, if any\").nullable().optional(),\n count: z.number().int().describe(\"Total number of media files\").nullable(),\n results: z.array(SpokiListMedia_MediaItemSchema).describe(\"List of media file objects\"),\n previous: z.string().describe(\"URL for previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing media files.\");\n\nexport const spokiListMedia = action(\"SPOKI_LIST_MEDIA\", {\n slug: \"spoki-list-media\",\n name: \"List media\",\n description: \"Tool to list media files. Returns all media files with their details including title, content type, format, and URLs. Use when you need to retrieve or browse available media files in the account.\",\n input: SpokiListMediaInput,\n output: SpokiListMediaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,4BAA4B;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-media.cjs","names":["z","action"],"sources":["../../src/actions/list-media.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { spoki } from \"../app\";\n\nexport const SpokiListMediaInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request model for listing media files.\");\nconst SpokiListMedia_MediaItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the media file\").nullable(),\n media: z.string().describe(\"Media file URL or reference\").nullable().optional(),\n title: z.string().describe(\"Title of the media file\").nullable(),\n is_deleted: z.boolean().describe(\"Indicates whether the media file has been deleted\").nullable(),\n external_id: z.string().describe(\"External identifier for the media file, if any\").nullable().optional(),\n format_type: z.string().describe(\"Format type of the media file, e.g. image, video, audio\").nullable(),\n content_type: z.string().describe(\"MIME type of the media file, e.g. image/jpeg, video/mp4\").nullable(),\n external_url: z.string().describe(\"External URL where the media file is accessible\").nullable(),\n}).passthrough().describe(\"Represents a media file resource.\");\nexport const SpokiListMediaOutput = z.object({\n next: z.string().describe(\"URL for next page of results, if any\").nullable().optional(),\n count: z.number().int().describe(\"Total number of media files\").nullable(),\n results: z.array(SpokiListMedia_MediaItemSchema).describe(\"List of media file objects\"),\n previous: z.string().describe(\"URL for previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing media files.\");\n\nexport const spokiListMedia: AppAction<\n typeof SpokiListMediaInput,\n typeof SpokiListMediaOutput,\n typeof spoki.credential\n> = action(\"SPOKI_LIST_MEDIA\", {\n slug: \"spoki-list-media\",\n name: \"List media\",\n description: \"Tool to list media files. Returns all media files with their details including title, content type, format, and URLs. Use when you need to retrieve or browse available media files in the account.\",\n input: SpokiListMediaInput,\n output: SpokiListMediaOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC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,SAAS,yCAAyC;AAEnE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-media.d.ts
@@ -20,22 +22,7 @@ declare const SpokiListMediaOutput: z.ZodObject<{
20
22
  }, z.core.$loose>>;
21
23
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const spokiListMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- page?: number | undefined;
25
- per_page?: number | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
25
+ declare const spokiListMedia: AppAction<typeof SpokiListMediaInput, typeof SpokiListMediaOutput, typeof spoki.credential>;
39
26
  //#endregion
40
27
  export { spokiListMedia };
41
28
  //# sourceMappingURL=list-media.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-media.d.cts","names":[],"sources":["../../src/actions/list-media.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;cAcnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAOpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"list-media.d.cts","names":[],"sources":["../../src/actions/list-media.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;cAcnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAOpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { spoki } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-media.d.ts
@@ -20,22 +22,7 @@ declare const SpokiListMediaOutput: z.ZodObject<{
20
22
  }, z.core.$loose>>;
21
23
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const spokiListMedia: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- page?: number | undefined;
25
- per_page?: number | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spoki", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
25
+ declare const spokiListMedia: AppAction<typeof SpokiListMediaInput, typeof SpokiListMediaOutput, typeof spoki.credential>;
39
26
  //#endregion
40
27
  export { spokiListMedia };
41
28
  //# sourceMappingURL=list-media.d.mts.map