@keystrokehq/persona 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (586) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-tag-to-account.cjs +52 -0
  7. package/dist/actions/add-tag-to-account.cjs.map +1 -0
  8. package/dist/actions/add-tag-to-account.d.cts +9 -0
  9. package/dist/actions/add-tag-to-account.d.cts.map +1 -0
  10. package/dist/actions/add-tag-to-account.d.mts +9 -0
  11. package/dist/actions/add-tag-to-account.d.mts.map +1 -0
  12. package/dist/actions/add-tag-to-account.mjs +51 -0
  13. package/dist/actions/add-tag-to-account.mjs.map +1 -0
  14. package/dist/actions/archive-a-browser-fingerprint-list-item.cjs +39 -0
  15. package/dist/actions/archive-a-browser-fingerprint-list-item.cjs.map +1 -0
  16. package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts +9 -0
  17. package/dist/actions/archive-a-browser-fingerprint-list-item.d.cts.map +1 -0
  18. package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts +9 -0
  19. package/dist/actions/archive-a-browser-fingerprint-list-item.d.mts.map +1 -0
  20. package/dist/actions/archive-a-browser-fingerprint-list-item.mjs +38 -0
  21. package/dist/actions/archive-a-browser-fingerprint-list-item.mjs.map +1 -0
  22. package/dist/actions/archive-a-country-list-item.cjs +53 -0
  23. package/dist/actions/archive-a-country-list-item.cjs.map +1 -0
  24. package/dist/actions/archive-a-country-list-item.d.cts +9 -0
  25. package/dist/actions/archive-a-country-list-item.d.cts.map +1 -0
  26. package/dist/actions/archive-a-country-list-item.d.mts +9 -0
  27. package/dist/actions/archive-a-country-list-item.d.mts.map +1 -0
  28. package/dist/actions/archive-a-country-list-item.mjs +52 -0
  29. package/dist/actions/archive-a-country-list-item.mjs.map +1 -0
  30. package/dist/actions/archive-a-geolocation-list-item.cjs +48 -0
  31. package/dist/actions/archive-a-geolocation-list-item.cjs.map +1 -0
  32. package/dist/actions/archive-a-geolocation-list-item.d.cts +9 -0
  33. package/dist/actions/archive-a-geolocation-list-item.d.cts.map +1 -0
  34. package/dist/actions/archive-a-geolocation-list-item.d.mts +9 -0
  35. package/dist/actions/archive-a-geolocation-list-item.d.mts.map +1 -0
  36. package/dist/actions/archive-a-geolocation-list-item.mjs +47 -0
  37. package/dist/actions/archive-a-geolocation-list-item.mjs.map +1 -0
  38. package/dist/actions/archive-a-government-id-number-list-item.cjs +38 -0
  39. package/dist/actions/archive-a-government-id-number-list-item.cjs.map +1 -0
  40. package/dist/actions/archive-a-government-id-number-list-item.d.cts +9 -0
  41. package/dist/actions/archive-a-government-id-number-list-item.d.cts.map +1 -0
  42. package/dist/actions/archive-a-government-id-number-list-item.d.mts +9 -0
  43. package/dist/actions/archive-a-government-id-number-list-item.d.mts.map +1 -0
  44. package/dist/actions/archive-a-government-id-number-list-item.mjs +37 -0
  45. package/dist/actions/archive-a-government-id-number-list-item.mjs.map +1 -0
  46. package/dist/actions/archive-a-name-list-item.cjs +38 -0
  47. package/dist/actions/archive-a-name-list-item.cjs.map +1 -0
  48. package/dist/actions/archive-a-name-list-item.d.cts +9 -0
  49. package/dist/actions/archive-a-name-list-item.d.cts.map +1 -0
  50. package/dist/actions/archive-a-name-list-item.d.mts +9 -0
  51. package/dist/actions/archive-a-name-list-item.d.mts.map +1 -0
  52. package/dist/actions/archive-a-name-list-item.mjs +37 -0
  53. package/dist/actions/archive-a-name-list-item.mjs.map +1 -0
  54. package/dist/actions/archive-a-webhook.cjs +57 -0
  55. package/dist/actions/archive-a-webhook.cjs.map +1 -0
  56. package/dist/actions/archive-a-webhook.d.cts +9 -0
  57. package/dist/actions/archive-a-webhook.d.cts.map +1 -0
  58. package/dist/actions/archive-a-webhook.d.mts +9 -0
  59. package/dist/actions/archive-a-webhook.d.mts.map +1 -0
  60. package/dist/actions/archive-a-webhook.mjs +56 -0
  61. package/dist/actions/archive-a-webhook.mjs.map +1 -0
  62. package/dist/actions/archive-email-address-list-item.cjs +54 -0
  63. package/dist/actions/archive-email-address-list-item.cjs.map +1 -0
  64. package/dist/actions/archive-email-address-list-item.d.cts +9 -0
  65. package/dist/actions/archive-email-address-list-item.d.cts.map +1 -0
  66. package/dist/actions/archive-email-address-list-item.d.mts +9 -0
  67. package/dist/actions/archive-email-address-list-item.d.mts.map +1 -0
  68. package/dist/actions/archive-email-address-list-item.mjs +53 -0
  69. package/dist/actions/archive-email-address-list-item.mjs.map +1 -0
  70. package/dist/actions/archive-ip-address-list-item.cjs +41 -0
  71. package/dist/actions/archive-ip-address-list-item.cjs.map +1 -0
  72. package/dist/actions/archive-ip-address-list-item.d.cts +9 -0
  73. package/dist/actions/archive-ip-address-list-item.d.cts.map +1 -0
  74. package/dist/actions/archive-ip-address-list-item.d.mts +9 -0
  75. package/dist/actions/archive-ip-address-list-item.d.mts.map +1 -0
  76. package/dist/actions/archive-ip-address-list-item.mjs +40 -0
  77. package/dist/actions/archive-ip-address-list-item.mjs.map +1 -0
  78. package/dist/actions/archive-phone-number-list-item.cjs +39 -0
  79. package/dist/actions/archive-phone-number-list-item.cjs.map +1 -0
  80. package/dist/actions/archive-phone-number-list-item.d.cts +9 -0
  81. package/dist/actions/archive-phone-number-list-item.d.cts.map +1 -0
  82. package/dist/actions/archive-phone-number-list-item.d.mts +9 -0
  83. package/dist/actions/archive-phone-number-list-item.d.mts.map +1 -0
  84. package/dist/actions/archive-phone-number-list-item.mjs +38 -0
  85. package/dist/actions/archive-phone-number-list-item.mjs.map +1 -0
  86. package/dist/actions/archive-string-list-item.cjs +53 -0
  87. package/dist/actions/archive-string-list-item.cjs.map +1 -0
  88. package/dist/actions/archive-string-list-item.d.cts +9 -0
  89. package/dist/actions/archive-string-list-item.d.cts.map +1 -0
  90. package/dist/actions/archive-string-list-item.d.mts +9 -0
  91. package/dist/actions/archive-string-list-item.d.mts.map +1 -0
  92. package/dist/actions/archive-string-list-item.mjs +52 -0
  93. package/dist/actions/archive-string-list-item.mjs.map +1 -0
  94. package/dist/actions/clone-webhook.cjs +53 -0
  95. package/dist/actions/clone-webhook.cjs.map +1 -0
  96. package/dist/actions/clone-webhook.d.cts +9 -0
  97. package/dist/actions/clone-webhook.d.cts.map +1 -0
  98. package/dist/actions/clone-webhook.d.mts +9 -0
  99. package/dist/actions/clone-webhook.d.mts.map +1 -0
  100. package/dist/actions/clone-webhook.mjs +52 -0
  101. package/dist/actions/clone-webhook.mjs.map +1 -0
  102. package/dist/actions/consolidate-into-account.cjs +35 -0
  103. package/dist/actions/consolidate-into-account.cjs.map +1 -0
  104. package/dist/actions/consolidate-into-account.d.cts +9 -0
  105. package/dist/actions/consolidate-into-account.d.cts.map +1 -0
  106. package/dist/actions/consolidate-into-account.d.mts +9 -0
  107. package/dist/actions/consolidate-into-account.d.mts.map +1 -0
  108. package/dist/actions/consolidate-into-account.mjs +34 -0
  109. package/dist/actions/consolidate-into-account.mjs.map +1 -0
  110. package/dist/actions/create-an-account.cjs +100 -0
  111. package/dist/actions/create-an-account.cjs.map +1 -0
  112. package/dist/actions/create-an-account.d.cts +9 -0
  113. package/dist/actions/create-an-account.d.cts.map +1 -0
  114. package/dist/actions/create-an-account.d.mts +9 -0
  115. package/dist/actions/create-an-account.d.mts.map +1 -0
  116. package/dist/actions/create-an-account.mjs +99 -0
  117. package/dist/actions/create-an-account.mjs.map +1 -0
  118. package/dist/actions/create-an-ip-address-list-item.cjs +47 -0
  119. package/dist/actions/create-an-ip-address-list-item.cjs.map +1 -0
  120. package/dist/actions/create-an-ip-address-list-item.d.cts +9 -0
  121. package/dist/actions/create-an-ip-address-list-item.d.cts.map +1 -0
  122. package/dist/actions/create-an-ip-address-list-item.d.mts +9 -0
  123. package/dist/actions/create-an-ip-address-list-item.d.mts.map +1 -0
  124. package/dist/actions/create-an-ip-address-list-item.mjs +46 -0
  125. package/dist/actions/create-an-ip-address-list-item.mjs.map +1 -0
  126. package/dist/actions/create-country-list-item.cjs +60 -0
  127. package/dist/actions/create-country-list-item.cjs.map +1 -0
  128. package/dist/actions/create-country-list-item.d.cts +9 -0
  129. package/dist/actions/create-country-list-item.d.cts.map +1 -0
  130. package/dist/actions/create-country-list-item.d.mts +9 -0
  131. package/dist/actions/create-country-list-item.d.mts.map +1 -0
  132. package/dist/actions/create-country-list-item.mjs +59 -0
  133. package/dist/actions/create-country-list-item.mjs.map +1 -0
  134. package/dist/actions/create-document-generic.cjs +75 -0
  135. package/dist/actions/create-document-generic.cjs.map +1 -0
  136. package/dist/actions/create-document-generic.d.cts +9 -0
  137. package/dist/actions/create-document-generic.d.cts.map +1 -0
  138. package/dist/actions/create-document-generic.d.mts +9 -0
  139. package/dist/actions/create-document-generic.d.mts.map +1 -0
  140. package/dist/actions/create-document-generic.mjs +74 -0
  141. package/dist/actions/create-document-generic.mjs.map +1 -0
  142. package/dist/actions/create-email-address-list-item.cjs +44 -0
  143. package/dist/actions/create-email-address-list-item.cjs.map +1 -0
  144. package/dist/actions/create-email-address-list-item.d.cts +9 -0
  145. package/dist/actions/create-email-address-list-item.d.cts.map +1 -0
  146. package/dist/actions/create-email-address-list-item.d.mts +9 -0
  147. package/dist/actions/create-email-address-list-item.d.mts.map +1 -0
  148. package/dist/actions/create-email-address-list-item.mjs +43 -0
  149. package/dist/actions/create-email-address-list-item.mjs.map +1 -0
  150. package/dist/actions/create-government-id-number-list-item.cjs +42 -0
  151. package/dist/actions/create-government-id-number-list-item.cjs.map +1 -0
  152. package/dist/actions/create-government-id-number-list-item.d.cts +9 -0
  153. package/dist/actions/create-government-id-number-list-item.d.cts.map +1 -0
  154. package/dist/actions/create-government-id-number-list-item.d.mts +9 -0
  155. package/dist/actions/create-government-id-number-list-item.d.mts.map +1 -0
  156. package/dist/actions/create-government-id-number-list-item.mjs +41 -0
  157. package/dist/actions/create-government-id-number-list-item.mjs.map +1 -0
  158. package/dist/actions/create-name-list-item.cjs +47 -0
  159. package/dist/actions/create-name-list-item.cjs.map +1 -0
  160. package/dist/actions/create-name-list-item.d.cts +9 -0
  161. package/dist/actions/create-name-list-item.d.cts.map +1 -0
  162. package/dist/actions/create-name-list-item.d.mts +9 -0
  163. package/dist/actions/create-name-list-item.d.mts.map +1 -0
  164. package/dist/actions/create-name-list-item.mjs +46 -0
  165. package/dist/actions/create-name-list-item.mjs.map +1 -0
  166. package/dist/actions/create-phone-number-list-item.cjs +45 -0
  167. package/dist/actions/create-phone-number-list-item.cjs.map +1 -0
  168. package/dist/actions/create-phone-number-list-item.d.cts +9 -0
  169. package/dist/actions/create-phone-number-list-item.d.cts.map +1 -0
  170. package/dist/actions/create-phone-number-list-item.d.mts +9 -0
  171. package/dist/actions/create-phone-number-list-item.d.mts.map +1 -0
  172. package/dist/actions/create-phone-number-list-item.mjs +44 -0
  173. package/dist/actions/create-phone-number-list-item.mjs.map +1 -0
  174. package/dist/actions/create-string-list-item.cjs +44 -0
  175. package/dist/actions/create-string-list-item.cjs.map +1 -0
  176. package/dist/actions/create-string-list-item.d.cts +9 -0
  177. package/dist/actions/create-string-list-item.d.cts.map +1 -0
  178. package/dist/actions/create-string-list-item.d.mts +9 -0
  179. package/dist/actions/create-string-list-item.d.mts.map +1 -0
  180. package/dist/actions/create-string-list-item.mjs +43 -0
  181. package/dist/actions/create-string-list-item.mjs.map +1 -0
  182. package/dist/actions/create-webhook.cjs +72 -0
  183. package/dist/actions/create-webhook.cjs.map +1 -0
  184. package/dist/actions/create-webhook.d.cts +9 -0
  185. package/dist/actions/create-webhook.d.cts.map +1 -0
  186. package/dist/actions/create-webhook.d.mts +9 -0
  187. package/dist/actions/create-webhook.d.mts.map +1 -0
  188. package/dist/actions/create-webhook.mjs +71 -0
  189. package/dist/actions/create-webhook.mjs.map +1 -0
  190. package/dist/actions/disable-webhook.cjs +57 -0
  191. package/dist/actions/disable-webhook.cjs.map +1 -0
  192. package/dist/actions/disable-webhook.d.cts +9 -0
  193. package/dist/actions/disable-webhook.d.cts.map +1 -0
  194. package/dist/actions/disable-webhook.d.mts +9 -0
  195. package/dist/actions/disable-webhook.d.mts.map +1 -0
  196. package/dist/actions/disable-webhook.mjs +56 -0
  197. package/dist/actions/disable-webhook.mjs.map +1 -0
  198. package/dist/actions/enable-webhook.cjs +56 -0
  199. package/dist/actions/enable-webhook.cjs.map +1 -0
  200. package/dist/actions/enable-webhook.d.cts +9 -0
  201. package/dist/actions/enable-webhook.d.cts.map +1 -0
  202. package/dist/actions/enable-webhook.d.mts +9 -0
  203. package/dist/actions/enable-webhook.d.mts.map +1 -0
  204. package/dist/actions/enable-webhook.mjs +55 -0
  205. package/dist/actions/enable-webhook.mjs.map +1 -0
  206. package/dist/actions/expire-inquiry-sessions.cjs +58 -0
  207. package/dist/actions/expire-inquiry-sessions.cjs.map +1 -0
  208. package/dist/actions/expire-inquiry-sessions.d.cts +9 -0
  209. package/dist/actions/expire-inquiry-sessions.d.cts.map +1 -0
  210. package/dist/actions/expire-inquiry-sessions.d.mts +9 -0
  211. package/dist/actions/expire-inquiry-sessions.d.mts.map +1 -0
  212. package/dist/actions/expire-inquiry-sessions.mjs +57 -0
  213. package/dist/actions/expire-inquiry-sessions.mjs.map +1 -0
  214. package/dist/actions/import-email-address-lists.cjs +36 -0
  215. package/dist/actions/import-email-address-lists.cjs.map +1 -0
  216. package/dist/actions/import-email-address-lists.d.cts +9 -0
  217. package/dist/actions/import-email-address-lists.d.cts.map +1 -0
  218. package/dist/actions/import-email-address-lists.d.mts +9 -0
  219. package/dist/actions/import-email-address-lists.d.mts.map +1 -0
  220. package/dist/actions/import-email-address-lists.mjs +35 -0
  221. package/dist/actions/import-email-address-lists.mjs.map +1 -0
  222. package/dist/actions/import-ip-address-lists.cjs +44 -0
  223. package/dist/actions/import-ip-address-lists.cjs.map +1 -0
  224. package/dist/actions/import-ip-address-lists.d.cts +9 -0
  225. package/dist/actions/import-ip-address-lists.d.cts.map +1 -0
  226. package/dist/actions/import-ip-address-lists.d.mts +9 -0
  227. package/dist/actions/import-ip-address-lists.d.mts.map +1 -0
  228. package/dist/actions/import-ip-address-lists.mjs +43 -0
  229. package/dist/actions/import-ip-address-lists.mjs.map +1 -0
  230. package/dist/actions/import-name-lists.cjs +35 -0
  231. package/dist/actions/import-name-lists.cjs.map +1 -0
  232. package/dist/actions/import-name-lists.d.cts +9 -0
  233. package/dist/actions/import-name-lists.d.cts.map +1 -0
  234. package/dist/actions/import-name-lists.d.mts +9 -0
  235. package/dist/actions/import-name-lists.d.mts.map +1 -0
  236. package/dist/actions/import-name-lists.mjs +34 -0
  237. package/dist/actions/import-name-lists.mjs.map +1 -0
  238. package/dist/actions/import-phone-number-lists.cjs +44 -0
  239. package/dist/actions/import-phone-number-lists.cjs.map +1 -0
  240. package/dist/actions/import-phone-number-lists.d.cts +9 -0
  241. package/dist/actions/import-phone-number-lists.d.cts.map +1 -0
  242. package/dist/actions/import-phone-number-lists.d.mts +9 -0
  243. package/dist/actions/import-phone-number-lists.d.mts.map +1 -0
  244. package/dist/actions/import-phone-number-lists.mjs +43 -0
  245. package/dist/actions/import-phone-number-lists.mjs.map +1 -0
  246. package/dist/actions/index.cjs +139 -0
  247. package/dist/actions/index.d.cts +70 -0
  248. package/dist/actions/index.d.mts +70 -0
  249. package/dist/actions/index.mjs +70 -0
  250. package/dist/actions/list-all-accounts.cjs +64 -0
  251. package/dist/actions/list-all-accounts.cjs.map +1 -0
  252. package/dist/actions/list-all-accounts.d.cts +9 -0
  253. package/dist/actions/list-all-accounts.d.cts.map +1 -0
  254. package/dist/actions/list-all-accounts.d.mts +9 -0
  255. package/dist/actions/list-all-accounts.d.mts.map +1 -0
  256. package/dist/actions/list-all-accounts.mjs +63 -0
  257. package/dist/actions/list-all-accounts.mjs.map +1 -0
  258. package/dist/actions/list-all-api-logs.cjs +62 -0
  259. package/dist/actions/list-all-api-logs.cjs.map +1 -0
  260. package/dist/actions/list-all-api-logs.d.cts +9 -0
  261. package/dist/actions/list-all-api-logs.d.cts.map +1 -0
  262. package/dist/actions/list-all-api-logs.d.mts +9 -0
  263. package/dist/actions/list-all-api-logs.d.mts.map +1 -0
  264. package/dist/actions/list-all-api-logs.mjs +61 -0
  265. package/dist/actions/list-all-api-logs.mjs.map +1 -0
  266. package/dist/actions/list-all-cases.cjs +73 -0
  267. package/dist/actions/list-all-cases.cjs.map +1 -0
  268. package/dist/actions/list-all-cases.d.cts +9 -0
  269. package/dist/actions/list-all-cases.d.cts.map +1 -0
  270. package/dist/actions/list-all-cases.d.mts +9 -0
  271. package/dist/actions/list-all-cases.d.mts.map +1 -0
  272. package/dist/actions/list-all-cases.mjs +72 -0
  273. package/dist/actions/list-all-cases.mjs.map +1 -0
  274. package/dist/actions/list-all-devices.cjs +54 -0
  275. package/dist/actions/list-all-devices.cjs.map +1 -0
  276. package/dist/actions/list-all-devices.d.cts +9 -0
  277. package/dist/actions/list-all-devices.d.cts.map +1 -0
  278. package/dist/actions/list-all-devices.d.mts +9 -0
  279. package/dist/actions/list-all-devices.d.mts.map +1 -0
  280. package/dist/actions/list-all-devices.mjs +53 -0
  281. package/dist/actions/list-all-devices.mjs.map +1 -0
  282. package/dist/actions/list-all-events.cjs +56 -0
  283. package/dist/actions/list-all-events.cjs.map +1 -0
  284. package/dist/actions/list-all-events.d.cts +9 -0
  285. package/dist/actions/list-all-events.d.cts.map +1 -0
  286. package/dist/actions/list-all-events.d.mts +9 -0
  287. package/dist/actions/list-all-events.d.mts.map +1 -0
  288. package/dist/actions/list-all-events.mjs +55 -0
  289. package/dist/actions/list-all-events.mjs.map +1 -0
  290. package/dist/actions/list-all-importers.cjs +58 -0
  291. package/dist/actions/list-all-importers.cjs.map +1 -0
  292. package/dist/actions/list-all-importers.d.cts +9 -0
  293. package/dist/actions/list-all-importers.d.cts.map +1 -0
  294. package/dist/actions/list-all-importers.d.mts +9 -0
  295. package/dist/actions/list-all-importers.d.mts.map +1 -0
  296. package/dist/actions/list-all-importers.mjs +57 -0
  297. package/dist/actions/list-all-importers.mjs.map +1 -0
  298. package/dist/actions/list-all-inquiries.cjs +68 -0
  299. package/dist/actions/list-all-inquiries.cjs.map +1 -0
  300. package/dist/actions/list-all-inquiries.d.cts +9 -0
  301. package/dist/actions/list-all-inquiries.d.cts.map +1 -0
  302. package/dist/actions/list-all-inquiries.d.mts +9 -0
  303. package/dist/actions/list-all-inquiries.d.mts.map +1 -0
  304. package/dist/actions/list-all-inquiries.mjs +67 -0
  305. package/dist/actions/list-all-inquiries.mjs.map +1 -0
  306. package/dist/actions/list-all-inquiry-sessions.cjs +64 -0
  307. package/dist/actions/list-all-inquiry-sessions.cjs.map +1 -0
  308. package/dist/actions/list-all-inquiry-sessions.d.cts +9 -0
  309. package/dist/actions/list-all-inquiry-sessions.d.cts.map +1 -0
  310. package/dist/actions/list-all-inquiry-sessions.d.mts +9 -0
  311. package/dist/actions/list-all-inquiry-sessions.d.mts.map +1 -0
  312. package/dist/actions/list-all-inquiry-sessions.mjs +63 -0
  313. package/dist/actions/list-all-inquiry-sessions.mjs.map +1 -0
  314. package/dist/actions/list-all-lists.cjs +51 -0
  315. package/dist/actions/list-all-lists.cjs.map +1 -0
  316. package/dist/actions/list-all-lists.d.cts +9 -0
  317. package/dist/actions/list-all-lists.d.cts.map +1 -0
  318. package/dist/actions/list-all-lists.d.mts +9 -0
  319. package/dist/actions/list-all-lists.d.mts.map +1 -0
  320. package/dist/actions/list-all-lists.mjs +50 -0
  321. package/dist/actions/list-all-lists.mjs.map +1 -0
  322. package/dist/actions/list-all-rate-limits.cjs +45 -0
  323. package/dist/actions/list-all-rate-limits.cjs.map +1 -0
  324. package/dist/actions/list-all-rate-limits.d.cts +9 -0
  325. package/dist/actions/list-all-rate-limits.d.cts.map +1 -0
  326. package/dist/actions/list-all-rate-limits.d.mts +9 -0
  327. package/dist/actions/list-all-rate-limits.d.mts.map +1 -0
  328. package/dist/actions/list-all-rate-limits.mjs +44 -0
  329. package/dist/actions/list-all-rate-limits.mjs.map +1 -0
  330. package/dist/actions/list-all-reports.cjs +72 -0
  331. package/dist/actions/list-all-reports.cjs.map +1 -0
  332. package/dist/actions/list-all-reports.d.cts +9 -0
  333. package/dist/actions/list-all-reports.d.cts.map +1 -0
  334. package/dist/actions/list-all-reports.d.mts +9 -0
  335. package/dist/actions/list-all-reports.d.mts.map +1 -0
  336. package/dist/actions/list-all-reports.mjs +71 -0
  337. package/dist/actions/list-all-reports.mjs.map +1 -0
  338. package/dist/actions/list-all-transactions.cjs +68 -0
  339. package/dist/actions/list-all-transactions.cjs.map +1 -0
  340. package/dist/actions/list-all-transactions.d.cts +9 -0
  341. package/dist/actions/list-all-transactions.d.cts.map +1 -0
  342. package/dist/actions/list-all-transactions.d.mts +9 -0
  343. package/dist/actions/list-all-transactions.d.mts.map +1 -0
  344. package/dist/actions/list-all-transactions.mjs +67 -0
  345. package/dist/actions/list-all-transactions.mjs.map +1 -0
  346. package/dist/actions/list-all-webhooks.cjs +65 -0
  347. package/dist/actions/list-all-webhooks.cjs.map +1 -0
  348. package/dist/actions/list-all-webhooks.d.cts +9 -0
  349. package/dist/actions/list-all-webhooks.d.cts.map +1 -0
  350. package/dist/actions/list-all-webhooks.d.mts +9 -0
  351. package/dist/actions/list-all-webhooks.d.mts.map +1 -0
  352. package/dist/actions/list-all-webhooks.mjs +64 -0
  353. package/dist/actions/list-all-webhooks.mjs.map +1 -0
  354. package/dist/actions/list-all-workflow-runs.cjs +69 -0
  355. package/dist/actions/list-all-workflow-runs.cjs.map +1 -0
  356. package/dist/actions/list-all-workflow-runs.d.cts +9 -0
  357. package/dist/actions/list-all-workflow-runs.d.cts.map +1 -0
  358. package/dist/actions/list-all-workflow-runs.d.mts +9 -0
  359. package/dist/actions/list-all-workflow-runs.d.mts.map +1 -0
  360. package/dist/actions/list-all-workflow-runs.mjs +68 -0
  361. package/dist/actions/list-all-workflow-runs.mjs.map +1 -0
  362. package/dist/actions/redact-an-account.cjs +62 -0
  363. package/dist/actions/redact-an-account.cjs.map +1 -0
  364. package/dist/actions/redact-an-account.d.cts +9 -0
  365. package/dist/actions/redact-an-account.d.cts.map +1 -0
  366. package/dist/actions/redact-an-account.d.mts +9 -0
  367. package/dist/actions/redact-an-account.d.mts.map +1 -0
  368. package/dist/actions/redact-an-account.mjs +61 -0
  369. package/dist/actions/redact-an-account.mjs.map +1 -0
  370. package/dist/actions/remove-account-tag.cjs +51 -0
  371. package/dist/actions/remove-account-tag.cjs.map +1 -0
  372. package/dist/actions/remove-account-tag.d.cts +9 -0
  373. package/dist/actions/remove-account-tag.d.cts.map +1 -0
  374. package/dist/actions/remove-account-tag.d.mts +9 -0
  375. package/dist/actions/remove-account-tag.d.mts.map +1 -0
  376. package/dist/actions/remove-account-tag.mjs +50 -0
  377. package/dist/actions/remove-account-tag.mjs.map +1 -0
  378. package/dist/actions/retrieve-a-country-list-item.cjs +53 -0
  379. package/dist/actions/retrieve-a-country-list-item.cjs.map +1 -0
  380. package/dist/actions/retrieve-a-country-list-item.d.cts +9 -0
  381. package/dist/actions/retrieve-a-country-list-item.d.cts.map +1 -0
  382. package/dist/actions/retrieve-a-country-list-item.d.mts +9 -0
  383. package/dist/actions/retrieve-a-country-list-item.d.mts.map +1 -0
  384. package/dist/actions/retrieve-a-country-list-item.mjs +52 -0
  385. package/dist/actions/retrieve-a-country-list-item.mjs.map +1 -0
  386. package/dist/actions/retrieve-a-geolocation-list-item.cjs +59 -0
  387. package/dist/actions/retrieve-a-geolocation-list-item.cjs.map +1 -0
  388. package/dist/actions/retrieve-a-geolocation-list-item.d.cts +9 -0
  389. package/dist/actions/retrieve-a-geolocation-list-item.d.cts.map +1 -0
  390. package/dist/actions/retrieve-a-geolocation-list-item.d.mts +9 -0
  391. package/dist/actions/retrieve-a-geolocation-list-item.d.mts.map +1 -0
  392. package/dist/actions/retrieve-a-geolocation-list-item.mjs +58 -0
  393. package/dist/actions/retrieve-a-geolocation-list-item.mjs.map +1 -0
  394. package/dist/actions/retrieve-a-name-list-item.cjs +54 -0
  395. package/dist/actions/retrieve-a-name-list-item.cjs.map +1 -0
  396. package/dist/actions/retrieve-a-name-list-item.d.cts +9 -0
  397. package/dist/actions/retrieve-a-name-list-item.d.cts.map +1 -0
  398. package/dist/actions/retrieve-a-name-list-item.d.mts +9 -0
  399. package/dist/actions/retrieve-a-name-list-item.d.mts.map +1 -0
  400. package/dist/actions/retrieve-a-name-list-item.mjs +53 -0
  401. package/dist/actions/retrieve-a-name-list-item.mjs.map +1 -0
  402. package/dist/actions/retrieve-a-string-list-item.cjs +53 -0
  403. package/dist/actions/retrieve-a-string-list-item.cjs.map +1 -0
  404. package/dist/actions/retrieve-a-string-list-item.d.cts +9 -0
  405. package/dist/actions/retrieve-a-string-list-item.d.cts.map +1 -0
  406. package/dist/actions/retrieve-a-string-list-item.d.mts +9 -0
  407. package/dist/actions/retrieve-a-string-list-item.d.mts.map +1 -0
  408. package/dist/actions/retrieve-a-string-list-item.mjs +52 -0
  409. package/dist/actions/retrieve-a-string-list-item.mjs.map +1 -0
  410. package/dist/actions/retrieve-a-webhook.cjs +63 -0
  411. package/dist/actions/retrieve-a-webhook.cjs.map +1 -0
  412. package/dist/actions/retrieve-a-webhook.d.cts +9 -0
  413. package/dist/actions/retrieve-a-webhook.d.cts.map +1 -0
  414. package/dist/actions/retrieve-a-webhook.d.mts +9 -0
  415. package/dist/actions/retrieve-a-webhook.d.mts.map +1 -0
  416. package/dist/actions/retrieve-a-webhook.mjs +62 -0
  417. package/dist/actions/retrieve-a-webhook.mjs.map +1 -0
  418. package/dist/actions/retrieve-an-account.cjs +62 -0
  419. package/dist/actions/retrieve-an-account.cjs.map +1 -0
  420. package/dist/actions/retrieve-an-account.d.cts +9 -0
  421. package/dist/actions/retrieve-an-account.d.cts.map +1 -0
  422. package/dist/actions/retrieve-an-account.d.mts +9 -0
  423. package/dist/actions/retrieve-an-account.d.mts.map +1 -0
  424. package/dist/actions/retrieve-an-account.mjs +61 -0
  425. package/dist/actions/retrieve-an-account.mjs.map +1 -0
  426. package/dist/actions/retrieve-an-event.cjs +55 -0
  427. package/dist/actions/retrieve-an-event.cjs.map +1 -0
  428. package/dist/actions/retrieve-an-event.d.cts +9 -0
  429. package/dist/actions/retrieve-an-event.d.cts.map +1 -0
  430. package/dist/actions/retrieve-an-event.d.mts +9 -0
  431. package/dist/actions/retrieve-an-event.d.mts.map +1 -0
  432. package/dist/actions/retrieve-an-event.mjs +54 -0
  433. package/dist/actions/retrieve-an-event.mjs.map +1 -0
  434. package/dist/actions/retrieve-an-importer.cjs +52 -0
  435. package/dist/actions/retrieve-an-importer.cjs.map +1 -0
  436. package/dist/actions/retrieve-an-importer.d.cts +9 -0
  437. package/dist/actions/retrieve-an-importer.d.cts.map +1 -0
  438. package/dist/actions/retrieve-an-importer.d.mts +9 -0
  439. package/dist/actions/retrieve-an-importer.d.mts.map +1 -0
  440. package/dist/actions/retrieve-an-importer.mjs +51 -0
  441. package/dist/actions/retrieve-an-importer.mjs.map +1 -0
  442. package/dist/actions/retrieve-an-ip-address-list-item.cjs +53 -0
  443. package/dist/actions/retrieve-an-ip-address-list-item.cjs.map +1 -0
  444. package/dist/actions/retrieve-an-ip-address-list-item.d.cts +9 -0
  445. package/dist/actions/retrieve-an-ip-address-list-item.d.cts.map +1 -0
  446. package/dist/actions/retrieve-an-ip-address-list-item.d.mts +9 -0
  447. package/dist/actions/retrieve-an-ip-address-list-item.d.mts.map +1 -0
  448. package/dist/actions/retrieve-an-ip-address-list-item.mjs +52 -0
  449. package/dist/actions/retrieve-an-ip-address-list-item.mjs.map +1 -0
  450. package/dist/actions/retrieve-api-log.cjs +65 -0
  451. package/dist/actions/retrieve-api-log.cjs.map +1 -0
  452. package/dist/actions/retrieve-api-log.d.cts +9 -0
  453. package/dist/actions/retrieve-api-log.d.cts.map +1 -0
  454. package/dist/actions/retrieve-api-log.d.mts +9 -0
  455. package/dist/actions/retrieve-api-log.d.mts.map +1 -0
  456. package/dist/actions/retrieve-api-log.mjs +64 -0
  457. package/dist/actions/retrieve-api-log.mjs.map +1 -0
  458. package/dist/actions/retrieve-browser-fingerprint-list-item.cjs +52 -0
  459. package/dist/actions/retrieve-browser-fingerprint-list-item.cjs.map +1 -0
  460. package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts +9 -0
  461. package/dist/actions/retrieve-browser-fingerprint-list-item.d.cts.map +1 -0
  462. package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts +9 -0
  463. package/dist/actions/retrieve-browser-fingerprint-list-item.d.mts.map +1 -0
  464. package/dist/actions/retrieve-browser-fingerprint-list-item.mjs +51 -0
  465. package/dist/actions/retrieve-browser-fingerprint-list-item.mjs.map +1 -0
  466. package/dist/actions/retrieve-document-generic.cjs +71 -0
  467. package/dist/actions/retrieve-document-generic.cjs.map +1 -0
  468. package/dist/actions/retrieve-document-generic.d.cts +9 -0
  469. package/dist/actions/retrieve-document-generic.d.cts.map +1 -0
  470. package/dist/actions/retrieve-document-generic.d.mts +9 -0
  471. package/dist/actions/retrieve-document-generic.d.mts.map +1 -0
  472. package/dist/actions/retrieve-document-generic.mjs +70 -0
  473. package/dist/actions/retrieve-document-generic.mjs.map +1 -0
  474. package/dist/actions/retrieve-document.cjs +83 -0
  475. package/dist/actions/retrieve-document.cjs.map +1 -0
  476. package/dist/actions/retrieve-document.d.cts +9 -0
  477. package/dist/actions/retrieve-document.d.cts.map +1 -0
  478. package/dist/actions/retrieve-document.d.mts +9 -0
  479. package/dist/actions/retrieve-document.d.mts.map +1 -0
  480. package/dist/actions/retrieve-document.mjs +82 -0
  481. package/dist/actions/retrieve-document.mjs.map +1 -0
  482. package/dist/actions/retrieve-email-address-list-item.cjs +54 -0
  483. package/dist/actions/retrieve-email-address-list-item.cjs.map +1 -0
  484. package/dist/actions/retrieve-email-address-list-item.d.cts +9 -0
  485. package/dist/actions/retrieve-email-address-list-item.d.cts.map +1 -0
  486. package/dist/actions/retrieve-email-address-list-item.d.mts +9 -0
  487. package/dist/actions/retrieve-email-address-list-item.d.mts.map +1 -0
  488. package/dist/actions/retrieve-email-address-list-item.mjs +53 -0
  489. package/dist/actions/retrieve-email-address-list-item.mjs.map +1 -0
  490. package/dist/actions/retrieve-government-id-number-list-item.cjs +54 -0
  491. package/dist/actions/retrieve-government-id-number-list-item.cjs.map +1 -0
  492. package/dist/actions/retrieve-government-id-number-list-item.d.cts +9 -0
  493. package/dist/actions/retrieve-government-id-number-list-item.d.cts.map +1 -0
  494. package/dist/actions/retrieve-government-id-number-list-item.d.mts +9 -0
  495. package/dist/actions/retrieve-government-id-number-list-item.d.mts.map +1 -0
  496. package/dist/actions/retrieve-government-id-number-list-item.mjs +53 -0
  497. package/dist/actions/retrieve-government-id-number-list-item.mjs.map +1 -0
  498. package/dist/actions/retrieve-phone-number-list-item.cjs +57 -0
  499. package/dist/actions/retrieve-phone-number-list-item.cjs.map +1 -0
  500. package/dist/actions/retrieve-phone-number-list-item.d.cts +9 -0
  501. package/dist/actions/retrieve-phone-number-list-item.d.cts.map +1 -0
  502. package/dist/actions/retrieve-phone-number-list-item.d.mts +9 -0
  503. package/dist/actions/retrieve-phone-number-list-item.d.mts.map +1 -0
  504. package/dist/actions/retrieve-phone-number-list-item.mjs +56 -0
  505. package/dist/actions/retrieve-phone-number-list-item.mjs.map +1 -0
  506. package/dist/actions/rotate-webhook-secret.cjs +60 -0
  507. package/dist/actions/rotate-webhook-secret.cjs.map +1 -0
  508. package/dist/actions/rotate-webhook-secret.d.cts +9 -0
  509. package/dist/actions/rotate-webhook-secret.d.cts.map +1 -0
  510. package/dist/actions/rotate-webhook-secret.d.mts +9 -0
  511. package/dist/actions/rotate-webhook-secret.d.mts.map +1 -0
  512. package/dist/actions/rotate-webhook-secret.mjs +59 -0
  513. package/dist/actions/rotate-webhook-secret.mjs.map +1 -0
  514. package/dist/actions/search-accounts.cjs +68 -0
  515. package/dist/actions/search-accounts.cjs.map +1 -0
  516. package/dist/actions/search-accounts.d.cts +9 -0
  517. package/dist/actions/search-accounts.d.cts.map +1 -0
  518. package/dist/actions/search-accounts.d.mts +9 -0
  519. package/dist/actions/search-accounts.d.mts.map +1 -0
  520. package/dist/actions/search-accounts.mjs +67 -0
  521. package/dist/actions/search-accounts.mjs.map +1 -0
  522. package/dist/actions/search-cases.cjs +69 -0
  523. package/dist/actions/search-cases.cjs.map +1 -0
  524. package/dist/actions/search-cases.d.cts +9 -0
  525. package/dist/actions/search-cases.d.cts.map +1 -0
  526. package/dist/actions/search-cases.d.mts +9 -0
  527. package/dist/actions/search-cases.d.mts.map +1 -0
  528. package/dist/actions/search-cases.mjs +68 -0
  529. package/dist/actions/search-cases.mjs.map +1 -0
  530. package/dist/actions/set-tags.cjs +56 -0
  531. package/dist/actions/set-tags.cjs.map +1 -0
  532. package/dist/actions/set-tags.d.cts +9 -0
  533. package/dist/actions/set-tags.d.cts.map +1 -0
  534. package/dist/actions/set-tags.d.mts +9 -0
  535. package/dist/actions/set-tags.d.mts.map +1 -0
  536. package/dist/actions/set-tags.mjs +55 -0
  537. package/dist/actions/set-tags.mjs.map +1 -0
  538. package/dist/actions/update-a-webhook.cjs +67 -0
  539. package/dist/actions/update-a-webhook.cjs.map +1 -0
  540. package/dist/actions/update-a-webhook.d.cts +9 -0
  541. package/dist/actions/update-a-webhook.d.cts.map +1 -0
  542. package/dist/actions/update-a-webhook.d.mts +9 -0
  543. package/dist/actions/update-a-webhook.d.mts.map +1 -0
  544. package/dist/actions/update-a-webhook.mjs +66 -0
  545. package/dist/actions/update-a-webhook.mjs.map +1 -0
  546. package/dist/actions/update-an-account.cjs +96 -0
  547. package/dist/actions/update-an-account.cjs.map +1 -0
  548. package/dist/actions/update-an-account.d.cts +9 -0
  549. package/dist/actions/update-an-account.d.cts.map +1 -0
  550. package/dist/actions/update-an-account.d.mts +9 -0
  551. package/dist/actions/update-an-account.d.mts.map +1 -0
  552. package/dist/actions/update-an-account.mjs +95 -0
  553. package/dist/actions/update-an-account.mjs.map +1 -0
  554. package/dist/actions/update-document-generic.cjs +86 -0
  555. package/dist/actions/update-document-generic.cjs.map +1 -0
  556. package/dist/actions/update-document-generic.d.cts +9 -0
  557. package/dist/actions/update-document-generic.d.cts.map +1 -0
  558. package/dist/actions/update-document-generic.d.mts +9 -0
  559. package/dist/actions/update-document-generic.d.mts.map +1 -0
  560. package/dist/actions/update-document-generic.mjs +85 -0
  561. package/dist/actions/update-document-generic.mjs.map +1 -0
  562. package/dist/app.cjs +9 -0
  563. package/dist/app.cjs.map +1 -0
  564. package/dist/app.d.cts +5 -0
  565. package/dist/app.d.cts.map +1 -0
  566. package/dist/app.d.mts +5 -0
  567. package/dist/app.d.mts.map +1 -0
  568. package/dist/app.mjs +10 -0
  569. package/dist/app.mjs.map +1 -0
  570. package/dist/catalog.cjs +15 -0
  571. package/dist/catalog.cjs.map +1 -0
  572. package/dist/catalog.d.cts +14 -0
  573. package/dist/catalog.d.cts.map +1 -0
  574. package/dist/catalog.d.mts +14 -0
  575. package/dist/catalog.d.mts.map +1 -0
  576. package/dist/catalog.mjs +15 -0
  577. package/dist/catalog.mjs.map +1 -0
  578. package/dist/execute.cjs +18 -0
  579. package/dist/execute.cjs.map +1 -0
  580. package/dist/execute.mjs +18 -0
  581. package/dist/execute.mjs.map +1 -0
  582. package/dist/index.cjs +144 -0
  583. package/dist/index.d.cts +72 -0
  584. package/dist/index.d.mts +72 -0
  585. package/dist/index.mjs +73 -0
  586. package/package.json +49 -0
@@ -0,0 +1,67 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/search-accounts.ts
4
+ const PersonaSearchAccountsInput = z.object({
5
+ page: z.object({
6
+ size: z.number().int().describe("Number of results to return per page. Default is 10.").optional(),
7
+ after: z.string().describe("Cursor for forward pagination. Use to fetch results after this cursor.").optional(),
8
+ before: z.string().describe("Cursor for backward pagination. Use to fetch results before this cursor.").optional()
9
+ }).describe("Pagination configuration.").optional(),
10
+ sort: z.object({
11
+ attribute: z.string().describe("The attribute name to sort by (e.g., 'created-at', 'updated-at')."),
12
+ direction: z.enum(["asc", "desc"]).default("desc").describe("Sort direction: asc (ascending) or desc (descending). Defaults to desc.").optional()
13
+ }).describe("Sort configuration for results.").optional(),
14
+ query: z.object({}).describe("Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'account-status', 'operator': 'eq', 'value': 'active'}]}").optional(),
15
+ sparse_fields: z.object({}).describe("Comma-separated list(s) of attributes to include in the response, keyed by resource type. Allows customizing which attributes will be serialized.").optional(),
16
+ "Key-Inflection": z.enum([
17
+ "camel",
18
+ "kebab",
19
+ "snake"
20
+ ]).describe("Determines casing for the API response.").optional(),
21
+ "Idempotency-Key": z.string().describe("Ensures the request is idempotent. Sent as header.").optional(),
22
+ "Persona-Version": z.enum([
23
+ "2025-12-08",
24
+ "2025-10-27",
25
+ "2023-01-05",
26
+ "2022-09-01",
27
+ "2021-08-18",
28
+ "2021-07-05",
29
+ "2021-02-21",
30
+ "2020-05-18"
31
+ ]).describe("Server API version.").optional()
32
+ }).describe("Request model for searching accounts in Persona.");
33
+ const PersonaSearchAccounts_AccountAttributesSchema = z.object({
34
+ tags: z.array(z.string()).describe("List of tags associated with the account.").nullable().optional(),
35
+ fields: z.object({}).describe("Custom fields associated with the account (not key inflected).").nullable().optional(),
36
+ "created-at": z.string().describe("ISO 8601 timestamp when the account was created.").nullable().optional(),
37
+ "updated-at": z.string().describe("ISO 8601 timestamp when the account was last updated.").nullable().optional(),
38
+ "redacted-at": z.string().describe("ISO 8601 timestamp when the account was redacted, or null.").nullable().optional(),
39
+ "reference-id": z.string().describe("External reference ID for the account, or null.").nullable().optional(),
40
+ "account-status": z.string().describe("Current status of the account.").nullable().optional(),
41
+ "account-type-name": z.string().describe("Name of the account type associated with this account.").nullable().optional()
42
+ }).describe("Attributes of an Account.");
43
+ const PersonaSearchAccounts_AccountRelationshipsSchema = z.object({ "account-type": z.object({}).describe("The account type relationship data.").nullable().optional() }).describe("Relationships of an Account.");
44
+ const PersonaSearchAccounts_AccountDataSchema = z.object({
45
+ id: z.string().describe("Unique identifier for the account.").nullable().optional(),
46
+ type: z.string().describe("Resource type (e.g., 'account').").nullable().optional(),
47
+ attributes: PersonaSearchAccounts_AccountAttributesSchema.nullable().optional(),
48
+ relationships: PersonaSearchAccounts_AccountRelationshipsSchema.nullable().optional()
49
+ }).describe("Account object data.");
50
+ const PersonaSearchAccounts_PaginationLinksSchema = z.object({
51
+ next: z.string().describe("URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.").nullable().optional(),
52
+ prev: z.string().describe("URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.").nullable().optional()
53
+ }).describe("Pagination links for navigating through results.");
54
+ const personaSearchAccounts = action("PERSONA_SEARCH_ACCOUNTS", {
55
+ slug: "persona-search-accounts",
56
+ name: "Search Accounts",
57
+ description: "Tool to search accounts in Persona using flexible query criteria. Use when you need to find accounts based on specific attributes, tags, or status. Supports boolean logic (AND/OR/NOT) and comparison operators.",
58
+ input: PersonaSearchAccountsInput,
59
+ output: z.object({
60
+ data: z.array(PersonaSearchAccounts_AccountDataSchema).describe("An array of Account objects matching the search criteria."),
61
+ links: PersonaSearchAccounts_PaginationLinksSchema.nullable()
62
+ }).describe("Response model for searching accounts.")
63
+ });
64
+ //#endregion
65
+ export { personaSearchAccounts };
66
+
67
+ //# sourceMappingURL=search-accounts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-accounts.mjs","names":[],"sources":["../../src/actions/search-accounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchAccountsInput: z.ZodTypeAny = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page. Default is 10.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use to fetch results after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use to fetch results before this cursor.\").optional(),\n}).describe(\"Pagination configuration.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending). Defaults to desc.\").optional(),\n}).describe(\"Sort configuration for results.\").optional(),\n query: z.object({}).describe(\"Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'account-status', 'operator': 'eq', 'value': 'active'}]}\").optional(),\n sparse_fields: z.object({}).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type. Allows customizing which attributes will be serialized.\").optional(),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Sent as header.\").optional(),\n \"Persona-Version\": z.enum([\"2025-12-08\", \"2025-10-27\", \"2023-01-05\", \"2022-09-01\", \"2021-08-18\", \"2021-07-05\", \"2021-02-21\", \"2020-05-18\"]).describe(\"Server API version.\").optional(),\n}).describe(\"Request model for searching accounts in Persona.\");\nconst PersonaSearchAccounts_AccountAttributesSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.object({}).describe(\"Custom fields associated with the account (not key inflected).\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, or null.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account, or null.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Current status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type associated with this account.\").nullable().optional(),\n}).describe(\"Attributes of an Account.\");\nconst PersonaSearchAccounts_AccountRelationshipsSchema: z.ZodTypeAny = z.object({\n \"account-type\": z.object({}).describe(\"The account type relationship data.\").nullable().optional(),\n}).describe(\"Relationships of an Account.\");\nconst PersonaSearchAccounts_AccountDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the account.\").nullable().optional(),\n type: z.string().describe(\"Resource type (e.g., 'account').\").nullable().optional(),\n attributes: PersonaSearchAccounts_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSearchAccounts_AccountRelationshipsSchema.nullable().optional(),\n}).describe(\"Account object data.\");\nconst PersonaSearchAccounts_PaginationLinksSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.\").nullable().optional(),\n prev: z.string().describe(\"URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.\").nullable().optional(),\n}).describe(\"Pagination links for navigating through results.\");\nexport const PersonaSearchAccountsOutput: z.ZodTypeAny = z.object({\n data: z.array(PersonaSearchAccounts_AccountDataSchema).describe(\"An array of Account objects matching the search criteria.\"),\n links: PersonaSearchAccounts_PaginationLinksSchema.nullable(),\n}).describe(\"Response model for searching accounts.\");\n\nexport const personaSearchAccounts = action(\"PERSONA_SEARCH_ACCOUNTS\", {\n slug: \"persona-search-accounts\",\n name: \"Search Accounts\",\n description: \"Tool to search accounts in Persona using flexible query criteria. Use when you need to find accounts based on specific attributes, tags, or status. Supports boolean logic (AND/OR/NOT) and comparison operators.\",\n input: PersonaSearchAccountsInput,\n output: PersonaSearchAccountsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,2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,MAAM,uCAAuC,CAAC,CAAC,SAAS,2DAA2D;EAC3H,OAAO,4CAA4C,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
@@ -0,0 +1,69 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/search-cases.ts
4
+ const PersonaSearchCasesInput = zod.z.object({
5
+ page: zod.z.object({
6
+ size: zod.z.number().int().describe("Number of results to return per page.").optional(),
7
+ after: zod.z.string().describe("Cursor for forward pagination. Fetch records after this cursor.").optional(),
8
+ before: zod.z.string().describe("Cursor for backward pagination. Fetch records before this cursor.").optional()
9
+ }).describe("Pagination parameters for search results.").optional(),
10
+ sort: zod.z.object({
11
+ attribute: zod.z.string().describe("The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status')."),
12
+ direction: zod.z.enum(["asc", "desc"]).default("desc").describe("Sort direction: asc (ascending) or desc (descending).").optional()
13
+ }).describe("Sort configuration for search results.").optional(),
14
+ query: zod.z.object({}).describe("Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}").optional(),
15
+ "Key-Inflection": zod.z.enum([
16
+ "camel",
17
+ "kebab",
18
+ "snake"
19
+ ]).describe("Determines casing for the API response.").optional(),
20
+ "Idempotency-Key": zod.z.string().describe("Ensures the request is idempotent. Sent as header.").optional(),
21
+ "Persona-Version": zod.z.enum([
22
+ "2025-12-08",
23
+ "2025-10-27",
24
+ "2023-01-05",
25
+ "2022-09-01",
26
+ "2021-08-18",
27
+ "2021-07-05",
28
+ "2021-02-21",
29
+ "2020-05-18"
30
+ ]).describe("Server API version.").optional()
31
+ }).describe("Request model for searching cases in Persona.");
32
+ const PersonaSearchCases_CaseAttributesSchema = zod.z.object({
33
+ name: zod.z.string().describe("Name or title of the case.").nullable().optional(),
34
+ tags: zod.z.array(zod.z.string()).describe("Tags associated with the case.").nullable().optional(),
35
+ status: zod.z.string().describe("Current status of the case.").nullable().optional(),
36
+ "created-at": zod.z.string().describe("ISO 8601 timestamp when the case was created.").nullable().optional(),
37
+ resolution: zod.z.string().describe("Resolution status of the case.").nullable().optional(),
38
+ "updated-at": zod.z.string().describe("ISO 8601 timestamp when the case was last updated.").nullable().optional(),
39
+ "assignee-id": zod.z.string().describe("ID of the user assigned to the case.").nullable().optional()
40
+ }).describe("Attributes of a case object.");
41
+ const PersonaSearchCases_CaseRelationshipsSchema = zod.z.object({
42
+ account: zod.z.object({}).describe("Relationship to the associated account.").nullable().optional(),
43
+ inquiry: zod.z.object({}).describe("Relationship to the associated inquiry.").nullable().optional()
44
+ }).describe("Relationships of a case object.");
45
+ const PersonaSearchCases_CaseDataSchema = zod.z.object({
46
+ id: zod.z.string().describe("Unique identifier for the case."),
47
+ type: zod.z.string().describe("Resource type, typically 'case'."),
48
+ attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),
49
+ relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional()
50
+ }).describe("Case data object returned by Persona API.");
51
+ const PersonaSearchCases_PaginationLinksSchema = zod.z.object({
52
+ next: zod.z.string().describe("URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.").nullable().optional(),
53
+ prev: zod.z.string().describe("URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.").nullable().optional()
54
+ }).describe("Pagination links for navigating the result set.");
55
+ const PersonaSearchCasesOutput = zod.z.object({
56
+ data: zod.z.array(PersonaSearchCases_CaseDataSchema).describe("An array of case objects matching the search criteria."),
57
+ links: PersonaSearchCases_PaginationLinksSchema.nullable()
58
+ }).describe("Response model for searching cases in Persona.");
59
+ const personaSearchCases = require_action.action("PERSONA_SEARCH_CASES", {
60
+ slug: "persona-search-cases",
61
+ name: "Search Cases",
62
+ description: "Tool to search cases in Persona using advanced query filters with boolean logic. Use when you need to find cases matching specific criteria using operators like eq, gt, gte, lt, lte combined with AND/OR/NOT logic.",
63
+ input: PersonaSearchCasesInput,
64
+ output: PersonaSearchCasesOutput
65
+ });
66
+ //#endregion
67
+ exports.personaSearchCases = personaSearchCases;
68
+
69
+ //# sourceMappingURL=search-cases.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-cases.cjs","names":["z","action"],"sources":["../../src/actions/search-cases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchCasesInput: z.ZodTypeAny = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Fetch records after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Fetch records before this cursor.\").optional(),\n}).describe(\"Pagination parameters for search results.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending).\").optional(),\n}).describe(\"Sort configuration for search results.\").optional(),\n query: z.object({}).describe(\"Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}\").optional(),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Sent as header.\").optional(),\n \"Persona-Version\": z.enum([\"2025-12-08\", \"2025-10-27\", \"2023-01-05\", \"2022-09-01\", \"2021-08-18\", \"2021-07-05\", \"2021-02-21\", \"2020-05-18\"]).describe(\"Server API version.\").optional(),\n}).describe(\"Request model for searching cases in Persona.\");\nconst PersonaSearchCases_CaseAttributesSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name or title of the case.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the case.\").nullable().optional(),\n status: z.string().describe(\"Current status of the case.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the case was created.\").nullable().optional(),\n resolution: z.string().describe(\"Resolution status of the case.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the case was last updated.\").nullable().optional(),\n \"assignee-id\": z.string().describe(\"ID of the user assigned to the case.\").nullable().optional(),\n}).describe(\"Attributes of a case object.\");\nconst PersonaSearchCases_CaseRelationshipsSchema: z.ZodTypeAny = z.object({\n account: z.object({}).describe(\"Relationship to the associated account.\").nullable().optional(),\n inquiry: z.object({}).describe(\"Relationship to the associated inquiry.\").nullable().optional(),\n}).describe(\"Relationships of a case object.\");\nconst PersonaSearchCases_CaseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the case.\"),\n type: z.string().describe(\"Resource type, typically 'case'.\"),\n attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),\n relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional(),\n}).describe(\"Case data object returned by Persona API.\");\nconst PersonaSearchCases_PaginationLinksSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.\").nullable().optional(),\n prev: z.string().describe(\"URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.\").nullable().optional(),\n}).describe(\"Pagination links for navigating the result set.\");\nexport const PersonaSearchCasesOutput: z.ZodTypeAny = z.object({\n data: z.array(PersonaSearchCases_CaseDataSchema).describe(\"An array of case objects matching the search criteria.\"),\n links: PersonaSearchCases_PaginationLinksSchema.nullable(),\n}).describe(\"Response model for searching cases in Persona.\");\n\nexport const personaSearchCases = action(\"PERSONA_SEARCH_CASES\", {\n slug: \"persona-search-cases\",\n name: \"Search Cases\",\n description: \"Tool to search cases in Persona using advanced query filters with boolean logic. Use when you need to find cases matching specific criteria using operators like eq, gt, gte, lt, lte combined with AND/OR/NOT logic.\",\n input: PersonaSearchCasesInput,\n output: PersonaSearchCasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO;EACf,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;EAC5G,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mpBA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+ declare const personaSearchCases: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaSearchCases };
9
+ //# sourceMappingURL=search-cases.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-cases.d.cts","names":[],"sources":["../../src/actions/search-cases.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAcoB;AAAA,cAwB/C,wBAAA,EAA0B,CAAA,CAAE,UAGoB;AAAA,cAEhD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/search-cases.d.ts
4
+ declare const PersonaSearchCasesInput: z.ZodTypeAny;
5
+ declare const PersonaSearchCasesOutput: z.ZodTypeAny;
6
+ declare const personaSearchCases: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaSearchCases };
9
+ //# sourceMappingURL=search-cases.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-cases.d.mts","names":[],"sources":["../../src/actions/search-cases.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAcoB;AAAA,cAwB/C,wBAAA,EAA0B,CAAA,CAAE,UAGoB;AAAA,cAEhD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,68 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/search-cases.ts
4
+ const PersonaSearchCasesInput = z.object({
5
+ page: z.object({
6
+ size: z.number().int().describe("Number of results to return per page.").optional(),
7
+ after: z.string().describe("Cursor for forward pagination. Fetch records after this cursor.").optional(),
8
+ before: z.string().describe("Cursor for backward pagination. Fetch records before this cursor.").optional()
9
+ }).describe("Pagination parameters for search results.").optional(),
10
+ sort: z.object({
11
+ attribute: z.string().describe("The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status')."),
12
+ direction: z.enum(["asc", "desc"]).default("desc").describe("Sort direction: asc (ascending) or desc (descending).").optional()
13
+ }).describe("Sort configuration for search results.").optional(),
14
+ query: z.object({}).describe("Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}").optional(),
15
+ "Key-Inflection": z.enum([
16
+ "camel",
17
+ "kebab",
18
+ "snake"
19
+ ]).describe("Determines casing for the API response.").optional(),
20
+ "Idempotency-Key": z.string().describe("Ensures the request is idempotent. Sent as header.").optional(),
21
+ "Persona-Version": z.enum([
22
+ "2025-12-08",
23
+ "2025-10-27",
24
+ "2023-01-05",
25
+ "2022-09-01",
26
+ "2021-08-18",
27
+ "2021-07-05",
28
+ "2021-02-21",
29
+ "2020-05-18"
30
+ ]).describe("Server API version.").optional()
31
+ }).describe("Request model for searching cases in Persona.");
32
+ const PersonaSearchCases_CaseAttributesSchema = z.object({
33
+ name: z.string().describe("Name or title of the case.").nullable().optional(),
34
+ tags: z.array(z.string()).describe("Tags associated with the case.").nullable().optional(),
35
+ status: z.string().describe("Current status of the case.").nullable().optional(),
36
+ "created-at": z.string().describe("ISO 8601 timestamp when the case was created.").nullable().optional(),
37
+ resolution: z.string().describe("Resolution status of the case.").nullable().optional(),
38
+ "updated-at": z.string().describe("ISO 8601 timestamp when the case was last updated.").nullable().optional(),
39
+ "assignee-id": z.string().describe("ID of the user assigned to the case.").nullable().optional()
40
+ }).describe("Attributes of a case object.");
41
+ const PersonaSearchCases_CaseRelationshipsSchema = z.object({
42
+ account: z.object({}).describe("Relationship to the associated account.").nullable().optional(),
43
+ inquiry: z.object({}).describe("Relationship to the associated inquiry.").nullable().optional()
44
+ }).describe("Relationships of a case object.");
45
+ const PersonaSearchCases_CaseDataSchema = z.object({
46
+ id: z.string().describe("Unique identifier for the case."),
47
+ type: z.string().describe("Resource type, typically 'case'."),
48
+ attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),
49
+ relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional()
50
+ }).describe("Case data object returned by Persona API.");
51
+ const PersonaSearchCases_PaginationLinksSchema = z.object({
52
+ next: z.string().describe("URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.").nullable().optional(),
53
+ prev: z.string().describe("URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.").nullable().optional()
54
+ }).describe("Pagination links for navigating the result set.");
55
+ const personaSearchCases = action("PERSONA_SEARCH_CASES", {
56
+ slug: "persona-search-cases",
57
+ name: "Search Cases",
58
+ description: "Tool to search cases in Persona using advanced query filters with boolean logic. Use when you need to find cases matching specific criteria using operators like eq, gt, gte, lt, lte combined with AND/OR/NOT logic.",
59
+ input: PersonaSearchCasesInput,
60
+ output: z.object({
61
+ data: z.array(PersonaSearchCases_CaseDataSchema).describe("An array of case objects matching the search criteria."),
62
+ links: PersonaSearchCases_PaginationLinksSchema.nullable()
63
+ }).describe("Response model for searching cases in Persona.")
64
+ });
65
+ //#endregion
66
+ export { personaSearchCases };
67
+
68
+ //# sourceMappingURL=search-cases.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-cases.mjs","names":[],"sources":["../../src/actions/search-cases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSearchCasesInput: z.ZodTypeAny = z.object({\n page: z.object({\n size: z.number().int().describe(\"Number of results to return per page.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Fetch records after this cursor.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Fetch records before this cursor.\").optional(),\n}).describe(\"Pagination parameters for search results.\").optional(),\n sort: z.object({\n attribute: z.string().describe(\"The attribute name to sort by (e.g., 'created-at', 'updated-at', 'status').\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort direction: asc (ascending) or desc (descending).\").optional(),\n}).describe(\"Sort configuration for search results.\").optional(),\n query: z.object({}).describe(\"Search query using boolean logic (AND/OR/NOT) and comparison operators. Supports predicates with operators: eq (equal), gt (greater than), gte (greater than or equal), lt (less than), lte (less than or equal). Example: {'and': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'created-at', 'operator': 'gte', 'value': '2023-01-01T00:00:00Z'}]} or {'or': [{'attribute': 'status', 'operator': 'eq', 'value': 'open'}, {'attribute': 'status', 'operator': 'eq', 'value': 'pending'}]} or {'not': {'attribute': 'status', 'operator': 'eq', 'value': 'closed'}} or simple predicate: {'attribute': 'status', 'operator': 'eq', 'value': 'open'}\").optional(),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Sent as header.\").optional(),\n \"Persona-Version\": z.enum([\"2025-12-08\", \"2025-10-27\", \"2023-01-05\", \"2022-09-01\", \"2021-08-18\", \"2021-07-05\", \"2021-02-21\", \"2020-05-18\"]).describe(\"Server API version.\").optional(),\n}).describe(\"Request model for searching cases in Persona.\");\nconst PersonaSearchCases_CaseAttributesSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name or title of the case.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags associated with the case.\").nullable().optional(),\n status: z.string().describe(\"Current status of the case.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the case was created.\").nullable().optional(),\n resolution: z.string().describe(\"Resolution status of the case.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the case was last updated.\").nullable().optional(),\n \"assignee-id\": z.string().describe(\"ID of the user assigned to the case.\").nullable().optional(),\n}).describe(\"Attributes of a case object.\");\nconst PersonaSearchCases_CaseRelationshipsSchema: z.ZodTypeAny = z.object({\n account: z.object({}).describe(\"Relationship to the associated account.\").nullable().optional(),\n inquiry: z.object({}).describe(\"Relationship to the associated inquiry.\").nullable().optional(),\n}).describe(\"Relationships of a case object.\");\nconst PersonaSearchCases_CaseDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the case.\"),\n type: z.string().describe(\"Resource type, typically 'case'.\"),\n attributes: PersonaSearchCases_CaseAttributesSchema.nullable().optional(),\n relationships: PersonaSearchCases_CaseRelationshipsSchema.nullable().optional(),\n}).describe(\"Case data object returned by Persona API.\");\nconst PersonaSearchCases_PaginationLinksSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL pointing to the next page of data, or null if on the last page. Must be used with POST request and original request body.\").nullable().optional(),\n prev: z.string().describe(\"URL pointing to the previous page of data, or null if on the first page. Must be used with POST request and original request body.\").nullable().optional(),\n}).describe(\"Pagination links for navigating the result set.\");\nexport const PersonaSearchCasesOutput: z.ZodTypeAny = z.object({\n data: z.array(PersonaSearchCases_CaseDataSchema).describe(\"An array of case objects matching the search criteria.\"),\n links: PersonaSearchCases_PaginationLinksSchema.nullable(),\n}).describe(\"Response model for searching cases in Persona.\");\n\nexport const personaSearchCases = action(\"PERSONA_SEARCH_CASES\", {\n slug: \"persona-search-cases\",\n name: \"Search Cases\",\n description: \"Tool to search cases in Persona using advanced query filters with boolean logic. Use when you need to find cases matching specific criteria using operators like eq, gt, gte, lt, lte combined with AND/OR/NOT logic.\",\n input: PersonaSearchCasesInput,\n output: P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CAAC,SAAS,CAAC,CAAC,SAAS;AACtL,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAM7D,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,wDAAwD;EAClH,OAAO,yCAAyC,SAAS;CAC3D,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -0,0 +1,56 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/set-tags.ts
4
+ const PersonaSetTagsInput = zod.z.object({
5
+ meta: zod.z.object({
6
+ "tag-id": zod.z.array(zod.z.string()).describe("ID of the tags to set on the Account. Either tag_id or tag_name must be provided.").optional(),
7
+ "tag-name": zod.z.array(zod.z.string()).describe("Name of the tags to set on the Account. Either tag_id or tag_name must be provided.").optional()
8
+ }).describe("Meta object containing tag information (tag_id or tag_name arrays)."),
9
+ fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.").optional(),
10
+ include: zod.z.string().describe("A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.").optional(),
11
+ "account-id": zod.z.string().describe("The ID of the account to set tags on."),
12
+ "Key-Inflection": zod.z.enum([
13
+ "camel",
14
+ "kebab",
15
+ "snake"
16
+ ]).describe("Key inflection options for API response casing.").optional(),
17
+ "Idempotency-Key": zod.z.string().describe("Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.").optional()
18
+ }).describe("Request parameters for setting tags on a Persona account.");
19
+ const PersonaSetTags_AccountAttributesSchema = zod.z.object({
20
+ tags: zod.z.array(zod.z.string()).describe("List of tags associated with the account.").nullable().optional(),
21
+ fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields associated with the account. Note that fields is not key inflected.").nullable().optional(),
22
+ "created-at": zod.z.string().describe("ISO 8601 timestamp when the account was created.").nullable().optional(),
23
+ "updated-at": zod.z.string().describe("ISO 8601 timestamp when the account was last updated.").nullable().optional(),
24
+ "redacted-at": zod.z.string().describe("ISO 8601 timestamp when the account was redacted, if applicable.").nullable().optional(),
25
+ "reference-id": zod.z.string().describe("External reference ID for the account.").nullable().optional(),
26
+ "account-status": zod.z.string().describe("Status of the account.").nullable().optional(),
27
+ "account-type-name": zod.z.string().describe("Name of the account type.").nullable().optional()
28
+ }).describe("Attributes of a Persona account.");
29
+ const PersonaSetTags_AccountRelationshipDataSchema = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Related resource data.").nullable().optional() }).describe("Relationship data object.");
30
+ const PersonaSetTags_AccountRelationshipsSchema = zod.z.object({ "account-type": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional() }).describe("Relationships of a Persona account.");
31
+ const PersonaSetTags_AccountDataSchema = zod.z.object({
32
+ id: zod.z.string().describe("The unique identifier for the account."),
33
+ type: zod.z.string().describe("The resource type (account)."),
34
+ attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),
35
+ relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional()
36
+ }).describe("Account data object.");
37
+ const PersonaSetTags_IncludedResourceSchema = zod.z.object({
38
+ id: zod.z.string().describe("The unique identifier for the included resource."),
39
+ type: zod.z.string().describe("The type of the included resource."),
40
+ attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Attributes of the included resource.").nullable().optional()
41
+ }).describe("Included related resource.");
42
+ const PersonaSetTagsOutput = zod.z.object({
43
+ data: PersonaSetTags_AccountDataSchema.nullable(),
44
+ included: zod.z.array(PersonaSetTags_IncludedResourceSchema).describe("Related resources that were included in the response based on the 'include' parameter.").nullable().optional()
45
+ }).describe("Response from setting tags on a Persona account.");
46
+ const personaSetTags = require_action.action("PERSONA_SET_TAGS", {
47
+ slug: "persona-set-tags",
48
+ name: "Set Tags on Account",
49
+ description: "Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the provided ones.",
50
+ input: PersonaSetTagsInput,
51
+ output: PersonaSetTagsOutput
52
+ });
53
+ //#endregion
54
+ exports.personaSetTags = personaSetTags;
55
+
56
+ //# sourceMappingURL=set-tags.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-tags.cjs","names":["z","action"],"sources":["../../src/actions/set-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSetTagsInput: z.ZodTypeAny = z.object({\n meta: z.object({\n \"tag-id\": z.array(z.string()).describe(\"ID of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n \"tag-name\": z.array(z.string()).describe(\"Name of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n}).describe(\"Meta object containing tag information (tag_id or tag_name arrays).\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.\").optional(),\n \"account-id\": z.string().describe(\"The ID of the account to set tags on.\"),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Key inflection options for API response casing.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.\").optional(),\n}).describe(\"Request parameters for setting tags on a Persona account.\");\nconst PersonaSetTags_AccountAttributesSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields associated with the account. Note that fields is not key inflected.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n}).describe(\"Attributes of a Persona account.\");\nconst PersonaSetTags_AccountRelationshipDataSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Related resource data.\").nullable().optional(),\n}).describe(\"Relationship data object.\");\nconst PersonaSetTags_AccountRelationshipsSchema: z.ZodTypeAny = z.object({\n \"account-type\": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional(),\n}).describe(\"Relationships of a Persona account.\");\nconst PersonaSetTags_AccountDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the account.\"),\n type: z.string().describe(\"The resource type (account).\"),\n attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional(),\n}).describe(\"Account data object.\");\nconst PersonaSetTags_IncludedResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the included resource.\"),\n type: z.string().describe(\"The type of the included resource.\"),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).describe(\"Included related resource.\");\nexport const PersonaSetTagsOutput: z.ZodTypeAny = z.object({\n data: PersonaSetTags_AccountDataSchema.nullable(),\n included: z.array(PersonaSetTags_IncludedResourceSchema).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).describe(\"Response from setting tags on a Persona account.\");\n\nexport const personaSetTags = action(\"PERSONA_SET_TAGS\", {\n slug: \"persona-set-tags\",\n name: \"Set Tags on Account\",\n description: \"Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the provided ones.\",\n input: PersonaSetTagsInput,\n output: PersonaSetTagsOutput,\n});\n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AAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAM,iCAAiC,SAAS;CAChD,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClL,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/set-tags.d.ts
4
+ declare const PersonaSetTagsInput: z.ZodTypeAny;
5
+ declare const PersonaSetTagsOutput: z.ZodTypeAny;
6
+ declare const personaSetTags: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaSetTags };
9
+ //# sourceMappingURL=set-tags.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-tags.d.cts","names":[],"sources":["../../src/actions/set-tags.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAUoC;AAAA,cA4B3D,oBAAA,EAAsB,CAAA,CAAE,UAG0B;AAAA,cAElD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/set-tags.d.ts
4
+ declare const PersonaSetTagsInput: z.ZodTypeAny;
5
+ declare const PersonaSetTagsOutput: z.ZodTypeAny;
6
+ declare const personaSetTags: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaSetTags };
9
+ //# sourceMappingURL=set-tags.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-tags.d.mts","names":[],"sources":["../../src/actions/set-tags.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAUoC;AAAA,cA4B3D,oBAAA,EAAsB,CAAA,CAAE,UAG0B;AAAA,cAElD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,55 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/set-tags.ts
4
+ const PersonaSetTagsInput = z.object({
5
+ meta: z.object({
6
+ "tag-id": z.array(z.string()).describe("ID of the tags to set on the Account. Either tag_id or tag_name must be provided.").optional(),
7
+ "tag-name": z.array(z.string()).describe("Name of the tags to set on the Account. Either tag_id or tag_name must be provided.").optional()
8
+ }).describe("Meta object containing tag information (tag_id or tag_name arrays)."),
9
+ fields: z.record(z.string(), z.unknown()).describe("Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.").optional(),
10
+ include: z.string().describe("A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.").optional(),
11
+ "account-id": z.string().describe("The ID of the account to set tags on."),
12
+ "Key-Inflection": z.enum([
13
+ "camel",
14
+ "kebab",
15
+ "snake"
16
+ ]).describe("Key inflection options for API response casing.").optional(),
17
+ "Idempotency-Key": z.string().describe("Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.").optional()
18
+ }).describe("Request parameters for setting tags on a Persona account.");
19
+ const PersonaSetTags_AccountAttributesSchema = z.object({
20
+ tags: z.array(z.string()).describe("List of tags associated with the account.").nullable().optional(),
21
+ fields: z.record(z.string(), z.unknown()).describe("Custom fields associated with the account. Note that fields is not key inflected.").nullable().optional(),
22
+ "created-at": z.string().describe("ISO 8601 timestamp when the account was created.").nullable().optional(),
23
+ "updated-at": z.string().describe("ISO 8601 timestamp when the account was last updated.").nullable().optional(),
24
+ "redacted-at": z.string().describe("ISO 8601 timestamp when the account was redacted, if applicable.").nullable().optional(),
25
+ "reference-id": z.string().describe("External reference ID for the account.").nullable().optional(),
26
+ "account-status": z.string().describe("Status of the account.").nullable().optional(),
27
+ "account-type-name": z.string().describe("Name of the account type.").nullable().optional()
28
+ }).describe("Attributes of a Persona account.");
29
+ const PersonaSetTags_AccountRelationshipDataSchema = z.object({ data: z.record(z.string(), z.unknown()).describe("Related resource data.").nullable().optional() }).describe("Relationship data object.");
30
+ const PersonaSetTags_AccountRelationshipsSchema = z.object({ "account-type": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional() }).describe("Relationships of a Persona account.");
31
+ const PersonaSetTags_AccountDataSchema = z.object({
32
+ id: z.string().describe("The unique identifier for the account."),
33
+ type: z.string().describe("The resource type (account)."),
34
+ attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),
35
+ relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional()
36
+ }).describe("Account data object.");
37
+ const PersonaSetTags_IncludedResourceSchema = z.object({
38
+ id: z.string().describe("The unique identifier for the included resource."),
39
+ type: z.string().describe("The type of the included resource."),
40
+ attributes: z.record(z.string(), z.unknown()).describe("Attributes of the included resource.").nullable().optional()
41
+ }).describe("Included related resource.");
42
+ const personaSetTags = action("PERSONA_SET_TAGS", {
43
+ slug: "persona-set-tags",
44
+ name: "Set Tags on Account",
45
+ description: "Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the provided ones.",
46
+ input: PersonaSetTagsInput,
47
+ output: z.object({
48
+ data: PersonaSetTags_AccountDataSchema.nullable(),
49
+ included: z.array(PersonaSetTags_IncludedResourceSchema).describe("Related resources that were included in the response based on the 'include' parameter.").nullable().optional()
50
+ }).describe("Response from setting tags on a Persona account.")
51
+ });
52
+ //#endregion
53
+ export { personaSetTags };
54
+
55
+ //# sourceMappingURL=set-tags.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-tags.mjs","names":[],"sources":["../../src/actions/set-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaSetTagsInput: z.ZodTypeAny = z.object({\n meta: z.object({\n \"tag-id\": z.array(z.string()).describe(\"ID of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n \"tag-name\": z.array(z.string()).describe(\"Name of the tags to set on the Account. Either tag_id or tag_name must be provided.\").optional(),\n}).describe(\"Meta object containing tag information (tag_id or tag_name arrays).\"),\n fields: z.record(z.string(), z.unknown()).describe(\"Comma-separated list(s) of attributes to include in the response. This can be used to customize which attributes will be serialized in the response.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response. This can be used to customize which related resources will be fully serialized in the 'included' key.\").optional(),\n \"account-id\": z.string().describe(\"The ID of the account to set tags on.\"),\n \"Key-Inflection\": z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Key inflection options for API response casing.\").optional(),\n \"Idempotency-Key\": z.string().describe(\"Ensures the request is idempotent. Provide a unique key to prevent duplicate operations.\").optional(),\n}).describe(\"Request parameters for setting tags on a Persona account.\");\nconst PersonaSetTags_AccountAttributesSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields associated with the account. Note that fields is not key inflected.\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the account was created.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"ISO 8601 timestamp when the account was last updated.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"ISO 8601 timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n}).describe(\"Attributes of a Persona account.\");\nconst PersonaSetTags_AccountRelationshipDataSchema: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Related resource data.\").nullable().optional(),\n}).describe(\"Relationship data object.\");\nconst PersonaSetTags_AccountRelationshipsSchema: z.ZodTypeAny = z.object({\n \"account-type\": PersonaSetTags_AccountRelationshipDataSchema.nullable().optional(),\n}).describe(\"Relationships of a Persona account.\");\nconst PersonaSetTags_AccountDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the account.\"),\n type: z.string().describe(\"The resource type (account).\"),\n attributes: PersonaSetTags_AccountAttributesSchema.nullable().optional(),\n relationships: PersonaSetTags_AccountRelationshipsSchema.nullable().optional(),\n}).describe(\"Account data object.\");\nconst PersonaSetTags_IncludedResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the included resource.\"),\n type: z.string().describe(\"The type of the included resource.\"),\n attributes: z.record(z.string(), z.unknown()).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).describe(\"Included related resource.\");\nexport const PersonaSetTagsOutput: z.ZodTypeAny = z.object({\n data: PersonaSetTags_AccountDataSchema.nullable(),\n included: z.array(PersonaSetTags_IncludedResourceSchema).describe(\"Related resources that were included in the response based on the 'include' parameter.\").nullable().optional(),\n}).describe(\"Response from setting tags on a Persona account.\");\n\nexport const personaSetTags = action(\"PERSONA_SET_TAGS\", {\n slug: \"persona-set-tags\",\n name: \"Set Tags on Account\",\n description: \"Tool to set tags on a Persona Account. Use when you need to assign or update tags for an account using either tag IDs or tag names. This operation replaces all existing tags with the prov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,CAAC,SAAS,4BAA4B;AAMxC,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgD,EAAE,OAAO;EACzD,MAAM,iCAAiC,SAAS;EAChD,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
@@ -0,0 +1,67 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-a-webhook.ts
4
+ const PersonaUpdateAWebhookInput = zod.z.object({
5
+ url: zod.z.string().describe("Target URL where webhook events will be sent. Must be a valid HTTPS endpoint.").optional(),
6
+ name: zod.z.string().describe("Name of the webhook for identification purposes.").optional(),
7
+ fields: zod.z.object({}).describe("Comma-separated list(s) of attributes to include in the response. Keys are resource types, values are comma-separated attribute names.").optional(),
8
+ include: zod.z.string().describe("A comma-separated list of relationship paths to include in the response.").optional(),
9
+ webhook_id: zod.z.string().describe("Webhook's ID (starts with 'wbh_')."),
10
+ api_version: zod.z.string().describe("API version to use for this webhook. If not specified, uses the account's default version.").optional(),
11
+ description: zod.z.string().describe("Human-readable description of the webhook's purpose.").optional(),
12
+ enabled_events: zod.z.array(zod.z.string()).describe("List of event types that will trigger this webhook. Common events include 'account.created', 'inquiry.completed', 'verification.passed', etc.").optional(),
13
+ key_inflection: zod.z.enum([
14
+ "camel",
15
+ "kebab",
16
+ "snake"
17
+ ]).describe("Determines casing for the API response.").optional(),
18
+ payload_filter: zod.z.object({}).describe("Filter configuration to limit which events trigger the webhook based on payload attributes.").optional(),
19
+ idempotency_key: zod.z.string().describe("Ensures the request is idempotent. Use the same key for duplicate requests.").optional(),
20
+ persona_version: zod.z.enum([
21
+ "2025-12-08",
22
+ "2025-10-27",
23
+ "2023-01-05",
24
+ "2022-09-01",
25
+ "2021-08-18",
26
+ "2021-07-05",
27
+ "2021-02-21",
28
+ "2020-05-18"
29
+ ]).describe("Server API version.").optional(),
30
+ api_key_inflection: zod.z.string().describe("Casing format for API keys in webhook payload (camel, kebab, or snake).").optional(),
31
+ custom_http_headers: zod.z.object({}).describe("Custom HTTP headers to include in webhook requests for authentication or routing.").optional(),
32
+ api_attributes_blocklist: zod.z.array(zod.z.string()).describe("List of attributes to exclude from the webhook payload for security or data minimization.").optional(),
33
+ file_access_token_expires_in: zod.z.number().int().describe("Duration in seconds for file access token expiration. Controls how long file URLs in webhook payloads remain valid.").optional()
34
+ }).describe("Request model for updating a webhook in Persona.");
35
+ const PersonaUpdateAWebhook_WebhookAttributesSchema = zod.z.object({
36
+ url: zod.z.string().describe("URL where webhook events are sent.").nullable().optional(),
37
+ name: zod.z.string().describe("Name of the webhook.").nullable().optional(),
38
+ status: zod.z.string().describe("Current status of the webhook.").nullable().optional(),
39
+ "created-at": zod.z.string().describe("Timestamp when the webhook was created.").nullable().optional(),
40
+ "api-version": zod.z.string().describe("API version used for the webhook.").nullable().optional(),
41
+ description: zod.z.string().describe("Description of the webhook.").nullable().optional(),
42
+ "enabled-events": zod.z.array(zod.z.string()).describe("List of events enabled for the webhook.").nullable().optional(),
43
+ "payload-filter": zod.z.object({}).describe("Filter configuration for the webhook payload.").nullable().optional(),
44
+ "api-key-inflection": zod.z.string().describe("Key inflection format for the webhook payload.").nullable().optional(),
45
+ "api-attributes-blocklist": zod.z.array(zod.z.string()).describe("List of attributes to block from the webhook payload.").nullable().optional(),
46
+ "file-access-token-expires-in": zod.z.number().int().describe("Expiration time in seconds for file access tokens.").nullable().optional()
47
+ }).describe("Attributes of a webhook in the response.");
48
+ const PersonaUpdateAWebhook_WebhookDataSchema = zod.z.object({
49
+ id: zod.z.string().describe("Unique identifier for the webhook."),
50
+ type: zod.z.string().describe("Resource type, typically 'webhook'."),
51
+ attributes: PersonaUpdateAWebhook_WebhookAttributesSchema.nullable().optional()
52
+ }).describe("Webhook data returned in the response.");
53
+ const PersonaUpdateAWebhookOutput = zod.z.object({
54
+ data: PersonaUpdateAWebhook_WebhookDataSchema.nullable(),
55
+ included: zod.z.array(zod.z.object({})).describe("Excluded from the response by default. Will be an empty array when the include query parameter in the request was explicitly set to empty.").nullable().optional()
56
+ }).describe("Response model returned after updating a webhook in Persona.");
57
+ const personaUpdateAWebhook = require_action.action("PERSONA_UPDATE_A_WEBHOOK", {
58
+ slug: "persona-update-a-webhook",
59
+ name: "Update a Webhook",
60
+ description: "Tool to update a webhook in Persona. Use when you need to modify webhook configuration such as name, description, URL, or enabled events.",
61
+ input: PersonaUpdateAWebhookInput,
62
+ output: PersonaUpdateAWebhookOutput
63
+ });
64
+ //#endregion
65
+ exports.personaUpdateAWebhook = personaUpdateAWebhook;
66
+
67
+ //# sourceMappingURL=update-a-webhook.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-a-webhook.cjs","names":["z","action"],"sources":["../../src/actions/update-a-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaUpdateAWebhookInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Target URL where webhook events will be sent. Must be a valid HTTPS endpoint.\").optional(),\n name: z.string().describe(\"Name of the webhook for identification purposes.\").optional(),\n fields: z.object({}).describe(\"Comma-separated list(s) of attributes to include in the response. Keys are resource types, values are comma-separated attribute names.\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n webhook_id: z.string().describe(\"Webhook's ID (starts with 'wbh_').\"),\n api_version: z.string().describe(\"API version to use for this webhook. If not specified, uses the account's default version.\").optional(),\n description: z.string().describe(\"Human-readable description of the webhook's purpose.\").optional(),\n enabled_events: z.array(z.string()).describe(\"List of event types that will trigger this webhook. Common events include 'account.created', 'inquiry.completed', 'verification.passed', etc.\").optional(),\n key_inflection: z.enum([\"camel\", \"kebab\", \"snake\"]).describe(\"Determines casing for the API response.\").optional(),\n payload_filter: z.object({}).describe(\"Filter configuration to limit which events trigger the webhook based on payload attributes.\").optional(),\n idempotency_key: z.string().describe(\"Ensures the request is idempotent. Use the same key for duplicate requests.\").optional(),\n persona_version: z.enum([\"2025-12-08\", \"2025-10-27\", \"2023-01-05\", \"2022-09-01\", \"2021-08-18\", \"2021-07-05\", \"2021-02-21\", \"2020-05-18\"]).describe(\"Server API version.\").optional(),\n api_key_inflection: z.string().describe(\"Casing format for API keys in webhook payload (camel, kebab, or snake).\").optional(),\n custom_http_headers: z.object({}).describe(\"Custom HTTP headers to include in webhook requests for authentication or routing.\").optional(),\n api_attributes_blocklist: z.array(z.string()).describe(\"List of attributes to exclude from the webhook payload for security or data minimization.\").optional(),\n file_access_token_expires_in: z.number().int().describe(\"Duration in seconds for file access token expiration. Controls how long file URLs in webhook payloads remain valid.\").optional(),\n}).describe(\"Request model for updating a webhook in Persona.\");\nconst PersonaUpdateAWebhook_WebhookAttributesSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL where webhook events are sent.\").nullable().optional(),\n name: z.string().describe(\"Name of the webhook.\").nullable().optional(),\n status: z.string().describe(\"Current status of the webhook.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the webhook was created.\").nullable().optional(),\n \"api-version\": z.string().describe(\"API version used for the webhook.\").nullable().optional(),\n description: z.string().describe(\"Description of the webhook.\").nullable().optional(),\n \"enabled-events\": z.array(z.string()).describe(\"List of events enabled for the webhook.\").nullable().optional(),\n \"payload-filter\": z.object({}).describe(\"Filter configuration for the webhook payload.\").nullable().optional(),\n \"api-key-inflection\": z.string().describe(\"Key inflection format for the webhook payload.\").nullable().optional(),\n \"api-attributes-blocklist\": z.array(z.string()).describe(\"List of attributes to block from the webhook payload.\").nullable().optional(),\n \"file-access-token-expires-in\": z.number().int().describe(\"Expiration time in seconds for file access tokens.\").nullable().optional(),\n}).describe(\"Attributes of a webhook in the response.\");\nconst PersonaUpdateAWebhook_WebhookDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the webhook.\"),\n type: z.string().describe(\"Resource type, typically 'webhook'.\"),\n attributes: PersonaUpdateAWebhook_WebhookAttributesSchema.nullable().optional(),\n}).describe(\"Webhook data returned in the response.\");\nexport const PersonaUpdateAWebhookOutput: z.ZodTypeAny = z.object({\n data: PersonaUpdateAWebhook_WebhookDataSchema.nullable(),\n included: z.array(z.object({})).describe(\"Excluded from the response by default. Will be an empty array when the include query parameter in the request was explicitly set to empty.\").nullable().optional(),\n}).describe(\"Response model returned after updating a webhook in Persona.\");\n\nexport const personaUpdateAWebhook = action(\"PERSONA_UPDATE_A_WEBHOOK\", {\n slug: \"persona-update-a-webhook\",\n name: \"Update a Webhook\",\n description: \"Tool to update a webhook in Persona. Use when you need to modify webhook configuration such as name, description, URL, or enabled events.\",\n input: PersonaUpdateAWebhookInput,\n output: PersonaUpdateAWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CACjL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACxI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CACvM,gBAAgBA,IAAA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,SAAS,CAAC,CAAC,SAAS;AAC7M,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-a-webhook.d.ts
4
+ declare const PersonaUpdateAWebhookInput: z.ZodTypeAny;
5
+ declare const PersonaUpdateAWebhookOutput: z.ZodTypeAny;
6
+ declare const personaUpdateAWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaUpdateAWebhook };
9
+ //# sourceMappingURL=update-a-webhook.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-a-webhook.d.cts","names":[],"sources":["../../src/actions/update-a-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAiBoB;AAAA,cAmBlD,2BAAA,EAA6B,CAAA,CAAE,UAG+B;AAAA,cAE9D,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-a-webhook.d.ts
4
+ declare const PersonaUpdateAWebhookInput: z.ZodTypeAny;
5
+ declare const PersonaUpdateAWebhookOutput: z.ZodTypeAny;
6
+ declare const personaUpdateAWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaUpdateAWebhook };
9
+ //# sourceMappingURL=update-a-webhook.d.mts.map