@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 @@
1
+ {"version":3,"file":"update-a-webhook.d.mts","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,66 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-a-webhook.ts
4
+ const PersonaUpdateAWebhookInput = z.object({
5
+ url: z.string().describe("Target URL where webhook events will be sent. Must be a valid HTTPS endpoint.").optional(),
6
+ name: z.string().describe("Name of the webhook for identification purposes.").optional(),
7
+ 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(),
8
+ include: z.string().describe("A comma-separated list of relationship paths to include in the response.").optional(),
9
+ webhook_id: z.string().describe("Webhook's ID (starts with 'wbh_')."),
10
+ api_version: z.string().describe("API version to use for this webhook. If not specified, uses the account's default version.").optional(),
11
+ description: z.string().describe("Human-readable description of the webhook's purpose.").optional(),
12
+ 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(),
13
+ key_inflection: z.enum([
14
+ "camel",
15
+ "kebab",
16
+ "snake"
17
+ ]).describe("Determines casing for the API response.").optional(),
18
+ payload_filter: z.object({}).describe("Filter configuration to limit which events trigger the webhook based on payload attributes.").optional(),
19
+ idempotency_key: z.string().describe("Ensures the request is idempotent. Use the same key for duplicate requests.").optional(),
20
+ persona_version: 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: z.string().describe("Casing format for API keys in webhook payload (camel, kebab, or snake).").optional(),
31
+ custom_http_headers: z.object({}).describe("Custom HTTP headers to include in webhook requests for authentication or routing.").optional(),
32
+ api_attributes_blocklist: z.array(z.string()).describe("List of attributes to exclude from the webhook payload for security or data minimization.").optional(),
33
+ 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()
34
+ }).describe("Request model for updating a webhook in Persona.");
35
+ const PersonaUpdateAWebhook_WebhookAttributesSchema = z.object({
36
+ url: z.string().describe("URL where webhook events are sent.").nullable().optional(),
37
+ name: z.string().describe("Name of the webhook.").nullable().optional(),
38
+ status: z.string().describe("Current status of the webhook.").nullable().optional(),
39
+ "created-at": z.string().describe("Timestamp when the webhook was created.").nullable().optional(),
40
+ "api-version": z.string().describe("API version used for the webhook.").nullable().optional(),
41
+ description: z.string().describe("Description of the webhook.").nullable().optional(),
42
+ "enabled-events": z.array(z.string()).describe("List of events enabled for the webhook.").nullable().optional(),
43
+ "payload-filter": z.object({}).describe("Filter configuration for the webhook payload.").nullable().optional(),
44
+ "api-key-inflection": z.string().describe("Key inflection format for the webhook payload.").nullable().optional(),
45
+ "api-attributes-blocklist": z.array(z.string()).describe("List of attributes to block from the webhook payload.").nullable().optional(),
46
+ "file-access-token-expires-in": 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 = z.object({
49
+ id: z.string().describe("Unique identifier for the webhook."),
50
+ type: z.string().describe("Resource type, typically 'webhook'."),
51
+ attributes: PersonaUpdateAWebhook_WebhookAttributesSchema.nullable().optional()
52
+ }).describe("Webhook data returned in the response.");
53
+ const personaUpdateAWebhook = action("PERSONA_UPDATE_A_WEBHOOK", {
54
+ slug: "persona-update-a-webhook",
55
+ name: "Update a Webhook",
56
+ description: "Tool to update a webhook in Persona. Use when you need to modify webhook configuration such as name, description, URL, or enabled events.",
57
+ input: PersonaUpdateAWebhookInput,
58
+ output: z.object({
59
+ data: PersonaUpdateAWebhook_WebhookDataSchema.nullable(),
60
+ 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()
61
+ }).describe("Response model returned after updating a webhook in Persona.")
62
+ });
63
+ //#endregion
64
+ export { personaUpdateAWebhook };
65
+
66
+ //# sourceMappingURL=update-a-webhook.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-a-webhook.mjs","names":[],"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,6BAA2C,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACnH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAA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AA8C,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAMpD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,MAAM,wCAAwC,SAAS;EACvD,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7M,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
@@ -0,0 +1,96 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-an-account.ts
4
+ const PersonaUpdateAnAccountInput = zod.z.object({
5
+ data: zod.z.object({ attributes: zod.z.object({
6
+ tags: zod.z.array(zod.z.string()).describe("Tags to associate with the account. Can be set to null to remove all tags.").optional(),
7
+ fields: zod.z.object({}).describe("Custom fields for the account. This is not key inflected.").optional(),
8
+ birthdate: zod.z.string().describe("Birthdate in YYYY-MM-DD format.").optional(),
9
+ "name-last": zod.z.string().describe("Last name of the account holder.").optional(),
10
+ "name-first": zod.z.string().describe("First name of the account holder.").optional(),
11
+ "name-middle": zod.z.string().describe("Middle name of the account holder.").optional(),
12
+ "address-city": zod.z.string().describe("City for the account address.").optional(),
13
+ "country-code": zod.z.string().describe("Two-letter country code (ISO 3166-1 alpha-2).").optional(),
14
+ "phone-number": zod.z.string().describe("Phone number for the account.").optional(),
15
+ "reference-id": zod.z.string().describe("External reference ID for the account.").optional(),
16
+ "selfie-photo": zod.z.object({}).describe("Selfie photo data for the account.").optional(),
17
+ "email-address": zod.z.string().describe("Email address for the account.").optional(),
18
+ "account-status": zod.z.string().describe("Status of the account.").optional(),
19
+ "address-street-1": zod.z.string().describe("First line of the account address.").optional(),
20
+ "address-street-2": zod.z.string().describe("Second line of the account address.").optional(),
21
+ "address-postal-code": zod.z.string().describe("Postal code for the account address.").optional(),
22
+ "address-subdivision": zod.z.string().describe("State or subdivision for the account address.").optional(),
23
+ "social-security-number": zod.z.string().describe("Social security number for the account.").optional()
24
+ }).describe("Attributes to update for the account.") }).describe("The account data to update."),
25
+ include: zod.z.string().describe("A comma-separated list of relationship paths to include in the response.").optional(),
26
+ "account-id": zod.z.string().describe("Unique identifier for the account to update."),
27
+ sparse_fields: zod.z.object({}).describe("Comma-separated list(s) of attributes to include in the response, keyed by resource type.").optional(),
28
+ "Key-Inflection": zod.z.enum([
29
+ "camel",
30
+ "kebab",
31
+ "snake"
32
+ ]).describe("Determines casing for the API response.").optional(),
33
+ "Idempotency-Key": zod.z.string().describe("Ensures the request is idempotent. Sent as header.").optional(),
34
+ "Persona-Version": zod.z.enum([
35
+ "2025-12-08",
36
+ "2025-10-27",
37
+ "2023-01-05",
38
+ "2022-09-01",
39
+ "2021-08-18",
40
+ "2021-07-05",
41
+ "2021-02-21",
42
+ "2020-05-18"
43
+ ]).describe("Server API version.").optional()
44
+ }).describe("Request model for updating an account in Persona.");
45
+ const PersonaUpdateAnAccount_ResponseAccountAttributesSchema = zod.z.object({
46
+ tags: zod.z.array(zod.z.string()).describe("Tags associated with the account.").nullable().optional(),
47
+ fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields for the account. This is not key inflected.").nullable().optional(),
48
+ birthdate: zod.z.string().describe("Birthdate.").nullable().optional(),
49
+ "name-last": zod.z.string().describe("Last name of the account holder.").nullable().optional(),
50
+ "created-at": zod.z.string().describe("Timestamp when the account was created.").nullable().optional(),
51
+ "name-first": zod.z.string().describe("First name of the account holder.").nullable().optional(),
52
+ "updated-at": zod.z.string().describe("Timestamp when the account was last updated.").nullable().optional(),
53
+ "name-middle": zod.z.string().describe("Middle name of the account holder.").nullable().optional(),
54
+ "redacted-at": zod.z.string().describe("Timestamp when the account was redacted, if applicable.").nullable().optional(),
55
+ "address-city": zod.z.string().describe("City of the address.").nullable().optional(),
56
+ "country-code": zod.z.string().describe("Country code.").nullable().optional(),
57
+ "phone-number": zod.z.string().describe("Phone number.").nullable().optional(),
58
+ "reference-id": zod.z.string().describe("External reference ID for the account.").nullable().optional(),
59
+ "email-address": zod.z.string().describe("Email address.").nullable().optional(),
60
+ "account-status": zod.z.string().describe("Status of the account.").nullable().optional(),
61
+ "address-street-1": zod.z.string().describe("First line of the address.").nullable().optional(),
62
+ "address-street-2": zod.z.string().describe("Second line of the address.").nullable().optional(),
63
+ "account-type-name": zod.z.string().describe("Name of the account type.").nullable().optional(),
64
+ "address-postal-code": zod.z.string().describe("Postal code of the address.").nullable().optional(),
65
+ "address-subdivision": zod.z.string().describe("State or subdivision of the address.").nullable().optional(),
66
+ "identification-numbers": zod.z.record(zod.z.string(), zod.z.unknown()).describe("Identification numbers.").nullable().optional(),
67
+ "social-security-number": zod.z.string().describe("Social security number.").nullable().optional()
68
+ }).describe("Attributes returned in the account response.");
69
+ const PersonaUpdateAnAccount_RelationshipDataSchema = zod.z.object({ data: zod.z.object({}).describe("Relationship data.").nullable().optional() }).describe("Relationship data structure.");
70
+ const PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema = zod.z.object({ "account-type": PersonaUpdateAnAccount_RelationshipDataSchema.nullable().optional() }).describe("Relationships in the account response.");
71
+ const PersonaUpdateAnAccount_ResponseAccountDataSchema = zod.z.object({
72
+ id: zod.z.string().describe("Unique identifier for the account."),
73
+ type: zod.z.string().describe("Resource type, typically 'account'."),
74
+ attributes: PersonaUpdateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),
75
+ relationships: PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional()
76
+ }).describe("Account data returned in the response.");
77
+ const PersonaUpdateAnAccount_IncludedResourceSchema = zod.z.object({
78
+ id: zod.z.string().describe("Unique identifier for the included resource."),
79
+ type: zod.z.string().describe("Resource type."),
80
+ attributes: zod.z.object({}).describe("Attributes of the included resource.").nullable().optional()
81
+ }).describe("Included resources in the response.");
82
+ const PersonaUpdateAnAccountOutput = zod.z.object({
83
+ data: PersonaUpdateAnAccount_ResponseAccountDataSchema.nullable(),
84
+ included: zod.z.array(PersonaUpdateAnAccount_IncludedResourceSchema).describe("Related resources included in the response.").nullable().optional()
85
+ }).describe("Response model returned after updating an account in Persona.");
86
+ const personaUpdateAnAccount = require_action.action("PERSONA_UPDATE_AN_ACCOUNT", {
87
+ slug: "persona-update-an-account",
88
+ name: "Update an Account",
89
+ description: "Tool to update an account in Persona. Use when you need to modify account information such as name, email, phone, address, reference ID, or custom fields.",
90
+ input: PersonaUpdateAnAccountInput,
91
+ output: PersonaUpdateAnAccountOutput
92
+ });
93
+ //#endregion
94
+ exports.personaUpdateAnAccount = personaUpdateAnAccount;
95
+
96
+ //# sourceMappingURL=update-an-account.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-an-account.cjs","names":["z","action"],"sources":["../../src/actions/update-an-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaUpdateAnAccountInput: z.ZodTypeAny = z.object({\n data: z.object({\n attributes: z.object({\n tags: z.array(z.string()).describe(\"Tags to associate with the account. Can be set to null to remove all tags.\").optional(),\n fields: z.object({}).describe(\"Custom fields for the account. This is not key inflected.\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").optional(),\n \"selfie-photo\": z.object({}).describe(\"Selfie photo data for the account.\").optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").optional(),\n}).describe(\"Attributes to update for the account.\"),\n}).describe(\"The account data to update.\"),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n \"account-id\": z.string().describe(\"Unique identifier for the account to update.\"),\n sparse_fields: z.object({}).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type.\").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 updating an account in Persona.\");\nconst PersonaUpdateAnAccount_ResponseAccountAttributesSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate.\").nullable().optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the account was created.\").nullable().optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the account was last updated.\").nullable().optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"address-city\": z.string().describe(\"City of the address.\").nullable().optional(),\n \"country-code\": z.string().describe(\"Country code.\").nullable().optional(),\n \"phone-number\": z.string().describe(\"Phone number.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"email-address\": z.string().describe(\"Email address.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"address-street-1\": z.string().describe(\"First line of the address.\").nullable().optional(),\n \"address-street-2\": z.string().describe(\"Second line of the address.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n \"address-postal-code\": z.string().describe(\"Postal code of the address.\").nullable().optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision of the address.\").nullable().optional(),\n \"identification-numbers\": z.record(z.string(), z.unknown()).describe(\"Identification numbers.\").nullable().optional(),\n \"social-security-number\": z.string().describe(\"Social security number.\").nullable().optional(),\n}).describe(\"Attributes returned in the account response.\");\nconst PersonaUpdateAnAccount_RelationshipDataSchema: z.ZodTypeAny = z.object({\n data: z.object({}).describe(\"Relationship data.\").nullable().optional(),\n}).describe(\"Relationship data structure.\");\nconst PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema: z.ZodTypeAny = z.object({\n \"account-type\": PersonaUpdateAnAccount_RelationshipDataSchema.nullable().optional(),\n}).describe(\"Relationships in the account response.\");\nconst PersonaUpdateAnAccount_ResponseAccountDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the account.\"),\n type: z.string().describe(\"Resource type, typically 'account'.\"),\n attributes: PersonaUpdateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),\n relationships: PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional(),\n}).describe(\"Account data returned in the response.\");\nconst PersonaUpdateAnAccount_IncludedResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the included resource.\"),\n type: z.string().describe(\"Resource type.\"),\n attributes: z.object({}).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).describe(\"Included resources in the response.\");\nexport const PersonaUpdateAnAccountOutput: z.ZodTypeAny = z.object({\n data: PersonaUpdateAnAccount_ResponseAccountDataSchema.nullable(),\n included: z.array(PersonaUpdateAnAccount_IncludedResourceSchema).describe(\"Related resources included in the response.\").nullable().optional(),\n}).describe(\"Response model returned after updating an account in Persona.\");\n\nexport const personaUpdateAnAccount = action(\"PERSONA_UPDATE_AN_ACCOUNT\", {\n slug: \"persona-update-an-account\",\n name: \"Update an Account\",\n description: \"Tool to update an account in Persona. Use when you need to modify account information such as name, email, phone, address, reference ID, or custom fields.\",\n input: PersonaUpdateAnAccountInput,\n output: PersonaUpdateAnAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,EACf,YAAYA,IAAAA,EAAE,OAAO;EACrB,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAC1H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAClF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC9E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC9F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,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AAA,OAAO,6BAA6B;CACxE,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-an-account.d.ts
4
+ declare const PersonaUpdateAnAccountInput: z.ZodTypeAny;
5
+ declare const PersonaUpdateAnAccountOutput: z.ZodTypeAny;
6
+ declare const personaUpdateAnAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaUpdateAnAccount };
9
+ //# sourceMappingURL=update-an-account.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-an-account.d.cts","names":[],"sources":["../../src/actions/update-an-account.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UA6BoB;AAAA,cA0CnD,4BAAA,EAA8B,CAAA,CAAE,UAG+B;AAAA,cAE/D,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-an-account.d.ts
4
+ declare const PersonaUpdateAnAccountInput: z.ZodTypeAny;
5
+ declare const PersonaUpdateAnAccountOutput: z.ZodTypeAny;
6
+ declare const personaUpdateAnAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaUpdateAnAccount };
9
+ //# sourceMappingURL=update-an-account.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-an-account.d.mts","names":[],"sources":["../../src/actions/update-an-account.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UA6BoB;AAAA,cA0CnD,4BAAA,EAA8B,CAAA,CAAE,UAG+B;AAAA,cAE/D,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,95 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/update-an-account.ts
4
+ const PersonaUpdateAnAccountInput = z.object({
5
+ data: z.object({ attributes: z.object({
6
+ tags: z.array(z.string()).describe("Tags to associate with the account. Can be set to null to remove all tags.").optional(),
7
+ fields: z.object({}).describe("Custom fields for the account. This is not key inflected.").optional(),
8
+ birthdate: z.string().describe("Birthdate in YYYY-MM-DD format.").optional(),
9
+ "name-last": z.string().describe("Last name of the account holder.").optional(),
10
+ "name-first": z.string().describe("First name of the account holder.").optional(),
11
+ "name-middle": z.string().describe("Middle name of the account holder.").optional(),
12
+ "address-city": z.string().describe("City for the account address.").optional(),
13
+ "country-code": z.string().describe("Two-letter country code (ISO 3166-1 alpha-2).").optional(),
14
+ "phone-number": z.string().describe("Phone number for the account.").optional(),
15
+ "reference-id": z.string().describe("External reference ID for the account.").optional(),
16
+ "selfie-photo": z.object({}).describe("Selfie photo data for the account.").optional(),
17
+ "email-address": z.string().describe("Email address for the account.").optional(),
18
+ "account-status": z.string().describe("Status of the account.").optional(),
19
+ "address-street-1": z.string().describe("First line of the account address.").optional(),
20
+ "address-street-2": z.string().describe("Second line of the account address.").optional(),
21
+ "address-postal-code": z.string().describe("Postal code for the account address.").optional(),
22
+ "address-subdivision": z.string().describe("State or subdivision for the account address.").optional(),
23
+ "social-security-number": z.string().describe("Social security number for the account.").optional()
24
+ }).describe("Attributes to update for the account.") }).describe("The account data to update."),
25
+ include: z.string().describe("A comma-separated list of relationship paths to include in the response.").optional(),
26
+ "account-id": z.string().describe("Unique identifier for the account to update."),
27
+ sparse_fields: z.object({}).describe("Comma-separated list(s) of attributes to include in the response, keyed by resource type.").optional(),
28
+ "Key-Inflection": z.enum([
29
+ "camel",
30
+ "kebab",
31
+ "snake"
32
+ ]).describe("Determines casing for the API response.").optional(),
33
+ "Idempotency-Key": z.string().describe("Ensures the request is idempotent. Sent as header.").optional(),
34
+ "Persona-Version": z.enum([
35
+ "2025-12-08",
36
+ "2025-10-27",
37
+ "2023-01-05",
38
+ "2022-09-01",
39
+ "2021-08-18",
40
+ "2021-07-05",
41
+ "2021-02-21",
42
+ "2020-05-18"
43
+ ]).describe("Server API version.").optional()
44
+ }).describe("Request model for updating an account in Persona.");
45
+ const PersonaUpdateAnAccount_ResponseAccountAttributesSchema = z.object({
46
+ tags: z.array(z.string()).describe("Tags associated with the account.").nullable().optional(),
47
+ fields: z.record(z.string(), z.unknown()).describe("Custom fields for the account. This is not key inflected.").nullable().optional(),
48
+ birthdate: z.string().describe("Birthdate.").nullable().optional(),
49
+ "name-last": z.string().describe("Last name of the account holder.").nullable().optional(),
50
+ "created-at": z.string().describe("Timestamp when the account was created.").nullable().optional(),
51
+ "name-first": z.string().describe("First name of the account holder.").nullable().optional(),
52
+ "updated-at": z.string().describe("Timestamp when the account was last updated.").nullable().optional(),
53
+ "name-middle": z.string().describe("Middle name of the account holder.").nullable().optional(),
54
+ "redacted-at": z.string().describe("Timestamp when the account was redacted, if applicable.").nullable().optional(),
55
+ "address-city": z.string().describe("City of the address.").nullable().optional(),
56
+ "country-code": z.string().describe("Country code.").nullable().optional(),
57
+ "phone-number": z.string().describe("Phone number.").nullable().optional(),
58
+ "reference-id": z.string().describe("External reference ID for the account.").nullable().optional(),
59
+ "email-address": z.string().describe("Email address.").nullable().optional(),
60
+ "account-status": z.string().describe("Status of the account.").nullable().optional(),
61
+ "address-street-1": z.string().describe("First line of the address.").nullable().optional(),
62
+ "address-street-2": z.string().describe("Second line of the address.").nullable().optional(),
63
+ "account-type-name": z.string().describe("Name of the account type.").nullable().optional(),
64
+ "address-postal-code": z.string().describe("Postal code of the address.").nullable().optional(),
65
+ "address-subdivision": z.string().describe("State or subdivision of the address.").nullable().optional(),
66
+ "identification-numbers": z.record(z.string(), z.unknown()).describe("Identification numbers.").nullable().optional(),
67
+ "social-security-number": z.string().describe("Social security number.").nullable().optional()
68
+ }).describe("Attributes returned in the account response.");
69
+ const PersonaUpdateAnAccount_RelationshipDataSchema = z.object({ data: z.object({}).describe("Relationship data.").nullable().optional() }).describe("Relationship data structure.");
70
+ const PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema = z.object({ "account-type": PersonaUpdateAnAccount_RelationshipDataSchema.nullable().optional() }).describe("Relationships in the account response.");
71
+ const PersonaUpdateAnAccount_ResponseAccountDataSchema = z.object({
72
+ id: z.string().describe("Unique identifier for the account."),
73
+ type: z.string().describe("Resource type, typically 'account'."),
74
+ attributes: PersonaUpdateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),
75
+ relationships: PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional()
76
+ }).describe("Account data returned in the response.");
77
+ const PersonaUpdateAnAccount_IncludedResourceSchema = z.object({
78
+ id: z.string().describe("Unique identifier for the included resource."),
79
+ type: z.string().describe("Resource type."),
80
+ attributes: z.object({}).describe("Attributes of the included resource.").nullable().optional()
81
+ }).describe("Included resources in the response.");
82
+ const personaUpdateAnAccount = action("PERSONA_UPDATE_AN_ACCOUNT", {
83
+ slug: "persona-update-an-account",
84
+ name: "Update an Account",
85
+ description: "Tool to update an account in Persona. Use when you need to modify account information such as name, email, phone, address, reference ID, or custom fields.",
86
+ input: PersonaUpdateAnAccountInput,
87
+ output: z.object({
88
+ data: PersonaUpdateAnAccount_ResponseAccountDataSchema.nullable(),
89
+ included: z.array(PersonaUpdateAnAccount_IncludedResourceSchema).describe("Related resources included in the response.").nullable().optional()
90
+ }).describe("Response model returned after updating an account in Persona.")
91
+ });
92
+ //#endregion
93
+ export { personaUpdateAnAccount };
94
+
95
+ //# sourceMappingURL=update-an-account.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-an-account.mjs","names":[],"sources":["../../src/actions/update-an-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaUpdateAnAccountInput: z.ZodTypeAny = z.object({\n data: z.object({\n attributes: z.object({\n tags: z.array(z.string()).describe(\"Tags to associate with the account. Can be set to null to remove all tags.\").optional(),\n fields: z.object({}).describe(\"Custom fields for the account. This is not key inflected.\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format.\").optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").optional(),\n \"address-city\": z.string().describe(\"City for the account address.\").optional(),\n \"country-code\": z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2).\").optional(),\n \"phone-number\": z.string().describe(\"Phone number for the account.\").optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").optional(),\n \"selfie-photo\": z.object({}).describe(\"Selfie photo data for the account.\").optional(),\n \"email-address\": z.string().describe(\"Email address for the account.\").optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").optional(),\n \"address-street-1\": z.string().describe(\"First line of the account address.\").optional(),\n \"address-street-2\": z.string().describe(\"Second line of the account address.\").optional(),\n \"address-postal-code\": z.string().describe(\"Postal code for the account address.\").optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision for the account address.\").optional(),\n \"social-security-number\": z.string().describe(\"Social security number for the account.\").optional(),\n}).describe(\"Attributes to update for the account.\"),\n}).describe(\"The account data to update.\"),\n include: z.string().describe(\"A comma-separated list of relationship paths to include in the response.\").optional(),\n \"account-id\": z.string().describe(\"Unique identifier for the account to update.\"),\n sparse_fields: z.object({}).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type.\").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 updating an account in Persona.\");\nconst PersonaUpdateAnAccount_ResponseAccountAttributesSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Tags associated with the account.\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Custom fields for the account. This is not key inflected.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate.\").nullable().optional(),\n \"name-last\": z.string().describe(\"Last name of the account holder.\").nullable().optional(),\n \"created-at\": z.string().describe(\"Timestamp when the account was created.\").nullable().optional(),\n \"name-first\": z.string().describe(\"First name of the account holder.\").nullable().optional(),\n \"updated-at\": z.string().describe(\"Timestamp when the account was last updated.\").nullable().optional(),\n \"name-middle\": z.string().describe(\"Middle name of the account holder.\").nullable().optional(),\n \"redacted-at\": z.string().describe(\"Timestamp when the account was redacted, if applicable.\").nullable().optional(),\n \"address-city\": z.string().describe(\"City of the address.\").nullable().optional(),\n \"country-code\": z.string().describe(\"Country code.\").nullable().optional(),\n \"phone-number\": z.string().describe(\"Phone number.\").nullable().optional(),\n \"reference-id\": z.string().describe(\"External reference ID for the account.\").nullable().optional(),\n \"email-address\": z.string().describe(\"Email address.\").nullable().optional(),\n \"account-status\": z.string().describe(\"Status of the account.\").nullable().optional(),\n \"address-street-1\": z.string().describe(\"First line of the address.\").nullable().optional(),\n \"address-street-2\": z.string().describe(\"Second line of the address.\").nullable().optional(),\n \"account-type-name\": z.string().describe(\"Name of the account type.\").nullable().optional(),\n \"address-postal-code\": z.string().describe(\"Postal code of the address.\").nullable().optional(),\n \"address-subdivision\": z.string().describe(\"State or subdivision of the address.\").nullable().optional(),\n \"identification-numbers\": z.record(z.string(), z.unknown()).describe(\"Identification numbers.\").nullable().optional(),\n \"social-security-number\": z.string().describe(\"Social security number.\").nullable().optional(),\n}).describe(\"Attributes returned in the account response.\");\nconst PersonaUpdateAnAccount_RelationshipDataSchema: z.ZodTypeAny = z.object({\n data: z.object({}).describe(\"Relationship data.\").nullable().optional(),\n}).describe(\"Relationship data structure.\");\nconst PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema: z.ZodTypeAny = z.object({\n \"account-type\": PersonaUpdateAnAccount_RelationshipDataSchema.nullable().optional(),\n}).describe(\"Relationships in the account response.\");\nconst PersonaUpdateAnAccount_ResponseAccountDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the account.\"),\n type: z.string().describe(\"Resource type, typically 'account'.\"),\n attributes: PersonaUpdateAnAccount_ResponseAccountAttributesSchema.nullable().optional(),\n relationships: PersonaUpdateAnAccount_ResponseAccountRelationshipsSchema.nullable().optional(),\n}).describe(\"Account data returned in the response.\");\nconst PersonaUpdateAnAccount_IncludedResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the included resource.\"),\n type: z.string().describe(\"Resource type.\"),\n attributes: z.object({}).describe(\"Attributes of the included resource.\").nullable().optional(),\n}).describe(\"Included resources in the response.\");\nexport const PersonaUpdateAnAccountOutput: z.ZodTypeAny = z.object({\n data: PersonaUpdateAnAccount_ResponseAccountDataSchema.nullable(),\n included: z.array(PersonaUpdateAnAccount_IncludedResourceSchema).describe(\"Related resources included in the response.\").nullable().optional(),\n}).describe(\"Response model returned after updating an account in Persona.\");\n\nexport const personaUpdateAnAccount = action(\"PERSONA_UPDATE_AN_ACCOUNT\", {\n slug: \"persona-update-an-account\",\n name: \"Update an Account\",\n description: \"Tool to update an account in Persona. Use when you need to modify account information such as name, email, phone, address, reference ID, or custom fields.\",\n input: PersonaUpdateAnAccountInput,\n output: PersonaUpdateAnAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,OAAO;EACrB,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,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UAAU,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
@@ -0,0 +1,86 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-document-generic.ts
4
+ const PersonaUpdateDocumentGenericInput = zod.z.object({
5
+ data: zod.z.object({ attributes: zod.z.object({
6
+ kind: zod.z.string().describe("Type of document. This field can be used to change the document kind/type.").optional(),
7
+ files: zod.z.array(zod.z.string()).describe("List of file IDs to attach to the document. Updates the files array.").optional(),
8
+ fields: zod.z.object({}).describe("Custom fields to update in the document. This is not key inflected. Pass the fields you want to update as key-value pairs.").optional()
9
+ }).describe("Document attributes to update including fields, files, and kind.") }).describe("Document data containing attributes to update."),
10
+ fields: zod.z.object({}).describe("Comma-separated list(s) of attributes to include in the response, keyed by resource type. This can be used to customize which attributes will be serialized in the response. See https://docs.withpersona.com/serialization#sparse-fieldsets").optional(),
11
+ include: zod.z.string().describe("A comma-separated list of relationship paths. This can be used to customize which related resources will be fully serialized in the included key in the response. See https://docs.withpersona.com/serialization#inclusion-of-related-resources").optional(),
12
+ "document-id": zod.z.string().describe("The unique identifier of the generic document to update."),
13
+ "Key-Inflection": zod.z.enum([
14
+ "camel",
15
+ "kebab",
16
+ "snake"
17
+ ]).describe("Determines casing for the API response.").optional(),
18
+ "Idempotency-Key": zod.z.string().describe("Ensures the request is idempotent. Use the same key for retries. Sent as header.").optional(),
19
+ "Persona-Version": zod.z.enum([
20
+ "2025-12-08",
21
+ "2025-10-27",
22
+ "2023-01-05",
23
+ "2022-09-01",
24
+ "2021-08-18",
25
+ "2021-07-05",
26
+ "2021-02-21",
27
+ "2020-05-18"
28
+ ]).describe("Server API version.").optional()
29
+ }).describe("Request model for updating a generic document in Persona.");
30
+ const PersonaUpdateDocumentGeneric_DocumentAttributesResponseSchema = zod.z.object({
31
+ kind: zod.z.string().describe("Kind/type of the document.").nullable().optional(),
32
+ files: zod.z.array(zod.z.object({})).describe("List of file objects attached to the document.").nullable().optional(),
33
+ fields: zod.z.object({}).describe("Custom fields extracted from the document.").nullable().optional(),
34
+ status: zod.z.string().describe("Status of the document (e.g., pending, approved, failed).").nullable().optional(),
35
+ "created-at": zod.z.string().describe("ISO 8601 timestamp when the document was created.").nullable().optional(),
36
+ "processed-at": zod.z.string().describe("ISO 8601 timestamp when the document was processed.").nullable().optional(),
37
+ "document-type": zod.z.string().describe("Type of the document detected.").nullable().optional(),
38
+ "processed-at-ts": zod.z.number().int().describe("Unix timestamp when the document was processed.").nullable().optional(),
39
+ "files-normalized": zod.z.array(zod.z.object({})).describe("Normalized file objects.").nullable().optional(),
40
+ "extraction-responses": zod.z.array(zod.z.object({})).describe("List of extraction responses from the document.").nullable().optional()
41
+ }).describe("Attributes of a generic document object.");
42
+ const PersonaUpdateDocumentGeneric_RelationshipDataSchema = zod.z.object({ data: zod.z.union([
43
+ zod.z.object({}),
44
+ zod.z.array(zod.z.object({})),
45
+ zod.z.array(zod.z.union([
46
+ zod.z.string(),
47
+ zod.z.number().int(),
48
+ zod.z.number(),
49
+ zod.z.boolean()
50
+ ]).nullable())
51
+ ]).optional() }).describe("Relationship data that can contain either a reference or a list.");
52
+ const PersonaUpdateDocumentGeneric_DocumentRelationshipsSchema = zod.z.object({
53
+ inquiry: PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),
54
+ template: PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),
55
+ transaction: PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),
56
+ "document-files": PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),
57
+ "inquiry-template": PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),
58
+ "inquiry-template-version": PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional()
59
+ }).describe("Relationships of a generic document object.");
60
+ const PersonaUpdateDocumentGeneric_DocumentDataResponseSchema = zod.z.object({
61
+ id: zod.z.string().describe("Unique identifier of the document."),
62
+ type: zod.z.string().describe("Type of the resource, typically 'document/generic'."),
63
+ attributes: PersonaUpdateDocumentGeneric_DocumentAttributesResponseSchema.nullable().optional(),
64
+ relationships: PersonaUpdateDocumentGeneric_DocumentRelationshipsSchema.nullable().optional()
65
+ }).describe("Generic document object returned by Persona API.");
66
+ const PersonaUpdateDocumentGeneric_IncludedResourceSchema = zod.z.object({
67
+ id: zod.z.string().describe("Unique identifier of the related resource."),
68
+ type: zod.z.string().describe("Type of the related resource."),
69
+ attributes: zod.z.object({}).describe("Attributes of the related resource.").nullable().optional(),
70
+ relationships: zod.z.object({}).describe("Relationships of the related resource.").nullable().optional()
71
+ }).describe("A related resource object that may be included in the response.");
72
+ const PersonaUpdateDocumentGenericOutput = zod.z.object({
73
+ data: PersonaUpdateDocumentGeneric_DocumentDataResponseSchema.nullable(),
74
+ included: zod.z.array(PersonaUpdateDocumentGeneric_IncludedResourceSchema).describe("Related resources included in the response when specified via the include parameter. Excluded from the response by default.").nullable().optional()
75
+ }).describe("Response model for updating a generic document in Persona.");
76
+ const personaUpdateDocumentGeneric = require_action.action("PERSONA_UPDATE_DOCUMENT_GENERIC", {
77
+ slug: "persona-update-document-generic",
78
+ name: "Update Generic Document",
79
+ description: "Tool to update a generic document in Persona. Use when you need to modify fields, files, or kind of an existing document by its ID.",
80
+ input: PersonaUpdateDocumentGenericInput,
81
+ output: PersonaUpdateDocumentGenericOutput
82
+ });
83
+ //#endregion
84
+ exports.personaUpdateDocumentGeneric = personaUpdateDocumentGeneric;
85
+
86
+ //# sourceMappingURL=update-document-generic.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-document-generic.cjs","names":["z","action"],"sources":["../../src/actions/update-document-generic.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PersonaUpdateDocumentGenericInput: z.ZodTypeAny = z.object({\n data: z.object({\n attributes: z.object({\n kind: z.string().describe(\"Type of document. This field can be used to change the document kind/type.\").optional(),\n files: z.array(z.string()).describe(\"List of file IDs to attach to the document. Updates the files array.\").optional(),\n fields: z.object({}).describe(\"Custom fields to update in the document. This is not key inflected. Pass the fields you want to update as key-value pairs.\").optional(),\n}).describe(\"Document attributes to update including fields, files, and kind.\"),\n}).describe(\"Document data containing attributes to update.\"),\n fields: z.object({}).describe(\"Comma-separated list(s) of attributes to include in the response, keyed by resource type. This can be used to customize which attributes will be serialized in the response. See https://docs.withpersona.com/serialization#sparse-fieldsets\").optional(),\n include: z.string().describe(\"A comma-separated list of relationship paths. This can be used to customize which related resources will be fully serialized in the included key in the response. See https://docs.withpersona.com/serialization#inclusion-of-related-resources\").optional(),\n \"document-id\": z.string().describe(\"The unique identifier of the generic document to update.\"),\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. Use the same key for retries. 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 updating a generic document in Persona.\");\nconst PersonaUpdateDocumentGeneric_DocumentAttributesResponseSchema: z.ZodTypeAny = z.object({\n kind: z.string().describe(\"Kind/type of the document.\").nullable().optional(),\n files: z.array(z.object({})).describe(\"List of file objects attached to the document.\").nullable().optional(),\n fields: z.object({}).describe(\"Custom fields extracted from the document.\").nullable().optional(),\n status: z.string().describe(\"Status of the document (e.g., pending, approved, failed).\").nullable().optional(),\n \"created-at\": z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n \"processed-at\": z.string().describe(\"ISO 8601 timestamp when the document was processed.\").nullable().optional(),\n \"document-type\": z.string().describe(\"Type of the document detected.\").nullable().optional(),\n \"processed-at-ts\": z.number().int().describe(\"Unix timestamp when the document was processed.\").nullable().optional(),\n \"files-normalized\": z.array(z.object({})).describe(\"Normalized file objects.\").nullable().optional(),\n \"extraction-responses\": z.array(z.object({})).describe(\"List of extraction responses from the document.\").nullable().optional(),\n}).describe(\"Attributes of a generic document object.\");\nconst PersonaUpdateDocumentGeneric_RelationshipDataSchema: z.ZodTypeAny = z.object({\n data: z.union([z.object({}), z.array(z.object({})), z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable())]).optional(),\n}).describe(\"Relationship data that can contain either a reference or a list.\");\nconst PersonaUpdateDocumentGeneric_DocumentRelationshipsSchema: z.ZodTypeAny = z.object({\n inquiry: PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),\n template: PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),\n transaction: PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),\n \"document-files\": PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),\n \"inquiry-template\": PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),\n \"inquiry-template-version\": PersonaUpdateDocumentGeneric_RelationshipDataSchema.nullable().optional(),\n}).describe(\"Relationships of a generic document object.\");\nconst PersonaUpdateDocumentGeneric_DocumentDataResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the document.\"),\n type: z.string().describe(\"Type of the resource, typically 'document/generic'.\"),\n attributes: PersonaUpdateDocumentGeneric_DocumentAttributesResponseSchema.nullable().optional(),\n relationships: PersonaUpdateDocumentGeneric_DocumentRelationshipsSchema.nullable().optional(),\n}).describe(\"Generic document object returned by Persona API.\");\nconst PersonaUpdateDocumentGeneric_IncludedResourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the related resource.\"),\n type: z.string().describe(\"Type of the related resource.\"),\n attributes: z.object({}).describe(\"Attributes of the related resource.\").nullable().optional(),\n relationships: z.object({}).describe(\"Relationships of the related resource.\").nullable().optional(),\n}).describe(\"A related resource object that may be included in the response.\");\nexport const PersonaUpdateDocumentGenericOutput: z.ZodTypeAny = z.object({\n data: PersonaUpdateDocumentGeneric_DocumentDataResponseSchema.nullable(),\n included: z.array(PersonaUpdateDocumentGeneric_IncludedResourceSchema).describe(\"Related resources included in the response when specified via the include parameter. Excluded from the response by default.\").nullable().optional(),\n}).describe(\"Response model for updating a generic document in Persona.\");\n\nexport const personaUpdateDocumentGeneric = action(\"PERSONA_UPDATE_DOCUMENT_GENERIC\", {\n slug: \"persona-update-document-generic\",\n name: \"Update Generic Document\",\n description: \"Tool to update a generic document in Persona. Use when you need to modify fields, files, or kind of an existing document by its ID.\",\n input: PersonaUpdateDocumentGenericInput,\n output: PersonaUpdateDocumentGenericOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,EACf,YAAYA,IAAAA,EAAE,OAAO;EACrB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACjH,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACvK,CAAC,CAAC,CAAC,SAAS,kEAAkE,EAC9E,CAAC,CAAC,CAAC,SAAS,gDAAgD;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8OAA8O,CAAC,CAAC,SAAS;CACvR,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iPAAiP,CAAC,CAAC,SAAS;CACzR,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC7F,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAS;CAAO,CAAC,CA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;CAC/E,YAAY,8DAA8D,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAe,yDAAyD,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAM,wDAAwD,SAAS;CACvE,UAAUA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,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-document-generic.d.ts
4
+ declare const PersonaUpdateDocumentGenericInput: z.ZodTypeAny;
5
+ declare const PersonaUpdateDocumentGenericOutput: z.ZodTypeAny;
6
+ declare const personaUpdateDocumentGeneric: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaUpdateDocumentGeneric };
9
+ //# sourceMappingURL=update-document-generic.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-document-generic.d.cts","names":[],"sources":["../../src/actions/update-document-generic.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAcsB;AAAA,cAoC3D,kCAAA,EAAoC,CAAA,CAAE,UAGsB;AAAA,cAE5D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-document-generic.d.ts
4
+ declare const PersonaUpdateDocumentGenericInput: z.ZodTypeAny;
5
+ declare const PersonaUpdateDocumentGenericOutput: z.ZodTypeAny;
6
+ declare const personaUpdateDocumentGeneric: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { personaUpdateDocumentGeneric };
9
+ //# sourceMappingURL=update-document-generic.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-document-generic.d.mts","names":[],"sources":["../../src/actions/update-document-generic.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAcsB;AAAA,cAoC3D,kCAAA,EAAoC,CAAA,CAAE,UAGsB;AAAA,cAE5D,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}