@delopay/sdk 0.403.0 → 0.409.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 (1117) hide show
  1. package/README.md +23 -0
  2. package/dist/airwallexCard.cjs +41 -0
  3. package/dist/airwallexCard.cjs.map +1 -0
  4. package/dist/airwallexCard.d.cts +214 -0
  5. package/dist/airwallexCard.d.ts +214 -0
  6. package/dist/airwallexCard.js +41 -0
  7. package/dist/airwallexCard.js.map +1 -0
  8. package/dist/branding.cjs +235 -0
  9. package/dist/branding.cjs.map +1 -0
  10. package/dist/branding.d.cts +784 -0
  11. package/dist/branding.d.ts +784 -0
  12. package/dist/branding.js +235 -0
  13. package/dist/branding.js.map +1 -0
  14. package/dist/cardFormStyles.cjs +77 -0
  15. package/dist/cardFormStyles.cjs.map +1 -0
  16. package/dist/cardFormStyles.d.cts +182 -0
  17. package/dist/cardFormStyles.d.ts +182 -0
  18. package/dist/cardFormStyles.js +77 -0
  19. package/dist/cardFormStyles.js.map +1 -0
  20. package/dist/checkoutSession.cjs +7 -0
  21. package/dist/checkoutSession.cjs.map +1 -0
  22. package/dist/checkoutSession.d.cts +662 -0
  23. package/dist/checkoutSession.d.ts +662 -0
  24. package/dist/checkoutSession.js +7 -0
  25. package/dist/checkoutSession.js.map +1 -0
  26. package/dist/chunk-244VZFFO.cjs +27 -0
  27. package/dist/chunk-244VZFFO.cjs.map +1 -0
  28. package/dist/chunk-26THONSG.js +274 -0
  29. package/dist/chunk-26THONSG.js.map +1 -0
  30. package/dist/chunk-27NVIXDV.js +24 -0
  31. package/dist/chunk-27NVIXDV.js.map +1 -0
  32. package/dist/chunk-2C5XHXAY.js +19 -0
  33. package/dist/chunk-2C5XHXAY.js.map +1 -0
  34. package/dist/chunk-2IJRBJXW.cjs +35 -0
  35. package/dist/chunk-2IJRBJXW.cjs.map +1 -0
  36. package/dist/chunk-2JSBGTTW.js +99 -0
  37. package/dist/chunk-2JSBGTTW.js.map +1 -0
  38. package/dist/chunk-2PC2VAR7.js +217 -0
  39. package/dist/chunk-2PC2VAR7.js.map +1 -0
  40. package/dist/chunk-2QMSBWQY.js +453 -0
  41. package/dist/chunk-2QMSBWQY.js.map +1 -0
  42. package/dist/chunk-2RGSWTDI.js +19 -0
  43. package/dist/chunk-2RGSWTDI.js.map +1 -0
  44. package/dist/chunk-2TQA6UYY.js +228 -0
  45. package/dist/chunk-2TQA6UYY.js.map +1 -0
  46. package/dist/chunk-2XAJIA23.js +20 -0
  47. package/dist/chunk-2XAJIA23.js.map +1 -0
  48. package/dist/chunk-34AF36TY.js +89 -0
  49. package/dist/chunk-34AF36TY.js.map +1 -0
  50. package/dist/chunk-34PC72O7.cjs +73 -0
  51. package/dist/chunk-34PC72O7.cjs.map +1 -0
  52. package/dist/chunk-37BJUQ32.js +37 -0
  53. package/dist/chunk-37BJUQ32.js.map +1 -0
  54. package/dist/chunk-3GBWQWTP.cjs +54 -0
  55. package/dist/chunk-3GBWQWTP.cjs.map +1 -0
  56. package/dist/chunk-3GMGEP5I.js +43 -0
  57. package/dist/chunk-3GMGEP5I.js.map +1 -0
  58. package/dist/chunk-3L3B46AZ.js +44 -0
  59. package/dist/chunk-3L3B46AZ.js.map +1 -0
  60. package/dist/chunk-3NKFPZRS.js +973 -0
  61. package/dist/chunk-3NKFPZRS.js.map +1 -0
  62. package/dist/chunk-3ST4NW2T.js +35 -0
  63. package/dist/chunk-3ST4NW2T.js.map +1 -0
  64. package/dist/chunk-3YBBJT3Y.cjs +64 -0
  65. package/dist/chunk-3YBBJT3Y.cjs.map +1 -0
  66. package/dist/chunk-3YUKTCY2.js +71 -0
  67. package/dist/chunk-3YUKTCY2.js.map +1 -0
  68. package/dist/chunk-3ZHS3MFZ.js +35 -0
  69. package/dist/chunk-3ZHS3MFZ.js.map +1 -0
  70. package/dist/chunk-44QBWVRS.cjs +39 -0
  71. package/dist/chunk-44QBWVRS.cjs.map +1 -0
  72. package/dist/chunk-4EKAWNYI.cjs +69 -0
  73. package/dist/chunk-4EKAWNYI.cjs.map +1 -0
  74. package/dist/chunk-4FVOCZIM.js +15 -0
  75. package/dist/chunk-4FVOCZIM.js.map +1 -0
  76. package/dist/chunk-4LN4BR2T.cjs +262 -0
  77. package/dist/chunk-4LN4BR2T.cjs.map +1 -0
  78. package/dist/chunk-4T3MXBO2.js +114 -0
  79. package/dist/chunk-4T3MXBO2.js.map +1 -0
  80. package/dist/chunk-4T4XHPYN.cjs +135 -0
  81. package/dist/chunk-4T4XHPYN.cjs.map +1 -0
  82. package/dist/chunk-55XO7BFC.js +23 -0
  83. package/dist/chunk-55XO7BFC.js.map +1 -0
  84. package/dist/chunk-5CITBN33.cjs +485 -0
  85. package/dist/chunk-5CITBN33.cjs.map +1 -0
  86. package/dist/chunk-5CNBINCX.cjs +54 -0
  87. package/dist/chunk-5CNBINCX.cjs.map +1 -0
  88. package/dist/chunk-5HCKC4HF.cjs +217 -0
  89. package/dist/chunk-5HCKC4HF.cjs.map +1 -0
  90. package/dist/chunk-5O2JSQYA.cjs +114 -0
  91. package/dist/chunk-5O2JSQYA.cjs.map +1 -0
  92. package/dist/chunk-5P2AO6XY.js +202 -0
  93. package/dist/chunk-5P2AO6XY.js.map +1 -0
  94. package/dist/chunk-5VS3SUPL.js +125 -0
  95. package/dist/chunk-5VS3SUPL.js.map +1 -0
  96. package/dist/chunk-645BQ53W.js +84 -0
  97. package/dist/chunk-645BQ53W.js.map +1 -0
  98. package/dist/chunk-6EBY2KKL.cjs +43 -0
  99. package/dist/chunk-6EBY2KKL.cjs.map +1 -0
  100. package/dist/chunk-6H7K5DDI.js +307 -0
  101. package/dist/chunk-6H7K5DDI.js.map +1 -0
  102. package/dist/chunk-6LOWE2YI.cjs +23 -0
  103. package/dist/chunk-6LOWE2YI.cjs.map +1 -0
  104. package/dist/chunk-6LSG5Z4T.cjs +122 -0
  105. package/dist/chunk-6LSG5Z4T.cjs.map +1 -0
  106. package/dist/chunk-6QGC52VH.js +177 -0
  107. package/dist/chunk-6QGC52VH.js.map +1 -0
  108. package/dist/chunk-6SU2MTN2.cjs +17 -0
  109. package/dist/chunk-6SU2MTN2.cjs.map +1 -0
  110. package/dist/chunk-6TBA7KZO.js +132 -0
  111. package/dist/chunk-6TBA7KZO.js.map +1 -0
  112. package/dist/chunk-6VIC6Y7T.js +64 -0
  113. package/dist/chunk-6VIC6Y7T.js.map +1 -0
  114. package/dist/chunk-6YCDLSIU.cjs +105 -0
  115. package/dist/chunk-6YCDLSIU.cjs.map +1 -0
  116. package/dist/chunk-75E5WNJG.cjs +122 -0
  117. package/dist/chunk-75E5WNJG.cjs.map +1 -0
  118. package/dist/chunk-7ITPMVDB.cjs +108 -0
  119. package/dist/chunk-7ITPMVDB.cjs.map +1 -0
  120. package/dist/chunk-7JV6VVO7.cjs +43 -0
  121. package/dist/chunk-7JV6VVO7.cjs.map +1 -0
  122. package/dist/chunk-7M2KEERO.js +311 -0
  123. package/dist/chunk-7M2KEERO.js.map +1 -0
  124. package/dist/chunk-7QGASY6O.js +134 -0
  125. package/dist/chunk-7QGASY6O.js.map +1 -0
  126. package/dist/chunk-7QZCUXWB.cjs +15 -0
  127. package/dist/chunk-7QZCUXWB.cjs.map +1 -0
  128. package/dist/chunk-7VXF5D67.cjs +23 -0
  129. package/dist/chunk-7VXF5D67.cjs.map +1 -0
  130. package/dist/chunk-7YIDBPIU.js +208 -0
  131. package/dist/chunk-7YIDBPIU.js.map +1 -0
  132. package/dist/chunk-ACZ2R47X.cjs +140 -0
  133. package/dist/chunk-ACZ2R47X.cjs.map +1 -0
  134. package/dist/chunk-AQ5NYBU4.cjs +340 -0
  135. package/dist/chunk-AQ5NYBU4.cjs.map +1 -0
  136. package/dist/chunk-AREMIQLZ.js +202 -0
  137. package/dist/chunk-AREMIQLZ.js.map +1 -0
  138. package/dist/chunk-AYUYJO3I.cjs +44 -0
  139. package/dist/chunk-AYUYJO3I.cjs.map +1 -0
  140. package/dist/chunk-B2TCNGC2.cjs +536 -0
  141. package/dist/chunk-B2TCNGC2.cjs.map +1 -0
  142. package/dist/chunk-B72YNBLS.js +628 -0
  143. package/dist/chunk-B72YNBLS.js.map +1 -0
  144. package/dist/chunk-BCA3TCGS.cjs +185 -0
  145. package/dist/chunk-BCA3TCGS.cjs.map +1 -0
  146. package/dist/chunk-BEND2MZX.js +108 -0
  147. package/dist/chunk-BEND2MZX.js.map +1 -0
  148. package/dist/chunk-BF7IX2O4.js +128 -0
  149. package/dist/chunk-BF7IX2O4.js.map +1 -0
  150. package/dist/chunk-BOU2TQ6U.cjs +1 -0
  151. package/dist/chunk-BOU2TQ6U.cjs.map +1 -0
  152. package/dist/chunk-BP6KDQ6I.cjs +52 -0
  153. package/dist/chunk-BP6KDQ6I.cjs.map +1 -0
  154. package/dist/chunk-BRY3W7N3.cjs +43 -0
  155. package/dist/chunk-BRY3W7N3.cjs.map +1 -0
  156. package/dist/chunk-CAMALM35.cjs +277 -0
  157. package/dist/chunk-CAMALM35.cjs.map +1 -0
  158. package/dist/chunk-CCN44NZJ.cjs +134 -0
  159. package/dist/chunk-CCN44NZJ.cjs.map +1 -0
  160. package/dist/chunk-CECSSOIZ.js +44 -0
  161. package/dist/chunk-CECSSOIZ.js.map +1 -0
  162. package/dist/chunk-CKKNFFKP.cjs +311 -0
  163. package/dist/chunk-CKKNFFKP.cjs.map +1 -0
  164. package/dist/chunk-CMETZEUX.js +168 -0
  165. package/dist/chunk-CMETZEUX.js.map +1 -0
  166. package/dist/chunk-CR3JBTP3.cjs +31 -0
  167. package/dist/chunk-CR3JBTP3.cjs.map +1 -0
  168. package/dist/chunk-CRNICOYA.js +157 -0
  169. package/dist/chunk-CRNICOYA.js.map +1 -0
  170. package/dist/chunk-CSY3IZOC.js +695 -0
  171. package/dist/chunk-CSY3IZOC.js.map +1 -0
  172. package/dist/chunk-CTB54SCJ.js +43 -0
  173. package/dist/chunk-CTB54SCJ.js.map +1 -0
  174. package/dist/chunk-D3D73ANJ.js +39 -0
  175. package/dist/chunk-D3D73ANJ.js.map +1 -0
  176. package/dist/chunk-DECN4QU3.js +33 -0
  177. package/dist/chunk-DECN4QU3.js.map +1 -0
  178. package/dist/chunk-DFC4T6FA.js +137 -0
  179. package/dist/chunk-DFC4T6FA.js.map +1 -0
  180. package/dist/chunk-DJASVBOJ.cjs +61 -0
  181. package/dist/chunk-DJASVBOJ.cjs.map +1 -0
  182. package/dist/chunk-DLKGOSZR.js +73 -0
  183. package/dist/chunk-DLKGOSZR.js.map +1 -0
  184. package/dist/chunk-DO2DYNFW.js +122 -0
  185. package/dist/chunk-DO2DYNFW.js.map +1 -0
  186. package/dist/chunk-DVA3T3MD.js +67 -0
  187. package/dist/chunk-DVA3T3MD.js.map +1 -0
  188. package/dist/chunk-DZM3UP7F.cjs +148 -0
  189. package/dist/chunk-DZM3UP7F.cjs.map +1 -0
  190. package/dist/chunk-ENPSUWTS.cjs +35 -0
  191. package/dist/chunk-ENPSUWTS.cjs.map +1 -0
  192. package/dist/chunk-EQ6P6ZND.cjs +177 -0
  193. package/dist/chunk-EQ6P6ZND.cjs.map +1 -0
  194. package/dist/chunk-EXPWQBI3.cjs +23 -0
  195. package/dist/chunk-EXPWQBI3.cjs.map +1 -0
  196. package/dist/chunk-EXW4VDRM.js +57 -0
  197. package/dist/chunk-EXW4VDRM.js.map +1 -0
  198. package/dist/chunk-F3I5DOWV.cjs +14 -0
  199. package/dist/chunk-F3I5DOWV.cjs.map +1 -0
  200. package/dist/chunk-F6JABQLJ.js +720 -0
  201. package/dist/chunk-F6JABQLJ.js.map +1 -0
  202. package/dist/chunk-F6S3WCCB.cjs +40 -0
  203. package/dist/chunk-F6S3WCCB.cjs.map +1 -0
  204. package/dist/chunk-FI7NLDWZ.js +1 -0
  205. package/dist/chunk-FI7NLDWZ.js.map +1 -0
  206. package/dist/chunk-FQRC4NJG.cjs +202 -0
  207. package/dist/chunk-FQRC4NJG.cjs.map +1 -0
  208. package/dist/chunk-FYISDU2Y.cjs +137 -0
  209. package/dist/chunk-FYISDU2Y.cjs.map +1 -0
  210. package/dist/chunk-FZYEZLTM.js +59 -0
  211. package/dist/chunk-FZYEZLTM.js.map +1 -0
  212. package/dist/chunk-G7FHCGT5.js +140 -0
  213. package/dist/chunk-G7FHCGT5.js.map +1 -0
  214. package/dist/chunk-GA3KXPIF.cjs +720 -0
  215. package/dist/chunk-GA3KXPIF.cjs.map +1 -0
  216. package/dist/chunk-GEYCGYAN.js +122 -0
  217. package/dist/chunk-GEYCGYAN.js.map +1 -0
  218. package/dist/chunk-GG52SAHA.cjs +157 -0
  219. package/dist/chunk-GG52SAHA.cjs.map +1 -0
  220. package/dist/chunk-GGYLU7YO.cjs +58 -0
  221. package/dist/chunk-GGYLU7YO.cjs.map +1 -0
  222. package/dist/chunk-GK5FWN4H.cjs +307 -0
  223. package/dist/chunk-GK5FWN4H.cjs.map +1 -0
  224. package/dist/chunk-GSQN5EOO.cjs +347 -0
  225. package/dist/chunk-GSQN5EOO.cjs.map +1 -0
  226. package/dist/chunk-GVHN6BAJ.js +19 -0
  227. package/dist/chunk-GVHN6BAJ.js.map +1 -0
  228. package/dist/chunk-GW7IHYXR.cjs +125 -0
  229. package/dist/chunk-GW7IHYXR.cjs.map +1 -0
  230. package/dist/chunk-GZW5AFIL.js +27 -0
  231. package/dist/chunk-GZW5AFIL.js.map +1 -0
  232. package/dist/chunk-H2NGR5JG.js +786 -0
  233. package/dist/chunk-H2NGR5JG.js.map +1 -0
  234. package/dist/chunk-H537KAYC.cjs +71 -0
  235. package/dist/chunk-H537KAYC.cjs.map +1 -0
  236. package/dist/chunk-HJL32HDH.js +14 -0
  237. package/dist/chunk-HJL32HDH.js.map +1 -0
  238. package/dist/chunk-HL763JX2.js +43 -0
  239. package/dist/chunk-HL763JX2.js.map +1 -0
  240. package/dist/chunk-HLKFUOAQ.cjs +27 -0
  241. package/dist/chunk-HLKFUOAQ.cjs.map +1 -0
  242. package/dist/chunk-HLYGHP6F.cjs +80 -0
  243. package/dist/chunk-HLYGHP6F.cjs.map +1 -0
  244. package/dist/chunk-HO3SKXCG.js +559 -0
  245. package/dist/chunk-HO3SKXCG.js.map +1 -0
  246. package/dist/chunk-I2W7AO4B.cjs +37 -0
  247. package/dist/chunk-I2W7AO4B.cjs.map +1 -0
  248. package/dist/chunk-I2XGNALG.cjs +19 -0
  249. package/dist/chunk-I2XGNALG.cjs.map +1 -0
  250. package/dist/chunk-I5KOMBQ3.js +277 -0
  251. package/dist/chunk-I5KOMBQ3.js.map +1 -0
  252. package/dist/chunk-I65QS3YQ.cjs +695 -0
  253. package/dist/chunk-I65QS3YQ.cjs.map +1 -0
  254. package/dist/chunk-IB75VVZO.js +58 -0
  255. package/dist/chunk-IB75VVZO.js.map +1 -0
  256. package/dist/chunk-IGFEQECO.js +67 -0
  257. package/dist/chunk-IGFEQECO.js.map +1 -0
  258. package/dist/chunk-IKXGA2Z5.cjs +24 -0
  259. package/dist/chunk-IKXGA2Z5.cjs.map +1 -0
  260. package/dist/chunk-INQQLXAV.js +347 -0
  261. package/dist/chunk-INQQLXAV.js.map +1 -0
  262. package/dist/chunk-IR2LFKKA.cjs +44 -0
  263. package/dist/chunk-IR2LFKKA.cjs.map +1 -0
  264. package/dist/chunk-IVQDVFFR.js +226 -0
  265. package/dist/chunk-IVQDVFFR.js.map +1 -0
  266. package/dist/chunk-J3UH2OJH.js +31 -0
  267. package/dist/chunk-J3UH2OJH.js.map +1 -0
  268. package/dist/chunk-JAJOUFPM.js +30 -0
  269. package/dist/chunk-JAJOUFPM.js.map +1 -0
  270. package/dist/chunk-JPVR2NHV.js +54 -0
  271. package/dist/chunk-JPVR2NHV.js.map +1 -0
  272. package/dist/chunk-JSSDNDAG.cjs +1038 -0
  273. package/dist/chunk-JSSDNDAG.cjs.map +1 -0
  274. package/dist/chunk-JTZ44ZLT.js +1741 -0
  275. package/dist/chunk-JTZ44ZLT.js.map +1 -0
  276. package/dist/chunk-K5Q2H3VD.cjs +85 -0
  277. package/dist/chunk-K5Q2H3VD.cjs.map +1 -0
  278. package/dist/chunk-KAKDDX4L.js +144 -0
  279. package/dist/chunk-KAKDDX4L.js.map +1 -0
  280. package/dist/chunk-KD5Y2YWK.cjs +128 -0
  281. package/dist/chunk-KD5Y2YWK.cjs.map +1 -0
  282. package/dist/chunk-KJDMNF2T.cjs +202 -0
  283. package/dist/chunk-KJDMNF2T.cjs.map +1 -0
  284. package/dist/chunk-KKKEARPT.js +40 -0
  285. package/dist/chunk-KKKEARPT.js.map +1 -0
  286. package/dist/chunk-KLONGJCL.cjs +59 -0
  287. package/dist/chunk-KLONGJCL.cjs.map +1 -0
  288. package/dist/chunk-KS5ZUVPC.js +23 -0
  289. package/dist/chunk-KS5ZUVPC.js.map +1 -0
  290. package/dist/chunk-KSJ7JLR3.cjs +228 -0
  291. package/dist/chunk-KSJ7JLR3.cjs.map +1 -0
  292. package/dist/chunk-L7474OST.js +21 -0
  293. package/dist/chunk-L7474OST.js.map +1 -0
  294. package/dist/chunk-LG7XHNAY.js +52 -0
  295. package/dist/chunk-LG7XHNAY.js.map +1 -0
  296. package/dist/chunk-LJ2EG6JK.cjs +226 -0
  297. package/dist/chunk-LJ2EG6JK.cjs.map +1 -0
  298. package/dist/chunk-LLYY4TCZ.cjs +628 -0
  299. package/dist/chunk-LLYY4TCZ.cjs.map +1 -0
  300. package/dist/chunk-LPDUHBHT.js +2842 -0
  301. package/dist/chunk-LPDUHBHT.js.map +1 -0
  302. package/dist/chunk-LX6E5TTR.js +58 -0
  303. package/dist/chunk-LX6E5TTR.js.map +1 -0
  304. package/dist/chunk-LYIBTVK6.cjs +2842 -0
  305. package/dist/chunk-LYIBTVK6.cjs.map +1 -0
  306. package/dist/chunk-LZUHCGJ3.js +281 -0
  307. package/dist/chunk-LZUHCGJ3.js.map +1 -0
  308. package/dist/chunk-M3HWE7KT.cjs +33 -0
  309. package/dist/chunk-M3HWE7KT.cjs.map +1 -0
  310. package/dist/chunk-M3SJHFT4.cjs +24 -0
  311. package/dist/chunk-M3SJHFT4.cjs.map +1 -0
  312. package/dist/chunk-MCNDMK7F.cjs +167 -0
  313. package/dist/chunk-MCNDMK7F.cjs.map +1 -0
  314. package/dist/chunk-MLG6NXI6.cjs +19 -0
  315. package/dist/chunk-MLG6NXI6.cjs.map +1 -0
  316. package/dist/chunk-MTFLXMYI.js +262 -0
  317. package/dist/chunk-MTFLXMYI.js.map +1 -0
  318. package/dist/chunk-MYDDK2Z3.js +485 -0
  319. package/dist/chunk-MYDDK2Z3.js.map +1 -0
  320. package/dist/chunk-NFB3S2E6.cjs +22 -0
  321. package/dist/chunk-NFB3S2E6.cjs.map +1 -0
  322. package/dist/chunk-NLQOHTYN.js +44 -0
  323. package/dist/chunk-NLQOHTYN.js.map +1 -0
  324. package/dist/chunk-NW37NQZB.cjs +1741 -0
  325. package/dist/chunk-NW37NQZB.cjs.map +1 -0
  326. package/dist/chunk-NXORFP3R.js +148 -0
  327. package/dist/chunk-NXORFP3R.js.map +1 -0
  328. package/dist/chunk-NYL3BNHR.cjs +57 -0
  329. package/dist/chunk-NYL3BNHR.cjs.map +1 -0
  330. package/dist/chunk-O4AYHLQX.cjs +132 -0
  331. package/dist/chunk-O4AYHLQX.cjs.map +1 -0
  332. package/dist/chunk-ODPNVNYE.cjs +75 -0
  333. package/dist/chunk-ODPNVNYE.cjs.map +1 -0
  334. package/dist/chunk-OEKPQXXM.js +24 -0
  335. package/dist/chunk-OEKPQXXM.js.map +1 -0
  336. package/dist/chunk-OG2KJAYD.cjs +44 -0
  337. package/dist/chunk-OG2KJAYD.cjs.map +1 -0
  338. package/dist/chunk-OMGDHJYX.js +39 -0
  339. package/dist/chunk-OMGDHJYX.js.map +1 -0
  340. package/dist/chunk-OMRKVER7.js +80 -0
  341. package/dist/chunk-OMRKVER7.js.map +1 -0
  342. package/dist/chunk-OWP7XBY2.cjs +281 -0
  343. package/dist/chunk-OWP7XBY2.cjs.map +1 -0
  344. package/dist/chunk-OYZP6NF6.cjs +58 -0
  345. package/dist/chunk-OYZP6NF6.cjs.map +1 -0
  346. package/dist/chunk-P6JLNQ6L.cjs +111 -0
  347. package/dist/chunk-P6JLNQ6L.cjs.map +1 -0
  348. package/dist/chunk-P7DYLUUI.cjs +168 -0
  349. package/dist/chunk-P7DYLUUI.cjs.map +1 -0
  350. package/dist/chunk-PKAE6AQT.cjs +208 -0
  351. package/dist/chunk-PKAE6AQT.cjs.map +1 -0
  352. package/dist/chunk-Q347PTXI.js +54 -0
  353. package/dist/chunk-Q347PTXI.js.map +1 -0
  354. package/dist/chunk-Q6HI2G7W.js +40 -0
  355. package/dist/chunk-Q6HI2G7W.js.map +1 -0
  356. package/dist/chunk-Q7M7DO7M.cjs +186 -0
  357. package/dist/chunk-Q7M7DO7M.cjs.map +1 -0
  358. package/dist/chunk-QCPEE3EV.js +186 -0
  359. package/dist/chunk-QCPEE3EV.js.map +1 -0
  360. package/dist/chunk-QF3Q3TPV.js +162 -0
  361. package/dist/chunk-QF3Q3TPV.js.map +1 -0
  362. package/dist/chunk-QGTVOC6O.js +167 -0
  363. package/dist/chunk-QGTVOC6O.js.map +1 -0
  364. package/dist/chunk-QMLU5DST.cjs +786 -0
  365. package/dist/chunk-QMLU5DST.cjs.map +1 -0
  366. package/dist/chunk-QRSA72B3.cjs +40 -0
  367. package/dist/chunk-QRSA72B3.cjs.map +1 -0
  368. package/dist/chunk-QYNRNDIY.cjs +186 -0
  369. package/dist/chunk-QYNRNDIY.cjs.map +1 -0
  370. package/dist/chunk-R4FE6K43.cjs +99 -0
  371. package/dist/chunk-R4FE6K43.cjs.map +1 -0
  372. package/dist/chunk-R5VYSZ3Q.cjs +67 -0
  373. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -0
  374. package/dist/chunk-RBN2H7QR.js +340 -0
  375. package/dist/chunk-RBN2H7QR.js.map +1 -0
  376. package/dist/chunk-RI42IDRR.cjs +23 -0
  377. package/dist/chunk-RI42IDRR.cjs.map +1 -0
  378. package/dist/chunk-RUDKQPEO.js +22 -0
  379. package/dist/chunk-RUDKQPEO.js.map +1 -0
  380. package/dist/chunk-RWCCRTLZ.js +17 -0
  381. package/dist/chunk-RWCCRTLZ.js.map +1 -0
  382. package/dist/chunk-S7SBNOGS.cjs +144 -0
  383. package/dist/chunk-S7SBNOGS.cjs.map +1 -0
  384. package/dist/chunk-SQELICSX.cjs +159 -0
  385. package/dist/chunk-SQELICSX.cjs.map +1 -0
  386. package/dist/chunk-SXCH2AXM.js +85 -0
  387. package/dist/chunk-SXCH2AXM.js.map +1 -0
  388. package/dist/chunk-T37FLY7Q.js +185 -0
  389. package/dist/chunk-T37FLY7Q.js.map +1 -0
  390. package/dist/chunk-T6N35YFJ.js +186 -0
  391. package/dist/chunk-T6N35YFJ.js.map +1 -0
  392. package/dist/chunk-THPCSJUP.js +43 -0
  393. package/dist/chunk-THPCSJUP.js.map +1 -0
  394. package/dist/chunk-TIMYWB2C.cjs +316 -0
  395. package/dist/chunk-TIMYWB2C.cjs.map +1 -0
  396. package/dist/chunk-TMAJE5P2.cjs +84 -0
  397. package/dist/chunk-TMAJE5P2.cjs.map +1 -0
  398. package/dist/chunk-TNIJ6OSH.cjs +162 -0
  399. package/dist/chunk-TNIJ6OSH.cjs.map +1 -0
  400. package/dist/chunk-TZ4JHXBR.js +98 -0
  401. package/dist/chunk-TZ4JHXBR.js.map +1 -0
  402. package/dist/chunk-UGSM7RJ2.cjs +30 -0
  403. package/dist/chunk-UGSM7RJ2.cjs.map +1 -0
  404. package/dist/chunk-UH2A7ZDK.js +61 -0
  405. package/dist/chunk-UH2A7ZDK.js.map +1 -0
  406. package/dist/chunk-UKLZAOLW.cjs +209 -0
  407. package/dist/chunk-UKLZAOLW.cjs.map +1 -0
  408. package/dist/chunk-ULZWGW2O.js +14 -0
  409. package/dist/chunk-ULZWGW2O.js.map +1 -0
  410. package/dist/chunk-US6R4TM4.js +50 -0
  411. package/dist/chunk-US6R4TM4.js.map +1 -0
  412. package/dist/chunk-UU3YQJT6.js +27 -0
  413. package/dist/chunk-UU3YQJT6.js.map +1 -0
  414. package/dist/chunk-V3PCNGDH.js +69 -0
  415. package/dist/chunk-V3PCNGDH.js.map +1 -0
  416. package/dist/chunk-V47G7P6L.cjs +19 -0
  417. package/dist/chunk-V47G7P6L.cjs.map +1 -0
  418. package/dist/chunk-VH5A6SMU.cjs +50 -0
  419. package/dist/chunk-VH5A6SMU.cjs.map +1 -0
  420. package/dist/chunk-VJ2L2GOF.js +23 -0
  421. package/dist/chunk-VJ2L2GOF.js.map +1 -0
  422. package/dist/chunk-VOIELJLZ.cjs +274 -0
  423. package/dist/chunk-VOIELJLZ.cjs.map +1 -0
  424. package/dist/chunk-VW7GWSP6.js +209 -0
  425. package/dist/chunk-VW7GWSP6.js.map +1 -0
  426. package/dist/chunk-VYC7WUM5.cjs +39 -0
  427. package/dist/chunk-VYC7WUM5.cjs.map +1 -0
  428. package/dist/chunk-W3EFNOH6.js +536 -0
  429. package/dist/chunk-W3EFNOH6.js.map +1 -0
  430. package/dist/chunk-W457XUA6.cjs +67 -0
  431. package/dist/chunk-W457XUA6.cjs.map +1 -0
  432. package/dist/chunk-WBAPQODS.js +111 -0
  433. package/dist/chunk-WBAPQODS.js.map +1 -0
  434. package/dist/chunk-WHDI3TMP.cjs +21 -0
  435. package/dist/chunk-WHDI3TMP.cjs.map +1 -0
  436. package/dist/chunk-WITCPKNL.cjs +20 -0
  437. package/dist/chunk-WITCPKNL.cjs.map +1 -0
  438. package/dist/chunk-WSOUQS6C.js +135 -0
  439. package/dist/chunk-WSOUQS6C.js.map +1 -0
  440. package/dist/chunk-WX6NP7UU.cjs +14 -0
  441. package/dist/chunk-WX6NP7UU.cjs.map +1 -0
  442. package/dist/chunk-WZK3BIHG.js +75 -0
  443. package/dist/chunk-WZK3BIHG.js.map +1 -0
  444. package/dist/chunk-X7UAYGQR.cjs +43 -0
  445. package/dist/chunk-X7UAYGQR.cjs.map +1 -0
  446. package/dist/chunk-XQLRIBVR.cjs +98 -0
  447. package/dist/chunk-XQLRIBVR.cjs.map +1 -0
  448. package/dist/chunk-Y4XILACH.js +105 -0
  449. package/dist/chunk-Y4XILACH.js.map +1 -0
  450. package/dist/chunk-YJQPKT6W.cjs +453 -0
  451. package/dist/chunk-YJQPKT6W.cjs.map +1 -0
  452. package/dist/chunk-YK3P5QNZ.cjs +559 -0
  453. package/dist/chunk-YK3P5QNZ.cjs.map +1 -0
  454. package/dist/chunk-YOFIOZJ5.js +1038 -0
  455. package/dist/chunk-YOFIOZJ5.js.map +1 -0
  456. package/dist/chunk-ZDYRYXY3.js +316 -0
  457. package/dist/chunk-ZDYRYXY3.js.map +1 -0
  458. package/dist/chunk-ZKPVUCQV.cjs +973 -0
  459. package/dist/chunk-ZKPVUCQV.cjs.map +1 -0
  460. package/dist/chunk-ZOD4J4XF.cjs +89 -0
  461. package/dist/chunk-ZOD4J4XF.cjs.map +1 -0
  462. package/dist/chunk-ZX4JTR2J.js +23 -0
  463. package/dist/chunk-ZX4JTR2J.js.map +1 -0
  464. package/dist/chunk-ZYWW275O.js +159 -0
  465. package/dist/chunk-ZYWW275O.js.map +1 -0
  466. package/dist/client.cjs +17 -0
  467. package/dist/client.cjs.map +1 -0
  468. package/dist/client.d.cts +221 -0
  469. package/dist/client.d.ts +221 -0
  470. package/dist/client.js +17 -0
  471. package/dist/client.js.map +1 -0
  472. package/dist/core.cjs +13 -0
  473. package/dist/core.cjs.map +1 -0
  474. package/dist/core.d.cts +376 -0
  475. package/dist/core.d.ts +376 -0
  476. package/dist/core.js +13 -0
  477. package/dist/core.js.map +1 -0
  478. package/dist/currencies.cjs +7 -0
  479. package/dist/currencies.cjs.map +1 -0
  480. package/dist/currencies.d.cts +8 -0
  481. package/dist/currencies.d.ts +8 -0
  482. package/dist/currencies.js +7 -0
  483. package/dist/currencies.js.map +1 -0
  484. package/dist/enigmaCardForm.cjs +65 -0
  485. package/dist/enigmaCardForm.cjs.map +1 -0
  486. package/dist/enigmaCardForm.d.cts +145 -0
  487. package/dist/enigmaCardForm.d.ts +145 -0
  488. package/dist/enigmaCardForm.js +65 -0
  489. package/dist/enigmaCardForm.js.map +1 -0
  490. package/dist/error.cjs +9 -0
  491. package/dist/error.cjs.map +1 -0
  492. package/dist/error.d.cts +66 -0
  493. package/dist/error.d.ts +66 -0
  494. package/dist/error.js +9 -0
  495. package/dist/error.js.map +1 -0
  496. package/dist/eventStream.cjs +7 -0
  497. package/dist/eventStream.cjs.map +1 -0
  498. package/dist/eventStream.d.cts +50 -0
  499. package/dist/eventStream.d.ts +50 -0
  500. package/dist/eventStream.js +7 -0
  501. package/dist/eventStream.js.map +1 -0
  502. package/dist/exportDownload.cjs +21 -0
  503. package/dist/exportDownload.cjs.map +1 -0
  504. package/dist/exportDownload.d.cts +86 -0
  505. package/dist/exportDownload.d.ts +86 -0
  506. package/dist/exportDownload.js +21 -0
  507. package/dist/exportDownload.js.map +1 -0
  508. package/dist/feeProgram.cjs +25 -0
  509. package/dist/feeProgram.cjs.map +1 -0
  510. package/dist/feeProgram.d.cts +169 -0
  511. package/dist/feeProgram.d.ts +169 -0
  512. package/dist/feeProgram.js +25 -0
  513. package/dist/feeProgram.js.map +1 -0
  514. package/dist/index.cjs +839 -18306
  515. package/dist/index.cjs.map +1 -1
  516. package/dist/index.d.cts +87 -1
  517. package/dist/index.d.ts +87 -1
  518. package/dist/index.js +418 -186
  519. package/dist/internal/resources/admin.cjs +7 -0
  520. package/dist/internal/resources/admin.cjs.map +1 -0
  521. package/dist/internal/resources/admin.d.cts +31 -0
  522. package/dist/internal/resources/admin.d.ts +31 -0
  523. package/dist/internal/resources/admin.js +7 -0
  524. package/dist/internal/resources/admin.js.map +1 -0
  525. package/dist/internal/resources/adminBranding.cjs +7 -0
  526. package/dist/internal/resources/adminBranding.cjs.map +1 -0
  527. package/dist/internal/resources/adminBranding.d.cts +37 -0
  528. package/dist/internal/resources/adminBranding.d.ts +37 -0
  529. package/dist/internal/resources/adminBranding.js +7 -0
  530. package/dist/internal/resources/adminBranding.js.map +1 -0
  531. package/dist/internal/resources/adminFileScans.cjs +7 -0
  532. package/dist/internal/resources/adminFileScans.cjs.map +1 -0
  533. package/dist/internal/resources/adminFileScans.d.cts +39 -0
  534. package/dist/internal/resources/adminFileScans.d.ts +39 -0
  535. package/dist/internal/resources/adminFileScans.js +7 -0
  536. package/dist/internal/resources/adminFileScans.js.map +1 -0
  537. package/dist/internal/resources/adminIndustries.cjs +7 -0
  538. package/dist/internal/resources/adminIndustries.cjs.map +1 -0
  539. package/dist/internal/resources/adminIndustries.d.cts +61 -0
  540. package/dist/internal/resources/adminIndustries.d.ts +61 -0
  541. package/dist/internal/resources/adminIndustries.js +7 -0
  542. package/dist/internal/resources/adminIndustries.js.map +1 -0
  543. package/dist/internal/resources/adminLive.cjs +7 -0
  544. package/dist/internal/resources/adminLive.cjs.map +1 -0
  545. package/dist/internal/resources/adminLive.d.cts +33 -0
  546. package/dist/internal/resources/adminLive.d.ts +33 -0
  547. package/dist/internal/resources/adminLive.js +7 -0
  548. package/dist/internal/resources/adminLive.js.map +1 -0
  549. package/dist/internal/resources/adminPortal.cjs +7 -0
  550. package/dist/internal/resources/adminPortal.cjs.map +1 -0
  551. package/dist/internal/resources/adminPortal.d.cts +1029 -0
  552. package/dist/internal/resources/adminPortal.d.ts +1029 -0
  553. package/dist/internal/resources/adminPortal.js +7 -0
  554. package/dist/internal/resources/adminPortal.js.map +1 -0
  555. package/dist/internal/resources/adminSupport.cjs +7 -0
  556. package/dist/internal/resources/adminSupport.cjs.map +1 -0
  557. package/dist/internal/resources/adminSupport.d.cts +52 -0
  558. package/dist/internal/resources/adminSupport.d.ts +52 -0
  559. package/dist/internal/resources/adminSupport.js +7 -0
  560. package/dist/internal/resources/adminSupport.js.map +1 -0
  561. package/dist/internal/resources/auditLogs.cjs +7 -0
  562. package/dist/internal/resources/auditLogs.cjs.map +1 -0
  563. package/dist/internal/resources/auditLogs.d.cts +37 -0
  564. package/dist/internal/resources/auditLogs.d.ts +37 -0
  565. package/dist/internal/resources/auditLogs.js +7 -0
  566. package/dist/internal/resources/auditLogs.js.map +1 -0
  567. package/dist/internal/resources/cache.cjs +7 -0
  568. package/dist/internal/resources/cache.cjs.map +1 -0
  569. package/dist/internal/resources/cache.d.cts +13 -0
  570. package/dist/internal/resources/cache.d.ts +13 -0
  571. package/dist/internal/resources/cache.js +7 -0
  572. package/dist/internal/resources/cache.js.map +1 -0
  573. package/dist/internal/resources/cardIssuers.cjs +7 -0
  574. package/dist/internal/resources/cardIssuers.cjs.map +1 -0
  575. package/dist/internal/resources/cardIssuers.d.cts +15 -0
  576. package/dist/internal/resources/cardIssuers.d.ts +15 -0
  577. package/dist/internal/resources/cardIssuers.js +7 -0
  578. package/dist/internal/resources/cardIssuers.js.map +1 -0
  579. package/dist/internal/resources/configs.cjs +7 -0
  580. package/dist/internal/resources/configs.cjs.map +1 -0
  581. package/dist/internal/resources/configs.d.cts +19 -0
  582. package/dist/internal/resources/configs.d.ts +19 -0
  583. package/dist/internal/resources/configs.js +7 -0
  584. package/dist/internal/resources/configs.js.map +1 -0
  585. package/dist/internal/resources/connectorRestrictionRules.cjs +7 -0
  586. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -0
  587. package/dist/internal/resources/connectorRestrictionRules.d.cts +43 -0
  588. package/dist/internal/resources/connectorRestrictionRules.d.ts +43 -0
  589. package/dist/internal/resources/connectorRestrictionRules.js +7 -0
  590. package/dist/internal/resources/connectorRestrictionRules.js.map +1 -0
  591. package/dist/internal/resources/connectorRestrictions.cjs +7 -0
  592. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -0
  593. package/dist/internal/resources/connectorRestrictions.d.cts +33 -0
  594. package/dist/internal/resources/connectorRestrictions.d.ts +33 -0
  595. package/dist/internal/resources/connectorRestrictions.js +7 -0
  596. package/dist/internal/resources/connectorRestrictions.js.map +1 -0
  597. package/dist/internal/resources/diagnostic.cjs +7 -0
  598. package/dist/internal/resources/diagnostic.cjs.map +1 -0
  599. package/dist/internal/resources/diagnostic.d.cts +183 -0
  600. package/dist/internal/resources/diagnostic.d.ts +183 -0
  601. package/dist/internal/resources/diagnostic.js +7 -0
  602. package/dist/internal/resources/diagnostic.js.map +1 -0
  603. package/dist/internal/resources/gsm.cjs +7 -0
  604. package/dist/internal/resources/gsm.cjs.map +1 -0
  605. package/dist/internal/resources/gsm.d.cts +16 -0
  606. package/dist/internal/resources/gsm.d.ts +16 -0
  607. package/dist/internal/resources/gsm.js +7 -0
  608. package/dist/internal/resources/gsm.js.map +1 -0
  609. package/dist/internal/resources/nativeRenewals.cjs +7 -0
  610. package/dist/internal/resources/nativeRenewals.cjs.map +1 -0
  611. package/dist/internal/resources/nativeRenewals.d.cts +16 -0
  612. package/dist/internal/resources/nativeRenewals.d.ts +16 -0
  613. package/dist/internal/resources/nativeRenewals.js +7 -0
  614. package/dist/internal/resources/nativeRenewals.js.map +1 -0
  615. package/dist/internal/resources/platformBilling.cjs +7 -0
  616. package/dist/internal/resources/platformBilling.cjs.map +1 -0
  617. package/dist/internal/resources/platformBilling.d.cts +145 -0
  618. package/dist/internal/resources/platformBilling.d.ts +145 -0
  619. package/dist/internal/resources/platformBilling.js +7 -0
  620. package/dist/internal/resources/platformBilling.js.map +1 -0
  621. package/dist/internal/resources/platformFees.cjs +9 -0
  622. package/dist/internal/resources/platformFees.cjs.map +1 -0
  623. package/dist/internal/resources/platformFees.d.cts +60 -0
  624. package/dist/internal/resources/platformFees.d.ts +60 -0
  625. package/dist/internal/resources/platformFees.js +9 -0
  626. package/dist/internal/resources/platformFees.js.map +1 -0
  627. package/dist/internal/resources/platformMessageTemplates.cjs +7 -0
  628. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -0
  629. package/dist/internal/resources/platformMessageTemplates.d.cts +46 -0
  630. package/dist/internal/resources/platformMessageTemplates.d.ts +46 -0
  631. package/dist/internal/resources/platformMessageTemplates.js +7 -0
  632. package/dist/internal/resources/platformMessageTemplates.js.map +1 -0
  633. package/dist/internal/resources/platformSettings.cjs +7 -0
  634. package/dist/internal/resources/platformSettings.cjs.map +1 -0
  635. package/dist/internal/resources/platformSettings.d.cts +41 -0
  636. package/dist/internal/resources/platformSettings.d.ts +41 -0
  637. package/dist/internal/resources/platformSettings.js +7 -0
  638. package/dist/internal/resources/platformSettings.js.map +1 -0
  639. package/dist/internal.cjs +856 -20979
  640. package/dist/internal.cjs.map +1 -1
  641. package/dist/internal.d.cts +109 -6082
  642. package/dist/internal.d.ts +109 -6082
  643. package/dist/internal.js +480 -2888
  644. package/dist/internal.js.map +1 -1
  645. package/dist/listQuery.cjs +7 -0
  646. package/dist/listQuery.cjs.map +1 -0
  647. package/dist/listQuery.d.cts +15 -0
  648. package/dist/listQuery.d.ts +15 -0
  649. package/dist/listQuery.js +7 -0
  650. package/dist/listQuery.js.map +1 -0
  651. package/dist/panes.cjs +65 -0
  652. package/dist/panes.cjs.map +1 -0
  653. package/dist/panes.d.cts +523 -0
  654. package/dist/panes.d.ts +523 -0
  655. package/dist/panes.js +65 -0
  656. package/dist/panes.js.map +1 -0
  657. package/dist/paymentPresentation.cjs +27 -0
  658. package/dist/paymentPresentation.cjs.map +1 -0
  659. package/dist/paymentPresentation.d.cts +101 -0
  660. package/dist/paymentPresentation.d.ts +101 -0
  661. package/dist/paymentPresentation.js +27 -0
  662. package/dist/paymentPresentation.js.map +1 -0
  663. package/dist/recordCounter.cjs +9 -0
  664. package/dist/recordCounter.cjs.map +1 -0
  665. package/dist/recordCounter.d.cts +92 -0
  666. package/dist/recordCounter.d.ts +92 -0
  667. package/dist/recordCounter.js +9 -0
  668. package/dist/recordCounter.js.map +1 -0
  669. package/dist/resources/analytics.cjs +7 -0
  670. package/dist/resources/analytics.cjs.map +1 -0
  671. package/dist/resources/analytics.d.cts +193 -0
  672. package/dist/resources/analytics.d.ts +193 -0
  673. package/dist/resources/analytics.js +7 -0
  674. package/dist/resources/analytics.js.map +1 -0
  675. package/dist/resources/analyticsDashboard.cjs +7 -0
  676. package/dist/resources/analyticsDashboard.cjs.map +1 -0
  677. package/dist/resources/analyticsDashboard.d.cts +15 -0
  678. package/dist/resources/analyticsDashboard.d.ts +15 -0
  679. package/dist/resources/analyticsDashboard.js +7 -0
  680. package/dist/resources/analyticsDashboard.js.map +1 -0
  681. package/dist/resources/apiKeys.cjs +7 -0
  682. package/dist/resources/apiKeys.cjs.map +1 -0
  683. package/dist/resources/apiKeys.d.cts +156 -0
  684. package/dist/resources/apiKeys.d.ts +156 -0
  685. package/dist/resources/apiKeys.js +7 -0
  686. package/dist/resources/apiKeys.js.map +1 -0
  687. package/dist/resources/audit.cjs +7 -0
  688. package/dist/resources/audit.cjs.map +1 -0
  689. package/dist/resources/audit.d.cts +34 -0
  690. package/dist/resources/audit.d.ts +34 -0
  691. package/dist/resources/audit.js +7 -0
  692. package/dist/resources/audit.js.map +1 -0
  693. package/dist/resources/authentication.cjs +7 -0
  694. package/dist/resources/authentication.cjs.map +1 -0
  695. package/dist/resources/authentication.d.cts +22 -0
  696. package/dist/resources/authentication.d.ts +22 -0
  697. package/dist/resources/authentication.js +7 -0
  698. package/dist/resources/authentication.js.map +1 -0
  699. package/dist/resources/availabilityOverrides.cjs +7 -0
  700. package/dist/resources/availabilityOverrides.cjs.map +1 -0
  701. package/dist/resources/availabilityOverrides.d.cts +30 -0
  702. package/dist/resources/availabilityOverrides.d.ts +30 -0
  703. package/dist/resources/availabilityOverrides.js +7 -0
  704. package/dist/resources/availabilityOverrides.js.map +1 -0
  705. package/dist/resources/billing.cjs +7 -0
  706. package/dist/resources/billing.cjs.map +1 -0
  707. package/dist/resources/billing.d.cts +122 -0
  708. package/dist/resources/billing.d.ts +122 -0
  709. package/dist/resources/billing.js +7 -0
  710. package/dist/resources/billing.js.map +1 -0
  711. package/dist/resources/buyerAccount.cjs +7 -0
  712. package/dist/resources/buyerAccount.cjs.map +1 -0
  713. package/dist/resources/buyerAccount.d.cts +162 -0
  714. package/dist/resources/buyerAccount.d.ts +162 -0
  715. package/dist/resources/buyerAccount.js +7 -0
  716. package/dist/resources/buyerAccount.js.map +1 -0
  717. package/dist/resources/buyerBlocklist.cjs +7 -0
  718. package/dist/resources/buyerBlocklist.cjs.map +1 -0
  719. package/dist/resources/buyerBlocklist.d.cts +120 -0
  720. package/dist/resources/buyerBlocklist.d.ts +120 -0
  721. package/dist/resources/buyerBlocklist.js +7 -0
  722. package/dist/resources/buyerBlocklist.js.map +1 -0
  723. package/dist/resources/buyerConversations.cjs +7 -0
  724. package/dist/resources/buyerConversations.cjs.map +1 -0
  725. package/dist/resources/buyerConversations.d.cts +85 -0
  726. package/dist/resources/buyerConversations.d.ts +85 -0
  727. package/dist/resources/buyerConversations.js +7 -0
  728. package/dist/resources/buyerConversations.js.map +1 -0
  729. package/dist/resources/buyerEvidenceReviews.cjs +7 -0
  730. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -0
  731. package/dist/resources/buyerEvidenceReviews.d.cts +43 -0
  732. package/dist/resources/buyerEvidenceReviews.d.ts +43 -0
  733. package/dist/resources/buyerEvidenceReviews.js +7 -0
  734. package/dist/resources/buyerEvidenceReviews.js.map +1 -0
  735. package/dist/resources/buyerPortal.cjs +7 -0
  736. package/dist/resources/buyerPortal.cjs.map +1 -0
  737. package/dist/resources/buyerPortal.d.cts +122 -0
  738. package/dist/resources/buyerPortal.d.ts +122 -0
  739. package/dist/resources/buyerPortal.js +7 -0
  740. package/dist/resources/buyerPortal.js.map +1 -0
  741. package/dist/resources/cards.cjs +7 -0
  742. package/dist/resources/cards.cjs.map +1 -0
  743. package/dist/resources/cards.d.cts +17 -0
  744. package/dist/resources/cards.d.ts +17 -0
  745. package/dist/resources/cards.js +7 -0
  746. package/dist/resources/cards.js.map +1 -0
  747. package/dist/resources/chargebackPrevention.cjs +9 -0
  748. package/dist/resources/chargebackPrevention.cjs.map +1 -0
  749. package/dist/resources/chargebackPrevention.d.cts +51 -0
  750. package/dist/resources/chargebackPrevention.d.ts +51 -0
  751. package/dist/resources/chargebackPrevention.js +9 -0
  752. package/dist/resources/chargebackPrevention.js.map +1 -0
  753. package/dist/resources/checkoutMethods.cjs +7 -0
  754. package/dist/resources/checkoutMethods.cjs.map +1 -0
  755. package/dist/resources/checkoutMethods.d.cts +135 -0
  756. package/dist/resources/checkoutMethods.d.ts +135 -0
  757. package/dist/resources/checkoutMethods.js +7 -0
  758. package/dist/resources/checkoutMethods.js.map +1 -0
  759. package/dist/resources/checkoutRecovery.cjs +7 -0
  760. package/dist/resources/checkoutRecovery.cjs.map +1 -0
  761. package/dist/resources/checkoutRecovery.d.cts +92 -0
  762. package/dist/resources/checkoutRecovery.d.ts +92 -0
  763. package/dist/resources/checkoutRecovery.js +7 -0
  764. package/dist/resources/checkoutRecovery.js.map +1 -0
  765. package/dist/resources/checkoutTemplates.cjs +7 -0
  766. package/dist/resources/checkoutTemplates.cjs.map +1 -0
  767. package/dist/resources/checkoutTemplates.d.cts +75 -0
  768. package/dist/resources/checkoutTemplates.d.ts +75 -0
  769. package/dist/resources/checkoutTemplates.js +7 -0
  770. package/dist/resources/checkoutTemplates.js.map +1 -0
  771. package/dist/resources/connectors.cjs +7 -0
  772. package/dist/resources/connectors.cjs.map +1 -0
  773. package/dist/resources/connectors.d.cts +500 -0
  774. package/dist/resources/connectors.d.ts +500 -0
  775. package/dist/resources/connectors.js +7 -0
  776. package/dist/resources/connectors.js.map +1 -0
  777. package/dist/resources/costRules.cjs +7 -0
  778. package/dist/resources/costRules.cjs.map +1 -0
  779. package/dist/resources/costRules.d.cts +56 -0
  780. package/dist/resources/costRules.d.ts +56 -0
  781. package/dist/resources/costRules.js +7 -0
  782. package/dist/resources/costRules.js.map +1 -0
  783. package/dist/resources/customers.cjs +7 -0
  784. package/dist/resources/customers.cjs.map +1 -0
  785. package/dist/resources/customers.d.cts +185 -0
  786. package/dist/resources/customers.d.ts +185 -0
  787. package/dist/resources/customers.js +7 -0
  788. package/dist/resources/customers.js.map +1 -0
  789. package/dist/resources/deploymentBranding.cjs +9 -0
  790. package/dist/resources/deploymentBranding.cjs.map +1 -0
  791. package/dist/resources/deploymentBranding.d.cts +51 -0
  792. package/dist/resources/deploymentBranding.d.ts +51 -0
  793. package/dist/resources/deploymentBranding.js +9 -0
  794. package/dist/resources/deploymentBranding.js.map +1 -0
  795. package/dist/resources/disputes.cjs +7 -0
  796. package/dist/resources/disputes.cjs.map +1 -0
  797. package/dist/resources/disputes.d.cts +157 -0
  798. package/dist/resources/disputes.d.ts +157 -0
  799. package/dist/resources/disputes.js +7 -0
  800. package/dist/resources/disputes.js.map +1 -0
  801. package/dist/resources/ephemeralKeys.cjs +7 -0
  802. package/dist/resources/ephemeralKeys.cjs.map +1 -0
  803. package/dist/resources/ephemeralKeys.d.cts +43 -0
  804. package/dist/resources/ephemeralKeys.d.ts +43 -0
  805. package/dist/resources/ephemeralKeys.js +7 -0
  806. package/dist/resources/ephemeralKeys.js.map +1 -0
  807. package/dist/resources/events.cjs +7 -0
  808. package/dist/resources/events.cjs.map +1 -0
  809. package/dist/resources/events.d.cts +48 -0
  810. package/dist/resources/events.d.ts +48 -0
  811. package/dist/resources/events.js +7 -0
  812. package/dist/resources/events.js.map +1 -0
  813. package/dist/resources/export.cjs +7 -0
  814. package/dist/resources/export.cjs.map +1 -0
  815. package/dist/resources/export.d.cts +165 -0
  816. package/dist/resources/export.d.ts +165 -0
  817. package/dist/resources/export.js +7 -0
  818. package/dist/resources/export.js.map +1 -0
  819. package/dist/resources/externalRecords.cjs +7 -0
  820. package/dist/resources/externalRecords.cjs.map +1 -0
  821. package/dist/resources/externalRecords.d.cts +53 -0
  822. package/dist/resources/externalRecords.d.ts +53 -0
  823. package/dist/resources/externalRecords.js +7 -0
  824. package/dist/resources/externalRecords.js.map +1 -0
  825. package/dist/resources/featureMatrix.cjs +7 -0
  826. package/dist/resources/featureMatrix.cjs.map +1 -0
  827. package/dist/resources/featureMatrix.d.cts +24 -0
  828. package/dist/resources/featureMatrix.d.ts +24 -0
  829. package/dist/resources/featureMatrix.js +7 -0
  830. package/dist/resources/featureMatrix.js.map +1 -0
  831. package/dist/resources/fees.cjs +9 -0
  832. package/dist/resources/fees.cjs.map +1 -0
  833. package/dist/resources/fees.d.cts +96 -0
  834. package/dist/resources/fees.d.ts +96 -0
  835. package/dist/resources/fees.js +9 -0
  836. package/dist/resources/fees.js.map +1 -0
  837. package/dist/resources/files.cjs +7 -0
  838. package/dist/resources/files.cjs.map +1 -0
  839. package/dist/resources/files.d.cts +17 -0
  840. package/dist/resources/files.d.ts +17 -0
  841. package/dist/resources/files.js +7 -0
  842. package/dist/resources/files.js.map +1 -0
  843. package/dist/resources/forex.cjs +7 -0
  844. package/dist/resources/forex.cjs.map +1 -0
  845. package/dist/resources/forex.d.cts +15 -0
  846. package/dist/resources/forex.d.ts +15 -0
  847. package/dist/resources/forex.js +7 -0
  848. package/dist/resources/forex.js.map +1 -0
  849. package/dist/resources/identityVerifications.cjs +7 -0
  850. package/dist/resources/identityVerifications.cjs.map +1 -0
  851. package/dist/resources/identityVerifications.d.cts +220 -0
  852. package/dist/resources/identityVerifications.d.ts +220 -0
  853. package/dist/resources/identityVerifications.js +7 -0
  854. package/dist/resources/identityVerifications.js.map +1 -0
  855. package/dist/resources/industries.cjs +7 -0
  856. package/dist/resources/industries.cjs.map +1 -0
  857. package/dist/resources/industries.d.cts +88 -0
  858. package/dist/resources/industries.d.ts +88 -0
  859. package/dist/resources/industries.js +7 -0
  860. package/dist/resources/industries.js.map +1 -0
  861. package/dist/resources/invoiceSettings.cjs +7 -0
  862. package/dist/resources/invoiceSettings.cjs.map +1 -0
  863. package/dist/resources/invoiceSettings.d.cts +131 -0
  864. package/dist/resources/invoiceSettings.d.ts +131 -0
  865. package/dist/resources/invoiceSettings.js +7 -0
  866. package/dist/resources/invoiceSettings.js.map +1 -0
  867. package/dist/resources/invoices.cjs +7 -0
  868. package/dist/resources/invoices.cjs.map +1 -0
  869. package/dist/resources/invoices.d.cts +160 -0
  870. package/dist/resources/invoices.d.ts +160 -0
  871. package/dist/resources/invoices.js +7 -0
  872. package/dist/resources/invoices.js.map +1 -0
  873. package/dist/resources/live.cjs +13 -0
  874. package/dist/resources/live.cjs.map +1 -0
  875. package/dist/resources/live.d.cts +92 -0
  876. package/dist/resources/live.d.ts +92 -0
  877. package/dist/resources/live.js +13 -0
  878. package/dist/resources/live.js.map +1 -0
  879. package/dist/resources/mandates.cjs +7 -0
  880. package/dist/resources/mandates.cjs.map +1 -0
  881. package/dist/resources/mandates.d.cts +33 -0
  882. package/dist/resources/mandates.d.ts +33 -0
  883. package/dist/resources/mandates.js +7 -0
  884. package/dist/resources/mandates.js.map +1 -0
  885. package/dist/resources/merchantAccounts.cjs +7 -0
  886. package/dist/resources/merchantAccounts.cjs.map +1 -0
  887. package/dist/resources/merchantAccounts.d.cts +23 -0
  888. package/dist/resources/merchantAccounts.d.ts +23 -0
  889. package/dist/resources/merchantAccounts.js +7 -0
  890. package/dist/resources/merchantAccounts.js.map +1 -0
  891. package/dist/resources/messageTemplates.cjs +7 -0
  892. package/dist/resources/messageTemplates.cjs.map +1 -0
  893. package/dist/resources/messageTemplates.d.cts +48 -0
  894. package/dist/resources/messageTemplates.d.ts +48 -0
  895. package/dist/resources/messageTemplates.js +7 -0
  896. package/dist/resources/messageTemplates.js.map +1 -0
  897. package/dist/resources/operationLimits.cjs +7 -0
  898. package/dist/resources/operationLimits.cjs.map +1 -0
  899. package/dist/resources/operationLimits.d.cts +122 -0
  900. package/dist/resources/operationLimits.d.ts +122 -0
  901. package/dist/resources/operationLimits.js +7 -0
  902. package/dist/resources/operationLimits.js.map +1 -0
  903. package/dist/resources/paymentLinks.cjs +7 -0
  904. package/dist/resources/paymentLinks.cjs.map +1 -0
  905. package/dist/resources/paymentLinks.d.cts +42 -0
  906. package/dist/resources/paymentLinks.d.ts +42 -0
  907. package/dist/resources/paymentLinks.js +7 -0
  908. package/dist/resources/paymentLinks.js.map +1 -0
  909. package/dist/resources/paymentMethods.cjs +7 -0
  910. package/dist/resources/paymentMethods.cjs.map +1 -0
  911. package/dist/resources/paymentMethods.d.cts +172 -0
  912. package/dist/resources/paymentMethods.d.ts +172 -0
  913. package/dist/resources/paymentMethods.js +7 -0
  914. package/dist/resources/paymentMethods.js.map +1 -0
  915. package/dist/resources/payments.cjs +7 -0
  916. package/dist/resources/payments.cjs.map +1 -0
  917. package/dist/resources/payments.d.cts +509 -0
  918. package/dist/resources/payments.d.ts +509 -0
  919. package/dist/resources/payments.js +7 -0
  920. package/dist/resources/payments.js.map +1 -0
  921. package/dist/resources/payoutDestinations.cjs +7 -0
  922. package/dist/resources/payoutDestinations.cjs.map +1 -0
  923. package/dist/resources/payoutDestinations.d.cts +122 -0
  924. package/dist/resources/payoutDestinations.d.ts +122 -0
  925. package/dist/resources/payoutDestinations.js +7 -0
  926. package/dist/resources/payoutDestinations.js.map +1 -0
  927. package/dist/resources/payouts.cjs +7 -0
  928. package/dist/resources/payouts.cjs.map +1 -0
  929. package/dist/resources/payouts.d.cts +86 -0
  930. package/dist/resources/payouts.d.ts +86 -0
  931. package/dist/resources/payouts.js +7 -0
  932. package/dist/resources/payouts.js.map +1 -0
  933. package/dist/resources/paypalDisputes.cjs +7 -0
  934. package/dist/resources/paypalDisputes.cjs.map +1 -0
  935. package/dist/resources/paypalDisputes.d.cts +25 -0
  936. package/dist/resources/paypalDisputes.d.ts +25 -0
  937. package/dist/resources/paypalDisputes.js +7 -0
  938. package/dist/resources/paypalDisputes.js.map +1 -0
  939. package/dist/resources/persons.cjs +7 -0
  940. package/dist/resources/persons.cjs.map +1 -0
  941. package/dist/resources/persons.d.cts +58 -0
  942. package/dist/resources/persons.d.ts +58 -0
  943. package/dist/resources/persons.js +7 -0
  944. package/dist/resources/persons.js.map +1 -0
  945. package/dist/resources/poll.cjs +7 -0
  946. package/dist/resources/poll.cjs.map +1 -0
  947. package/dist/resources/poll.d.cts +12 -0
  948. package/dist/resources/poll.d.ts +12 -0
  949. package/dist/resources/poll.js +7 -0
  950. package/dist/resources/poll.js.map +1 -0
  951. package/dist/resources/processorCosts.cjs +7 -0
  952. package/dist/resources/processorCosts.cjs.map +1 -0
  953. package/dist/resources/processorCosts.d.cts +102 -0
  954. package/dist/resources/processorCosts.d.ts +102 -0
  955. package/dist/resources/processorCosts.js +7 -0
  956. package/dist/resources/processorCosts.js.map +1 -0
  957. package/dist/resources/processorImports.cjs +11 -0
  958. package/dist/resources/processorImports.cjs.map +1 -0
  959. package/dist/resources/processorImports.d.cts +96 -0
  960. package/dist/resources/processorImports.d.ts +96 -0
  961. package/dist/resources/processorImports.js +11 -0
  962. package/dist/resources/processorImports.js.map +1 -0
  963. package/dist/resources/products.cjs +7 -0
  964. package/dist/resources/products.cjs.map +1 -0
  965. package/dist/resources/products.d.cts +347 -0
  966. package/dist/resources/products.d.ts +347 -0
  967. package/dist/resources/products.js +7 -0
  968. package/dist/resources/products.js.map +1 -0
  969. package/dist/resources/profileAcquirers.cjs +7 -0
  970. package/dist/resources/profileAcquirers.cjs.map +1 -0
  971. package/dist/resources/profileAcquirers.d.cts +13 -0
  972. package/dist/resources/profileAcquirers.d.ts +13 -0
  973. package/dist/resources/profileAcquirers.js +7 -0
  974. package/dist/resources/profileAcquirers.js.map +1 -0
  975. package/dist/resources/profiles.cjs +7 -0
  976. package/dist/resources/profiles.cjs.map +1 -0
  977. package/dist/resources/profiles.d.cts +65 -0
  978. package/dist/resources/profiles.d.ts +65 -0
  979. package/dist/resources/profiles.js +7 -0
  980. package/dist/resources/profiles.js.map +1 -0
  981. package/dist/resources/projects.cjs +7 -0
  982. package/dist/resources/projects.cjs.map +1 -0
  983. package/dist/resources/projects.d.cts +131 -0
  984. package/dist/resources/projects.d.ts +131 -0
  985. package/dist/resources/projects.js +7 -0
  986. package/dist/resources/projects.js.map +1 -0
  987. package/dist/resources/refunds.cjs +7 -0
  988. package/dist/resources/refunds.cjs.map +1 -0
  989. package/dist/resources/refunds.d.cts +118 -0
  990. package/dist/resources/refunds.d.ts +118 -0
  991. package/dist/resources/refunds.js +7 -0
  992. package/dist/resources/refunds.js.map +1 -0
  993. package/dist/resources/regions.cjs +7 -0
  994. package/dist/resources/regions.cjs.map +1 -0
  995. package/dist/resources/regions.d.cts +32 -0
  996. package/dist/resources/regions.d.ts +32 -0
  997. package/dist/resources/regions.js +7 -0
  998. package/dist/resources/regions.js.map +1 -0
  999. package/dist/resources/relay.cjs +7 -0
  1000. package/dist/resources/relay.cjs.map +1 -0
  1001. package/dist/resources/relay.d.cts +13 -0
  1002. package/dist/resources/relay.d.ts +13 -0
  1003. package/dist/resources/relay.js +7 -0
  1004. package/dist/resources/relay.js.map +1 -0
  1005. package/dist/resources/risk.cjs +9 -0
  1006. package/dist/resources/risk.cjs.map +1 -0
  1007. package/dist/resources/risk.d.cts +67 -0
  1008. package/dist/resources/risk.d.ts +67 -0
  1009. package/dist/resources/risk.js +9 -0
  1010. package/dist/resources/risk.js.map +1 -0
  1011. package/dist/resources/routing.cjs +7 -0
  1012. package/dist/resources/routing.cjs.map +1 -0
  1013. package/dist/resources/routing.d.cts +526 -0
  1014. package/dist/resources/routing.d.ts +526 -0
  1015. package/dist/resources/routing.js +7 -0
  1016. package/dist/resources/routing.js.map +1 -0
  1017. package/dist/resources/search.cjs +7 -0
  1018. package/dist/resources/search.cjs.map +1 -0
  1019. package/dist/resources/search.d.cts +59 -0
  1020. package/dist/resources/search.d.ts +59 -0
  1021. package/dist/resources/search.js +7 -0
  1022. package/dist/resources/search.js.map +1 -0
  1023. package/dist/resources/sellToRestrictions.cjs +7 -0
  1024. package/dist/resources/sellToRestrictions.cjs.map +1 -0
  1025. package/dist/resources/sellToRestrictions.d.cts +99 -0
  1026. package/dist/resources/sellToRestrictions.d.ts +99 -0
  1027. package/dist/resources/sellToRestrictions.js +7 -0
  1028. package/dist/resources/sellToRestrictions.js.map +1 -0
  1029. package/dist/resources/settings.cjs +7 -0
  1030. package/dist/resources/settings.cjs.map +1 -0
  1031. package/dist/resources/settings.d.cts +36 -0
  1032. package/dist/resources/settings.d.ts +36 -0
  1033. package/dist/resources/settings.js +7 -0
  1034. package/dist/resources/settings.js.map +1 -0
  1035. package/dist/resources/settlement.cjs +9 -0
  1036. package/dist/resources/settlement.cjs.map +1 -0
  1037. package/dist/resources/settlement.d.cts +297 -0
  1038. package/dist/resources/settlement.d.ts +297 -0
  1039. package/dist/resources/settlement.js +9 -0
  1040. package/dist/resources/settlement.js.map +1 -0
  1041. package/dist/resources/shopLabels.cjs +7 -0
  1042. package/dist/resources/shopLabels.cjs.map +1 -0
  1043. package/dist/resources/shopLabels.d.cts +56 -0
  1044. package/dist/resources/shopLabels.d.ts +56 -0
  1045. package/dist/resources/shopLabels.js +7 -0
  1046. package/dist/resources/shopLabels.js.map +1 -0
  1047. package/dist/resources/shops.cjs +7 -0
  1048. package/dist/resources/shops.cjs.map +1 -0
  1049. package/dist/resources/shops.d.cts +196 -0
  1050. package/dist/resources/shops.d.ts +196 -0
  1051. package/dist/resources/shops.js +7 -0
  1052. package/dist/resources/shops.js.map +1 -0
  1053. package/dist/resources/stripeConnect.cjs +7 -0
  1054. package/dist/resources/stripeConnect.cjs.map +1 -0
  1055. package/dist/resources/stripeConnect.d.cts +19 -0
  1056. package/dist/resources/stripeConnect.d.ts +19 -0
  1057. package/dist/resources/stripeConnect.js +7 -0
  1058. package/dist/resources/stripeConnect.js.map +1 -0
  1059. package/dist/resources/subscriptions.cjs +7 -0
  1060. package/dist/resources/subscriptions.cjs.map +1 -0
  1061. package/dist/resources/subscriptions.d.cts +219 -0
  1062. package/dist/resources/subscriptions.d.ts +219 -0
  1063. package/dist/resources/subscriptions.js +7 -0
  1064. package/dist/resources/subscriptions.js.map +1 -0
  1065. package/dist/resources/support.cjs +7 -0
  1066. package/dist/resources/support.cjs.map +1 -0
  1067. package/dist/resources/support.d.cts +51 -0
  1068. package/dist/resources/support.d.ts +51 -0
  1069. package/dist/resources/support.js +7 -0
  1070. package/dist/resources/support.js.map +1 -0
  1071. package/dist/resources/threeDsRules.cjs +7 -0
  1072. package/dist/resources/threeDsRules.cjs.map +1 -0
  1073. package/dist/resources/threeDsRules.d.cts +12 -0
  1074. package/dist/resources/threeDsRules.d.ts +12 -0
  1075. package/dist/resources/threeDsRules.js +7 -0
  1076. package/dist/resources/threeDsRules.js.map +1 -0
  1077. package/dist/resources/users.cjs +7 -0
  1078. package/dist/resources/users.cjs.map +1 -0
  1079. package/dist/resources/users.d.cts +696 -0
  1080. package/dist/resources/users.d.ts +696 -0
  1081. package/dist/resources/users.js +7 -0
  1082. package/dist/resources/users.js.map +1 -0
  1083. package/dist/resources/vatRates.cjs +7 -0
  1084. package/dist/resources/vatRates.cjs.map +1 -0
  1085. package/dist/resources/vatRates.d.cts +24 -0
  1086. package/dist/resources/vatRates.d.ts +24 -0
  1087. package/dist/resources/vatRates.js +7 -0
  1088. package/dist/resources/vatRates.js.map +1 -0
  1089. package/dist/resources/verification.cjs +7 -0
  1090. package/dist/resources/verification.cjs.map +1 -0
  1091. package/dist/resources/verification.d.cts +13 -0
  1092. package/dist/resources/verification.d.ts +13 -0
  1093. package/dist/resources/verification.js +7 -0
  1094. package/dist/resources/verification.js.map +1 -0
  1095. package/dist/resources/webhooks.cjs +11 -0
  1096. package/dist/resources/webhooks.cjs.map +1 -0
  1097. package/dist/resources/webhooks.d.cts +145 -0
  1098. package/dist/resources/webhooks.d.ts +145 -0
  1099. package/dist/resources/webhooks.js +11 -0
  1100. package/dist/resources/webhooks.js.map +1 -0
  1101. package/dist/resources/whopResolutionCases.cjs +7 -0
  1102. package/dist/resources/whopResolutionCases.cjs.map +1 -0
  1103. package/dist/resources/whopResolutionCases.d.cts +28 -0
  1104. package/dist/resources/whopResolutionCases.d.ts +28 -0
  1105. package/dist/resources/whopResolutionCases.js +7 -0
  1106. package/dist/resources/whopResolutionCases.js.map +1 -0
  1107. package/dist/types-BEuEdvtX.d.cts +4511 -0
  1108. package/dist/types-ewLZOLPZ.d.ts +4511 -0
  1109. package/dist/types.cjs +1 -0
  1110. package/dist/types.cjs.map +1 -0
  1111. package/dist/{index-Dcy3Pwsx.d.cts → types.d.cts} +595 -11014
  1112. package/dist/{index-Dcy3Pwsx.d.ts → types.d.ts} +595 -11014
  1113. package/dist/types.js +1 -0
  1114. package/dist/types.js.map +1 -0
  1115. package/package.json +11 -1
  1116. package/dist/chunk-JJE7PY3K.js +0 -17987
  1117. package/dist/chunk-JJE7PY3K.js.map +0 -1
@@ -0,0 +1,4511 @@
1
+ import { ProcessorCostEstimateBasis, BillingProfileResponse, ProjectResponse, ShopResponse, PermissionOverride, SortOrder, IndustryTargetLevel, PersonListParams, PersonScopeParams, PersonSummary, EntityType, ParentGroup, PermissionScope, FailureSubstatus, BuyerRiskBand, PaymentResponse, TransactionLineExportRecord, ConnectionCheckSkipReason, ConnectionRiskLevel, ConnectionCheckOutcome, IntentStatus, RefundStatus, PreventionCaseListRequest, PreventionRefundActionListRequest, DeviceSignalSkipReason, DeviceSignalOutcome, BuyerRiskSignal, BuyerRiskPaymentOutcome, BuyerRiskAction, SettlementCostPeriod, VatRateCategory, VaultEnvironment, RiskComponentRule, RiskBands, RiskCardTestingThresholds, VerificationKind, VerificationOutcome, VerificationCheckKind, VerificationCheckOutcome, AmlStatus, ScreenedOperation, PaymentScreeningOutcome, DeviceRiskLabel, SupportKind, SupportCategory, SupportStatus, SupportSide, SupportConversationView, RiskDecidingWindow, RiskWindowBandOverrides } from './types.cjs';
2
+
3
+ /**
4
+ * Internal-only type surface. Exposed via `'@delopay/sdk/internal'` only.
5
+ *
6
+ * Any type that describes an admin-plane operation (bootstrap admin
7
+ * signup, platform analytics, audit log read, card-issuer program mgmt,
8
+ * GSM routing rules, …) lives here rather than in the public types
9
+ * barrel — otherwise merchants importing from `'@delopay/sdk'` could
10
+ * autocomplete or destructure shapes that hint at the admin API.
11
+ *
12
+ * Types that are genuinely shared between merchant and admin resources
13
+ * (e.g. `FeeSchedule*`, `ProjectResponse`, `PaymentResponse`) stay in
14
+ * `src/types.ts` and are imported here where needed.
15
+ */
16
+
17
+ /** How the per-component scores become one index. */
18
+ type RiskCombine =
19
+ /** Weighted p-norm: the worst component dominates. `p` is at least 1. */
20
+ {
21
+ method: 'p_norm';
22
+ p: number;
23
+ }
24
+ /** Weighted arithmetic mean. */
25
+ | {
26
+ method: 'mean';
27
+ };
28
+ /** How much each class of signal counts, on top of the component weights. */
29
+ interface RiskClassWeights {
30
+ /** Disputes and refunds. */
31
+ lagging: number;
32
+ /** Refusal mix and early fraud warnings. */
33
+ leading: number;
34
+ }
35
+ /**
36
+ * How card-testing bursts are found: card attempts are cut into stretches of
37
+ * `window_minutes`, a stretch counts when it meets every threshold, and
38
+ * consecutive stretches that count are one burst.
39
+ */
40
+ interface RiskCardTesting {
41
+ /** From 1 to 60, and it must divide a day (5, 10, 15, 20, 30 or 60, for example). */
42
+ window_minutes: number;
43
+ /** The thresholds for every connector `connectors` does not name. */
44
+ defaults: RiskCardTestingThresholds;
45
+ /** Thresholds for one connector, by connector name. */
46
+ connectors?: Record<string, RiskCardTestingThresholds>;
47
+ }
48
+ /** The shop risk model. */
49
+ interface RiskModel {
50
+ /** Stamped onto every stored score. Raise it with every change to the scoring. */
51
+ model_version: number;
52
+ /** Per-connector rules, by connector name and then component name. */
53
+ connectors?: Record<string, Record<string, RiskComponentRule>>;
54
+ /** Rules for every connector and component `connectors` does not name. */
55
+ defaults: Record<string, RiskComponentRule>;
56
+ combine: RiskCombine;
57
+ /** Components with fewer observations are not scored. At least 1. */
58
+ min_volume: number;
59
+ /** Where each band begins on the 0-100 index; ascending, `critical` at most 100. */
60
+ bands: RiskBands;
61
+ /**
62
+ * How strongly each lowercase refusal code points to fraud, from 0 to 1.
63
+ * A code at 0 is listed but not counted; at least one is above 0.
64
+ */
65
+ decline_code_weights: Record<string, number>;
66
+ class_weights?: RiskClassWeights;
67
+ /**
68
+ * What a merchant should do about each component, by component and then
69
+ * language (`en`, `de`). Required for every component a rule scores.
70
+ */
71
+ remediation?: Record<string, Record<string, string>>;
72
+ /**
73
+ * When card attempts count as a card-testing burst. Absent means none is
74
+ * looked for, and a `card_testing_burst` rule is refused without it.
75
+ */
76
+ card_testing?: RiskCardTesting | null;
77
+ /**
78
+ * What an open provider warning does to a shop's band, by warning kind:
79
+ * `account_disabled`, `account_requirements_due`, `review_opened`,
80
+ * `dispute_inquiry_opened`. A kind left out is shown and not counted.
81
+ */
82
+ provider_warnings?: Record<string, RiskProviderWarningRule>;
83
+ }
84
+ /** The bands a provider warning can hold a shop at. */
85
+ type RiskFloorBand = 'watch' | 'at_risk' | 'critical';
86
+ /**
87
+ * How the scoring pass treats one kind of provider warning: shown and not
88
+ * counted, or the band is at least `band` while one is open. A shop with too
89
+ * little traffic to be assessed stays unassessed.
90
+ */
91
+ type RiskProviderWarningRule = {
92
+ treatment: 'not_counted';
93
+ } | {
94
+ treatment: 'band_floor';
95
+ band: RiskFloorBand;
96
+ };
97
+ /** `stored` once an operator saved a model; `configuration` uses the deployment's default. */
98
+ type RiskModelSource = 'stored' | 'configuration';
99
+ /**
100
+ * A range of UTC days to recalculate the shop risk history for, `YYYY-MM-DD`,
101
+ * `until` exclusive: at most tomorrow and at most 366 days after `from`.
102
+ */
103
+ interface RiskBackfillRequest {
104
+ from: string;
105
+ until: string;
106
+ }
107
+ /** What a recalculation request was accepted as. */
108
+ interface RiskBackfillResponse {
109
+ /** `false` when this range is still queued or running: nothing new was started. */
110
+ enqueued: boolean;
111
+ /** The same for every request of this range. */
112
+ job_id: string;
113
+ days: number;
114
+ }
115
+ /**
116
+ * Where a recalculation stands. `partial` visited every requested day but
117
+ * could not score some of them for every merchant; it is not a success.
118
+ */
119
+ type RiskBackfillState = 'accepted' | 'running' | 'completed' | 'partial' | 'failed';
120
+ /** Why a recalculation stopped. A code to word, not a sentence. */
121
+ type RiskBackfillFailure = 'started_too_often' | 'retries_exhausted' | 'no_risk_model' | 'no_merchant_scored' | 'nothing_left' | 'not_recorded' | 'held';
122
+ /** The requested days that could not be scored for every merchant. */
123
+ interface RiskBackfillIncompleteDays {
124
+ count: number;
125
+ first?: string | null;
126
+ last?: string | null;
127
+ }
128
+ /** One recalculation, as its scheduler row records it. */
129
+ interface RiskBackfillStatus {
130
+ job_id: string;
131
+ from: string;
132
+ until: string;
133
+ days: number;
134
+ state: RiskBackfillState;
135
+ /** Requested days scoring has visited, completely or not. */
136
+ days_scored: number;
137
+ /** Days whose counters are still to be rebuilt; absent once scoring began. */
138
+ rollup_days_remaining?: number | null;
139
+ incomplete_days?: RiskBackfillIncompleteDays | null;
140
+ failure?: RiskBackfillFailure | null;
141
+ /** For `failed`: the first requested day not finished. */
142
+ stopped_at?: string | null;
143
+ /** Every model version the run scored with; more than one means the model changed during it. */
144
+ model_versions: number[];
145
+ /** The operator who requested it, as the audit log names them. */
146
+ requested_by?: string | null;
147
+ requested_at?: string | null;
148
+ finished_at?: string | null;
149
+ updated_at: string;
150
+ }
151
+ /** What submitting a range would do, without queuing it. */
152
+ interface RiskBackfillPreview {
153
+ job_id: string;
154
+ from: string;
155
+ until: string;
156
+ days: number;
157
+ /** The first day whose counters are rebuilt, before `from`. */
158
+ rewrites_from: string;
159
+ /** The model a run would score with now; absent when none is usable. */
160
+ model_version?: number | null;
161
+ model_source?: RiskModelSource | null;
162
+ /** The run of this range already recorded. While accepted or running, submitting queues nothing. */
163
+ existing?: RiskBackfillStatus | null;
164
+ }
165
+ /** `GET` / `PUT /admin-portal/risk-model`. */
166
+ interface RiskModelResponse {
167
+ source: RiskModelSource;
168
+ /** The model in effect. Absent exactly when `problem` is present. */
169
+ model?: RiskModel | null;
170
+ /** Why no usable model is in effect; the scoring pass refuses to run meanwhile. */
171
+ problem?: string | null;
172
+ /**
173
+ * What this answer was read at: a digest of the stored document, or
174
+ * `configuration` while nothing is stored. Send it back as `revision` to
175
+ * `updateRiskModel()`.
176
+ */
177
+ revision: string;
178
+ }
179
+ /**
180
+ * A change to the risk model. Objects merge key by key, `null` removes the
181
+ * key it lands on (a connector's rules, one rule, a refusal code, a text),
182
+ * and `combine` is replaced whole. `model_version` must be raised whenever
183
+ * the scoring changes; a remediation text alone may keep it.
184
+ */
185
+ interface RiskModelPatch {
186
+ model_version?: number;
187
+ connectors?: Record<string, Record<string, Partial<RiskComponentRule> | null> | null>;
188
+ defaults?: Record<string, Partial<RiskComponentRule> | null>;
189
+ combine?: RiskCombine;
190
+ min_volume?: number;
191
+ bands?: Partial<RiskBands>;
192
+ decline_code_weights?: Record<string, number | null>;
193
+ class_weights?: Partial<RiskClassWeights>;
194
+ remediation?: Record<string, Record<string, string | null> | null>;
195
+ /** `null` stops looking for bursts; a `card_testing_burst` rule must go with it. */
196
+ card_testing?: {
197
+ window_minutes?: number;
198
+ defaults?: Partial<RiskCardTestingThresholds>;
199
+ connectors?: Record<string, Partial<RiskCardTestingThresholds> | null>;
200
+ } | null;
201
+ /** A rule replaces the kind's rule whole; `null` removes it, so the kind is shown and not counted. */
202
+ provider_warnings?: Record<string, RiskProviderWarningRule | null>;
203
+ }
204
+ interface RiskModelUpdateOptions {
205
+ /**
206
+ * The `revision` the change was made against. When the stored model moved
207
+ * since, the update is refused with `IR_16` (400) and nothing is stored.
208
+ */
209
+ revision?: string;
210
+ }
211
+ /** Omitted or null fields inherit independently; a window's boundaries are one field. */
212
+ interface RiskSettingsOverrides {
213
+ deciding_window?: RiskDecidingWindow | null;
214
+ bands?: RiskWindowBandOverrides;
215
+ min_volume?: number | null;
216
+ }
217
+ /** Internal transaction fee report filters. The payment is selected by the path. */
218
+ type AdminProcessorCostEventsParams = {
219
+ /** Omit to include every reporting partition of the selected payment. */
220
+ test_mode?: boolean;
221
+ limit?: number;
222
+ offset?: number;
223
+ force_sync?: boolean;
224
+ } & SettlementCostPeriod;
225
+ interface AdminSignInRequest {
226
+ email: string;
227
+ password: string;
228
+ }
229
+ /**
230
+ * Response returned by admin signup/signin endpoints.
231
+ *
232
+ * The admin flow is passwordless-after-signup: the endpoint triggers an
233
+ * email (confirmation or sign-in link) and `is_email_sent` indicates whether
234
+ * delivery was attempted successfully.
235
+ */
236
+ interface AuthorizeResponse {
237
+ is_email_sent: boolean;
238
+ }
239
+ /** Create a new internal DeloPay admin user. Requires the server admin API key. */
240
+ interface CreateInternalUserRequest {
241
+ name: string;
242
+ email: string;
243
+ password: string;
244
+ /** Predefined internal role id (e.g. `internal_view_only`). Cannot be `internal_admin`. */
245
+ role_id: string;
246
+ }
247
+ /** Create a new tenant-level admin user. Requires the server admin API key. */
248
+ interface CreateTenantUserRequest {
249
+ name: string;
250
+ email: string;
251
+ password: string;
252
+ }
253
+ /** Bootstrap a new merchant: creates user, merchant account, project, profile, and API keys in one call. */
254
+ interface OnboardMerchantRequest {
255
+ email: string;
256
+ name: string;
257
+ password: string;
258
+ company_name: string;
259
+ /**
260
+ * Optional per-merchant override for the welcome promotional-credit amount
261
+ * (minor units). Omit to use the global promo config.
262
+ */
263
+ promo_credit_amount?: number;
264
+ /**
265
+ * Optional per-merchant override for the promotional-credit ledger message.
266
+ * Omit to use the global promo config.
267
+ */
268
+ promo_credit_message?: string;
269
+ /**
270
+ * Whether this merchant's members are offered the guided dashboard tour at
271
+ * their first sign-in, stored as the merchant's `dashboard_tour.offer`
272
+ * setting. Omit it, or send `null`, to follow the platform setting.
273
+ */
274
+ dashboard_tour?: boolean | null;
275
+ }
276
+ /**
277
+ * The platform value of the `dashboard_tour.offer` setting, read and written
278
+ * through `platformSettings.retrieve()` / `update()`. Off when nothing is
279
+ * stored.
280
+ *
281
+ * Only `enabled` is written. The server stamps `since` when `enabled` turns on
282
+ * and keeps it while it stays on, so switching the offer on reaches merchants
283
+ * created from then on and never the ones that already exist; a `since` sent
284
+ * by a client is ignored, and it is `null` while off.
285
+ *
286
+ * At a merchant (`platformSettings.retrieveMerchant()` / `updateMerchant()`)
287
+ * the value is a plain `boolean` that replaces the platform's in either
288
+ * direction; clearing it follows the platform again.
289
+ */
290
+ interface DashboardTourOfferPlatformValue {
291
+ enabled: boolean;
292
+ /** When the offer was last switched on, as an ISO 8601 instant. */
293
+ since: string | null;
294
+ }
295
+ /**
296
+ * The `detail` of the `dashboard_tour.offer` entry in a merchant's settings
297
+ * (`platformSettings.retrieveMerchant()`). The entry's `effective_value` is the
298
+ * boolean that applies to the merchant.
299
+ */
300
+ interface DashboardTourOfferDetail {
301
+ /**
302
+ * The tier that decided `effective_value`, whatever that value is. It says
303
+ * where the answer came from, not whether the merchant is offered the tour:
304
+ *
305
+ * - `merchant`: a merchant value is stored and replaces the platform's. An
306
+ * unreadable merchant value still decides, and decides no offer.
307
+ * - `platform`: no merchant value is stored, and a platform value is.
308
+ * `effective_value` is `true` only when the platform value is on and the
309
+ * merchant was created at or after its `since`. A platform value that is
310
+ * off, or a merchant created before `since`, is still `platform`, with
311
+ * `effective_value: false`.
312
+ * - `default`: nothing is stored at either scope, so no offer.
313
+ */
314
+ source: 'merchant' | 'platform' | 'default';
315
+ /**
316
+ * The platform value, `{ enabled: false, since: null }` when none is stored,
317
+ * and `null` when the stored one could not be read.
318
+ */
319
+ platform: DashboardTourOfferPlatformValue | null;
320
+ /** When the merchant account was created, as an ISO 8601 instant. */
321
+ merchant_created_at: string;
322
+ /**
323
+ * The merchant's own value; `null` when none is stored or the stored one
324
+ * could not be read.
325
+ */
326
+ override: boolean | null;
327
+ /**
328
+ * `true` when the platform value or the merchant value could not be read.
329
+ * It reports the stored data only and does not determine `effective_value`.
330
+ * An unreadable value never offers the tour where it decides, but a readable
331
+ * merchant value still wins over an unreadable platform value, so `degraded`
332
+ * can be `true` alongside `effective_value: true`.
333
+ */
334
+ degraded: boolean;
335
+ }
336
+ /** All identifiers and keys produced by the onboard flow. */
337
+ interface OnboardMerchantResponse {
338
+ merchant_id: string;
339
+ user_id: string;
340
+ user_email: string;
341
+ project_id: string;
342
+ profile_id: string;
343
+ /** Secret API key (sk_…). Show once; store securely. */
344
+ api_key: string;
345
+ /** Publishable key (pk_…) for client-side SDKs. */
346
+ publishable_key: string;
347
+ }
348
+ /** Toggle public signup on or off at runtime. */
349
+ interface SignupToggleRequest {
350
+ enabled: boolean;
351
+ }
352
+ /** Current public-signup status. */
353
+ interface SignupToggleResponse {
354
+ signup_enabled: boolean;
355
+ }
356
+ interface AdminCustomerListParams {
357
+ search?: string | null;
358
+ is_active?: boolean | null;
359
+ offset?: number | null;
360
+ limit?: number | null;
361
+ /**
362
+ * Comma-separated opt-in fields. Currently only `"billing"` is recognised —
363
+ * adds `balance_amount`, `balance_currency`, `billing_status` to each
364
+ * `CustomerSummary` at the cost of one extra DB lookup per row. Default
365
+ * callers should omit this to keep list responses fast.
366
+ */
367
+ include?: string | null;
368
+ /**
369
+ * What the list is sorted by. Omitted, the listing keeps its order with the
370
+ * caller's favorite merchants first; with a sort, favorites are not moved.
371
+ */
372
+ sort_by?: AdminCustomerSortBy | null;
373
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
374
+ sort_order?: SortOrder | null;
375
+ /**
376
+ * Only merchants in these billing statuses; any of them matches. A merchant
377
+ * without a billing profile matches none.
378
+ */
379
+ billing_status?: string[] | null;
380
+ }
381
+ /**
382
+ * What the merchant list can be sorted by: `created`, `name`
383
+ * (case-insensitive; merchants without one come last), `balance` (the
384
+ * prepaid balance in minor units, whatever its currency) or `billing_status`.
385
+ * `balance` and `billing_status` put merchants without a billing profile
386
+ * last.
387
+ */
388
+ type AdminCustomerSortBy = 'created' | 'name' | 'balance' | 'billing_status';
389
+ interface CustomerSummary {
390
+ customer_id: string;
391
+ organization_id: string;
392
+ shop_count: number;
393
+ is_active: boolean;
394
+ created_at: string;
395
+ customer_name?: string | null;
396
+ email?: string | null;
397
+ /** Populated only when the request opted in via `include=billing`. */
398
+ balance_amount?: number | null;
399
+ /** Populated only when the request opted in via `include=billing`. */
400
+ balance_currency?: string | null;
401
+ /**
402
+ * Populated only when the request opted in via `include=billing`. Values:
403
+ * `active`, `pending_setup`, `delinquent`, `suspended`. Null when the
404
+ * merchant has never been onboarded to billing.
405
+ */
406
+ billing_status?: string | null;
407
+ }
408
+ /**
409
+ * What the customers listing could not put in `customers`, and why.
410
+ *
411
+ * The listing enumerates merchant accounts, so two kinds of row never reach
412
+ * `customers`: a billing profile whose merchant account is gone (there is no
413
+ * account behind it to enumerate) and a merchant whose account or key store
414
+ * would not load. Both were dropped silently before, which is why the visible
415
+ * account count and the platform's own figures could disagree with nothing
416
+ * saying so.
417
+ *
418
+ * Always present. A healthy deployment answers with an empty list and zeroes.
419
+ */
420
+ interface AdminCustomerListReconciliation {
421
+ /**
422
+ * Merchant accounts the platform holds. Always the whole population — no
423
+ * request parameter narrows it.
424
+ *
425
+ * With neither `search` nor `is_active`, `total_count` equals this figure
426
+ * and `customers` carries the requested page of it. Either filter breaks
427
+ * that equality on purpose: `total_count` then counts what matched while
428
+ * this still counts the population that was filtered. `is_active: false` is
429
+ * the extreme case — every account this listing returns is reported active,
430
+ * so `total_count` is `0` against an unchanged population. **That gap is the
431
+ * filter working, not accounts going missing**; `unreadable_merchant_count`
432
+ * is the one that means something was lost.
433
+ *
434
+ * `total_count` is never the length of `customers` either: a page capped by
435
+ * `limit` cannot be compared with a platform figure, which is the comparison
436
+ * this block exists to make possible.
437
+ */
438
+ merchant_account_count: number;
439
+ /**
440
+ * Billing profiles with no merchant account, oldest first. **Not** merged
441
+ * into `customers` — there is no account, organization or shop behind one,
442
+ * and a row rendered as an ordinary merchant would hide the distinction
443
+ * again.
444
+ *
445
+ * Complete rather than paged, on the same reasoning as
446
+ * `adminPortal.orphanedBillingProfiles()`: the question is whether the
447
+ * set is empty, and a truncated answer to that reads as a clean bill of
448
+ * health.
449
+ */
450
+ orphaned_profiles: OrphanedBillingProfile[];
451
+ /**
452
+ * The orphan read failed, so `orphaned_profiles` is **not** an answer of
453
+ * "none". Reported rather than failing the listing, so the page still
454
+ * renders.
455
+ */
456
+ orphaned_profiles_incomplete: boolean;
457
+ /**
458
+ * Merchants this request read and could not return. Such a row is dropped
459
+ * from `customers`, as it always was; what changes is that the drop is
460
+ * reported, because a failed read is not an answer of "no such merchant"
461
+ * and a listing that silently shrank by one is indistinguishable from a
462
+ * platform with one merchant fewer.
463
+ *
464
+ * Scoped to what the request read: the requested page without a `search`,
465
+ * the whole population with one. Without a search `total_count` is counted
466
+ * in SQL and does **not** shrink with these rows, so the shortfall between
467
+ * it and the page is what this figure explains.
468
+ */
469
+ unreadable_merchant_count: number;
470
+ }
471
+ interface AdminCustomerListResponse {
472
+ customers: CustomerSummary[];
473
+ total_count: number;
474
+ offset: number;
475
+ limit: number;
476
+ /** Always present. See {@link AdminCustomerListReconciliation}. */
477
+ reconciliation: AdminCustomerListReconciliation;
478
+ /**
479
+ * Merchants a risk stage flagged for operator review, across the whole
480
+ * platform rather than this page. `null` when the count could not be read,
481
+ * which is not the same as none. Absent from backends without merchant
482
+ * risk stages.
483
+ */
484
+ risk_review_flagged_count?: number | null;
485
+ }
486
+ /** Page bounds, filters and order for `adminPortal.listUnresolvedRefunds`. */
487
+ interface AdminUnresolvedRefundListParams {
488
+ /** Page size, clamped server-side to `1..=100`. Default 20. */
489
+ limit?: number | null;
490
+ /** Rows to skip. Default 0. */
491
+ offset?: number | null;
492
+ /** Only this merchant's refunds. */
493
+ merchant_id?: string | null;
494
+ /** Only refunds of these connectors; any of them matches. */
495
+ connector?: string[] | null;
496
+ /**
497
+ * Only refunds in these statuses; any of them matches. Only `pending` and
498
+ * `review` can be unresolved, so any other status matches nothing.
499
+ */
500
+ status?: RefundStatus[] | null;
501
+ /**
502
+ * Only refunds with these marker reasons (`sync_reason`), for example
503
+ * `connector_reads_no_refund_by_id`; any of them matches.
504
+ */
505
+ sync_reason?: string[] | null;
506
+ /** What the list is sorted by. Omitted, the newest comes first. */
507
+ sort_by?: AdminUnresolvedRefundSortBy | null;
508
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
509
+ sort_order?: SortOrder | null;
510
+ }
511
+ /**
512
+ * What the unresolved-refund list can be sorted by: `created` (when the
513
+ * refund was mirrored), `merchant`, `connector`, `amount` (minor units,
514
+ * whatever the currency) or `status`.
515
+ */
516
+ type AdminUnresolvedRefundSortBy = 'created' | 'merchant' | 'connector' | 'amount' | 'status';
517
+ /**
518
+ * One refund no sync can advance, as the operator list shows it.
519
+ *
520
+ * Not a `RefundResponse`: that carries no `merchant_id`, which a
521
+ * cross-merchant list cannot do without. `sync_reason` is why the row is
522
+ * here, lifted out of the stored marker — e.g.
523
+ * `connector_reads_no_refund_by_id`.
524
+ */
525
+ interface AdminUnresolvedRefund {
526
+ merchant_id: string;
527
+ profile_id?: string | null;
528
+ payment_id: string;
529
+ refund_id: string;
530
+ /** The connector the payment and the refund went through (e.g. `creem`). */
531
+ connector: string;
532
+ /** The connector's own id for the refund, as the webhook delivered it. */
533
+ connector_refund_id?: string | null;
534
+ /** Refunded amount in the minor unit of `currency`. */
535
+ amount: number;
536
+ currency: string;
537
+ /** The status the row is stuck at — `pending` or `review`. */
538
+ status: RefundStatus;
539
+ /** The connector's stated reason for the refund, when it gave one. */
540
+ reason?: string | null;
541
+ /** Why no sync can advance this row, as written at mirror time. */
542
+ sync_reason?: string | null;
543
+ created_at: string;
544
+ updated_at: string;
545
+ }
546
+ /**
547
+ * Refunds of every merchant that were mirrored from a connector webhook at a
548
+ * non-terminal status and that no sync can advance: the connector emits no
549
+ * later event for them and reads no refund object by id. Newest first;
550
+ * `total_count` is the size of the whole set before paging.
551
+ */
552
+ interface AdminUnresolvedRefundListResponse {
553
+ data: AdminUnresolvedRefund[];
554
+ total_count: number;
555
+ offset: number;
556
+ limit: number;
557
+ }
558
+ interface CustomerUser {
559
+ user_id: string;
560
+ email?: string | null;
561
+ name?: string | null;
562
+ role_id?: string | null;
563
+ /** Optional: older API versions may omit this field. */
564
+ is_verified?: boolean | null;
565
+ is_active: boolean;
566
+ created_at: string;
567
+ /**
568
+ * The areas whose level is set for this user in the merchant on top of
569
+ * their role, sorted by area. Empty when the role
570
+ * decides everything and for an archived merchant's users; absent from a
571
+ * router that predates per-member overrides.
572
+ */
573
+ permission_overrides?: PermissionOverride[];
574
+ }
575
+ interface AdminCreateUserForMerchantRequest {
576
+ name: string;
577
+ email: string;
578
+ password: string;
579
+ /** Predefined merchant role id (e.g. `merchant_admin`, `merchant_view_only`). */
580
+ role_id: string;
581
+ }
582
+ interface AdminUpdateUserRequest {
583
+ name?: string | null;
584
+ is_verified?: boolean | null;
585
+ is_active?: boolean | null;
586
+ /** Predefined merchant role id. Requires `merchant_id`. */
587
+ role_id?: string | null;
588
+ /** Merchant scope for the role change. Required iff `role_id` is set. */
589
+ merchant_id?: string | null;
590
+ /**
591
+ * New password (validated against signup policy). Existing JWTs are
592
+ * blacklisted on change so the user is forced to log in fresh.
593
+ */
594
+ password?: string | null;
595
+ /** When true, wipes the user's TOTP state so they re-enroll on next login. */
596
+ reset_2fa?: boolean | null;
597
+ }
598
+ interface AdminUserResponse {
599
+ user_id: string;
600
+ email: string;
601
+ name: string;
602
+ is_verified: boolean;
603
+ is_active: boolean;
604
+ }
605
+ /**
606
+ * Whether a membership of a user grants anything now:
607
+ * - `active`: accepted and not expired;
608
+ * - `invited`: still an invitation the user has not accepted, and not expired;
609
+ * - `expired`: its access ended at `expires_at`, whether it was accepted or
610
+ * not.
611
+ */
612
+ type AdminUserMembershipStatus = 'active' | 'invited' | 'expired';
613
+ /** One membership (role binding) of a user, as `adminPortal.getUser` lists it. */
614
+ interface AdminUserMembership {
615
+ /** The membership's id. */
616
+ id: string;
617
+ /**
618
+ * The level the membership binds at: `tenant`, `organization`, `merchant`,
619
+ * `project` or `profile` (a shop).
620
+ */
621
+ entity_type: string;
622
+ org_id?: string | null;
623
+ org_name?: string | null;
624
+ merchant_id?: string | null;
625
+ merchant_name?: string | null;
626
+ /** Set for a membership on a project, which reaches every shop of it. */
627
+ project_id?: string | null;
628
+ project_name?: string | null;
629
+ /** Set for a membership on one shop. */
630
+ profile_id?: string | null;
631
+ shop_name?: string | null;
632
+ role_id: string;
633
+ /**
634
+ * The role's display name. Falls back to `role_id` when the role no longer
635
+ * resolves.
636
+ */
637
+ role_name: string;
638
+ /** Whether the role is a platform (internal) role. */
639
+ internal_role: boolean;
640
+ status: AdminUserMembershipStatus;
641
+ /** When the membership's access ends (ISO 8601). `null` when it does not. */
642
+ expires_at?: string | null;
643
+ /** ISO 8601. */
644
+ created_at: string;
645
+ /** ISO 8601. */
646
+ last_modified_at: string;
647
+ }
648
+ /**
649
+ * One user's account, its health and every membership it holds in this
650
+ * tenant. `GET /admin-portal/users/{user_id}`
651
+ *
652
+ * Never carries a credential: no password, second-factor secret, recovery
653
+ * code, sign-in provider subject or token.
654
+ */
655
+ interface AdminUserDetailResponse {
656
+ user_id: string;
657
+ email: string;
658
+ name: string;
659
+ is_active: boolean;
660
+ is_verified: boolean;
661
+ /** ISO 8601. */
662
+ created_at: string;
663
+ /** ISO 8601. */
664
+ last_modified_at: string;
665
+ /** Whether two-factor authentication is set up. */
666
+ two_factor_enabled: boolean;
667
+ /**
668
+ * When the password last changed (ISO 8601). `null` while the user has no
669
+ * password of their own.
670
+ */
671
+ password_changed_at?: string | null;
672
+ /** The language the user receives messages in. `null` for the default. */
673
+ preferred_language?: string | null;
674
+ /** The single sign-on providers linked to the account, such as `google`. */
675
+ sso_providers: string[];
676
+ /** The newest successful sign-in (ISO 8601). `null` when none is on record. */
677
+ last_sign_in_at?: string | null;
678
+ /** The newest failed sign-in (ISO 8601). `null` when none is on record. */
679
+ last_failed_sign_in_at?: string | null;
680
+ /**
681
+ * The last request any session of the user made, ended sessions included
682
+ * (ISO 8601). `null` when none is on record.
683
+ */
684
+ last_seen_at?: string | null;
685
+ /** Sessions neither signed out nor expired. */
686
+ active_session_count: number;
687
+ /**
688
+ * Every membership of the user in this tenant, whatever its status: active
689
+ * first, then invited, then expired, newest first within each.
690
+ */
691
+ memberships: AdminUserMembership[];
692
+ }
693
+ /**
694
+ * Query of `adminPortal.listPersonsAcrossMerchants()`: the filters and sorts
695
+ * of `persons.list()` without its shop scope. An unknown key is refused with
696
+ * `400`.
697
+ */
698
+ interface AdminPersonListParams extends Omit<PersonListParams, keyof PersonScopeParams> {
699
+ /** Only the persons of this merchant. Absent: every merchant's. */
700
+ merchant_id?: string | null;
701
+ }
702
+ /** A person on an operator's list: one merchant's person and that merchant. */
703
+ interface AdminPersonSummary extends PersonSummary {
704
+ merchant_id: string;
705
+ /** The merchant's name, when it has one. */
706
+ merchant_name?: string | null;
707
+ }
708
+ interface AdminPersonListResponse {
709
+ persons: AdminPersonSummary[];
710
+ /** Every person the request matches, not only this page. */
711
+ total_count: number;
712
+ }
713
+ /**
714
+ * Why staff flagged a person. A `switch` over it that is checked for
715
+ * exhaustiveness needs a new case when a reason is added.
716
+ */
717
+ type PersonFlagReason = 'suspected_fraud' | 'identity_mismatch' | 'location_mismatch' | 'unusual_activity' | 'other';
718
+ /**
719
+ * One staff flag on a person, active or removed. A removed flag stays in the
720
+ * history with who removed it and when. A flag is a mark for staff: it
721
+ * changes no payment and is never shown to the merchant.
722
+ */
723
+ interface PersonFlagView {
724
+ flag_id: string;
725
+ /**
726
+ * The person it was set on. When that person has since merged, this is the
727
+ * merged person, not the one the flag is listed under.
728
+ */
729
+ person_id: string;
730
+ reason: PersonFlagReason;
731
+ note?: string | null;
732
+ active: boolean;
733
+ flagged_by: string;
734
+ /** ISO 8601. */
735
+ flagged_at: string;
736
+ modified_by: string;
737
+ /** ISO 8601. */
738
+ modified_at: string;
739
+ removed_by?: string | null;
740
+ /** ISO 8601; `null` while the flag is active. */
741
+ removed_at?: string | null;
742
+ /**
743
+ * Name it on the next change or removal: a colleague's newer change is
744
+ * never overwritten.
745
+ */
746
+ version: number;
747
+ }
748
+ /** A person's flags, newest first, with those of the persons merged into it. */
749
+ interface PersonFlagList {
750
+ /**
751
+ * The person the flags are read for: the one asked for, or the person it
752
+ * merged into.
753
+ */
754
+ person_id: string;
755
+ /** Whether any flag is active. */
756
+ flagged: boolean;
757
+ flags: PersonFlagView[];
758
+ }
759
+ /**
760
+ * Body of `adminPortal.flagPerson()`. A person already flagged is refused
761
+ * with `IR_38` (400). An unknown key is refused.
762
+ */
763
+ interface PersonFlagCreate {
764
+ reason: PersonFlagReason;
765
+ note?: string | null;
766
+ }
767
+ /**
768
+ * Body of `adminPortal.updatePersonFlag()`: replaces an active flag's reason
769
+ * and note at the `version` the editor read. No note, or an empty one, leaves
770
+ * none. A colleague's newer change, or a removal, refuses it with `IR_16`
771
+ * (`reason: changed_elsewhere`). An unknown key is refused.
772
+ */
773
+ interface PersonFlagUpdate {
774
+ reason: PersonFlagReason;
775
+ note?: string | null;
776
+ version: number;
777
+ }
778
+ /** A person with an active flag, as the person its flags are read under. */
779
+ interface FlaggedPerson {
780
+ /**
781
+ * The person the flag counts for: the one it was set on, or the person
782
+ * that one merged into.
783
+ */
784
+ person_id: string;
785
+ /**
786
+ * The person's newest active flag. A person that two merged persons
787
+ * brought a flag each to is listed once.
788
+ */
789
+ flag: PersonFlagView;
790
+ }
791
+ /** One page of a merchant's flagged persons, newest flag first. */
792
+ interface FlaggedPersonList {
793
+ persons: FlaggedPerson[];
794
+ /** Flagged persons of the merchant, over every page. */
795
+ total_count: number;
796
+ }
797
+ /** Query of `adminPortal.listFlaggedPersons()`. */
798
+ interface FlaggedPersonListParams {
799
+ /** Persons per page, 1 to 100; defaults to 25. Outside that range is a `400`. */
800
+ limit?: number | null;
801
+ /** Persons to skip. */
802
+ offset?: number | null;
803
+ }
804
+ /** Whether one asked person is flagged. */
805
+ interface PersonFlagStatus {
806
+ /**
807
+ * The person id as asked. A merged person answers for the person it
808
+ * merged into.
809
+ */
810
+ person_id: string;
811
+ /**
812
+ * Whether an active flag is set on the person or on a person merged into
813
+ * it. An unknown person is not flagged.
814
+ */
815
+ flagged: boolean;
816
+ /** The newest active flag; `null` when there is none. */
817
+ flag?: PersonFlagView | null;
818
+ }
819
+ /** One answer per asked person, in the order asked. */
820
+ interface PersonFlagStatusList {
821
+ persons: PersonFlagStatus[];
822
+ }
823
+ /** Which of a buyer's keys a person flagged at another merchant shares. */
824
+ type FlaggedElsewhereKey = 'email' | 'device';
825
+ /**
826
+ * A person flagged by staff at another merchant who shares an email address
827
+ * or a device with this buyer. A hint for staff: the two persons stay
828
+ * separate, and nothing about a payment changes.
829
+ */
830
+ interface FlaggedElsewhere {
831
+ /** The other merchant, where the person is flagged. */
832
+ merchant_id: string;
833
+ /**
834
+ * The flagged person at that merchant: the person its flags are read
835
+ * under, a person merged into another reading as that one.
836
+ */
837
+ person_id: string;
838
+ /** The keys it shares with this buyer, each once: `email` before `device`. */
839
+ via: FlaggedElsewhereKey[];
840
+ /** The person's newest active flag. */
841
+ flag: PersonFlagView;
842
+ }
843
+ /**
844
+ * Persons flagged at other merchants who share an email address or a device
845
+ * with a person, newest flag first.
846
+ */
847
+ interface FlaggedElsewhereList {
848
+ /**
849
+ * The person the matches are read for: the one asked for, or the person it
850
+ * merged into.
851
+ */
852
+ person_id: string;
853
+ matches: FlaggedElsewhere[];
854
+ }
855
+ /**
856
+ * Which requested change the last-administrator guard refused.
857
+ *
858
+ * Rides in `error.data.route` of a `UR_66` so the caller can say *what* was
859
+ * refused from its own translations — the message is generic on purpose and
860
+ * should not be displayed.
861
+ */
862
+ type LastAdministratorRoute =
863
+ /** `is_active: false` on the last administrator. */
864
+ 'deactivate'
865
+ /**
866
+ * `role_id` moving the last administrator onto a role that cannot manage
867
+ * the merchant's users.
868
+ */
869
+ | 'demote'
870
+ /**
871
+ * `is_verified: false` on the last administrator. Not an immediate lockout
872
+ * — the sign-in flow allows a grace window after `created_at` — but one that
873
+ * has long since closed for an established account.
874
+ */
875
+ | 'unverify'
876
+ /** `DELETE` on the last administrator. */
877
+ | 'delete'
878
+ /**
879
+ * A permission override taking team management away from the last
880
+ * administrator (`updateMemberPermissionOverrides`).
881
+ */
882
+ | 'permission_override';
883
+ /**
884
+ * `error.data` of a `UR_66`: `updateUser` / `deleteUser` refused a change
885
+ * because it would leave `merchant_id` with nobody who can manage its users.
886
+ *
887
+ * "Administrator" means an active account whose active role binding at the
888
+ * merchant resolves to a role holding user-write permission at merchant scope
889
+ * — resolved through the role's permission groups, so a custom role counts the
890
+ * same as `merchant_admin`. A user who is inactive, or whose role binding is
891
+ * still a pending invitation, is not one.
892
+ *
893
+ * Narrow a caught `DelopayError` onto this by checking `code === 'UR_66'`;
894
+ * `data` is absent against a router that predates the guard.
895
+ */
896
+ interface LastAdministratorRefusal {
897
+ merchant_id: string;
898
+ route: LastAdministratorRoute;
899
+ }
900
+ interface AdminCustomerDetail {
901
+ customer_id: string;
902
+ organization_id: string;
903
+ employee_count: number;
904
+ created_at: string;
905
+ customer_name?: string | null;
906
+ projects: ProjectResponse[];
907
+ shops: ShopResponse[];
908
+ users: CustomerUser[];
909
+ }
910
+ interface AdminTransactionListParams {
911
+ /** Exclude DeloPay internal-organization traffic before pagination and count. */
912
+ exclude_internal?: boolean | null;
913
+ /** General case-insensitive search across plaintext transaction fields. */
914
+ search?: string | null;
915
+ merchant_id?: string | null;
916
+ /**
917
+ * Several merchant ids. Combined with `merchant_id`: a payment of any of
918
+ * them matches.
919
+ */
920
+ merchant_ids?: string[] | null;
921
+ shop_id?: string | null;
922
+ payment_id?: string | null;
923
+ connector_transaction_id?: string | null;
924
+ connector_response_reference_id?: string | null;
925
+ connector_request_reference_id?: string | null;
926
+ connector_capture_id?: string | null;
927
+ /**
928
+ * The buyer device that made the payment — the `dp_did` recorded on its
929
+ * client-context observations. Prefix-matched from 3 characters.
930
+ */
931
+ device_id?: string | null;
932
+ /**
933
+ * The buyer's client IP: a host, a CIDR network, or a partial prefix
934
+ * (`203.0.113.`), matched by address containment rather than as text. A
935
+ * value that is not an address selects nothing rather than being ignored.
936
+ */
937
+ client_ip?: string | null;
938
+ status?: string | null;
939
+ statuses?: string[] | null;
940
+ /** Exact match on the active attempt's connector (e.g. `stripe`). */
941
+ connector?: string | null;
942
+ connectors?: string[] | null;
943
+ /** Exact match on the active attempt's payment method (e.g. `card`). */
944
+ payment_method?: string | null;
945
+ payment_methods?: string[] | null;
946
+ /** Exact match on the active attempt's method sub-type (e.g. `apple_pay`). */
947
+ payment_method_type?: string | null;
948
+ payment_method_types?: string[] | null;
949
+ currencies?: string[] | null;
950
+ merchant_connector_ids?: string[] | null;
951
+ connector_settlement_statuses?: string[] | null;
952
+ routing_approaches?: string[] | null;
953
+ /**
954
+ * Only declined or failed payments whose failure substatus is one of these.
955
+ * Sent as the comma-separated `failure_substatuses` the backend reads.
956
+ */
957
+ failure_substatuses?: FailureSubstatus[] | null;
958
+ /**
959
+ * Catalog product ids: only payments that sold at least one of them. Sent
960
+ * as the comma-separated `product_ids` the backend reads.
961
+ */
962
+ product_ids?: string[] | null;
963
+ /**
964
+ * `false`: only payments that cannot be assigned to a product — no catalog
965
+ * line at all, or a line that did not resolve to one. `true`: only payments
966
+ * whose every line did. The rule of each row's `product_summary.attributed`.
967
+ */
968
+ attributed?: boolean | null;
969
+ /**
970
+ * Only payments whose latest buyer risk evaluation is in one of these bands;
971
+ * a payment never scored matches none. Sent as the comma-separated
972
+ * `buyer_risk_band` the backend reads.
973
+ */
974
+ buyer_risk_band?: BuyerRiskBand[] | null;
975
+ /**
976
+ * Only the payments of this person (`psn_…`); a merged person's id selects
977
+ * the person it was merged into.
978
+ */
979
+ person_id?: string | null;
980
+ /**
981
+ * `true`: only payments whose person is flagged by staff, by a flag set on
982
+ * that person or on a person merged into it. `false`: every other payment,
983
+ * including one without a person.
984
+ */
985
+ person_flagged?: boolean | null;
986
+ /** `true` = test only, `false` = live only, omitted = both. */
987
+ test_mode?: boolean | null;
988
+ /**
989
+ * `true` = only transactions marked as an integration test, `false` = only
990
+ * unmarked ones, omitted = both. Combines with `test_mode`.
991
+ */
992
+ is_integration_test?: boolean | null;
993
+ /** Inclusive lower bound on the payment amount, in minor units. */
994
+ start_amount?: number | null;
995
+ /** Inclusive upper bound on the payment amount, in minor units. */
996
+ end_amount?: number | null;
997
+ /** `true` = deleted-only recovery view; false/omitted = active transactions. */
998
+ deleted?: boolean | null;
999
+ start_date?: string | null;
1000
+ end_date?: string | null;
1001
+ offset?: number | null;
1002
+ limit?: number | null;
1003
+ /** Column to sort by: `amount`, `created`, `modified`, `status`, `shop`,
1004
+ * `customer`, `product`, `payment_id`, `connector`, `payment_method` or
1005
+ * `merchant`. Defaults to `created`. */
1006
+ sort_on?: string | null;
1007
+ /** Sort direction: `asc` or `desc`. Defaults to `desc`. */
1008
+ sort_by?: string | null;
1009
+ }
1010
+ /**
1011
+ * One row of the admin transaction list: the payment, the band and score of
1012
+ * its latest buyer risk evaluation, and whether its person is flagged. The
1013
+ * full evaluations are read with `adminPortal.getTransactionBuyerRisk()`.
1014
+ */
1015
+ interface AdminTransactionRow extends PaymentResponse {
1016
+ /** `null` for a payment never scored. */
1017
+ buyer_risk_band?: BuyerRiskBand | null;
1018
+ /** 0 to 100; `null` for a payment never scored. */
1019
+ buyer_risk_score?: number | null;
1020
+ /**
1021
+ * Whether the payment's person is flagged by staff, by a flag set on that
1022
+ * person or on a person merged into it. `null` for a payment without a
1023
+ * person, or when the flags could not be read.
1024
+ */
1025
+ person_flagged?: boolean | null;
1026
+ }
1027
+ /**
1028
+ * One payment as staff read it (`adminPortal.getTransaction()`): the
1029
+ * merchant's own payment detail, with what only staff see beside it. The
1030
+ * merchant's `PaymentResponse` never carries these fields.
1031
+ */
1032
+ interface AdminTransactionDetail extends PaymentResponse {
1033
+ /**
1034
+ * Whether the payment's person is flagged by staff, by a flag set on that
1035
+ * person or on a person merged into it. `null` when the payment has no
1036
+ * person yet, or when the flags could not be read.
1037
+ */
1038
+ person_flagged?: boolean | null;
1039
+ /**
1040
+ * Persons flagged by staff at other merchants who share this payment's
1041
+ * email address or device id, newest flag first. Empty when there are
1042
+ * none; `null` when they could not be read.
1043
+ */
1044
+ flagged_elsewhere?: FlaggedElsewhere[] | null;
1045
+ }
1046
+ interface AdminTransactionListResponse {
1047
+ data: AdminTransactionRow[];
1048
+ total_count?: number | null;
1049
+ }
1050
+ /**
1051
+ * Filters of the admin transactions export
1052
+ * (`adminPortal.exportTransactions`): exactly the list's, minus the page.
1053
+ *
1054
+ * An export that understood fewer filters than the table it is taken from
1055
+ * would quietly widen the result set, so it takes the list's own; and the
1056
+ * absence of `limit` / `offset` is the point — the export is the match set,
1057
+ * not a page of it.
1058
+ */
1059
+ type AdminTransactionExportParams = Omit<AdminTransactionListParams, 'limit' | 'offset'>;
1060
+ /**
1061
+ * One row of the admin transactions export: the twelve columns the admin
1062
+ * transactions table renders, in its order, then `test_mode`, then the four
1063
+ * product columns.
1064
+ */
1065
+ interface AdminTransactionExportRecord {
1066
+ payment_id: string;
1067
+ merchant_id: string;
1068
+ /** The merchant's display name, or its id when the name cannot be resolved. */
1069
+ merchant_name: string;
1070
+ shop_id: string | null;
1071
+ shop_name: string | null;
1072
+ connector: string | null;
1073
+ payment_method: string | null;
1074
+ payment_method_type: string | null;
1075
+ status: string;
1076
+ /** Minor units. */
1077
+ amount: number;
1078
+ currency: string | null;
1079
+ /** ISO 8601, UTC. */
1080
+ created_at: string;
1081
+ /**
1082
+ * The payment's environment. `null` when it never recorded one — which is
1083
+ * not `false`, although the `test_mode` filter counts it as live. A default
1084
+ * export spans both environments, so each row says which it is.
1085
+ */
1086
+ test_mode: boolean | null;
1087
+ /**
1088
+ * The first catalog line's product id. `null` for a payment with no line,
1089
+ * or whose first line did not resolve to a catalog product.
1090
+ */
1091
+ product_id: string | null;
1092
+ /** The first line's name as it read when the payment was made. */
1093
+ product_name: string | null;
1094
+ /** How many product lines the payment recorded; `0` for none. */
1095
+ product_line_count: number;
1096
+ /**
1097
+ * Whether the payment can be assigned to a product: at least one line, and
1098
+ * every line resolved. A payment with no lines is `false`.
1099
+ */
1100
+ attributed: boolean;
1101
+ }
1102
+ /**
1103
+ * One row of the admin transaction line export
1104
+ * (`adminPortal.exportTransactionLines`): the merchant row of
1105
+ * {@link TransactionLineExportRecord}, with the merchant and shop named.
1106
+ */
1107
+ interface AdminTransactionLineExportRecord extends TransactionLineExportRecord {
1108
+ /** The merchant's display name, or its id when the name cannot be resolved. */
1109
+ merchant_name: string | null;
1110
+ shop_name: string | null;
1111
+ }
1112
+ interface AdminAnalyticsRequest {
1113
+ start_date?: string | null;
1114
+ end_date?: string | null;
1115
+ }
1116
+ interface OverviewStat {
1117
+ label: string;
1118
+ value: number;
1119
+ change_percent: number;
1120
+ }
1121
+ /** Fields common to every per-attempt processor-cost read. */
1122
+ interface AdminAttemptProcessorCostBase {
1123
+ payment_id: string;
1124
+ attempt_id: string;
1125
+ /**
1126
+ * The processor's own method identifier the payment ran with (the e-Payouts
1127
+ * vendor code), as stamped on the line. Absent for other connectors and on
1128
+ * lines written before it was recorded.
1129
+ */
1130
+ connector_method_code?: string | null;
1131
+ /**
1132
+ * What produced an `estimated` cost — the schedule and rates as they stood
1133
+ * when the line was priced, so the figure stays explicable after the
1134
+ * schedule is replaced or deleted. Absent on a `reported` cost, and on a
1135
+ * line carrying no figure at all.
1136
+ */
1137
+ processor_cost_basis?: ProcessorCostEstimateBasis | null;
1138
+ }
1139
+ /**
1140
+ * No settlement line exists for the attempt — a merchant without hosting-fee
1141
+ * configuration, or a payment that never established a capture. Says nothing
1142
+ * about what the rail charged, so it can carry no figure.
1143
+ */
1144
+ interface AdminAttemptProcessorCostUnrecorded extends AdminAttemptProcessorCostBase {
1145
+ line_recorded: false;
1146
+ processor_cost_source?: never;
1147
+ processor_cost_amount?: never;
1148
+ processor_cost_currency?: never;
1149
+ processor_cost_exponent?: never;
1150
+ }
1151
+ /**
1152
+ * A recorded line whose cost is known — the rail reported it, or a configured
1153
+ * schedule estimated it. Same contract as `SettlementLineWithProcessorCost`:
1154
+ * the amount is minor units at `processor_cost_exponent` of
1155
+ * `processor_cost_currency` (the rail's own settlement currency), and the
1156
+ * three arrive together or not at all — a figure does not decode without its
1157
+ * exponent, and the server derives and redacts them as one.
1158
+ */
1159
+ interface AdminAttemptProcessorCostKnown extends AdminAttemptProcessorCostBase {
1160
+ line_recorded: true;
1161
+ processor_cost_source: 'reported' | 'estimated';
1162
+ processor_cost_amount: number;
1163
+ processor_cost_currency: string;
1164
+ processor_cost_exponent: number;
1165
+ }
1166
+ /**
1167
+ * A recorded line with no figure — which is not a zero. A present
1168
+ * `'unavailable'` says the rail was asked and reports nothing; an absent
1169
+ * source says the line predates cost recording. Either way nothing here is a
1170
+ * number.
1171
+ */
1172
+ interface AdminAttemptProcessorCostWithoutFigure extends AdminAttemptProcessorCostBase {
1173
+ line_recorded: true;
1174
+ processor_cost_source?: 'unavailable';
1175
+ processor_cost_amount?: never;
1176
+ processor_cost_currency?: never;
1177
+ processor_cost_exponent?: never;
1178
+ }
1179
+ /**
1180
+ * What the rail charged for one attempt, read off the attempt's settlement
1181
+ * line (`fee_statement_line`) for the admin transaction detail. A
1182
+ * discriminated union on `line_recorded` and
1183
+ * `processor_cost_source`, so `processor_cost_amount` is a `number` only after
1184
+ * narrowing to a known cost — an unreported cost can never be read as a plain
1185
+ * number, and never as 0. Pinned by
1186
+ * `tests/internal/adminAttemptProcessorCost.test-d.ts`.
1187
+ */
1188
+ type AdminAttemptProcessorCost = AdminAttemptProcessorCostUnrecorded | AdminAttemptProcessorCostKnown | AdminAttemptProcessorCostWithoutFigure;
1189
+ interface OverviewStatsResponse {
1190
+ total_accounts: OverviewStat;
1191
+ total_admins: OverviewStat;
1192
+ audit_events: OverviewStat;
1193
+ }
1194
+ /**
1195
+ * How much of a reported collected-fee total the aggregate could actually
1196
+ * see, and — when it could not see all of it — in which direction the figure
1197
+ * is wrong.
1198
+ *
1199
+ * - `exact` — the total covers every fee in the period.
1200
+ * - `lower_bound` — some fees could not be read, so the real total is this or
1201
+ * **higher**. Never present it as the figure.
1202
+ * - `unknown` — no direction can be established.
1203
+ *
1204
+ * Ordered by severity: folding several ledger groups together is a `max`, so
1205
+ * once a total is `unknown` no later group restores a direction.
1206
+ */
1207
+ type FeeTotalBound = 'exact' | 'lower_bound' | 'unknown';
1208
+ interface PlatformAnalyticsResponse {
1209
+ total_customers: number;
1210
+ total_shops: number;
1211
+ total_transactions: number;
1212
+ total_volume: number;
1213
+ total_fees_collected: number;
1214
+ /**
1215
+ * How much weight {@link total_fees_collected} carries. Absent on responses
1216
+ * from before the qualifier existed — which is not the same as `'exact'`,
1217
+ * so treat an absent value as unqualified rather than assuming the total is
1218
+ * complete.
1219
+ */
1220
+ total_fees_bound?: FeeTotalBound;
1221
+ period_start: string;
1222
+ period_end: string;
1223
+ }
1224
+ interface PaymentAnalyticsRequest {
1225
+ /** Rolling window in days. Ignored when start_date is provided. */
1226
+ period?: number | null;
1227
+ /** Naive ISO 8601 datetime (e.g. 2026-06-01T00:00:00). Takes precedence over period. */
1228
+ start_date?: string | null;
1229
+ /** Naive ISO 8601 datetime. Defaults to now when only start_date is set. */
1230
+ end_date?: string | null;
1231
+ /** Limit stats to a single customer/merchant. Omitted = platform-wide. */
1232
+ merchant_id?: string | null;
1233
+ /**
1234
+ * Limit stats to the shops of one project, including the shops of its
1235
+ * sub-projects. Requires merchant_id.
1236
+ */
1237
+ project_id?: string | null;
1238
+ /** Limit stats to a single shop. Requires merchant_id; wins over project_id. */
1239
+ shop_id?: string | null;
1240
+ currency?: string | null;
1241
+ }
1242
+ /**
1243
+ * The four independent payment measures for one reporting window. Derived
1244
+ * figures (success rate, averages, period-over-period deltas) are computed
1245
+ * by the consumer.
1246
+ */
1247
+ interface PaymentPeriodStats {
1248
+ /** Sum of all payment intent amounts, in major units. */
1249
+ total_volume: number;
1250
+ /** Sum of succeeded payment intent amounts, in major units. */
1251
+ successful_volume: number;
1252
+ /** Count of all payment intents. */
1253
+ transactions: number;
1254
+ /** Count of succeeded payment intents. */
1255
+ successful_transactions: number;
1256
+ /** Count of successful refunds created in the window. */
1257
+ refunds: number;
1258
+ /** Sum of successful refund amounts created in the window, in major units. */
1259
+ refund_volume: number;
1260
+ }
1261
+ interface PaymentAnalyticsResponse {
1262
+ /** Base measures for the requested window. */
1263
+ current: PaymentPeriodStats;
1264
+ /** Base measures for the equal-length window immediately before it. */
1265
+ previous: PaymentPeriodStats;
1266
+ currency: string;
1267
+ period_days: number;
1268
+ }
1269
+
1270
+ /** Query for the platform ledger-analytics endpoint. */
1271
+ interface AdminLedgerAnalyticsRequest {
1272
+ /** Trailing days for a rolling window. Default 30, capped at 90. */
1273
+ days?: number | null;
1274
+ /** Naive ISO 8601 datetime for the window start (custom range; span ≤ 90 days). */
1275
+ start_date?: string | null;
1276
+ /** Naive ISO 8601 datetime for the inclusive last day. Defaults to now. */
1277
+ end_date?: string | null;
1278
+ /**
1279
+ * Comma-separated selector for which response blocks the server computes, so
1280
+ * a pinned card fetches only what it renders. Tokens: `summary` (total
1281
+ * balance, net change, account-status counts, the `current` aggregate +
1282
+ * `previous` window), `series` (the day-by-day flow) and `merchants` (the
1283
+ * biggest-top-ups donut — the only block paying the per-merchant
1284
+ * name-resolution cost). Omit for all blocks. Unrequested blocks come back
1285
+ * empty / zero.
1286
+ */
1287
+ sections?: string | null;
1288
+ }
1289
+ /** One day of platform-wide ledger movement, in USD minor units. */
1290
+ interface LedgerDayBucket {
1291
+ /** Balance merchants added by paying in (topup_credit), positive. */
1292
+ topup_amount: number;
1293
+ topup_count: number;
1294
+ /** Platform fees collected (fee_debit + merchant_fee_debit), positive. */
1295
+ fee_amount: number;
1296
+ fee_count: number;
1297
+ /** Other credits (admin_credit + promo_credit), positive. */
1298
+ credit_amount: number;
1299
+ credit_count: number;
1300
+ /** Other debits (admin_debit), positive. */
1301
+ debit_amount: number;
1302
+ debit_count: number;
1303
+ /** Net of every entry that day (signed) — the day's platform balance change. */
1304
+ net_amount: number;
1305
+ }
1306
+ /**
1307
+ * A billing profile whose merchant account no longer exists.
1308
+ *
1309
+ * Deleting a merchant account does not delete its billing profile, and the
1310
+ * profile's `merchant_id` carries no foreign key, so the balance, the Stripe
1311
+ * customer and the saved payment method outlive the account that owned them.
1312
+ * The Merchants listing enumerates merchant accounts and skips a row whose
1313
+ * account cannot be loaded, so such a profile is **absent** from it rather
1314
+ * than shown as broken — which is why the platform balance total and the
1315
+ * visible account count can disagree.
1316
+ */
1317
+ interface OrphanedBillingProfile {
1318
+ /**
1319
+ * The merchant id the profile is keyed on. The `/billing/{merchantId}`
1320
+ * routes still answer on it, which is the only way to reach this money.
1321
+ */
1322
+ merchant_id: string;
1323
+ profile_id: string;
1324
+ /**
1325
+ * Balance in `balance_currency` minor units. Deliberately **not** normalised
1326
+ * to USD — this is a reconciliation listing, and a converted figure invites
1327
+ * summing rows that are not in the same currency.
1328
+ */
1329
+ balance_amount: number;
1330
+ balance_currency: string;
1331
+ billing_status: string;
1332
+ is_free: boolean;
1333
+ /** A Stripe customer still exists for this profile. */
1334
+ has_stripe_customer: boolean;
1335
+ /** A saved payment method is still attached to this profile. */
1336
+ has_saved_card: boolean;
1337
+ /**
1338
+ * Ledger rows still live (not soft-deleted) against this merchant id. Zero
1339
+ * means the ledger was reset, not that there never was one.
1340
+ */
1341
+ live_ledger_entries: number;
1342
+ created_at: string;
1343
+ }
1344
+ /**
1345
+ * A merchant account created **after** the billing profile it owns.
1346
+ *
1347
+ * The account therefore cannot be the one that caused the profile to exist,
1348
+ * so it may have taken over a previous owner's balance and saved payment
1349
+ * method. A candidate, not a finding: creating a ledger through the admin
1350
+ * route can also produce this ordering with no account involved, so confirm
1351
+ * against the audit log before acting on a row.
1352
+ *
1353
+ * The reverse ordering is not reported because it means nothing — a profile
1354
+ * created after its account is the ordinary case, since a merchant may set up
1355
+ * billing long after signing up.
1356
+ */
1357
+ interface BillingProfileAdoptionCandidate {
1358
+ merchant_id: string;
1359
+ profile_id: string;
1360
+ balance_amount: number;
1361
+ balance_currency: string;
1362
+ has_saved_card: boolean;
1363
+ profile_created_at: string;
1364
+ account_created_at: string;
1365
+ }
1366
+ /**
1367
+ * Billing profiles no operator listing can reach, and merchant accounts that
1368
+ * may have taken one over.
1369
+ *
1370
+ * Both lists are **complete rather than paged**. The question this answers is
1371
+ * whether the set is empty, and a truncated answer to that question reads as
1372
+ * a clean bill of health.
1373
+ */
1374
+ interface AdminOrphanedBillingProfilesResponse {
1375
+ /** Profiles whose merchant account is gone, oldest first. */
1376
+ orphaned: OrphanedBillingProfile[];
1377
+ /**
1378
+ * Accounts newer than the profile they own, newest first. These need
1379
+ * confirming before they are treated as findings.
1380
+ */
1381
+ adoption_candidates: BillingProfileAdoptionCandidate[];
1382
+ }
1383
+ /**
1384
+ * Platform ledger-analytics response. All money is in USD minor units
1385
+ * (`currency`). `series` is the current window day by day; `previous` is the
1386
+ * equal-length prior window aggregated, for deltas.
1387
+ */
1388
+ interface AdminLedgerAnalyticsResponse {
1389
+ currency: string;
1390
+ days: number;
1391
+ end_date: string;
1392
+ /** Sum of every billing account's current balance (USD minor). */
1393
+ total_balance: number;
1394
+ /** Net balance change over the window (USD minor) = balance now − at start. */
1395
+ net_change: number;
1396
+ accounts_total: number;
1397
+ accounts_active: number;
1398
+ accounts_delinquent: number;
1399
+ accounts_suspended: number;
1400
+ /**
1401
+ * The current window aggregated into a single bucket (the sum of `series`),
1402
+ * so a totals-only card (e.g. fee revenue) reads `current.fee_amount` without
1403
+ * iterating `series`. Part of the `summary` section.
1404
+ */
1405
+ current: LedgerDayBucket;
1406
+ series: LedgerDayBucket[];
1407
+ /**
1408
+ * The previous period day by day, same length as `series`, for the over-time
1409
+ * period-over-period overlay (e.g. "top-ups over time"). Empty unless the
1410
+ * `series` section is requested.
1411
+ */
1412
+ previous_series: LedgerDayBucket[];
1413
+ previous: LedgerDayBucket;
1414
+ /** Merchants with the largest top-up totals this window (USD minor), capped. */
1415
+ top_merchants: LedgerMerchant[];
1416
+ /** Combined top-ups of merchants beyond the cap (USD minor). */
1417
+ other_merchants_topup: number;
1418
+ /** How many merchants fell into `other_merchants_topup`. */
1419
+ other_merchants_count: number;
1420
+ }
1421
+ /** One merchant's top-up total over the window (USD minor). */
1422
+ interface LedgerMerchant {
1423
+ id: string;
1424
+ name: string;
1425
+ topup_amount: number;
1426
+ }
1427
+ interface AuditLogListParams {
1428
+ /** Filter by the effective actor — whoever the change appears to be by. */
1429
+ user_id?: string | null;
1430
+ /**
1431
+ * Filter by the person really acting: "everything this admin did while
1432
+ * impersonating anyone". Differs from `user_id` only on impersonated rows.
1433
+ */
1434
+ real_user_id?: string | null;
1435
+ merchant_id?: string | null;
1436
+ profile_id?: string | null;
1437
+ /** Filter to one sign-in — the changes made in a single session. */
1438
+ session_id?: string | null;
1439
+ /** One action, or several: an entry with any of them matches. */
1440
+ action?: string | string[] | null;
1441
+ /** One entity type, or several: an entry with any of them matches. */
1442
+ entity_type?: string | string[] | null;
1443
+ /**
1444
+ * One entity's history. For a setting (`entity_type: 'setting'`) this is
1445
+ * `<scope>:<scope id>:<authority>:<key>`, followed by `:<qualifier>` for a
1446
+ * setting kept per connector.
1447
+ */
1448
+ entity_id?: string | null;
1449
+ /** Inclusive lower bound, ISO 8601 (`2026-03-12T00:00:00Z`). */
1450
+ start_date?: string | null;
1451
+ /** Inclusive upper bound, ISO 8601. */
1452
+ end_date?: string | null;
1453
+ offset?: number | null;
1454
+ limit?: number | null;
1455
+ /** What the list is sorted by. Omitted, the newest entry comes first. */
1456
+ sort_by?: AuditLogSortBy | null;
1457
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
1458
+ sort_order?: SortOrder | null;
1459
+ }
1460
+ /**
1461
+ * What the audit log can be sorted by: `created` (when the entry was
1462
+ * written), `action`, `entity_type` or `merchant` (entries without a merchant
1463
+ * come last).
1464
+ */
1465
+ type AuditLogSortBy = 'created' | 'action' | 'entity_type' | 'merchant';
1466
+ /**
1467
+ * What kind of party an actor is.
1468
+ *
1469
+ * `merchant_api_key` and `platform_api_key` are deliberately distinct: a
1470
+ * merchant's own key is not DeloPay, and rendering one as the other says
1471
+ * DeloPay made a change the merchant made.
1472
+ */
1473
+ type AuditActorKind = 'user' | 'merchant_api_key' | 'platform_api_key' | 'system' | 'buyer';
1474
+ /** Who acted, resolved for display so a row needs no lookup to render. */
1475
+ interface AuditActorInfo {
1476
+ /** The raw `user_id` value, for filtering and pivoting. */
1477
+ id: string;
1478
+ kind: AuditActorKind;
1479
+ /**
1480
+ * A user's email, or the merchant an API key belongs to. `null` for the
1481
+ * platform key and system jobs, and for a user whose row no longer exists —
1482
+ * the log outlives the people in it.
1483
+ */
1484
+ name?: string | null;
1485
+ }
1486
+ /**
1487
+ * Which relationship an impersonated change was made under.
1488
+ *
1489
+ * `null`/absent on an entry means **unknown** — a row written before this was
1490
+ * recorded — and is NOT the same as `self_acted`.
1491
+ */
1492
+ type AuditImpersonationKind = 'self_acted' | 'admin_for_merchant' | 'merchant_for_team_member';
1493
+ /**
1494
+ * The sign-in a change was made in: where the person was, and on what.
1495
+ *
1496
+ * Absent for API keys, internal jobs, and rows written before sessions were
1497
+ * recorded — and also when the session row has since been pruned, in which
1498
+ * case the change is still attributed and only the device and place are gone.
1499
+ */
1500
+ interface AuditSessionInfo {
1501
+ id: string;
1502
+ ip_address?: string | null;
1503
+ /** Raw user agent; the dashboards parse it into "Chrome · macOS". */
1504
+ user_agent?: string | null;
1505
+ country_code?: string | null;
1506
+ city?: string | null;
1507
+ /** Approximate — derived from the IP, so a neighbourhood, not an address. */
1508
+ latitude?: number | null;
1509
+ longitude?: number | null;
1510
+ auth_method?: string | null;
1511
+ started_at?: string | null;
1512
+ last_seen_at?: string | null;
1513
+ revoked_at?: string | null;
1514
+ }
1515
+ interface AuditLogResponse {
1516
+ id: string;
1517
+ /** The effective actor's raw id. Unchanged in meaning since this shipped. */
1518
+ user_id: string;
1519
+ actor: AuditActorInfo;
1520
+ /**
1521
+ * The person really at the keyboard, when that differs from `actor`. Absent
1522
+ * on a self-acted change and on rows written before impersonation was
1523
+ * recorded — read `impersonation_kind` to tell those two apart.
1524
+ */
1525
+ real_actor?: AuditActorInfo | null;
1526
+ impersonation_kind?: AuditImpersonationKind | null;
1527
+ session?: AuditSessionInfo | null;
1528
+ action: string;
1529
+ entity_type: string;
1530
+ created_at: string;
1531
+ merchant_id?: string | null;
1532
+ profile_id?: string | null;
1533
+ entity_id?: string | null;
1534
+ /**
1535
+ * What the entity was called — the connector's label, the shop's name, the
1536
+ * API key's name, the user's email. Resolved server-side.
1537
+ *
1538
+ * `null` when the entity has since been deleted and no name was recorded
1539
+ * with the event: explicitly absent rather than blank, so a UI can say so
1540
+ * instead of rendering an empty cell.
1541
+ */
1542
+ entity_name?: string | null;
1543
+ details?: unknown | null;
1544
+ ip_address?: string | null;
1545
+ user_agent?: string | null;
1546
+ }
1547
+ interface AuditLogListResponse {
1548
+ entries: AuditLogResponse[];
1549
+ total_count: number;
1550
+ offset: number;
1551
+ limit: number;
1552
+ }
1553
+ interface AdminAdjustmentRequest {
1554
+ amount: number;
1555
+ description: string;
1556
+ /**
1557
+ * Client-supplied idempotency key. When set, the server derives a
1558
+ * deterministic ledger row id from it so a replay of the same body
1559
+ * collides on the ledger UNIQUE index and short-circuits instead of
1560
+ * double-crediting or double-debiting. Generate a fresh UUID per
1561
+ * intentional adjustment; reuse across retries of the same one.
1562
+ * Optional — omitted requests behave as before (no dedup).
1563
+ */
1564
+ idempotency_key?: string;
1565
+ }
1566
+ interface AdminAdjustmentResponse {
1567
+ ledger_entry_id: string;
1568
+ new_balance: number;
1569
+ }
1570
+ /**
1571
+ * Admin-only edit of a single ledger entry. When `amount` is provided the
1572
+ * merchant balance is atomically adjusted by the difference from the old
1573
+ * amount; a `description`-only edit never touches the balance. Omitting both
1574
+ * is a no-op.
1575
+ */
1576
+ interface UpdateLedgerEntryRequest {
1577
+ amount?: number;
1578
+ description?: string;
1579
+ }
1580
+ /**
1581
+ * Admin-only manual suspension of a merchant (e.g. confirmed fraud or ToS
1582
+ * violation), independent of balance. A `reason` is required for audit.
1583
+ * Rejected with 412 if the merchant is on the trusted list (clear the flag
1584
+ * first) or already suspended.
1585
+ */
1586
+ interface AdminSuspendRequest {
1587
+ reason: string;
1588
+ }
1589
+ /**
1590
+ * Admin-only lift of a manual suspension. Restores the merchant to `active`
1591
+ * (or `delinquent` if the balance is at/below the hard floor) and resets the
1592
+ * recharge-failure counter.
1593
+ */
1594
+ interface AdminUnsuspendRequest {
1595
+ /** Optional note recorded in the audit log. */
1596
+ reason?: string;
1597
+ }
1598
+ /**
1599
+ * Admin-only toggle of the trusted (suspension-exempt) flag. Trusted
1600
+ * merchants cannot be suspended automatically or manually. Does not lift an
1601
+ * existing suspension — use unsuspend for that.
1602
+ */
1603
+ interface AdminSetTrustedRequest {
1604
+ trusted: boolean;
1605
+ }
1606
+ /**
1607
+ * Admin-only: set the merchant's hard floor — the balance at or below which
1608
+ * the merchant stops being active. A negative value is a credit line ("this
1609
+ * merchant may run this far negative"); zero means no negative balance at
1610
+ * all. Setting it moves the suspension line, it does not remove it.
1611
+ *
1612
+ * Refused with 412 when `hard_floor_amount` is positive, when it exceeds the
1613
+ * maximum credit line of 10,000,000 minor units, or when `reason` is empty —
1614
+ * this is a credit decision, and the justification is written to the audit
1615
+ * log **before** the floor moves, so a 200 never means it was discarded.
1616
+ */
1617
+ interface AdminSetHardFloorRequest {
1618
+ /** New floor in minor units of the balance currency. Zero or negative. */
1619
+ hard_floor_amount: number;
1620
+ /** Why this merchant may run negative. Required; recorded in the audit log. */
1621
+ reason: string;
1622
+ }
1623
+ /**
1624
+ * Admin-only: mark a merchant free (not billed), or put it back on the
1625
+ * prepaid model.
1626
+ *
1627
+ * A union rather than an optional `reason`, on the `SettlementCostPeriod`
1628
+ * precedent: `free: true` without a reason can only earn a 412, so that shape
1629
+ * must not typecheck. Marking free normalises a billing-caused status — `pending_setup`, `delinquent`, or an
1630
+ * `auto_recharge` suspension — to `active`. A sticky `admin` suspension is
1631
+ * refused with 412 until lifted explicitly: the flag must never quietly
1632
+ * unblock a merchant that was stopped for fraud. `free: false` re-derives the
1633
+ * status from the balance the way an unsuspend does.
1634
+ */
1635
+ type AdminSetFreeRequest = {
1636
+ free: true;
1637
+ /** Why the merchant is not billed. Required: the router refuses `free: true` without one (412). */
1638
+ reason: string;
1639
+ } | {
1640
+ free: false;
1641
+ /** Ignored when clearing the flag; accepted so a caller can carry one through. */
1642
+ reason?: string;
1643
+ };
1644
+ /**
1645
+ * Admin-only: delete a merchant's **entire** ledger.
1646
+ * Every live entry is soft-deleted (kept for replay protection), the balance
1647
+ * is set to zero and the status re-derived. Refused with 412 while the
1648
+ * merchant has shop allocations.
1649
+ */
1650
+ interface AdminResetLedgerRequest {
1651
+ /** Human-readable reason, required for audit. */
1652
+ reason: string;
1653
+ }
1654
+ interface AdminResetLedgerResponse {
1655
+ /** Live entries removed from the ledger. */
1656
+ deleted_count: number;
1657
+ /** Signed sum of the removed entries' amounts, in the balance currency. */
1658
+ deleted_amount: number;
1659
+ /** The balance before the reset; after it the balance is always zero. */
1660
+ balance_before: number;
1661
+ /** The profile as it stands after the reset. */
1662
+ profile: BillingProfileResponse;
1663
+ }
1664
+ /**
1665
+ * Admin-only: (re)create a merchant's ledger, optionally seeded with an
1666
+ * opening balance. Ensures the billing profile exists
1667
+ * (created without the welcome promo credit) and, when `opening_balance` is
1668
+ * set, writes one `opening_balance` entry. Refused with 412 while the
1669
+ * merchant still has live ledger entries, or a non-zero balance with none.
1670
+ * Does not clear the free flag.
1671
+ */
1672
+ interface AdminCreateLedgerRequest {
1673
+ /** Opening balance in minor units of the balance currency. Omit or `0` for an empty ledger. */
1674
+ opening_balance?: number;
1675
+ /** ISO-4217 currency for a profile that does not exist yet; must match an existing profile's. */
1676
+ balance_currency?: string;
1677
+ /** Human-readable reason, required for audit; also the opening entry's description. */
1678
+ reason: string;
1679
+ }
1680
+ interface AdminCreateLedgerResponse {
1681
+ /** The opening-balance entry, when one was written. */
1682
+ ledger_entry_id?: string | null;
1683
+ /** The profile as it stands after the call. */
1684
+ profile: BillingProfileResponse;
1685
+ }
1686
+ interface CardIssuerCreateRequest {
1687
+ issuer_name: string;
1688
+ }
1689
+ interface CardIssuerUpdateRequest {
1690
+ issuer_name: string;
1691
+ }
1692
+ interface CardIssuerResponse {
1693
+ id: string;
1694
+ issuer_name: string;
1695
+ }
1696
+ interface CardIssuerListResponse {
1697
+ issuers: CardIssuerResponse[];
1698
+ }
1699
+ type GsmDecision = 'retry' | 'do_default';
1700
+ interface GsmRuleCreateRequest {
1701
+ connector: string;
1702
+ flow: string;
1703
+ sub_flow: string;
1704
+ code: string;
1705
+ message: string;
1706
+ status: string;
1707
+ decision: GsmDecision;
1708
+ step_up_possible: boolean;
1709
+ clear_pan_possible: boolean;
1710
+ router_error?: string | null;
1711
+ unified_code?: string | null;
1712
+ unified_message?: string | null;
1713
+ }
1714
+ interface GsmRuleUpdateRequest {
1715
+ connector: string;
1716
+ flow: string;
1717
+ sub_flow: string;
1718
+ code: string;
1719
+ message: string;
1720
+ status?: string | null;
1721
+ router_error?: string | null;
1722
+ decision?: GsmDecision | null;
1723
+ step_up_possible?: boolean | null;
1724
+ unified_code?: string | null;
1725
+ unified_message?: string | null;
1726
+ }
1727
+ interface GsmRuleResponse {
1728
+ connector: string;
1729
+ flow: string;
1730
+ sub_flow: string;
1731
+ code: string;
1732
+ message: string;
1733
+ status: string;
1734
+ decision: GsmDecision;
1735
+ step_up_possible: boolean;
1736
+ clear_pan_possible: boolean;
1737
+ feature: string;
1738
+ feature_data: unknown;
1739
+ router_error?: string | null;
1740
+ unified_code?: string | null;
1741
+ unified_message?: string | null;
1742
+ }
1743
+ /**
1744
+ * Per-connector visibility mode. Default for connectors with no row is
1745
+ * `disabled` (default-closed) — to publicly launch a connector, ops
1746
+ * upserts a row with `public`. To pilot a connector with one or more
1747
+ * merchants before public launch, use `beta` plus
1748
+ * `allowed_merchant_ids`.
1749
+ */
1750
+ type ConnectorVisibility = 'public' | 'beta' | 'disabled';
1751
+ /** Body for `POST /admin/connector-restrictions` (upsert). */
1752
+ interface UpsertConnectorRestrictionRequest {
1753
+ /** Connector name (snake_case, e.g. `'stripe'`, `'adyen'`). */
1754
+ connector_name: string;
1755
+ /** Visibility mode. Defaults server-side to `'beta'` when omitted. */
1756
+ visibility?: ConnectorVisibility;
1757
+ /** Merchant IDs allowed to attach this connector. Only consulted
1758
+ * when `visibility === 'beta'`; ignored for `'public'` /
1759
+ * `'disabled'` (collapsed to an empty array). */
1760
+ allowed_merchant_ids: string[];
1761
+ /** Merchant IDs blocked from attaching this connector. A DENY
1762
+ * override that beats both `visibility` (even `'public'`) and
1763
+ * `allowed_merchant_ids` — a denied merchant is always rejected.
1764
+ * Honored for every visibility mode. */
1765
+ denied_merchant_ids?: string[];
1766
+ /** Optional audit note (e.g. `"beta access — Marcel"`). */
1767
+ reason?: string | null;
1768
+ }
1769
+ interface ConnectorRestrictionResponse {
1770
+ connector_name: string;
1771
+ visibility: ConnectorVisibility;
1772
+ allowed_merchant_ids: string[];
1773
+ denied_merchant_ids: string[];
1774
+ reason: string | null;
1775
+ /** ISO 8601 datetime. */
1776
+ created_at: string;
1777
+ /** ISO 8601 datetime. */
1778
+ modified_at: string;
1779
+ }
1780
+ /** Which level a restriction rule targets: a shop (business profile, the
1781
+ * `scope_id` is a `profile_id`) or a project (a `project_id` grouping of
1782
+ * shops, the `scope_id` is a `project_id`). */
1783
+ type ConnectorRestrictionScope = 'profile' | 'project';
1784
+ /** Whether a rule permits (whitelist) or forbids a connector for its scope.
1785
+ * A `deny` is never routed even if the connector is attached and enabled;
1786
+ * once a scope has any `allow` it becomes a whitelist. */
1787
+ type ConnectorRestrictionRuleAction = 'allow' | 'deny';
1788
+ /** Body for `POST /admin/connector-restriction-rules`. */
1789
+ interface CreateConnectorRestrictionRuleRequest {
1790
+ /** Merchant the rule belongs to. */
1791
+ merchant_id: string;
1792
+ /** Whether `scope_id` is a `profile_id` (shop) or a `project_id`. */
1793
+ scope: ConnectorRestrictionScope;
1794
+ /** The `profile_id` or `project_id` the rule targets. */
1795
+ scope_id: string;
1796
+ /** Connector name (snake_case, e.g. `'stripe'`). */
1797
+ connector: string;
1798
+ /** Permit (whitelist) or forbid this connector for the scope. */
1799
+ action: ConnectorRestrictionRuleAction;
1800
+ /** Optional audit note. */
1801
+ reason?: string | null;
1802
+ }
1803
+ /** Body for `PATCH /admin/connector-restriction-rules/{id}`. Omitted fields
1804
+ * are left unchanged. */
1805
+ interface UpdateConnectorRestrictionRuleRequest {
1806
+ action?: ConnectorRestrictionRuleAction;
1807
+ reason?: string | null;
1808
+ }
1809
+ /** Query for `GET /admin/connector-restriction-rules`. Provide **either**
1810
+ * `scope` + `scope_id` (one shop/project) **or** `merchant_id` (every rule
1811
+ * for a merchant). */
1812
+ interface ListConnectorRestrictionRulesQuery {
1813
+ scope?: ConnectorRestrictionScope;
1814
+ scope_id?: string;
1815
+ merchant_id?: string;
1816
+ }
1817
+ /** One persisted per-shop/project connector restriction rule. */
1818
+ interface ConnectorRestrictionRuleResponse {
1819
+ id: string;
1820
+ merchant_id: string;
1821
+ scope: ConnectorRestrictionScope;
1822
+ scope_id: string;
1823
+ connector: string;
1824
+ action: ConnectorRestrictionRuleAction;
1825
+ reason: string | null;
1826
+ /** ISO 8601 datetime. */
1827
+ created_at: string;
1828
+ /** ISO 8601 datetime. */
1829
+ modified_at: string;
1830
+ }
1831
+ /**
1832
+ * What a replay-masking rule does to the elements it matches.
1833
+ *
1834
+ * Every variant hides something. There is deliberately no variant that reveals
1835
+ * anything: an "unmask" mode would make the union a difference, and one click
1836
+ * in an admin panel could then put cardholder data into a recording. The click
1837
+ * would be reversible and the recording would not.
1838
+ */
1839
+ type ReplayMaskMode = 'mask' | 'block' | 'mask_text';
1840
+ /** One extra element the session recorder must hide. */
1841
+ interface ReplayMaskingRule {
1842
+ /** A CSS selector, evaluated by the recorder on the page being recorded. */
1843
+ selector: string;
1844
+ mode: ReplayMaskMode;
1845
+ }
1846
+ /**
1847
+ * Whether a merchant may attach the vault connector, reported as the three
1848
+ * independent facts the gate is built from rather than as one flag. A deny
1849
+ * overrides `public` visibility and overrides a `beta` allowlist entry.
1850
+ */
1851
+ interface AdminVaultEntitlementState {
1852
+ /** Always `vgs` today; named so a second vendor cannot reuse the meaning. */
1853
+ connector_name: string;
1854
+ /**
1855
+ * The resolved verdict. **`null` means the state could not be read**, not
1856
+ * "no" — render it as unknown, never as "not granted".
1857
+ */
1858
+ granted: boolean | null;
1859
+ /** `public` / `beta` / `disabled`, or `null` when there is no restriction row. */
1860
+ visibility: string | null;
1861
+ /** Whether this merchant is allowlisted (only decides under `beta`). */
1862
+ allowlisted: boolean | null;
1863
+ /** Whether this merchant is denied. Beats everything else. */
1864
+ denied: boolean | null;
1865
+ /** The operator-authored note stored on the restriction row, if any. */
1866
+ reason: string | null;
1867
+ /** Set when, and only when, the entitlement could not be determined. */
1868
+ unknown_reason: string | null;
1869
+ }
1870
+ /** One VGS environment a shop's vault account holds credentials for. */
1871
+ interface AdminVaultEnvironmentState {
1872
+ environment: VaultEnvironment;
1873
+ /** The VGS tenant id (`tnt…`). Addressing, not a credential. */
1874
+ vault_id: string | null;
1875
+ /**
1876
+ * Whether the vault *cloaks* in this environment (an outbound proxy URL in
1877
+ * this environment's credentials) rather than merely storing cards.
1878
+ */
1879
+ cloaks: boolean;
1880
+ }
1881
+ /** What one shop's vault configuration looks like from the operator's side. */
1882
+ interface AdminShopVaultState {
1883
+ profile_id: string;
1884
+ profile_name: string;
1885
+ /** The shop's `is_external_vault_enabled` switch (not the whole answer). */
1886
+ is_external_vault_enabled: boolean;
1887
+ /**
1888
+ * Whether a vault account is provisioned for this shop at all.
1889
+ * **`null` means it could not be determined** — see `unknown_reason`.
1890
+ */
1891
+ vault_provisioned: boolean | null;
1892
+ vault_connector_id: string | null;
1893
+ /** The vault vendor actually attached — not assumed to be `vgs`. */
1894
+ vault_connector_name: string | null;
1895
+ /** Environments with credentials. Empty when nothing could be read. */
1896
+ environments: AdminVaultEnvironmentState[];
1897
+ /** Inbound (Collect) route id, needed only for browser-side capture. */
1898
+ collect_route_id: string | null;
1899
+ vault_sdk: string | null;
1900
+ /** Connectors this shop vaults cards for. Absent or empty = every connector. */
1901
+ enabled_for_connectors: string[] | null;
1902
+ /**
1903
+ * Whether the vault cloaks **in any environment**; `null` when unreadable.
1904
+ * `environments[].cloaks` is the per-environment truth.
1905
+ */
1906
+ cloaking_enabled: boolean | null;
1907
+ /** Set when part of this shop's vault state could not be read. */
1908
+ unknown_reason: string | null;
1909
+ }
1910
+ /** A position in the card funding correction: the last attempt a page looked at. */
1911
+ interface CardFundingBackfillCursor {
1912
+ created_at: string;
1913
+ merchant_id: string;
1914
+ attempt_id: string;
1915
+ }
1916
+ /**
1917
+ * One page of the card funding correction. Card attempts are looked at oldest
1918
+ * first; a repeated or overlapping run corrects nothing twice.
1919
+ */
1920
+ interface CardFundingBackfillRequest {
1921
+ /** Report what would change without writing anything. Defaults to `true`. */
1922
+ dry_run?: boolean;
1923
+ /** Where the previous page stopped: its `next_after`. Absent for the first page. */
1924
+ after?: CardFundingBackfillCursor | null;
1925
+ /** How many card attempts to look at in this page, 1 to 500; defaults to 100. */
1926
+ limit?: number | null;
1927
+ }
1928
+ /** What one page of the correction did, or would do on a dry run. */
1929
+ interface CardFundingBackfillResponse {
1930
+ /** Whether this page only reported. */
1931
+ dry_run: boolean;
1932
+ /** Card attempts this page looked at. */
1933
+ examined: number;
1934
+ /** Attempts corrected, or that a dry run would correct. */
1935
+ corrected: number;
1936
+ /** Of those, attempts whose payment method type changes. */
1937
+ type_changed: number;
1938
+ /** Attempts the BIN table has nothing new for. */
1939
+ unchanged: number;
1940
+ /** Attempts that changed while this page ran. Nothing was written for them. */
1941
+ conflicts: number;
1942
+ /** Where the next page starts; `null` when the correction is done. */
1943
+ next_after: CardFundingBackfillCursor | null;
1944
+ }
1945
+ /** Vault state for one merchant: the entitlement, and every shop. */
1946
+ interface AdminVaultStateResponse {
1947
+ merchant_id: string;
1948
+ entitlement: AdminVaultEntitlementState;
1949
+ shops: AdminShopVaultState[];
1950
+ }
1951
+ /**
1952
+ * Attach a vault to one of a merchant's shops: creates the vault connector
1953
+ * account and points the profile at it in one request.
1954
+ */
1955
+ interface AdminAttachVaultRequest {
1956
+ /** The shop to attach the vault to. Must belong to the merchant in the path. */
1957
+ profile_id: string;
1958
+ /** VGS Collect service-account client id. */
1959
+ service_account_id: string;
1960
+ /**
1961
+ * VGS Collect service-account secret. Must be write-only
1962
+ * (`aliases:write`) — the attach verifies this and refuses otherwise.
1963
+ */
1964
+ service_account_secret: string;
1965
+ /** VGS vault (tenant) id, `tnt…`. */
1966
+ vault_id: string;
1967
+ /**
1968
+ * Outbound forward-proxy URL including credentials. Its presence is what
1969
+ * makes the vault *cloak* rather than merely store.
1970
+ */
1971
+ proxy_url?: string | null;
1972
+ /**
1973
+ * VGS **management** service-account client id for a merchant-owned
1974
+ * vault. A second, separate account — never the Collect account above.
1975
+ * Only valid as a pair with `mgmt_client_secret`.
1976
+ */
1977
+ mgmt_client_id?: string | null;
1978
+ /** VGS management service-account secret. Required with `mgmt_client_id`. */
1979
+ mgmt_client_secret?: string | null;
1980
+ /** Inbound (Collect) route id, needed for browser-side card capture. */
1981
+ collect_route_id?: string | null;
1982
+ /** Connectors this shop should vault cards for. Absent or empty = all. */
1983
+ enabled_for_connectors?: string[] | null;
1984
+ /** Label for the connector account. Defaults to `vgs_{profile_id}`. */
1985
+ connector_label?: string | null;
1986
+ /**
1987
+ * `true` stores the credentials in the account's **sandbox** slot and
1988
+ * marks the account test-mode; absent or `false` uses the live slot.
1989
+ * Deliberately explicit rather than derived from the vault id.
1990
+ */
1991
+ test_mode?: boolean | null;
1992
+ }
1993
+ /** The result of an attach, plus non-fatal findings. */
1994
+ interface AdminAttachVaultResponse {
1995
+ merchant_connector_id: string;
1996
+ profile_id: string;
1997
+ is_external_vault_enabled: boolean;
1998
+ collect_route_id: string | null;
1999
+ vault_sdk: string | null;
2000
+ /** Configurations that will work now and bite later. Empty on a clean attach. */
2001
+ warnings: string[];
2002
+ }
2003
+ /**
2004
+ * One row of the platform audit-log export.
2005
+ *
2006
+ * The merchant-facing shape plus `merchant_id`, which is the column an
2007
+ * operator's log carries that a merchant's own does not.
2008
+ */
2009
+ interface AdminAuditLogExportRecord {
2010
+ created_at: string;
2011
+ actor_kind: string;
2012
+ actor_id: string;
2013
+ actor_name: string | null;
2014
+ real_actor_id: string | null;
2015
+ real_actor_name: string | null;
2016
+ impersonation_kind: string | null;
2017
+ session_id: string | null;
2018
+ ip_address: string | null;
2019
+ user_agent: string | null;
2020
+ merchant_id: string | null;
2021
+ profile_id: string | null;
2022
+ action: string;
2023
+ entity_type: string;
2024
+ entity_id: string | null;
2025
+ entity_name: string | null;
2026
+ }
2027
+ /**
2028
+ * Which environment's rows to return.
2029
+ *
2030
+ * **`'all'` is never a default.** The page opens on `DEFAULT_ENV_FILTER` —
2031
+ * live on production, test on the sandbox tenant — and sends the value
2032
+ * explicitly. Omitting the field is read by the backend as `'live'`, not as
2033
+ * `'all'`: a caller that forgot to say gets the safer of the two, and a test
2034
+ * payment never appears in a view that reads as live.
2035
+ */
2036
+ type DiagnosticEnvironment = 'all' | 'live' | 'test';
2037
+ /** The window every tab reads over. ISO 8601, inclusive at both ends. */
2038
+ interface DiagnosticWindow {
2039
+ start_time: string;
2040
+ end_time: string;
2041
+ }
2042
+ /** One page of a list. The console pages at 20; the backend caps `limit` at 200. */
2043
+ interface DiagnosticPage {
2044
+ limit?: number;
2045
+ offset?: number;
2046
+ }
2047
+ /**
2048
+ * A paginated answer.
2049
+ *
2050
+ * `hidden_by_environment` is what lets the environment strip say "612 test-mode
2051
+ * rows are hidden". An operator who cannot see how much is being withheld
2052
+ * cannot tell an empty tab from a filtered one.
2053
+ */
2054
+ interface DiagnosticList<T> {
2055
+ rows: T[];
2056
+ total_count: number;
2057
+ hidden_by_environment: number;
2058
+ }
2059
+ /**
2060
+ * Why a panel has no data, when the reason is not "there is none".
2061
+ *
2062
+ * The distinction this type exists for: **an unreachable log store must never
2063
+ * render as "no errors found"**. Loki being down and Loki answering zero lines
2064
+ * are opposite facts during an incident, and the second tells an operator to
2065
+ * stop looking.
2066
+ */
2067
+ interface DiagnosticSourceUnavailable {
2068
+ /** `loki`, `alertmanager`, `analytics`, or a writer that is switched off. */
2069
+ source: string;
2070
+ /** The endpoint that did not answer, so it can be reached directly. */
2071
+ endpoint: string | null;
2072
+ reason: string;
2073
+ last_success: string | null;
2074
+ /** Where to go instead — the monitoring dashboard, when one is configured. */
2075
+ fallback_url: string | null;
2076
+ }
2077
+ /**
2078
+ * A panel that either has data or says why it does not.
2079
+ *
2080
+ * Deliberately not `T | null`: a caller cannot tell an absent value from an
2081
+ * absent source by looking at a nullable, and collapsing the two is how a dead
2082
+ * log store comes to read as a quiet one.
2083
+ */
2084
+ type DiagnosticPanel<T> = {
2085
+ status: 'available';
2086
+ data: T;
2087
+ } | {
2088
+ status: 'unavailable';
2089
+ data: DiagnosticSourceUnavailable;
2090
+ };
2091
+ /** Filters shared by every list request. */
2092
+ interface DiagnosticListParamsBase {
2093
+ window?: DiagnosticWindow;
2094
+ environment?: DiagnosticEnvironment;
2095
+ page?: DiagnosticPage;
2096
+ }
2097
+ interface DiagnosticIncomingWebhookListParams extends DiagnosticListParamsBase {
2098
+ merchant_id?: string;
2099
+ profile_id?: string;
2100
+ connector?: string[];
2101
+ /** `applied` | `ignored` | `duplicate` | `rejected` | `dropped` | `error`. */
2102
+ outcome?: string[];
2103
+ provider_event_type?: string;
2104
+ mapped_event_type?: string;
2105
+ /** Any id the operator pasted, matched against every column it could be. */
2106
+ object_id?: string;
2107
+ request_id?: string;
2108
+ /**
2109
+ * `false` selects rows that failed verification **or** never reached it.
2110
+ * "Show me what did not verify" must include the deliveries that failed
2111
+ * before verification was attempted.
2112
+ */
2113
+ source_verified?: boolean;
2114
+ /** What the page is sorted by. Omitted, the newest delivery comes first. */
2115
+ sort_by?: DiagnosticIncomingWebhookSortBy;
2116
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
2117
+ sort_order?: SortOrder;
2118
+ }
2119
+ /**
2120
+ * What the provider-webhooks tab can be sorted by: `received` (when the
2121
+ * delivery arrived), `connector`, `outcome` or `response_status` (the HTTP
2122
+ * status the platform answered with).
2123
+ */
2124
+ type DiagnosticIncomingWebhookSortBy = 'received' | 'connector' | 'outcome' | 'response_status';
2125
+ interface DiagnosticIncomingWebhook {
2126
+ event_id: string;
2127
+ received_at: string;
2128
+ merchant_id: string;
2129
+ profile_id: string | null;
2130
+ merchant_connector_id: string | null;
2131
+ connector: string;
2132
+ request_id: string;
2133
+ /**
2134
+ * Their event string. `null` means it could not be read off the body, which
2135
+ * is an answer rather than a failure — there is no connector method that
2136
+ * hands back a provider's own event name.
2137
+ */
2138
+ provider_event_type: string | null;
2139
+ provider_event_id: string | null;
2140
+ /** Ours. `null` is an unmapped event type, which the page tints amber. */
2141
+ mapped_event_type: string | null;
2142
+ object_type: string | null;
2143
+ object_ref_id: string | null;
2144
+ resolved_payment_id: string | null;
2145
+ resolved_attempt_id: string | null;
2146
+ /**
2147
+ * `null` means verification was never attempted — a different fact from
2148
+ * `false`, which means it was attempted and did not match.
2149
+ */
2150
+ source_verified: boolean | null;
2151
+ outcome: string;
2152
+ outcome_detail: string | null;
2153
+ response_status: number;
2154
+ latency_ms: number;
2155
+ /**
2156
+ * `true` only when the row is positively marked test. The TEST badge gates on
2157
+ * this and never on the absence of it.
2158
+ */
2159
+ test_mode: boolean | null;
2160
+ }
2161
+ /** One delivery in full — what the row drawer draws. */
2162
+ interface DiagnosticIncomingWebhookDetail extends DiagnosticIncomingWebhook {
2163
+ /** Masked. Credential headers were replaced before storage; signatures were not. */
2164
+ headers: Record<string, unknown>;
2165
+ /** Masked on read as well as encrypted at rest. */
2166
+ body: Record<string, unknown>;
2167
+ /**
2168
+ * Which secret verified, in which environment, and whether the entity
2169
+ * matched. Never the secret itself — the fingerprint is a digest.
2170
+ */
2171
+ verification_detail: Record<string, unknown> | null;
2172
+ /**
2173
+ * The router log lines for this delivery. `null` when the log store is
2174
+ * unreachable, which the drawer must render as *unavailable* rather than as
2175
+ * "the router logged nothing".
2176
+ */
2177
+ router_logs: DiagnosticRouterLog[] | null;
2178
+ router_logs_unavailable: DiagnosticSourceUnavailable | null;
2179
+ }
2180
+ interface DiagnosticConnectorCallListParams extends DiagnosticListParamsBase {
2181
+ merchant_id?: string;
2182
+ connector?: string[];
2183
+ flow?: string[];
2184
+ payment_id?: string;
2185
+ attempt_id?: string;
2186
+ request_id?: string;
2187
+ /** Inclusive. `400` is "everything that failed". */
2188
+ status_code_min?: number;
2189
+ /** Exclusive, so `[400, 500)` selects client errors alone. */
2190
+ status_code_max_exclusive?: number;
2191
+ min_latency_ms?: number;
2192
+ /** What the page is sorted by. Omitted, the newest call comes first. */
2193
+ sort_by?: DiagnosticConnectorCallSortBy;
2194
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
2195
+ sort_order?: SortOrder;
2196
+ }
2197
+ /** What the connector-calls tab can be sorted by; `started` is when the call started. */
2198
+ type DiagnosticConnectorCallSortBy = 'started' | 'connector' | 'flow' | 'status_code' | 'latency';
2199
+ interface DiagnosticConnectorCall {
2200
+ id: string;
2201
+ started_at: string;
2202
+ merchant_id: string;
2203
+ connector: string;
2204
+ flow: string;
2205
+ method: string;
2206
+ url: string;
2207
+ status_code: number;
2208
+ latency_ms: number;
2209
+ payment_id: string | null;
2210
+ attempt_id: string | null;
2211
+ refund_id: string | null;
2212
+ dispute_id: string | null;
2213
+ request_id: string;
2214
+ test_mode: boolean | null;
2215
+ /**
2216
+ * Present on the single-call read only, and masked. List rows omit them so a
2217
+ * page of twenty does not ship twenty payloads the table never renders.
2218
+ */
2219
+ request?: unknown;
2220
+ response?: unknown;
2221
+ error?: unknown;
2222
+ }
2223
+ interface DiagnosticRouterLogParams {
2224
+ window?: DiagnosticWindow;
2225
+ page?: DiagnosticPage;
2226
+ /** `router`, `scheduler`, `drainer`. */
2227
+ service?: string[];
2228
+ hostname?: string[];
2229
+ level?: string[];
2230
+ flow?: string;
2231
+ merchant_id?: string;
2232
+ request_id?: string;
2233
+ contains?: string;
2234
+ collapse_duplicates?: boolean;
2235
+ }
2236
+ interface DiagnosticRouterLog {
2237
+ time: string;
2238
+ level: string;
2239
+ service: string;
2240
+ hostname: string | null;
2241
+ flow: string | null;
2242
+ merchant_id: string | null;
2243
+ request_id: string | null;
2244
+ message: string;
2245
+ /**
2246
+ * How many identical messages this row stands for. `null` means one line —
2247
+ * never `1`, which the page would render as a count badge on every row.
2248
+ */
2249
+ repeat: number | null;
2250
+ }
2251
+ interface DiagnosticPaymentListParams extends DiagnosticListParamsBase {
2252
+ merchant_id?: string;
2253
+ profile_id?: string;
2254
+ connector?: string[];
2255
+ status?: string[];
2256
+ error_code?: string;
2257
+ /**
2258
+ * Any id pasted into the console, matched against the payment and its
2259
+ * attempt. Without it this tab ignored the pivot while the page drew a chip
2260
+ * saying the filter was applied.
2261
+ */
2262
+ object_id?: string;
2263
+ /** Non-terminal for at least this long. Omit to show failures alone. */
2264
+ stuck_minutes?: number;
2265
+ /** What the page is sorted by. Omitted, the most recently changed payment comes first. */
2266
+ sort_by?: DiagnosticPaymentSortBy;
2267
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
2268
+ sort_order?: SortOrder;
2269
+ }
2270
+ /**
2271
+ * What the payments tab can be sorted by: `modified` (when the payment last
2272
+ * changed, which its age counts from: ascending puts the oldest first),
2273
+ * `amount` (minor units, whatever the currency), `status` or `connector`
2274
+ * (the active attempt's; payments without one come last).
2275
+ */
2276
+ type DiagnosticPaymentSortBy = 'modified' | 'amount' | 'status' | 'connector';
2277
+ interface DiagnosticPayment {
2278
+ payment_id: string;
2279
+ merchant_id: string;
2280
+ profile_id: string | null;
2281
+ merchant_name: string | null;
2282
+ profile_name: string | null;
2283
+ connector: string | null;
2284
+ payment_method: string | null;
2285
+ payment_method_type: string | null;
2286
+ card_network: string | null;
2287
+ card_last4: string | null;
2288
+ amount: number;
2289
+ amount_captured: number | null;
2290
+ currency: string | null;
2291
+ status: string;
2292
+ attempt_count: number;
2293
+ error_code: string | null;
2294
+ error_message: string | null;
2295
+ /**
2296
+ * `null` when no `gateway_status_map` row maps the connector's code, which
2297
+ * the page renders amber: the merchant saw a raw processor string.
2298
+ */
2299
+ unified_code: string | null;
2300
+ unified_message: string | null;
2301
+ created_at: string;
2302
+ modified_at: string;
2303
+ age_seconds: number;
2304
+ test_mode: boolean | null;
2305
+ }
2306
+ interface DiagnosticErrorCodeCount {
2307
+ code: string;
2308
+ count: number;
2309
+ /**
2310
+ * The same code over the previous window of equal length. `null` renders as
2311
+ * "new" — the code did not appear before, which zero would misreport as a
2312
+ * measured fall to nothing.
2313
+ */
2314
+ previous_count: number | null;
2315
+ unmapped: boolean;
2316
+ }
2317
+ /** Which diagnostic writers are recording on this deployment. */
2318
+ interface DiagnosticCaptureState {
2319
+ incoming_webhooks: boolean;
2320
+ connector_calls: boolean;
2321
+ router_logs: boolean;
2322
+ }
2323
+ interface DiagnosticOutgoingWebhookListParams extends DiagnosticListParamsBase {
2324
+ merchant_id?: string;
2325
+ profile_id?: string;
2326
+ object_id?: string;
2327
+ event_type?: string[];
2328
+ /**
2329
+ * Only deliveries in this state, or in any of several. Empty or absent is
2330
+ * every state.
2331
+ */
2332
+ delivery?: DiagnosticOutgoingDelivery | DiagnosticOutgoingDelivery[];
2333
+ /** What the page is sorted by. Omitted, the newest event comes first. */
2334
+ sort_by?: DiagnosticOutgoingWebhookSortBy;
2335
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
2336
+ sort_order?: SortOrder;
2337
+ }
2338
+ /** Where an outgoing delivery stands. */
2339
+ type DiagnosticOutgoingDelivery = 'delivered' | 'retrying' | 'stopped';
2340
+ /**
2341
+ * What the shop-webhooks tab can be sorted by: `created` (when the event was
2342
+ * created), `event_type` or `attempts` (how many delivery attempts the event
2343
+ * has had).
2344
+ */
2345
+ type DiagnosticOutgoingWebhookSortBy = 'created' | 'event_type' | 'attempts';
2346
+ interface DiagnosticOutgoingAttempt {
2347
+ event_id: string;
2348
+ created_at: string;
2349
+ delivered: boolean | null;
2350
+ /** `events` records whether an attempt was notified, not what the shop answered. */
2351
+ response_status: number | null;
2352
+ }
2353
+ interface DiagnosticOutgoingWebhook {
2354
+ event_id: string;
2355
+ initial_attempt_id: string | null;
2356
+ created_at: string;
2357
+ merchant_id: string | null;
2358
+ profile_id: string | null;
2359
+ event_type: string;
2360
+ object_id: string;
2361
+ object_type: string;
2362
+ /** Not carried on the event row — the URL lives on the profile and is re-read per attempt. */
2363
+ endpoint: string | null;
2364
+ /** One entry per attempt, oldest first — the row of squares the page draws. */
2365
+ attempts: DiagnosticOutgoingAttempt[];
2366
+ delivered: boolean | null;
2367
+ /**
2368
+ * Why the chain stopped, when it did — `null` while it is still retrying.
2369
+ *
2370
+ * Named `terminal_reason` because that is what the router sends
2371
+ * (`OutgoingWebhookRow` in the OpenAPI spec). It was `delivery_terminal_reason`
2372
+ * here, which typechecks against nothing and reads `undefined` at runtime, so
2373
+ * every undelivered row looked like one still inside its retry budget and the
2374
+ * "endpoint rejected" state was unreachable.
2375
+ */
2376
+ terminal_reason: string | null;
2377
+ test_mode: boolean | null;
2378
+ }
2379
+ interface DiagnosticOutgoingWebhookSummary {
2380
+ delivered_count: number;
2381
+ total_count: number;
2382
+ retrying_count: number;
2383
+ stopped_count: number;
2384
+ worst_endpoint: string | null;
2385
+ worst_endpoint_failures: number;
2386
+ }
2387
+ interface DiagnosticQueueListParams {
2388
+ page?: DiagnosticPage;
2389
+ name?: string[];
2390
+ runner?: string[];
2391
+ status?: string[];
2392
+ overdue_only?: boolean;
2393
+ tracking_id?: string;
2394
+ /** What the page is sorted by. Omitted, the most overdue task comes first. */
2395
+ sort_by?: DiagnosticQueueSortBy;
2396
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
2397
+ sort_order?: SortOrder;
2398
+ }
2399
+ /**
2400
+ * What the queues tab can be sorted by: `schedule_time` (when the task is
2401
+ * due), `name`, `runner`, `retry_count` or `status`. Tasks without the value
2402
+ * come last.
2403
+ */
2404
+ type DiagnosticQueueSortBy = 'schedule_time' | 'name' | 'runner' | 'retry_count' | 'status';
2405
+ interface DiagnosticQueueItem {
2406
+ id: string;
2407
+ name: string | null;
2408
+ runner: string | null;
2409
+ tracking_id: string;
2410
+ retry_count: number;
2411
+ status: string;
2412
+ business_status: string;
2413
+ schedule_time: string;
2414
+ /** Negative when overdue — the case the page tints. */
2415
+ due_in_seconds: number;
2416
+ created_at: string;
2417
+ }
2418
+ interface DiagnosticQueueSummary {
2419
+ pending_count: number;
2420
+ processing_count: number;
2421
+ retrying_count: number;
2422
+ finished_in_window: number;
2423
+ oldest_overdue_seconds: number | null;
2424
+ /** Approvals waiting on a person — a different queue with a different remedy. */
2425
+ pending_approvals: number;
2426
+ }
2427
+ interface DiagnosticChangeListParams {
2428
+ window?: DiagnosticWindow;
2429
+ page?: DiagnosticPage;
2430
+ merchant_id?: string;
2431
+ kind?: string[];
2432
+ }
2433
+ interface DiagnosticChange {
2434
+ id: string;
2435
+ occurred_at: string;
2436
+ /** `connector` | `routing` | `fees` | `access` | `config`. */
2437
+ kind: string;
2438
+ summary: string;
2439
+ /** `null` for a change no person made — a scheduled job. A fact, not a gap. */
2440
+ actor: string | null;
2441
+ merchant_id: string | null;
2442
+ profile_id: string | null;
2443
+ }
2444
+ type DiagnosticHealthState = 'healthy' | 'degraded' | 'failing' | 'unknown';
2445
+ interface DiagnosticHealthTile {
2446
+ subject: string;
2447
+ state: DiagnosticHealthState;
2448
+ /** Already formatted — "4/4", "61.3%", "Stalled". The unit differs per tile. */
2449
+ value: string;
2450
+ delta: string | null;
2451
+ note: string | null;
2452
+ spark: number[];
2453
+ }
2454
+ type DiagnosticAttentionSeverity = 'critical' | 'warning' | 'watch';
2455
+ interface DiagnosticAttentionItem {
2456
+ id: string;
2457
+ severity: DiagnosticAttentionSeverity;
2458
+ title: string;
2459
+ detail: string;
2460
+ scope: string;
2461
+ count: number;
2462
+ count_unit: string;
2463
+ amount_at_risk: number | null;
2464
+ currency: string | null;
2465
+ shops_touched: number;
2466
+ since_seconds: number | null;
2467
+ /** The filter set Investigate applies. Opaque to the backend. */
2468
+ investigate: Record<string, unknown>;
2469
+ }
2470
+ interface DiagnosticAttentionBoard {
2471
+ items: DiagnosticAttentionItem[];
2472
+ computed_at: string;
2473
+ /**
2474
+ * What was checked, so an empty board reads as a verdict rather than as a
2475
+ * panel that failed to load. A check that could not run is absent from this
2476
+ * list rather than silently counted as clear.
2477
+ */
2478
+ checks_run: string[];
2479
+ vitals: DiagnosticHealthTile[];
2480
+ }
2481
+ interface DiagnosticAttentionParams {
2482
+ window?: DiagnosticWindow;
2483
+ environment?: DiagnosticEnvironment;
2484
+ }
2485
+ interface DiagnosticFiringAlert {
2486
+ name: string;
2487
+ /** From the alert's own labels. This service does not re-rank Alertmanager. */
2488
+ severity: string;
2489
+ summary: string;
2490
+ firing_since: string;
2491
+ labels: Record<string, unknown>;
2492
+ }
2493
+ interface DiagnosticReplicaHealth {
2494
+ hostname: string;
2495
+ version: string | null;
2496
+ build: string | null;
2497
+ state: DiagnosticHealthState;
2498
+ dependencies: [string, string][];
2499
+ }
2500
+ interface DiagnosticDependencyCard {
2501
+ subject: string;
2502
+ value: string;
2503
+ unit: string;
2504
+ fraction: number | null;
2505
+ state: DiagnosticHealthState;
2506
+ note: string | null;
2507
+ }
2508
+ interface DiagnosticInfrastructure {
2509
+ replicas: DiagnosticReplicaHealth[];
2510
+ /** A finding in its own right: one replica answering differently explains a lot. */
2511
+ build_mismatch: boolean;
2512
+ dependencies: DiagnosticDependencyCard[];
2513
+ }
2514
+ interface DiagnosticNearMatch {
2515
+ id: string;
2516
+ kind: string;
2517
+ description: string;
2518
+ }
2519
+ interface DiagnosticEmptyReason {
2520
+ /** `outside_window` | `test_mode` | `typo`. */
2521
+ code: string;
2522
+ /** The one-click fix. `null` for `typo`, which has none. */
2523
+ fix: Record<string, unknown> | null;
2524
+ }
2525
+ /**
2526
+ * What the search box decided a pasted id is.
2527
+ *
2528
+ * `kind` says what it looks like; `found` says whether a row exists. Different
2529
+ * answers, drawn differently: a well-shaped id that matches nothing gets the
2530
+ * three reasons and their fixes, never an empty table.
2531
+ */
2532
+ interface DiagnosticResolvedId {
2533
+ id: string;
2534
+ kind: string | null;
2535
+ found: boolean;
2536
+ near_matches: DiagnosticNearMatch[];
2537
+ reasons: DiagnosticEmptyReason[];
2538
+ }
2539
+ interface DiagnosticTraceSpan {
2540
+ source: string;
2541
+ label: string;
2542
+ started_at: string;
2543
+ /** `null` for a span that has not finished — an enqueued job still unpicked. */
2544
+ duration_ms: number | null;
2545
+ depth: number;
2546
+ failed: boolean;
2547
+ detail: Record<string, unknown> | null;
2548
+ }
2549
+ interface DiagnosticTrace {
2550
+ resolved: DiagnosticResolvedId;
2551
+ payment_id: string | null;
2552
+ spans: DiagnosticTraceSpan[];
2553
+ /**
2554
+ * Sources that could not be read. A waterfall with an unexplained gap reads
2555
+ * as a period when nothing happened, which is the wrong conclusion.
2556
+ */
2557
+ unavailable_sources: DiagnosticSourceUnavailable[];
2558
+ }
2559
+ /**
2560
+ * Unmask one field of one object.
2561
+ *
2562
+ * `reason` is required and stored verbatim on the audit row: an unmask nobody
2563
+ * can review afterwards is a timestamp, not a record.
2564
+ */
2565
+ interface DiagnosticRevealRequest {
2566
+ /** `incoming_webhook` | `connector_call`. */
2567
+ object_type: string;
2568
+ object_id: string;
2569
+ /** A JSON pointer into the stored document, e.g. `/data/object/customer`. */
2570
+ field_path: string;
2571
+ reason: string;
2572
+ }
2573
+ interface DiagnosticRevealResponse {
2574
+ field_path: string;
2575
+ value: unknown;
2576
+ /** The audit row this reveal wrote. */
2577
+ audit_log_id: string;
2578
+ }
2579
+ /** Scheduled connector health cadence configured by internal operators. */
2580
+ interface ConnectorHealthConfig {
2581
+ interval_minutes: number;
2582
+ }
2583
+ /** Owner context required for service-authenticated renewal reconciliation. */
2584
+ interface NativeRenewalCloseTarget {
2585
+ merchant_id: string;
2586
+ profile_id: string;
2587
+ }
2588
+ interface NativeRenewalCloseResponse {
2589
+ payment_id: string;
2590
+ processor_status: string;
2591
+ }
2592
+ /** An unset scope inherits; the platform default counts refunded turnover. */
2593
+ type RefundVolumeSetting = 'inherit' | 'on' | 'off';
2594
+ type RefundVolumeScope = 'merchant' | 'project' | 'shop';
2595
+ type RefundVolumeSource = RefundVolumeScope | 'platform';
2596
+ /** Project and shop identifiers must belong to the selected merchant. */
2597
+ type RefundVolumeQuery = {
2598
+ scope?: 'merchant';
2599
+ scope_id?: never;
2600
+ } | {
2601
+ scope: 'project' | 'shop';
2602
+ scope_id: string;
2603
+ };
2604
+ interface UpdateRefundVolumeRequest {
2605
+ setting: RefundVolumeSetting;
2606
+ }
2607
+ interface RefundVolumeResponse {
2608
+ scope: RefundVolumeScope;
2609
+ scope_id?: string | null;
2610
+ setting: RefundVolumeSetting;
2611
+ effective_count_refunds: boolean;
2612
+ source: RefundVolumeSource;
2613
+ source_id?: string | null;
2614
+ }
2615
+ /** An unset scope inherits; the platform default returns no platform fee. */
2616
+ type PlatformFeeReturnSetting = 'inherit' | 'on' | 'off';
2617
+ type PlatformFeeReturnScope = 'merchant' | 'project' | 'shop';
2618
+ type PlatformFeeReturnSource = PlatformFeeReturnScope | 'platform';
2619
+ /** Project and shop identifiers must belong to the selected merchant. */
2620
+ type PlatformFeeReturnQuery = {
2621
+ scope?: 'merchant';
2622
+ scope_id?: never;
2623
+ } | {
2624
+ scope: 'project' | 'shop';
2625
+ scope_id: string;
2626
+ };
2627
+ interface UpdatePlatformFeeReturnRequest {
2628
+ setting: PlatformFeeReturnSetting;
2629
+ }
2630
+ interface PlatformFeeReturnResponse {
2631
+ scope: PlatformFeeReturnScope;
2632
+ scope_id?: string | null;
2633
+ setting: PlatformFeeReturnSetting;
2634
+ /** Whether a refund at this scope returns its share of the platform fee. */
2635
+ effective_return_fee: boolean;
2636
+ source: PlatformFeeReturnSource;
2637
+ source_id?: string | null;
2638
+ }
2639
+ type PlatformFeeReturnStatus = 'pending' | 'returned' | 'not_returned' | 'clawed_back';
2640
+ /** What one successful refund returned of DeloPay's platform fee. */
2641
+ interface PlatformFeeReturnRecord {
2642
+ id: string;
2643
+ refund_id: string;
2644
+ payment_id: string;
2645
+ attempt_id: string;
2646
+ profile_id?: string | null;
2647
+ status: PlatformFeeReturnStatus;
2648
+ /** Why nothing was returned, for `not_returned`. */
2649
+ reason?: string | null;
2650
+ /** The scope whose setting governed the refund when it succeeded. */
2651
+ setting_source?: PlatformFeeReturnSource | null;
2652
+ setting_source_id?: string | null;
2653
+ /** Minor units of `refund_currency`. */
2654
+ refund_amount: number;
2655
+ refund_currency: string;
2656
+ /** The base the original fee was priced on, in `refund_currency`. */
2657
+ gross_amount?: number | null;
2658
+ /** The original platform fee, in minor units of `fee_currency`. */
2659
+ fee_amount?: number | null;
2660
+ fee_currency?: string | null;
2661
+ refunded_before_amount?: number | null;
2662
+ returned_before_amount?: number | null;
2663
+ /** What this refund returned, in minor units of `fee_currency`. */
2664
+ returned_amount?: number | null;
2665
+ fee_debit_id?: string | null;
2666
+ ledger_entry_id?: string | null;
2667
+ clawback_ledger_entry_id?: string | null;
2668
+ observed_at: string;
2669
+ decided_at?: string | null;
2670
+ clawed_back_at?: string | null;
2671
+ last_error?: string | null;
2672
+ }
2673
+ interface PlatformFeeReturnListResponse {
2674
+ data: PlatformFeeReturnRecord[];
2675
+ }
2676
+ /** Who a shared role is offered to. `all` includes merchants created later. */
2677
+ type SharedRoleAudience = 'all' | 'selected';
2678
+ /** The label colour a role is shown with. */
2679
+ type RoleColor = 'slate' | 'red' | 'orange' | 'amber' | 'green' | 'teal' | 'blue' | 'violet' | 'pink';
2680
+ /** One area of a role's access and the level it grants. */
2681
+ interface RoleParentGroup {
2682
+ name: ParentGroup;
2683
+ scopes: PermissionScope[];
2684
+ }
2685
+ interface SharedRoleMerchantRef {
2686
+ merchant_id: string;
2687
+ /** `null` when the merchant's name cannot be read. */
2688
+ merchant_name: string | null;
2689
+ }
2690
+ interface SharedRoleMerchantHolders {
2691
+ merchant_id: string;
2692
+ merchant_name: string | null;
2693
+ /** Bindings naming the role at this merchant, pending invitations included. */
2694
+ holders: number;
2695
+ }
2696
+ interface SharedRoleSummary {
2697
+ role_id: string;
2698
+ role_name: string;
2699
+ description: string | null;
2700
+ color: RoleColor | null;
2701
+ entity_type: EntityType;
2702
+ parent_groups: RoleParentGroup[];
2703
+ audience: SharedRoleAudience;
2704
+ /** The size of a `selected` audience; `null` for `all`. */
2705
+ audience_merchant_count: number | null;
2706
+ holder_count: number;
2707
+ holder_merchant_count: number;
2708
+ created_by: string;
2709
+ /** ISO 8601. */
2710
+ created_at: string;
2711
+ last_modified_by: string;
2712
+ /** ISO 8601. */
2713
+ last_modified_at: string;
2714
+ /** Send back with a change to this role. */
2715
+ version: string;
2716
+ }
2717
+ /** A role defined in code, the same on every deployment. Read-only. */
2718
+ interface SystemRoleSummary {
2719
+ role_id: string;
2720
+ role_name: string;
2721
+ entity_type: EntityType;
2722
+ parent_groups: RoleParentGroup[];
2723
+ holder_count: number;
2724
+ holder_merchant_count: number;
2725
+ }
2726
+ /** A custom role one merchant made for itself. */
2727
+ interface MerchantRoleSummary {
2728
+ role_id: string;
2729
+ role_name: string;
2730
+ description: string | null;
2731
+ color: RoleColor | null;
2732
+ entity_type: EntityType;
2733
+ merchant_id: string;
2734
+ merchant_name: string | null;
2735
+ parent_groups: RoleParentGroup[];
2736
+ holder_count: number;
2737
+ }
2738
+ /** `GET /admin-portal/merchant-roles` */
2739
+ interface SharedRoleListResponse {
2740
+ shared: SharedRoleSummary[];
2741
+ system: SystemRoleSummary[];
2742
+ merchant_specific: MerchantRoleSummary[];
2743
+ }
2744
+ interface SharedRoleDetailResponse {
2745
+ role: SharedRoleSummary;
2746
+ /** The merchants of a `selected` audience; empty for `all`. */
2747
+ audience_merchants: SharedRoleMerchantRef[];
2748
+ /** Every merchant where somebody holds the role. */
2749
+ holders: SharedRoleMerchantHolders[];
2750
+ }
2751
+ interface CreateSharedRoleRequest {
2752
+ role_name: string;
2753
+ description?: string | null;
2754
+ color?: RoleColor | null;
2755
+ /** `merchant` or `profile` (shop). */
2756
+ entity_type: EntityType;
2757
+ parent_groups: RoleParentGroup[];
2758
+ audience: SharedRoleAudience;
2759
+ /** Required, and non-empty, for a `selected` audience; empty for `all`. */
2760
+ merchant_ids?: string[];
2761
+ }
2762
+ /**
2763
+ * A change to a shared role. An absent field is left as it is;
2764
+ * `description` and `color` are cleared by `null`.
2765
+ */
2766
+ interface SharedRoleChange {
2767
+ role_name?: string;
2768
+ description?: string | null;
2769
+ color?: RoleColor | null;
2770
+ parent_groups?: RoleParentGroup[];
2771
+ audience?: SharedRoleAudience;
2772
+ /**
2773
+ * The whole new `selected` audience. Sent with `audience: 'selected'`, or
2774
+ * alone to change the merchants of a role already `selected`.
2775
+ */
2776
+ merchant_ids?: string[];
2777
+ /**
2778
+ * The role the holders at merchants leaving the audience move to. Required
2779
+ * when any of them holds the role.
2780
+ */
2781
+ replacement_role_id?: string;
2782
+ }
2783
+ interface UpdateSharedRoleRequest {
2784
+ change: SharedRoleChange;
2785
+ /** `version` of the role the change was reviewed against. */
2786
+ version: string;
2787
+ /**
2788
+ * Required when the change takes access away, which signs out every holder
2789
+ * of the role.
2790
+ */
2791
+ acknowledge_sign_out?: boolean;
2792
+ }
2793
+ /** One area whose level changes. `null` is hidden. */
2794
+ interface RoleAccessChange {
2795
+ name: ParentGroup;
2796
+ before: PermissionScope | null;
2797
+ after: PermissionScope | null;
2798
+ }
2799
+ type SharedRoleReplacementKind = 'system' | 'shared';
2800
+ interface SharedRoleReplacementOption {
2801
+ role_id: string;
2802
+ role_name: string;
2803
+ kind: SharedRoleReplacementKind;
2804
+ }
2805
+ /**
2806
+ * What a change would do, computed without writing anything. Applying the
2807
+ * change recomputes all of it and refuses whatever no longer holds.
2808
+ */
2809
+ interface SharedRolePreviewResponse {
2810
+ access_changes: RoleAccessChange[];
2811
+ /** The change takes access away, so applying it signs out every holder. */
2812
+ signs_out: boolean;
2813
+ holder_count: number;
2814
+ holder_merchant_count: number;
2815
+ merchants_added: SharedRoleMerchantRef[];
2816
+ /** Merchants leaving the audience, with how many hold the role there. */
2817
+ merchants_removed: SharedRoleMerchantHolders[];
2818
+ replacement_required: boolean;
2819
+ replacement_options: SharedRoleReplacementOption[];
2820
+ /**
2821
+ * The chosen replacement's access compared with the role's current access.
2822
+ * Empty until a replacement is named.
2823
+ */
2824
+ replacement_access_changes: RoleAccessChange[];
2825
+ holders: SharedRoleMerchantHolders[];
2826
+ /**
2827
+ * Merchants that would be left without anybody able to manage their users.
2828
+ * Applying is refused while this is non-empty.
2829
+ */
2830
+ administrator_refusals: SharedRoleMerchantRef[];
2831
+ /** Merchants that already have a role of the new name at the same level. */
2832
+ name_conflicts: SharedRoleMerchantRef[];
2833
+ version: string;
2834
+ }
2835
+ interface RetireSharedRolePreviewRequest {
2836
+ replacement_role_id?: string | null;
2837
+ }
2838
+ interface RetireSharedRolePreviewResponse {
2839
+ holder_count: number;
2840
+ holder_merchant_count: number;
2841
+ holders: SharedRoleMerchantHolders[];
2842
+ replacement_options: SharedRoleReplacementOption[];
2843
+ /** The chosen replacement's access compared with the retired role's. */
2844
+ access_changes: RoleAccessChange[];
2845
+ administrator_refusals: SharedRoleMerchantRef[];
2846
+ version: string;
2847
+ }
2848
+ interface RetireSharedRoleRequest {
2849
+ /** Required while anybody holds the role. */
2850
+ replacement_role_id?: string | null;
2851
+ version: string;
2852
+ }
2853
+ interface SharedRoleApplied {
2854
+ role_id: string;
2855
+ moved_bindings: number;
2856
+ signed_out: boolean;
2857
+ }
2858
+ /**
2859
+ * How a merchant-specific role compares with the shared role its holders
2860
+ * would move to. `different_level` and `outside_audience` are not offered.
2861
+ */
2862
+ type ConsolidationVerdict = 'same' | 'gains' | 'loses' | 'gains_and_loses' | 'different_level' | 'outside_audience';
2863
+ interface ConsolidationCandidate {
2864
+ role_id: string;
2865
+ role_name: string;
2866
+ entity_type: EntityType;
2867
+ merchant_id: string;
2868
+ merchant_name: string | null;
2869
+ holder_count: number;
2870
+ verdict: ConsolidationVerdict;
2871
+ /** Areas the holders would gain by moving. */
2872
+ gained: RoleAccessChange[];
2873
+ /** Areas the holders would lose by moving. */
2874
+ lost: RoleAccessChange[];
2875
+ }
2876
+ interface ConsolidationCandidatesResponse {
2877
+ candidates: ConsolidationCandidate[];
2878
+ version: string;
2879
+ }
2880
+ interface ConsolidationSource {
2881
+ role_id: string;
2882
+ /** Required when the move gives the holders access they did not have. */
2883
+ accept_gained?: boolean;
2884
+ /** Required when the move takes access away from the holders. */
2885
+ accept_lost?: boolean;
2886
+ }
2887
+ interface ConsolidateRolesRequest {
2888
+ sources: ConsolidationSource[];
2889
+ /** Delete each merchant-specific role once nobody holds it. */
2890
+ delete_empty_roles?: boolean;
2891
+ version: string;
2892
+ }
2893
+ interface ConsolidateRolesResponse {
2894
+ moved_bindings: number;
2895
+ deleted_roles: string[];
2896
+ }
2897
+ /**
2898
+ * Why a shared-role request was refused: the `data` of a `UR_71` error. A
2899
+ * stable code, not copy — render your own words for it.
2900
+ */
2901
+ type SharedRoleRefusal = {
2902
+ reason: 'not_shared';
2903
+ } | {
2904
+ reason: 'managed_centrally';
2905
+ } | {
2906
+ reason: 'changed';
2907
+ } | {
2908
+ reason: 'sign_out_not_acknowledged';
2909
+ } | {
2910
+ reason: 'invalid_audience';
2911
+ unknown_merchant_ids: string[];
2912
+ } | {
2913
+ reason: 'replacement_required';
2914
+ merchant_ids: string[];
2915
+ } | {
2916
+ reason: 'replacement_invalid';
2917
+ role_id: string;
2918
+ } | {
2919
+ reason: 'name_taken';
2920
+ merchant_ids: string[];
2921
+ } | {
2922
+ reason: 'strands_administrators';
2923
+ merchant_ids: string[];
2924
+ } | {
2925
+ reason: 'merchant_scoped_setting_refused';
2926
+ } | {
2927
+ reason: 'consolidation_refused';
2928
+ role_id: string;
2929
+ verdict: ConsolidationVerdict;
2930
+ };
2931
+ /** A reviewer moves the buyer's cut-off. */
2932
+ interface BuyerEvidenceDeadlineChange {
2933
+ /** The new cut-off; it must lie in the future. */
2934
+ due_at: string;
2935
+ /** Why, shown to the buyer, 1 to 1000 characters. */
2936
+ reason: string;
2937
+ }
2938
+ /**
2939
+ * Makes a user responsible for the review: a user id, `me` for the caller,
2940
+ * or `null` for nobody.
2941
+ */
2942
+ interface BuyerEvidenceAssign {
2943
+ reviewer_id?: string | null;
2944
+ }
2945
+ /**
2946
+ * The deployment's branding as the platform operator saves it. Every field is
2947
+ * optional: `null` keeps today's behaviour for that field (the router's
2948
+ * environment value or built-in constant, and each page's own default).
2949
+ */
2950
+ interface DeploymentBranding {
2951
+ /** 1 to 60 characters, trimmed; no `<`, `>`, `"` or control characters. */
2952
+ name: string | null;
2953
+ /**
2954
+ * Absolute `https://` address, at most 2048 characters, answering 2xx with
2955
+ * an `image/*` body of at most 2 MiB. Checked when it changes.
2956
+ */
2957
+ logo_url: string | null;
2958
+ /** As `logo_url`; the dashboards' logo in dark mode. */
2959
+ logo_dark_url: string | null;
2960
+ /** As `logo_url`; the square mark of the dashboards' mobile header and collapsed sidebar. */
2961
+ symbol_url: string | null;
2962
+ /** As `logo_url`, `image/x-icon` and `image/svg+xml` included. */
2963
+ favicon_url: string | null;
2964
+ /** Font family of emails: 1 to 40 letters, digits or spaces. */
2965
+ email_font: string | null;
2966
+ /** Absolute `https://` address of a `woff2` font file for emails. Checked when it changes. */
2967
+ email_font_url: string | null;
2968
+ /** `#rrggbb` accent colour of buyer emails and the unsubscribe page. */
2969
+ email_accent: string | null;
2970
+ /** `#rrggbb` checkout theme colour, used when a shop chose none. */
2971
+ checkout_theme: string | null;
2972
+ /** `#rrggbb` checkout background colour, used when a shop set none. */
2973
+ checkout_background: string | null;
2974
+ /** `#rrggbb` status page background, used when a shop set none. Falls back to `checkout_background`. */
2975
+ status_background: string | null;
2976
+ /** `#rrggbb` background of the router's redirect loader page. */
2977
+ redirect_background: string | null;
2978
+ }
2979
+ /** `GET` / `PUT /admin-portal/branding`. */
2980
+ interface BrandingAdminResponse {
2981
+ /** What is saved; `null` fields are unset. */
2982
+ branding: DeploymentBranding;
2983
+ /** The value in force for each field while it is unset; `null` where nothing applies. */
2984
+ defaults: DeploymentBranding;
2985
+ /** `null` while nothing was ever saved. Send it back as `expected_revision`. */
2986
+ revision: number | null;
2987
+ /** When it was last saved; `null` while nothing was ever saved. */
2988
+ updated_at: string | null;
2989
+ /** Name or email of whoever saved it last; `null` while nothing was ever saved. */
2990
+ updated_by: string | null;
2991
+ }
2992
+ /**
2993
+ * Replace the whole branding. All fields `null` clears it. A stale
2994
+ * `expected_revision` is refused with the settings store's conflict error and
2995
+ * changes nothing.
2996
+ */
2997
+ interface BrandingUpdateRequest {
2998
+ branding: DeploymentBranding;
2999
+ /** The `revision` last read; `null` or omitted when nothing was saved yet. */
3000
+ expected_revision?: number | null;
3001
+ }
3002
+ /** Which assessment of a shop a stage condition reads. */
3003
+ type MerchantRiskAssessment = 'reference' | 'adjusted';
3004
+ /** A shop risk band a stage condition compares with, least severe first. */
3005
+ type MerchantRiskBand = 'watch' | 'at_risk' | 'critical';
3006
+ /** A billing status a stage condition matches. */
3007
+ type MerchantRiskBillingStatus = 'delinquent' | 'suspended';
3008
+ /**
3009
+ * Which environment's results an identity condition reads.
3010
+ * Test and live results are never counted together.
3011
+ */
3012
+ type MerchantRiskEnvironment = 'live' | 'test';
3013
+ /**
3014
+ * How an identity condition counts an undecided result: `unknown` never meets
3015
+ * the condition by itself and keeps it from holding as recovered; `finding`
3016
+ * counts it as a finding. No undecided result counts as clear.
3017
+ */
3018
+ type MerchantRiskTreatment = 'unknown' | 'finding';
3019
+ /** How each kind of undecided result counts. */
3020
+ interface MerchantRiskTreatments {
3021
+ /** Not decided yet, and younger than the policy's `stale_after_hours`. */
3022
+ pending: MerchantRiskTreatment;
3023
+ /** Not decided yet, and older than that. */
3024
+ stale: MerchantRiskTreatment;
3025
+ /** The provider could not be reached or the account used, or it does not keep the result current here. */
3026
+ unavailable: MerchantRiskTreatment;
3027
+ /** The provider refused the request. */
3028
+ failed: MerchantRiskTreatment;
3029
+ /** No result exists: the session expired or was abandoned, the check did not run, or nobody was named. */
3030
+ missing: MerchantRiskTreatment;
3031
+ }
3032
+ /** The verification kinds a subject is verified by: every kind but `payment_method_ownership`. */
3033
+ type MerchantRiskSubjectVerificationKind = Exclude<VerificationKind, 'payment_method_ownership'>;
3034
+ /** What an identity condition counts, at least `at_least` of them, and how it recovers. */
3035
+ interface MerchantRiskIdentityBar {
3036
+ environment: MerchantRiskEnvironment;
3037
+ /** 1 to 10,000. */
3038
+ at_least: number;
3039
+ /** 1 to `at_least`: the condition holds as recovered when its findings and unknown results together are fewer. */
3040
+ recover_below: number;
3041
+ treat: MerchantRiskTreatments;
3042
+ }
3043
+ /**
3044
+ * The identity conditions. Each counts findings among the
3045
+ * merchant's own authenticated results in one environment, over
3046
+ * `window_hours` (1 to 720) where it takes one. They compare
3047
+ * provider-neutral outcomes, statuses and labels only, never a provider's
3048
+ * score.
3049
+ *
3050
+ * - `verification_outcome`: subjects whose latest verification of `kinds`,
3051
+ * started in the window, ended in one of `outcomes`.
3052
+ * - `verification_check`: subjects whose latest verification has `check` in
3053
+ * one of `outcomes`.
3054
+ * - `aml_finding`: monitored subjects whose current AML result is one of
3055
+ * `statuses`; a cleared finding no longer counts.
3056
+ * - `operation_screening`: payments, refunds or payouts screened in the
3057
+ * window with an outcome in `outcomes`.
3058
+ * - `device_assessment`: payments assessed in the window with one of `labels`.
3059
+ */
3060
+ type MerchantRiskIdentityCondition = (MerchantRiskIdentityBar & {
3061
+ signal: 'verification_outcome';
3062
+ kinds: MerchantRiskSubjectVerificationKind[];
3063
+ outcomes: Extract<VerificationOutcome, 'rejected' | 'needs_review'>[];
3064
+ window_hours: number;
3065
+ }) | (MerchantRiskIdentityBar & {
3066
+ signal: 'verification_check';
3067
+ kinds: MerchantRiskSubjectVerificationKind[];
3068
+ check: VerificationCheckKind;
3069
+ outcomes: Extract<VerificationCheckOutcome, 'failed' | 'needs_review'>[];
3070
+ window_hours: number;
3071
+ }) | (MerchantRiskIdentityBar & {
3072
+ signal: 'aml_finding';
3073
+ statuses: Extract<AmlStatus, 'hit' | 'in_review'>[];
3074
+ }) | (MerchantRiskIdentityBar & {
3075
+ signal: 'operation_screening';
3076
+ operations: ScreenedOperation[];
3077
+ outcomes: Extract<PaymentScreeningOutcome, 'declined' | 'in_review'>[];
3078
+ window_hours: number;
3079
+ }) | (MerchantRiskIdentityBar & {
3080
+ signal: 'device_assessment';
3081
+ labels: DeviceRiskLabel[];
3082
+ window_hours: number;
3083
+ });
3084
+ /** The `signal` of an {@link MerchantRiskIdentityCondition}. */
3085
+ type MerchantRiskIdentitySignal = MerchantRiskIdentityCondition['signal'];
3086
+ /**
3087
+ * One condition of a stage. A stage is entered when any of its conditions is
3088
+ * met. `shop_band` is met when any latest snapshot (per shop and processor) is
3089
+ * at least `at_least`, and recovered when every one is known and below
3090
+ * `recover_below`. `billing_status` is met when the status is one of `in`.
3091
+ * The identity conditions are {@link MerchantRiskIdentityCondition}.
3092
+ */
3093
+ type MerchantRiskCondition = {
3094
+ signal: 'shop_band';
3095
+ assessment: MerchantRiskAssessment;
3096
+ at_least: MerchantRiskBand;
3097
+ recover_below: MerchantRiskBand;
3098
+ } | {
3099
+ signal: 'billing_status';
3100
+ in: MerchantRiskBillingStatus[];
3101
+ } | MerchantRiskIdentityCondition;
3102
+ /** The signal a condition reads, and the dimension an exemption names. */
3103
+ type MerchantRiskDimension = MerchantRiskCondition['signal'];
3104
+ /**
3105
+ * The actions that change what a merchant may do:
3106
+ * `restrict_payments` refuses new payments (for every shop, some shops or
3107
+ * some providers, see {@link MerchantRiskPaymentScope}), `hold_payouts`
3108
+ * refuses new payouts, and `suspend` does both for every shop, as one
3109
+ * action. None of them implies another. They default to `confirm`.
3110
+ */
3111
+ type MerchantRiskEnforcementActionKind = 'restrict_payments' | 'hold_payouts' | 'suspend';
3112
+ /** What a stage does when it is entered. */
3113
+ type MerchantRiskActionKind = 'operator_notification' | 'merchant_notification' | 'review_flag' | MerchantRiskEnforcementActionKind;
3114
+ /**
3115
+ * Payment-affecting actions a policy or an exemption may name, refused with
3116
+ * "<kind> is not available yet" until they ship.
3117
+ *
3118
+ * @deprecated Since 0.319.0 these kinds are part of
3119
+ * {@link MerchantRiskActionKind}, and whether a kind is available is runtime
3120
+ * data: read `available` and `unavailable_reason` of its
3121
+ * {@link MerchantRiskActionCatalogEntry} (`adminPortal.getMerchantRiskActionCatalog`,
3122
+ * or the stage read's `action_catalog`). Kept with its members so code that
3123
+ * names it still compiles; use {@link MerchantRiskEnforcementActionKind} instead.
3124
+ */
3125
+ type MerchantRiskUnavailableActionKind = MerchantRiskEnforcementActionKind;
3126
+ /**
3127
+ * Whether an action applies at once or waits for an operator. A written
3128
+ * policy's default is `confirm` for the {@link MerchantRiskEnforcementActionKind}
3129
+ * kinds and `automatic` for the others.
3130
+ */
3131
+ type MerchantRiskActionMode = 'automatic' | 'confirm';
3132
+ /**
3133
+ * Which new payments a `restrict_payments` action refuses. Only that kind
3134
+ * takes a scope; it defaults to `{ type: 'all' }`.
3135
+ *
3136
+ * - `all`: every shop of the merchant.
3137
+ * - `shops`: the named shops (profile ids), 1 to 20, unique. Only in a
3138
+ * merchant's own override: the platform policy refuses it.
3139
+ * - `triggering_shops`: the shops whose `shop_band` evidence was met when the
3140
+ * stage was entered. Only when every `enter` condition of the stage is
3141
+ * `shop_band`.
3142
+ * - `providers`: new authorizations through the named connectors, 1 to 10,
3143
+ * unique, each a known payment connector name.
3144
+ * - `triggering_providers`: the connectors of the met `shop_band` evidence,
3145
+ * under the same condition as `triggering_shops`.
3146
+ */
3147
+ type MerchantRiskPaymentScope = {
3148
+ type: 'all';
3149
+ } | {
3150
+ type: 'shops';
3151
+ shop_ids: string[];
3152
+ } | {
3153
+ type: 'triggering_shops';
3154
+ } | {
3155
+ type: 'providers';
3156
+ connectors: string[];
3157
+ } | {
3158
+ type: 'triggering_providers';
3159
+ };
3160
+ /** The `type` of a {@link MerchantRiskPaymentScope}. */
3161
+ type MerchantRiskPaymentScopeType = MerchantRiskPaymentScope['type'];
3162
+ /** What an action refuses while it is applied. */
3163
+ type MerchantRiskActionBlock = 'payments' | 'payouts';
3164
+ interface MerchantRiskActionRule {
3165
+ kind: MerchantRiskActionKind;
3166
+ mode: MerchantRiskActionMode;
3167
+ /**
3168
+ * The configured scope of a `restrict_payments` action, defaulted to
3169
+ * `{ type: 'all' }`. Absent or `null` for every other kind, and from
3170
+ * backends without merchant risk enforcement.
3171
+ */
3172
+ scope?: MerchantRiskPaymentScope | null;
3173
+ }
3174
+ /** One stage of a policy, with every default filled in. Least severe first. */
3175
+ interface MerchantRiskStageRule {
3176
+ key: string;
3177
+ label: string;
3178
+ enter: MerchantRiskCondition[];
3179
+ /**
3180
+ * How long every condition must hold as recovered before the merchant
3181
+ * leaves the stage, 0 to 720. 0 leaves on the first evaluation that holds.
3182
+ */
3183
+ recovery_hours: number;
3184
+ actions: MerchantRiskActionRule[];
3185
+ }
3186
+ /**
3187
+ * An action as a written policy names it. `mode` defaults to `confirm` for
3188
+ * the {@link MerchantRiskEnforcementActionKind} kinds and to `automatic` for
3189
+ * the others. Kinds are unique per stage, at most 6 per stage.
3190
+ */
3191
+ interface MerchantRiskActionRuleInput {
3192
+ kind: MerchantRiskActionKind;
3193
+ mode?: MerchantRiskActionMode;
3194
+ /**
3195
+ * Only on `restrict_payments`, where it defaults to `{ type: 'all' }`. A
3196
+ * scope on any other kind is refused.
3197
+ */
3198
+ scope?: MerchantRiskPaymentScope;
3199
+ }
3200
+ /** An identity condition as a written policy names it. */
3201
+ type MerchantRiskIdentityConditionInputOf<C> = C extends MerchantRiskIdentityCondition ? Omit<C, 'environment' | 'recover_below' | 'treat' | 'window_hours'> & {
3202
+ /** Defaults to `live`. */
3203
+ environment?: MerchantRiskEnvironment;
3204
+ /** Defaults to `at_least`. */
3205
+ recover_below?: number;
3206
+ /** Each kind defaults to `unknown`. */
3207
+ treat?: Partial<MerchantRiskTreatments>;
3208
+ } & ('window_hours' extends keyof C ? {
3209
+ /** Defaults to 168, a week. */
3210
+ window_hours?: number;
3211
+ } : unknown) : never;
3212
+ /**
3213
+ * A condition as a written policy names it: a `shop_band` condition's
3214
+ * `recover_below` defaults to its `at_least`; an identity condition's
3215
+ * defaults are on {@link MerchantRiskIdentityConditionInput}.
3216
+ */
3217
+ type MerchantRiskConditionInput = (Omit<Extract<MerchantRiskCondition, {
3218
+ signal: 'shop_band';
3219
+ }>, 'recover_below'> & {
3220
+ recover_below?: MerchantRiskBand;
3221
+ }) | Extract<MerchantRiskCondition, {
3222
+ signal: 'billing_status';
3223
+ }> | MerchantRiskIdentityConditionInput;
3224
+ /**
3225
+ * An identity condition as a written policy names it: `environment` defaults
3226
+ * to `live`, `recover_below` to `at_least`, `window_hours` to 168, and each
3227
+ * `treat` kind to `unknown`.
3228
+ */
3229
+ type MerchantRiskIdentityConditionInput = MerchantRiskIdentityConditionInputOf<MerchantRiskIdentityCondition>;
3230
+ /** A stage as a written policy names it; `recovery_hours` defaults to 24. */
3231
+ interface MerchantRiskStageRuleInput {
3232
+ key: string;
3233
+ label: string;
3234
+ enter: MerchantRiskConditionInput[];
3235
+ recovery_hours?: number;
3236
+ actions?: MerchantRiskActionRuleInput[];
3237
+ }
3238
+ /**
3239
+ * The value of the `merchant_risk.policy` setting, as written through
3240
+ * `platformSettings`. The platform default is `{ enabled: false }`; a
3241
+ * merchant's value replaces the platform's whole. Operator-only
3242
+ * (`AccountManage`). `stale_after_hours` defaults to 72. A policy that is off
3243
+ * may keep its stages; one that is on needs them.
3244
+ */
3245
+ interface MerchantRiskPolicySetting {
3246
+ enabled: boolean;
3247
+ stale_after_hours?: number;
3248
+ stages?: MerchantRiskStageRuleInput[];
3249
+ }
3250
+ /** Where the policy in force at a merchant comes from. A policy that could not be read is off, from `default`. */
3251
+ type MerchantRiskPolicySource = 'merchant' | 'platform' | 'default';
3252
+ /** The policy in force at a merchant. */
3253
+ interface MerchantRiskPolicyView {
3254
+ enabled: boolean;
3255
+ source: MerchantRiskPolicySource;
3256
+ /** The revision of the merchant's own policy, 0 when it has none: the revision a write of it is made against. */
3257
+ revision: number;
3258
+ /** `null` while the policy is off. */
3259
+ stale_after_hours: number | null;
3260
+ /** Empty while the policy is off. */
3261
+ stages: MerchantRiskStageRule[];
3262
+ }
3263
+ /** The stage a merchant is in. */
3264
+ interface MerchantRiskCurrentStage {
3265
+ key: string;
3266
+ label: string;
3267
+ entered_at: string | null;
3268
+ transition_id: string | null;
3269
+ }
3270
+ /** A condition's result. `unknown` never enters a stage and blocks recovery. */
3271
+ type MerchantRiskConditionResult = 'met' | 'not_met' | 'unknown';
3272
+ /** Why one shop's snapshot could not be read. */
3273
+ type MerchantRiskUnknownReason = 'stale' | 'no_adjusted_assessment' | 'insufficient_data';
3274
+ /** One shop and processor's latest snapshot, as a `shop_band` condition read it. */
3275
+ interface MerchantRiskShopBandEvidenceRow {
3276
+ shop_id: string;
3277
+ connector: string;
3278
+ /** The band read; `null` when the assessment has none. */
3279
+ band: string | null;
3280
+ snapshot_id: string;
3281
+ computed_at: string;
3282
+ result: MerchantRiskConditionResult;
3283
+ unknown_reason: MerchantRiskUnknownReason | null;
3284
+ }
3285
+ /**
3286
+ * What one result is to the identity condition that read it: a `finding`, or
3287
+ * `clear`, or one of the undecided kinds its `treat` counts.
3288
+ */
3289
+ type MerchantRiskIdentityResultState = 'finding' | 'clear' | 'pending' | 'stale' | 'unavailable' | 'failed' | 'missing';
3290
+ /** What an identity condition counts: a subject, a screened payment, refund or payout, or an assessed payment. */
3291
+ type MerchantRiskEvidenceLevel = 'subject' | 'operation' | 'payment';
3292
+ /** How an explained result was counted: `null` for a clear one. */
3293
+ interface MerchantRiskIdentityItemCount {
3294
+ state: MerchantRiskIdentityResultState;
3295
+ counted_as: MerchantRiskTreatment | null;
3296
+ }
3297
+ /** A subject's latest verification, as `verification_outcome` and `verification_check` read it. */
3298
+ interface MerchantRiskVerificationEvidenceItem extends MerchantRiskIdentityItemCount {
3299
+ verification_id: string;
3300
+ shop_id: string;
3301
+ kind: VerificationKind;
3302
+ outcome: VerificationOutcome;
3303
+ /** The read check's result across its runs; `null` for `verification_outcome` or a check that did not run. */
3304
+ check_outcome: VerificationCheckOutcome | null;
3305
+ started_at: string;
3306
+ completed_at: string | null;
3307
+ }
3308
+ /** A monitored subject's current AML result, as `aml_finding` reads it. */
3309
+ interface MerchantRiskAmlEvidenceItem extends MerchantRiskIdentityItemCount {
3310
+ verification_id: string;
3311
+ shop_id: string;
3312
+ aml_status: AmlStatus | null;
3313
+ monitored_by_provider: boolean | null;
3314
+ status_changed_at: string | null;
3315
+ monitoring_changed_at: string | null;
3316
+ }
3317
+ /** One screened payment, refund or payout, as `operation_screening` reads it. */
3318
+ interface MerchantRiskScreeningEvidenceItem extends MerchantRiskIdentityItemCount {
3319
+ operation: ScreenedOperation;
3320
+ /** The payment's, refund's or payout's id. */
3321
+ id: string;
3322
+ shop_id: string;
3323
+ outcome: PaymentScreeningOutcome;
3324
+ not_screened_reason: string | null;
3325
+ created_at: string;
3326
+ screened_at: string | null;
3327
+ }
3328
+ /** One assessed payment, as `device_assessment` reads it. */
3329
+ interface MerchantRiskDeviceEvidenceItem extends MerchantRiskIdentityItemCount {
3330
+ payment_id: string;
3331
+ shop_id: string;
3332
+ outcome: string;
3333
+ not_recorded_reason: string | null;
3334
+ /** The recorded labels among the condition's. */
3335
+ labels: DeviceRiskLabel[];
3336
+ created_at: string;
3337
+ recorded_at: string | null;
3338
+ }
3339
+ type MerchantRiskIdentityEvidenceItem = MerchantRiskVerificationEvidenceItem | MerchantRiskAmlEvidenceItem | MerchantRiskScreeningEvidenceItem | MerchantRiskDeviceEvidenceItem;
3340
+ /**
3341
+ * What an identity condition read. A read that failed has `unreadable: true`
3342
+ * and none of the counts: the condition is `unknown`. Results are named by
3343
+ * id; a subject's own reference is never included.
3344
+ */
3345
+ interface MerchantRiskIdentityEvidence {
3346
+ unreadable: boolean;
3347
+ level: MerchantRiskEvidenceLevel;
3348
+ environment: MerchantRiskEnvironment;
3349
+ /** `null` for `aml_finding`, which reads current results. */
3350
+ window_hours: number | null;
3351
+ /** Results counted as findings, `treat` applied. */
3352
+ findings?: number;
3353
+ /** Results counted as unknown. */
3354
+ unknown?: number;
3355
+ /** How many results of each kind were read. */
3356
+ results?: Record<MerchantRiskIdentityResultState, number>;
3357
+ /** More subjects than the read takes: the counts are a part, and the condition cannot be not met or recovered. */
3358
+ truncated?: boolean;
3359
+ /** The newest results that are not clear, at most 20. */
3360
+ items?: MerchantRiskIdentityEvidenceItem[];
3361
+ }
3362
+ /**
3363
+ * One condition of one stage as an evaluation read it: the stage read's
3364
+ * `conditions`, and a transition's `reasons`.
3365
+ */
3366
+ type MerchantRiskConditionReport = MerchantRiskCondition & {
3367
+ stage: string;
3368
+ result: MerchantRiskConditionResult;
3369
+ evidence: {
3370
+ rows: MerchantRiskShopBandEvidenceRow[];
3371
+ unreadable: boolean;
3372
+ } | {
3373
+ billing_status: string | null;
3374
+ } | MerchantRiskIdentityEvidence;
3375
+ };
3376
+ /**
3377
+ * Only an `applied` action of a {@link MerchantRiskEnforcementActionKind}
3378
+ * kind blocks anything, and only such an action can be `lifted`.
3379
+ */
3380
+ type MerchantRiskActionStatus = 'pending' | 'applied' | 'dismissed' | 'suppressed' | 'expired' | 'lifted';
3381
+ /**
3382
+ * Who lifted an action: an operator (`liftMerchantRiskAction`), the
3383
+ * merchant's recovery to a less severe stage or to none, or a policy that
3384
+ * was turned off or no longer has the stage.
3385
+ */
3386
+ type MerchantRiskLiftSource = 'operator' | 'recovery' | 'policy_removed';
3387
+ /**
3388
+ * What an applied enforcement action blocks, resolved from its scope once
3389
+ * when it applied, so later policy edits never change it. `payments: 'all'`
3390
+ * refuses new payments for every shop; with `'none'`, only the shops in
3391
+ * `shop_ids` and the connectors in `connectors` are refused.
3392
+ */
3393
+ interface MerchantRiskEffect {
3394
+ payments: 'all' | 'none';
3395
+ shop_ids: string[];
3396
+ connectors: string[];
3397
+ payouts_held: boolean;
3398
+ }
3399
+ /** An action a stage took on entry. */
3400
+ interface MerchantRiskActionResponse {
3401
+ id: string;
3402
+ transition_id: string;
3403
+ /** `operator_stop` for an operator's stop. */
3404
+ stage_key: string;
3405
+ kind: MerchantRiskActionKind;
3406
+ /**
3407
+ * `operator` for an operator's stop of new payments:
3408
+ * a `restrict_payments` action recorded by hand with
3409
+ * `stopMerchantPayments`, outside any stage. Its `decided_by`,
3410
+ * `decided_at` and `decided_reason` say who stopped it, when and why, and
3411
+ * only `liftMerchantRiskAction` ends it.
3412
+ */
3413
+ mode: MerchantRiskActionMode | 'operator';
3414
+ status: MerchantRiskActionStatus;
3415
+ /** The exemptions that suppressed it. */
3416
+ exemption_ids: string[];
3417
+ /** The notification-center event it recorded. */
3418
+ notification_event_id: string | null;
3419
+ decided_by: string | null;
3420
+ decided_reason: string | null;
3421
+ decided_at: string | null;
3422
+ created_at: string;
3423
+ /**
3424
+ * The configured scope of a `restrict_payments` action; `null` for every
3425
+ * other kind. Absent from backends without merchant risk enforcement.
3426
+ */
3427
+ scope?: MerchantRiskPaymentScope | null;
3428
+ /**
3429
+ * What it blocks, once it applied; `null` while it waits and for the kinds
3430
+ * that block nothing. A `lifted` action keeps the effect it had.
3431
+ */
3432
+ effect?: MerchantRiskEffect | null;
3433
+ lifted_at?: string | null;
3434
+ /** The operator who lifted it; `null` when a recovery or a policy change did. */
3435
+ lifted_by?: string | null;
3436
+ lifted_reason?: string | null;
3437
+ lift_source?: MerchantRiskLiftSource | null;
3438
+ }
3439
+ type MerchantRiskTransitionDirection = 'escalated' | 'recovered' | 'policy_removed';
3440
+ type MerchantRiskTransitionSource = 'scoring_pass' | 'operator_evaluation';
3441
+ /** One stage change. */
3442
+ interface MerchantRiskTransitionResponse {
3443
+ id: string;
3444
+ from_stage: string | null;
3445
+ to_stage: string | null;
3446
+ direction: MerchantRiskTransitionDirection;
3447
+ /** The conditions that caused the change, each with its result and evidence. */
3448
+ reasons: MerchantRiskConditionReport[];
3449
+ source: MerchantRiskTransitionSource;
3450
+ actor: string;
3451
+ created_at: string;
3452
+ }
3453
+ /** An exemption of one action from one risk dimension. */
3454
+ interface MerchantRiskExemptionResponse {
3455
+ id: string;
3456
+ dimension: MerchantRiskDimension;
3457
+ action: MerchantRiskActionKind;
3458
+ reason: string;
3459
+ /** `null`: never expires. */
3460
+ expires_at: string | null;
3461
+ /** Not revoked and not expired. */
3462
+ active: boolean;
3463
+ created_by: string;
3464
+ created_at: string;
3465
+ revoked_at: string | null;
3466
+ revoked_by: string | null;
3467
+ revoked_reason: string | null;
3468
+ }
3469
+ /**
3470
+ * Where a merchant stands in the risk policy, and why. Every list is present,
3471
+ * empty when there is nothing.
3472
+ */
3473
+ interface MerchantRiskStageResponse {
3474
+ merchant_id: string;
3475
+ policy: MerchantRiskPolicyView;
3476
+ /** `null` while the merchant is in no stage. */
3477
+ stage: MerchantRiskCurrentStage | null;
3478
+ /** Since when every condition of the current stage has held as recovered. */
3479
+ recovering_since: string | null;
3480
+ review_flagged: boolean;
3481
+ last_evaluated_at: string | null;
3482
+ /** Every condition of every stage from the last evaluation, in policy order. */
3483
+ conditions: MerchantRiskConditionReport[];
3484
+ pending_actions: MerchantRiskActionResponse[];
3485
+ /** Newest first, at most 50. */
3486
+ actions: MerchantRiskActionResponse[];
3487
+ /** Active ones first, then expired and revoked ones, at most 50. */
3488
+ exemptions: MerchantRiskExemptionResponse[];
3489
+ /** Newest first, at most 50. */
3490
+ transitions: MerchantRiskTransitionResponse[];
3491
+ /**
3492
+ * What the merchant's applied enforcement actions block now. Absent from
3493
+ * backends without merchant risk enforcement.
3494
+ */
3495
+ enforcement?: MerchantRiskEnforcement;
3496
+ /**
3497
+ * Every applied enforcement action, oldest first: the actions behind
3498
+ * `enforcement`, each liftable. Unlike `actions` it is not limited to the
3499
+ * newest 50. Absent from backends that do not list applied actions.
3500
+ */
3501
+ applied_actions?: MerchantRiskActionResponse[];
3502
+ /**
3503
+ * Payments and payouts an applied action refused, newest first, at most 20.
3504
+ * Absent from backends without merchant risk enforcement.
3505
+ */
3506
+ blocked_attempts?: MerchantRiskBlockedAttempt[];
3507
+ /**
3508
+ * Every action kind and whether this platform can use it. Absent from
3509
+ * backends without merchant risk enforcement.
3510
+ */
3511
+ action_catalog?: MerchantRiskActionCatalogEntry[];
3512
+ }
3513
+ /**
3514
+ * The union of the effects of a merchant's applied enforcement actions:
3515
+ * what is refused now. Every field is present.
3516
+ */
3517
+ interface MerchantRiskEnforcement {
3518
+ /** New payments are refused for every shop. */
3519
+ payments_all: boolean;
3520
+ /** Shops (profile ids) whose new payments are refused. */
3521
+ shop_ids: string[];
3522
+ /** Connectors that new authorizations are refused through. */
3523
+ connectors: string[];
3524
+ payouts_held: boolean;
3525
+ /** An applied `suspend` action: new payments and payouts are refused. */
3526
+ suspended: boolean;
3527
+ /** The ids of every applied enforcement action, oldest first. */
3528
+ action_ids: string[];
3529
+ }
3530
+ /** What a blocked attempt was. */
3531
+ type MerchantRiskBlockedSubject = 'payment' | 'payout';
3532
+ /**
3533
+ * A new payment or payout that an applied enforcement action refused
3534
+ * (`IR_16`, HTTP 400). Billing's own blocked attempts are separate
3535
+ * (`billing.listBlockedAttempts`).
3536
+ */
3537
+ interface MerchantRiskBlockedAttempt {
3538
+ /** `mrb_...` */
3539
+ id: string;
3540
+ subject: MerchantRiskBlockedSubject;
3541
+ /** The payment or payout id, when one was known. */
3542
+ subject_id: string | null;
3543
+ /** The shop, when one was known. */
3544
+ profile_id: string | null;
3545
+ connector: string | null;
3546
+ /** The action that refused it. */
3547
+ action_id: string;
3548
+ action_kind: MerchantRiskEnforcementActionKind;
3549
+ /** Minor units. */
3550
+ amount: number | null;
3551
+ currency: string | null;
3552
+ created_at: string;
3553
+ }
3554
+ /** A page of `adminPortal.listMerchantRiskBlockedAttempts`. */
3555
+ interface MerchantRiskBlockedAttemptList {
3556
+ /** Newest first. */
3557
+ entries: MerchantRiskBlockedAttempt[];
3558
+ /** Every attempt matching the filters, regardless of `limit`. */
3559
+ total_count: number;
3560
+ }
3561
+ /** Filters of `adminPortal.listMerchantRiskBlockedAttempts`. */
3562
+ interface MerchantRiskBlockedAttemptListParams {
3563
+ subject?: MerchantRiskBlockedSubject;
3564
+ /** 1 to 200; 50 when omitted. */
3565
+ limit?: number;
3566
+ }
3567
+ /**
3568
+ * One action kind as this platform offers it. A kind that is not
3569
+ * `available` is refused by policy validation with `unavailable_reason`;
3570
+ * `hold_payouts` and `suspend` need a platform built with payouts.
3571
+ */
3572
+ interface MerchantRiskActionCatalogEntry {
3573
+ kind: MerchantRiskActionKind;
3574
+ available: boolean;
3575
+ /** Why it is not available; `null` when it is. */
3576
+ unavailable_reason: string | null;
3577
+ /** The `mode` a written policy gets when it names none. */
3578
+ default_mode: MerchantRiskActionMode;
3579
+ /** The scope types the kind takes; empty for every kind but `restrict_payments`. */
3580
+ scopes: MerchantRiskPaymentScopeType[];
3581
+ /** What it refuses while applied; empty for the kinds that only notify or flag. */
3582
+ blocks: MerchantRiskActionBlock[];
3583
+ }
3584
+ interface MerchantRiskActionLiftRequest {
3585
+ /** 1 to 500 characters. */
3586
+ reason: string;
3587
+ }
3588
+ /**
3589
+ * Stop new payments of one shop, or of every shop of the merchant, by hand.
3590
+ */
3591
+ interface MerchantRiskPaymentsStopRequest {
3592
+ /** The shop to stop. Absent or `null` stops every shop of the merchant. */
3593
+ profile_id?: string | null;
3594
+ /** Why, for the other operators and the audit log. 1 to 500 characters. */
3595
+ reason: string;
3596
+ }
3597
+ /**
3598
+ * A policy to try, not saved. Without `merchant_id` it is validated as the
3599
+ * platform policy and run over every merchant that follows it; with one, as
3600
+ * that merchant's override, over that merchant only.
3601
+ */
3602
+ interface MerchantRiskPolicyPreviewRequest {
3603
+ policy: MerchantRiskPolicySetting;
3604
+ merchant_id?: string;
3605
+ }
3606
+ /** One action of a previewed stage, with its defaults filled in. */
3607
+ interface MerchantRiskPolicyPreviewAction extends MerchantRiskActionRule {
3608
+ blocks: MerchantRiskActionBlock[];
3609
+ }
3610
+ /** What one action would block at one merchant. */
3611
+ interface MerchantRiskPolicyPreviewEffect {
3612
+ kind: MerchantRiskActionKind;
3613
+ effect: MerchantRiskEffect | null;
3614
+ }
3615
+ /** A merchant whose stored signals point to a previewed stage now. */
3616
+ interface MerchantRiskPolicyPreviewMerchant {
3617
+ merchant_id: string;
3618
+ merchant_name: string | null;
3619
+ /** The stage the merchant is in now; `null` for none. */
3620
+ current_stage: string | null;
3621
+ /** The previewed stage's conditions as the merchant's stored signals read. */
3622
+ conditions: MerchantRiskConditionReport[];
3623
+ /** Each action's scope resolved for this merchant. */
3624
+ effects: MerchantRiskPolicyPreviewEffect[];
3625
+ }
3626
+ /** One stage of the previewed policy and the merchants it would hold now. */
3627
+ interface MerchantRiskPolicyPreviewStage {
3628
+ key: string;
3629
+ label: string;
3630
+ enter: MerchantRiskCondition[];
3631
+ recovery_hours: number;
3632
+ actions: MerchantRiskPolicyPreviewAction[];
3633
+ /** Every matching merchant, also beyond `merchants`. */
3634
+ merchant_count: number;
3635
+ /** At most 100, by `merchant_id`. */
3636
+ merchants: MerchantRiskPolicyPreviewMerchant[];
3637
+ /** More merchants match than `merchants` holds. */
3638
+ truncated: boolean;
3639
+ }
3640
+ /**
3641
+ * Which stage each merchant's stored signals point to now under a policy,
3642
+ * ignoring `recovery_hours` and `recovering_since`. Nothing is written.
3643
+ */
3644
+ interface MerchantRiskPolicyPreviewResponse {
3645
+ evaluated_merchants: number;
3646
+ /** Merchants with their own override, which a platform preview leaves out. */
3647
+ skipped_overridden: number;
3648
+ stages: MerchantRiskPolicyPreviewStage[];
3649
+ }
3650
+ interface MerchantRiskActionConfirmRequest {
3651
+ reason?: string | null;
3652
+ }
3653
+ interface MerchantRiskActionDismissRequest {
3654
+ reason: string;
3655
+ }
3656
+ /**
3657
+ * An exemption suppresses its action when a stage would create it. Granting
3658
+ * one later does not lift an action already applied: that is a separate
3659
+ * `liftMerchantRiskAction`.
3660
+ */
3661
+ interface MerchantRiskExemptionCreateRequest {
3662
+ dimension: MerchantRiskDimension;
3663
+ action: MerchantRiskActionKind;
3664
+ reason: string;
3665
+ /** When the exemption stops applying; never when omitted. */
3666
+ expires_at?: string | null;
3667
+ }
3668
+ interface MerchantRiskExemptionRevokeRequest {
3669
+ reason: string;
3670
+ }
3671
+ /**
3672
+ * Whether a shop's connection check account can check at all. Anything but
3673
+ * `active` checks nothing: `switched_off` (the account is switched off),
3674
+ * `gone` (deleted or unreadable), `not_offered` (its provider no longer checks
3675
+ * buyer addresses).
3676
+ */
3677
+ type ConnectionCheckAccountState = 'active' | 'switched_off' | 'gone' | 'not_offered';
3678
+ /** How many checks recorded nothing for one reason. */
3679
+ interface ConnectionCheckReasonCount {
3680
+ /** The stored reason, a `ConnectionCheckSkipReason` or one a newer backend writes; `unknown` when none was stored. */
3681
+ reason: ConnectionCheckSkipReason | 'unknown' | (string & {});
3682
+ count: number;
3683
+ }
3684
+ /** How many recorded checks the provider rated one risk level. */
3685
+ interface ConnectionCheckLevelCount {
3686
+ /** The stored risk level, a `ConnectionRiskLevel` or one a newer backend writes. */
3687
+ level: ConnectionRiskLevel | (string & {});
3688
+ count: number;
3689
+ }
3690
+ /** One UTC day's finished checks. */
3691
+ interface ConnectionCheckDay {
3692
+ /** The UTC day, `YYYY-MM-DD`. */
3693
+ date: string;
3694
+ recorded: number;
3695
+ not_recorded: number;
3696
+ /** Of `recorded`, the anonymising connections. */
3697
+ anonymising: number;
3698
+ }
3699
+ /** How one account's checks went in one environment over the window. */
3700
+ interface ConnectionCheckCounts {
3701
+ /** Every check started. */
3702
+ checks: number;
3703
+ /** Checks with the provider's risk level recorded. */
3704
+ recorded: number;
3705
+ /** Checks that finished without a risk level. */
3706
+ not_recorded: number;
3707
+ /** Checks still asking the provider, or abandoned while asking. */
3708
+ pending: number;
3709
+ /** `not_recorded / (recorded + not_recorded)`; 0 when none finished. */
3710
+ error_rate: number;
3711
+ /** Recorded checks rated `high` or `very_high`: anonymising connections. */
3712
+ anonymising: number;
3713
+ /** The latest reason counted in `not_recorded`. */
3714
+ last_not_recorded_reason?: ConnectionCheckSkipReason | null;
3715
+ /** `not_recorded` by reason, the most frequent first. The counts add up to `not_recorded`. */
3716
+ reasons: ConnectionCheckReasonCount[];
3717
+ /** `recorded` by risk level, from `very_low` to `very_high`. The counts add up to `recorded`. */
3718
+ levels: ConnectionCheckLevelCount[];
3719
+ /** Finished checks per UTC day, the oldest day first; only days with one. Their counts add up to `recorded`, `not_recorded` and `anonymising`. */
3720
+ days: ConnectionCheckDay[];
3721
+ /** The median time the provider took to answer a finished check, in milliseconds. Absent when none finished. */
3722
+ duration_p50_ms?: number | null;
3723
+ /** The 95th percentile of that time, in milliseconds. Absent when none finished. */
3724
+ duration_p95_ms?: number | null;
3725
+ /** When the oldest check counted in `pending` started. */
3726
+ oldest_pending_at?: string | null;
3727
+ /** When the account last started a check in this environment, at any time and not only in the window. */
3728
+ last_check_at?: string | null;
3729
+ /** When the account last recorded a risk level in this environment, at any time and not only in the window. */
3730
+ last_recorded_at?: string | null;
3731
+ }
3732
+ /** One account that rates buyer addresses, with how its recent checks went. */
3733
+ interface ConnectionCheckUsage {
3734
+ merchant_id: string;
3735
+ /** The merchant's name. Absent when it could not be read, and on an older backend. */
3736
+ merchant_name?: string | null;
3737
+ profile_id: string;
3738
+ /** The shop's name. Absent when the shop is gone, and on an older backend. */
3739
+ profile_name?: string | null;
3740
+ merchant_connector_id: string;
3741
+ /** The provider's connector name: the account's, or the latest check's when the account is gone. Empty only when both are gone. */
3742
+ connector: string;
3743
+ /** The account's own label, which tells two accounts of one provider apart. Absent when it has none or is gone. */
3744
+ connector_label?: string | null;
3745
+ /** Whether the account can check at all. Absent on an older backend. */
3746
+ account_state?: ConnectionCheckAccountState;
3747
+ /** The account has live credentials. Without them every live check ends `no_credentials`. Absent on an older backend. */
3748
+ live_credentials?: boolean;
3749
+ /** The account has test credentials. Without them every test check ends `no_credentials`. Absent on an older backend. */
3750
+ test_credentials?: boolean;
3751
+ /** ISO 8601. */
3752
+ enabled_at: string;
3753
+ /** Checks started in the window, live and test. */
3754
+ checks: number;
3755
+ /** Of those, the ones with a recorded rating. */
3756
+ recorded: number;
3757
+ /** Of those, the ones without, whatever the reason. */
3758
+ not_recorded: number;
3759
+ /** `not_recorded / checks`; 0 when there were none. */
3760
+ error_rate: number;
3761
+ /** The latest reason a check was not recorded in the window. */
3762
+ last_not_recorded_reason: ConnectionCheckSkipReason | null;
3763
+ /** The checks of live payments. Absent on an older backend. */
3764
+ live?: ConnectionCheckCounts;
3765
+ /** The checks of test payments. Absent on an older backend. */
3766
+ test?: ConnectionCheckCounts;
3767
+ }
3768
+ /** Every account that rates buyer addresses, over the last `window_days` days. */
3769
+ interface ConnectionCheckUsageResponse {
3770
+ window_days: number;
3771
+ accounts: ConnectionCheckUsage[];
3772
+ }
3773
+ /** The window of the connection check overview. */
3774
+ interface ConnectionCheckUsageParams {
3775
+ /** Days read, 1 to 90. Default 7. An older backend ignores it and answers 7 days; `window_days` says what was read. */
3776
+ days?: number;
3777
+ }
3778
+ /** What a list of the connection check overview's checks is sorted by. `merchant` sorts by the merchant's id, `shop` by the shop's name, `risk_level` from `very_low` to `very_high`, `duration` by the provider's answer time. */
3779
+ type ConnectionCheckPaymentSort = 'created_at' | 'amount' | 'status' | 'outcome' | 'reason' | 'risk_level' | 'duration' | 'connector' | 'merchant' | 'shop';
3780
+ /**
3781
+ * Which checks behind the connection check overview to list. The window and
3782
+ * the joins are the overview's, so with the same `days` and filters a list's
3783
+ * `total` is the count it was opened from.
3784
+ */
3785
+ interface ConnectionCheckPaymentsParams {
3786
+ /** Days read, 1 to 90. Default 7. */
3787
+ days?: number;
3788
+ /** Only checks of test payments, or only of live ones. Absent: both. */
3789
+ test_mode?: boolean;
3790
+ /** Only checks with this outcome. */
3791
+ outcome?: ConnectionCheckOutcome;
3792
+ /** Only checks that recorded nothing for this reason, as `ConnectionCheckCounts.reasons` names it. */
3793
+ reason?: string;
3794
+ /** Only recorded checks rated this risk level, as `ConnectionCheckCounts.levels` names it. */
3795
+ risk_level?: string;
3796
+ /** Only anonymising connections, or only the other checks. */
3797
+ anonymising?: boolean;
3798
+ /** Only shops whose provider has this connector name. */
3799
+ connector?: string;
3800
+ /** Only this merchant's shops. */
3801
+ merchant_id?: string;
3802
+ /** Only this shop. */
3803
+ profile_id?: string;
3804
+ /** Only payments that are paid or authorized now, or only the others. */
3805
+ paid?: boolean;
3806
+ /** Default `created_at`. */
3807
+ sort_on?: ConnectionCheckPaymentSort;
3808
+ /** Default `desc`. */
3809
+ sort_by?: 'asc' | 'desc';
3810
+ /** Page size, 1 to 100. Default 25. */
3811
+ limit?: number;
3812
+ /** Checks skipped before the page. Default 0. */
3813
+ offset?: number;
3814
+ }
3815
+ /** One check behind a number of the overview, with its payment. It carries nothing about the buyer, the checked address included. */
3816
+ interface ConnectionCheckPayment {
3817
+ payment_id: string;
3818
+ merchant_id: string;
3819
+ /** The merchant's name. Absent when it could not be read. */
3820
+ merchant_name?: string | null;
3821
+ profile_id: string;
3822
+ /** The shop's name. Absent when the shop is gone. */
3823
+ profile_name?: string | null;
3824
+ /** The provider's connector name. */
3825
+ connector: string;
3826
+ test_mode: boolean;
3827
+ outcome: ConnectionCheckOutcome;
3828
+ /** The stored risk level of a recorded check, as `ConnectionCheckCounts.levels` names it; `not_checked` for any other. */
3829
+ risk_level: ConnectionRiskLevel | (string & {});
3830
+ /** The provider rated the address `high` or `very_high`. */
3831
+ anonymising: boolean;
3832
+ /** Why nothing was recorded, as `ConnectionCheckCounts.reasons` names it. Absent unless the check recorded nothing. */
3833
+ reason?: string | null;
3834
+ /** When the check started. */
3835
+ created_at: string;
3836
+ /** When the check finished. Absent while it is pending. */
3837
+ completed_at?: string | null;
3838
+ /** The time the provider took to answer, in milliseconds. Absent while the check is pending. */
3839
+ duration_ms?: number | null;
3840
+ /** The payment's amount in minor units. Absent when the payment is gone. */
3841
+ amount?: number | null;
3842
+ currency?: string | null;
3843
+ status?: IntentStatus | null;
3844
+ /** Paid, or authorized and waiting for its capture. */
3845
+ paid: boolean;
3846
+ }
3847
+ /** One page of the checks behind a number of the overview. */
3848
+ interface ConnectionCheckPaymentsResponse {
3849
+ window_days: number;
3850
+ /** How many checks match, whatever the page. */
3851
+ total: number;
3852
+ limit: number;
3853
+ offset: number;
3854
+ payments: ConnectionCheckPayment[];
3855
+ }
3856
+ /** Operator filters for chargeback prevention cases: one merchant's, or every merchant's. */
3857
+ interface AdminPreventionCaseListRequest extends PreventionCaseListRequest {
3858
+ merchant_id?: string;
3859
+ }
3860
+ /** Operator filters for chargeback prevention connections. */
3861
+ interface AdminPreventionConnectionListRequest {
3862
+ merchant_id?: string;
3863
+ include_disconnected?: boolean;
3864
+ }
3865
+ /** Operator filter for refund rules: one merchant's, or every merchant's. */
3866
+ interface AdminPreventionRefundRuleListRequest {
3867
+ merchant_id?: string;
3868
+ }
3869
+ /** Operator filters for refund rule actions: one merchant's, or every merchant's. */
3870
+ interface AdminPreventionRefundActionListRequest extends PreventionRefundActionListRequest {
3871
+ merchant_id?: string;
3872
+ }
3873
+ /** An operator turns a merchant's refund rule off. Its settings are kept. */
3874
+ interface AdminPreventionRefundRuleStop {
3875
+ merchant_id: string;
3876
+ merchant_connector_id: string;
3877
+ test_mode: boolean;
3878
+ }
3879
+ /** A message from staff. */
3880
+ interface SupportStaffMessageCreate {
3881
+ body: string;
3882
+ /** Chosen by the client: a retried send is one message. */
3883
+ client_message_id: string;
3884
+ /** A note for staff. The merchant never reads it and is not told it exists. */
3885
+ internal?: boolean;
3886
+ /** Up to five files this writer uploaded to this conversation. */
3887
+ attachments?: string[];
3888
+ }
3889
+ /** What staff change on a conversation. Absent fields stay as they are. */
3890
+ interface SupportStaffUpdate {
3891
+ status?: SupportStatus;
3892
+ /** Only `request`: a chat can become a request and not the other way. Needs a `category`, here or already on the conversation. */
3893
+ kind?: SupportKind;
3894
+ category?: SupportCategory;
3895
+ /** A staff user id, `me`, or empty for nobody. */
3896
+ assigned_user_id?: string;
3897
+ }
3898
+ interface SupportStaffListQuery {
3899
+ merchant_id?: string;
3900
+ /** One kind, or several: a conversation of any of them matches. */
3901
+ kind?: SupportKind | SupportKind[];
3902
+ /** One category, or several: a conversation in any of them matches. */
3903
+ category?: SupportCategory | SupportCategory[];
3904
+ /** One status, or several: a conversation in any of them matches. */
3905
+ status?: SupportStatus | SupportStatus[];
3906
+ /** A staff user id, `me`, or `none`. */
3907
+ assigned?: string;
3908
+ /** Which side opened the conversation: `staff` lists the messages the support team sent. */
3909
+ opened_by?: SupportSide;
3910
+ limit?: number;
3911
+ offset?: number;
3912
+ /** What the queue is sorted by. Omitted, the latest message comes first. */
3913
+ sort_by?: SupportStaffSortBy;
3914
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
3915
+ sort_order?: SortOrder;
3916
+ }
3917
+ /**
3918
+ * What the staff queue can be sorted by: `last_message`, `created`, `status`,
3919
+ * `subject`, `assigned` (the assigned staff user id; unassigned conversations
3920
+ * come last) or `merchant`.
3921
+ */
3922
+ type SupportStaffSortBy = 'last_message' | 'created' | 'status' | 'subject' | 'assigned' | 'merchant';
3923
+ /** A conversation as staff read it. */
3924
+ interface SupportStaffConversationView extends SupportConversationView {
3925
+ merchant_id: string;
3926
+ created_by: string;
3927
+ assigned_user_id?: string | null;
3928
+ /** When the merchant's side last read the conversation. Absent while nobody there has. */
3929
+ merchant_read_at?: string | null;
3930
+ }
3931
+ /**
3932
+ * Staff open a conversation towards a merchant, one of its shops or one of its
3933
+ * members. The first message is from the support team: the conversation waits
3934
+ * for the merchant and is unread for them. Nobody named reaches the merchant's
3935
+ * admins alone; a shop reaches the members who read support for that shop; a
3936
+ * member reaches that one person. `shop_id` and `recipient_user_id` are refused
3937
+ * together.
3938
+ */
3939
+ interface SupportStaffConversationCreate {
3940
+ merchant_id: string;
3941
+ shop_id?: string | null;
3942
+ recipient_user_id?: string | null;
3943
+ kind: SupportKind;
3944
+ /** Required on a request. Refused on a chat. */
3945
+ category?: SupportCategory | null;
3946
+ /** At most 255 characters. */
3947
+ subject: string;
3948
+ /** At most 10000 characters. */
3949
+ message: string;
3950
+ /** Chosen by the client: a retry returns the conversation it already opened. */
3951
+ client_message_id: string;
3952
+ }
3953
+ interface SupportRecipientsQuery {
3954
+ merchant_id: string;
3955
+ }
3956
+ /** A member of a merchant a message from the support team can be addressed to. */
3957
+ interface SupportRecipientView {
3958
+ user_id: string;
3959
+ email: string;
3960
+ name: string;
3961
+ role_id: string;
3962
+ /** The shop a shop-bound member is limited to. */
3963
+ shop_id?: string | null;
3964
+ /** Whether their role lets them open the support page at all. */
3965
+ reads_support: boolean;
3966
+ }
3967
+ interface SupportRecipientList {
3968
+ recipients: SupportRecipientView[];
3969
+ }
3970
+ interface SupportStaffConversationList {
3971
+ conversations: SupportStaffConversationView[];
3972
+ }
3973
+ /** How one account's assessments went in one environment. */
3974
+ interface DeviceSignalCounts {
3975
+ /** Assessments with the provider's signal recorded. */
3976
+ recorded: number;
3977
+ /** Finished without a signal, a payment naming no buyer apart. */
3978
+ not_recorded: number;
3979
+ /** Payments naming no buyer, which the provider cannot assess. Not an error. */
3980
+ no_subject_name: number;
3981
+ /** Started and not finished, an abandoned checkout among them. Not an error. */
3982
+ in_progress: number;
3983
+ /** `not_recorded / (recorded + not_recorded)`, 0 when there were none. */
3984
+ error_rate: number;
3985
+ /** The latest reason counted in `not_recorded`. */
3986
+ last_not_recorded_reason?: DeviceSignalSkipReason | null;
3987
+ /** `not_recorded` by reason, the most frequent first. The counts add up to `not_recorded`. Absent on an older backend. */
3988
+ reasons?: DeviceSignalReasonCount[];
3989
+ /** Finished assessments per UTC day and provider, the oldest day first. Their counts add up to `recorded` and `not_recorded`. Absent on an older backend. */
3990
+ days?: DeviceSignalDay[];
3991
+ /** When the oldest assessment counted in `in_progress` started. */
3992
+ oldest_in_progress_at?: string | null;
3993
+ /** When the shop last recorded an assessment, at any time and not only in the window. */
3994
+ last_recorded_at?: string | null;
3995
+ /** The shop's payments a buyer opened in a browser checkout in the window, since the shop switched device intelligence on. Absent on an older backend. */
3996
+ browser_payments?: number;
3997
+ /** Those of `browser_payments` with any device signal. The rest were never assessed: their checkout did not ask for an assessment. */
3998
+ assessed_payments?: number;
3999
+ /** Browser confirms refused for a missing assessment (`DE_25`) on the payments counted in `held_payments`. Absent on an older backend. */
4000
+ refused_confirms?: number;
4001
+ /** Payments with a browser confirm refused for a missing assessment in the window. */
4002
+ held_payments?: number;
4003
+ /** Those of `held_payments` that are paid, or authorized, now. */
4004
+ held_paid_later?: number;
4005
+ }
4006
+ /** How many assessments recorded nothing for one reason. */
4007
+ interface DeviceSignalReasonCount {
4008
+ /** The stored reason, a `DeviceSignalSkipReason` or one a newer backend writes; `unknown` when none was stored. */
4009
+ reason: DeviceSignalSkipReason | 'unknown' | (string & {});
4010
+ count: number;
4011
+ }
4012
+ /** One day's finished assessments of one provider. */
4013
+ interface DeviceSignalDay {
4014
+ /** The UTC day, `YYYY-MM-DD`. */
4015
+ date: string;
4016
+ /** The provider's connector name. */
4017
+ connector: string;
4018
+ recorded: number;
4019
+ not_recorded: number;
4020
+ }
4021
+ /** One shop's device intelligence account, with its recent assessments. */
4022
+ interface DeviceIntelligenceUsage {
4023
+ merchant_id: string;
4024
+ /** The merchant's name. Absent when it could not be read, and on an older backend. */
4025
+ merchant_name?: string | null;
4026
+ profile_id: string;
4027
+ /** The shop's name. Absent when the shop is gone, and on an older backend. */
4028
+ profile_name?: string | null;
4029
+ merchant_connector_id: string;
4030
+ /** The provider's connector name. Empty when the account is gone and it made no assessment in the window. */
4031
+ connector: string;
4032
+ enabled_at: string;
4033
+ /** A browser confirm waits for the assessment, so an outage stops the shop's browser payments. */
4034
+ require_signal: boolean;
4035
+ live: DeviceSignalCounts;
4036
+ test: DeviceSignalCounts;
4037
+ }
4038
+ /** The shops assessing checkout devices, and how that went over the last `window_days` days. */
4039
+ interface DeviceIntelligenceUsageResponse {
4040
+ window_days: number;
4041
+ accounts: DeviceIntelligenceUsage[];
4042
+ }
4043
+ /** The window of the device intelligence overview. */
4044
+ interface DeviceIntelligenceUsageParams {
4045
+ /** Days read, 1 to 90. Default 7. An older backend ignores it and answers 7 days; `window_days` says what was read. */
4046
+ days?: number;
4047
+ }
4048
+ /** Which payments of the overview a list reads: the assessments its counts are made of, the payments counted in `held_payments`, or the browser payments without a device signal. */
4049
+ type DeviceIntelligencePaymentList = 'assessments' | 'held' | 'unassessed';
4050
+ /** An assessment's outcome as the overview counts it. `in_progress` is pending or still assessing. */
4051
+ type DeviceIntelligencePaymentOutcome = 'recorded' | 'not_recorded' | 'no_subject_name' | 'in_progress';
4052
+ /** What a list of the overview's payments is sorted by. `merchant` sorts by the merchant's id, `shop` by the shop's name. */
4053
+ type DeviceIntelligencePaymentSort = 'created_at' | 'amount' | 'status' | 'outcome' | 'reason' | 'connector' | 'merchant' | 'shop';
4054
+ /**
4055
+ * Which payments behind the device intelligence overview to list. The window
4056
+ * is the overview's, so with the same `days` a list's `total` is the count it
4057
+ * was opened from.
4058
+ */
4059
+ interface DeviceIntelligencePaymentsParams {
4060
+ /** Days read, 1 to 90. Default 7. */
4061
+ days?: number;
4062
+ /** Default `assessments`. */
4063
+ list?: DeviceIntelligencePaymentList;
4064
+ /** Only test payments, or only live ones. Absent: both. */
4065
+ test_mode?: boolean;
4066
+ /** Only assessments the overview counts under this outcome. */
4067
+ outcome?: DeviceIntelligencePaymentOutcome;
4068
+ /** Only assessments that recorded nothing for this reason, as `DeviceSignalCounts.reasons` names it. */
4069
+ reason?: string;
4070
+ /** Only shops whose provider has this connector name. */
4071
+ connector?: string;
4072
+ /** Only this merchant's shops. */
4073
+ merchant_id?: string;
4074
+ /** Only this shop. */
4075
+ profile_id?: string;
4076
+ /** Only payments that are paid or authorized now, or only the others. */
4077
+ paid?: boolean;
4078
+ /** Default `created_at`. */
4079
+ sort_on?: DeviceIntelligencePaymentSort;
4080
+ /** Default `desc`. */
4081
+ sort_by?: 'asc' | 'desc';
4082
+ /** Page size, 1 to 100. Default 25. */
4083
+ limit?: number;
4084
+ /** Payments skipped before the page. Default 0. */
4085
+ offset?: number;
4086
+ }
4087
+ /** One payment behind a number of the overview. It carries nothing about the buyer. */
4088
+ interface DeviceIntelligencePayment {
4089
+ payment_id: string;
4090
+ merchant_id: string;
4091
+ /** The merchant's name. Absent when it could not be read. */
4092
+ merchant_name?: string | null;
4093
+ profile_id: string;
4094
+ /** The shop's name. Absent when the shop is gone. */
4095
+ profile_name?: string | null;
4096
+ /** The provider's connector name. Empty when the account is gone and the payment has no signal. */
4097
+ connector: string;
4098
+ test_mode: boolean;
4099
+ /** The payment's device signal. Absent when it has none. */
4100
+ outcome?: DeviceSignalOutcome | null;
4101
+ /** Why nothing was recorded, as `DeviceSignalCounts.reasons` names it. */
4102
+ reason?: string | null;
4103
+ /** When the assessment started; in the `held` list the last refused confirm, in the `unassessed` list the payment's creation. */
4104
+ created_at: string;
4105
+ /** The payment's amount in minor units. Absent when the payment is gone. */
4106
+ amount?: number | null;
4107
+ currency?: string | null;
4108
+ status?: IntentStatus | null;
4109
+ /** Paid, or authorized and waiting for its capture. */
4110
+ paid: boolean;
4111
+ /** Browser confirms of the payment refused for a missing assessment. */
4112
+ refused_confirms: number;
4113
+ }
4114
+ /** One page of the payments behind a number of the overview. */
4115
+ interface DeviceIntelligencePaymentsResponse {
4116
+ window_days: number;
4117
+ /** How many payments match, whatever the page. */
4118
+ total: number;
4119
+ limit: number;
4120
+ offset: number;
4121
+ payments: DeviceIntelligencePayment[];
4122
+ }
4123
+ /**
4124
+ * `all`: wherever its parent industry can be selected (for an industry: at
4125
+ * every merchant, project and shop). `selected`: only at the listed scopes and
4126
+ * wherever they reach. With no scopes, the entry can be selected nowhere.
4127
+ */
4128
+ type IndustryAvailabilityMode = 'all' | 'selected';
4129
+ /**
4130
+ * A merchant, a project or a shop an entry is made available at. A merchant
4131
+ * reaches all of its projects and shops. A project reaches its sub-projects and
4132
+ * the shops in any of them, as they are placed at the time of each read. A
4133
+ * shop reaches only itself.
4134
+ */
4135
+ type IndustryScope = {
4136
+ type: 'merchant';
4137
+ merchant_id: string;
4138
+ } | {
4139
+ type: 'project';
4140
+ merchant_id: string;
4141
+ project_id: string;
4142
+ } | {
4143
+ type: 'shop';
4144
+ merchant_id: string;
4145
+ profile_id: string;
4146
+ };
4147
+ /** Where an entry can be selected. */
4148
+ interface IndustryAvailability {
4149
+ mode: IndustryAvailabilityMode;
4150
+ /**
4151
+ * The scopes of a `selected` entry, at most 1000. Must be empty for `all`.
4152
+ * Scopes only grant: the result is their union, and a scope listed twice
4153
+ * counts once.
4154
+ */
4155
+ scopes: IndustryScope[];
4156
+ }
4157
+ /** Create an industry, or a sub-industry under one. */
4158
+ interface IndustryCreateRequest {
4159
+ /**
4160
+ * 1 to 128 characters. Surrounding spaces are removed and inner runs of
4161
+ * whitespace become one space. An active entry of the same level and parent
4162
+ * may not have the same name in any letter case.
4163
+ */
4164
+ name: string;
4165
+ /**
4166
+ * The industry to create a sub-industry under: an active industry, not a
4167
+ * sub-industry. Omit it for an industry. It cannot be changed later.
4168
+ */
4169
+ parent_id?: string | null;
4170
+ /** Omitted: selectable nowhere until availability is set. */
4171
+ availability?: IndustryAvailability | null;
4172
+ }
4173
+ /** Rename an entry. Its id, parent and availability stay. */
4174
+ interface IndustryRenameRequest {
4175
+ /** The new name, under the same rules as on create. */
4176
+ name: string;
4177
+ }
4178
+ /**
4179
+ * `archived`: kept for existing selections and past reports, never offered for
4180
+ * a new selection, and neither are its sub-industries.
4181
+ */
4182
+ type IndustryStatus = 'active' | 'archived';
4183
+ /** One industry or sub-industry. */
4184
+ interface IndustryCategory {
4185
+ /** Never changes and is never reused. */
4186
+ industry_id: string;
4187
+ /** The industry of a sub-industry. `null` for an industry. */
4188
+ parent_id: string | null;
4189
+ name: string;
4190
+ status: IndustryStatus;
4191
+ /** When it was archived (UTC). `null` while active. */
4192
+ archived_at: string | null;
4193
+ availability: IndustryAvailability;
4194
+ created_at: string;
4195
+ modified_at: string;
4196
+ }
4197
+ /** An industry with its sub-industries. */
4198
+ interface IndustryCatalogEntry {
4199
+ industry: IndustryCategory;
4200
+ /** Ordered by name, archived ones included. */
4201
+ sub_industries: IndustryCategory[];
4202
+ }
4203
+ /** The whole catalog, archived entries included, industries ordered by name. */
4204
+ interface IndustryCatalog {
4205
+ industries: IndustryCatalogEntry[];
4206
+ }
4207
+ /** The scope to preview: a merchant, or one of its projects or shops (not both). */
4208
+ type IndustryPreviewQuery = {
4209
+ merchant_id: string;
4210
+ project_id?: undefined;
4211
+ profile_id?: undefined;
4212
+ } | {
4213
+ merchant_id: string;
4214
+ project_id: string;
4215
+ profile_id?: undefined;
4216
+ } | {
4217
+ merchant_id: string;
4218
+ profile_id: string;
4219
+ project_id?: undefined;
4220
+ };
4221
+ /** The previewed scope as it was resolved. */
4222
+ interface IndustryPreviewTarget {
4223
+ level: IndustryTargetLevel;
4224
+ merchant_id: string;
4225
+ /** The project previewed, or the shop's project. */
4226
+ project_id: string | null;
4227
+ profile_id: string | null;
4228
+ /**
4229
+ * The project and its ancestors, root first. A grant on any of them reaches
4230
+ * the target. Empty for a merchant and for a shop outside every project.
4231
+ */
4232
+ project_chain: string[];
4233
+ }
4234
+ /**
4235
+ * Why an entry can or cannot be selected at the target. The first that
4236
+ * applies, in this order: `archived`, `parent_archived` (a sub-industry whose
4237
+ * industry is archived), `parent_not_available` (its industry cannot be
4238
+ * selected at the target), `not_available` (none of its scopes reaches the
4239
+ * target). Otherwise the broadest grant: `all`, `merchant`, `project` (the
4240
+ * target's project or an ancestor), `shop`.
4241
+ */
4242
+ type IndustryChoiceReason = 'all' | 'merchant' | 'project' | 'shop' | 'archived' | 'parent_archived' | 'parent_not_available' | 'not_available';
4243
+ /** One entry as seen from the target. */
4244
+ interface IndustryChoice {
4245
+ industry_id: string;
4246
+ parent_id: string | null;
4247
+ name: string;
4248
+ selectable: boolean;
4249
+ reason: IndustryChoiceReason;
4250
+ /** The scope that makes it selectable, for `merchant`, `project` and `shop`. */
4251
+ granted_by: IndustryScope | null;
4252
+ }
4253
+ /** An industry with its sub-industries, as seen from the target. */
4254
+ interface IndustryPreviewEntry {
4255
+ industry: IndustryChoice;
4256
+ sub_industries: IndustryChoice[];
4257
+ }
4258
+ /** Every entry of the catalog as seen from one merchant, project or shop. */
4259
+ interface IndustryPreview {
4260
+ target: IndustryPreviewTarget;
4261
+ industries: IndustryPreviewEntry[];
4262
+ }
4263
+ /** Where the scanner settings in force come from. */
4264
+ type FileScanSettingsSource = 'stored' | 'deployment';
4265
+ /** Why the scanner could not be checked or did not answer. */
4266
+ type FileScannerProblem = 'not_configured' | 'invalid_address' | 'unresolved' | 'public_address' | 'unreachable' | 'timed_out' | 'unexpected_reply';
4267
+ /**
4268
+ * What a check of the scanner found. Only the connection is tested: no file
4269
+ * content is sent.
4270
+ */
4271
+ interface FileScannerCheck {
4272
+ /** Whether the scanner answered. */
4273
+ reachable: boolean;
4274
+ /** The version the scanner reports, when it answered. */
4275
+ version?: string | null;
4276
+ /** Why it did not answer. */
4277
+ problem?: FileScannerProblem | null;
4278
+ /** The system's own words for the failure, for operators. */
4279
+ detail?: string | null;
4280
+ }
4281
+ /** The malware scanner as it runs now. */
4282
+ interface FileScanStatus {
4283
+ /** Whether uploaded files are scanned. */
4284
+ scan: boolean;
4285
+ /** Whether buyer files wait for a clean scan before anyone may open them. */
4286
+ enforce: boolean;
4287
+ source: FileScanSettingsSource;
4288
+ /** A check of the scanner in force, made for this answer. */
4289
+ scanner: FileScannerCheck;
4290
+ /** When the scanner last finished a file. */
4291
+ last_scan_at?: string | null;
4292
+ /** Files waiting for their scan. */
4293
+ waiting: number;
4294
+ }
4295
+ /** The scanner to test. Each field left out takes the value in force. */
4296
+ interface FileScannerTestRequest {
4297
+ clamd_host?: string | null;
4298
+ clamd_port?: number | null;
4299
+ }
4300
+ /** What kind of file a scan is about. */
4301
+ type ScannedFileKind = 'buyer_evidence' | 'conversation_message' | 'support_attachment';
4302
+ /** Who uploaded a scanned file. */
4303
+ type ScannedFileSide = 'buyer' | 'merchant' | 'staff';
4304
+ /** Why a scanned file was blocked. */
4305
+ type ScannedFileBlockReason = 'malware' | 'password_protected' | 'unscannable';
4306
+ /** A file its scan blocked. Its content is never handed out. */
4307
+ interface BlockedFile {
4308
+ file_kind: ScannedFileKind;
4309
+ file_id: string;
4310
+ merchant_id: string;
4311
+ uploader_side: ScannedFileSide;
4312
+ reason: ScannedFileBlockReason;
4313
+ /** The scanner's own name for what it found. */
4314
+ finding?: string | null;
4315
+ /** The content's SHA-256, hex encoded. */
4316
+ sha256: string;
4317
+ scanned_at?: string | null;
4318
+ }
4319
+ /** A page of blocked files, latest result first. */
4320
+ interface BlockedFileList {
4321
+ data: BlockedFile[];
4322
+ /** How many files are blocked. */
4323
+ total: number;
4324
+ }
4325
+ /** Which page of blocked files to read, filtered and sorted. */
4326
+ interface BlockedFileQuery {
4327
+ /** 1 through 100; 50 by default. */
4328
+ limit?: number | null;
4329
+ offset?: number | null;
4330
+ /** Only files of these kinds; any of them matches. */
4331
+ kind?: ScannedFileKind[] | null;
4332
+ /** Only files uploaded by these sides; any of them matches. */
4333
+ side?: ScannedFileSide[] | null;
4334
+ /** Only this merchant's files. */
4335
+ merchant_id?: string | null;
4336
+ /** What the list is sorted by. Omitted, the latest result comes first. */
4337
+ sort_by?: BlockedFileSortBy | null;
4338
+ /** The sort's direction; descending when omitted. Ignored without `sort_by`. */
4339
+ sort_order?: SortOrder | null;
4340
+ }
4341
+ /**
4342
+ * What the blocked files can be sorted by: `scanned` (when the scan result
4343
+ * came; files without one come last), `created` (when the file was queued
4344
+ * for its scan), `kind`, `merchant` or `side`.
4345
+ */
4346
+ type BlockedFileSortBy = 'scanned' | 'created' | 'kind' | 'merchant' | 'side';
4347
+ /**
4348
+ * Which evaluated payments a buyer risk accuracy report reads. Each payment
4349
+ * counts once, by its latest evaluation in the period; merchant-initiated
4350
+ * payments are left out.
4351
+ */
4352
+ interface BuyerRiskAccuracyQuery {
4353
+ /** One merchant only. Absent: every merchant. */
4354
+ merchant_id?: string | null;
4355
+ /** One shop of `merchant_id` only. Refused without `merchant_id`. */
4356
+ shop_id?: string | null;
4357
+ /** Days of evaluations read, 1 to 180. Default 30. */
4358
+ days?: number | null;
4359
+ /** Days between the end of the period and now, 0 to 540. Default 0. */
4360
+ offset_days?: number | null;
4361
+ /**
4362
+ * Days after its evaluation a charged payment with no fraud outcome counts
4363
+ * as clean, 0 to 365. Default 120. Before that it is pending.
4364
+ */
4365
+ settle_days?: number | null;
4366
+ /** The lowest band counted as flagged. Default `elevated`. */
4367
+ min_band?: BuyerRiskBand | null;
4368
+ /** Read test payments instead of live ones. Default `false`. */
4369
+ test_mode?: boolean | null;
4370
+ }
4371
+ /** What happened to the evaluated payments of one group. */
4372
+ interface BuyerRiskOutcomeCounts {
4373
+ scored: number;
4374
+ fraud: number;
4375
+ clean: number;
4376
+ pending: number;
4377
+ not_charged: number;
4378
+ }
4379
+ /** How well the flagged bands separated fraud from clean payments. */
4380
+ interface BuyerRiskAccuracyRates {
4381
+ flagged_fraud: number;
4382
+ flagged_clean: number;
4383
+ missed_fraud: number;
4384
+ /** `flagged_fraud / (flagged_fraud + flagged_clean)`; `null` when nothing flagged has an outcome. */
4385
+ precision?: number | null;
4386
+ /** `flagged_fraud / fraud`; `null` when there is no fraud. */
4387
+ recall?: number | null;
4388
+ }
4389
+ /** The outcomes of one band. */
4390
+ interface BuyerRiskBandAccuracy {
4391
+ band: BuyerRiskBand;
4392
+ outcomes: BuyerRiskOutcomeCounts;
4393
+ /** `fraud / (fraud + clean)`; `null` when neither. */
4394
+ fraud_rate?: number | null;
4395
+ }
4396
+ /** The outcomes of the payments one signal fired on. */
4397
+ interface BuyerRiskSignalAccuracy {
4398
+ signal: BuyerRiskSignal;
4399
+ outcomes: BuyerRiskOutcomeCounts;
4400
+ /** Of the fired payments with an outcome, the share that was fraud. */
4401
+ precision?: number | null;
4402
+ /** Of all fraud payments, the share it fired on. */
4403
+ recall?: number | null;
4404
+ }
4405
+ /** Buyers the score stopped or stepped up who turned out genuine. */
4406
+ interface BuyerRiskFalseDeclines {
4407
+ /** Payments whose applied action was `refuse`, `require_three_ds` or `require_identity_verification`. */
4408
+ interventions: number;
4409
+ /** Of those, the ones that never charged. */
4410
+ not_charged: number;
4411
+ /** Of those, the ones whose buyer later charged a payment at the merchant with no fraud outcome. */
4412
+ later_paid_clean: number;
4413
+ /** `later_paid_clean / interventions`; `null` with no intervention. */
4414
+ rate?: number | null;
4415
+ }
4416
+ /** How accurate buyer risk scores were against what later happened to the payments. */
4417
+ interface BuyerRiskAccuracyReport {
4418
+ merchant_id?: string | null;
4419
+ shop_id?: string | null;
4420
+ test_mode: boolean;
4421
+ /** RFC 3339. */
4422
+ period_start: string;
4423
+ /** RFC 3339. */
4424
+ period_end: string;
4425
+ settle_days: number;
4426
+ /** Payments evaluated before this have settled. RFC 3339. */
4427
+ settled_before: string;
4428
+ min_band: BuyerRiskBand;
4429
+ outcomes: BuyerRiskOutcomeCounts;
4430
+ accuracy: BuyerRiskAccuracyRates;
4431
+ /** Every band, lowest first. */
4432
+ bands: BuyerRiskBandAccuracy[];
4433
+ /** Every signal, in the model's order. */
4434
+ signals: BuyerRiskSignalAccuracy[];
4435
+ false_declines: BuyerRiskFalseDeclines;
4436
+ }
4437
+ /**
4438
+ * What the accuracy payments list sorts on: the evaluation's time (default),
4439
+ * the payment's own time, the amount in USD, the score, the status, the
4440
+ * processor or the payment method.
4441
+ */
4442
+ type BuyerRiskAccuracySortKey = 'created_at' | 'payment_created_at' | 'amount' | 'score' | 'status' | 'connector' | 'method';
4443
+ /**
4444
+ * The payments behind one number of an accuracy report: the report's scope
4445
+ * plus filters that each pick out a number the report counts. Filters
4446
+ * combine with AND; the matched set is exactly what the report counts for
4447
+ * the same filters.
4448
+ */
4449
+ interface BuyerRiskAccuracyPaymentsRequest extends BuyerRiskAccuracyQuery {
4450
+ /** Payments the signal fired on. */
4451
+ signal?: BuyerRiskSignal | null;
4452
+ /** Payments in this band. */
4453
+ band?: BuyerRiskBand | null;
4454
+ outcome?: BuyerRiskPaymentOutcome | null;
4455
+ /** In `min_band` or above (`true`), or below it (`false`). */
4456
+ flagged?: boolean | null;
4457
+ /** The applied action was `refuse`, `require_three_ds` or `require_identity_verification`. */
4458
+ intervened?: boolean | null;
4459
+ /** An intervention that never charged, whose buyer later paid at the merchant with no fraud. */
4460
+ false_decline?: boolean | null;
4461
+ applied_action?: BuyerRiskAction | null;
4462
+ /** Case-insensitive substring of the payment, merchant or customer id. */
4463
+ q?: string | null;
4464
+ /** An outcome token (`success`, `open`, `failed`, `declined`, `void`) or one intent status. */
4465
+ status?: string | null;
4466
+ /** Processor name; `"Direct"` for none. */
4467
+ connector?: string | null;
4468
+ /** Payment method; `"none"` for payments without one. */
4469
+ method?: string | null;
4470
+ /** Accepted for the drill drawer's sake; not applied. */
4471
+ channel?: string | null;
4472
+ /** ISO currency code, any case. */
4473
+ currency?: string | null;
4474
+ sort_on?: BuyerRiskAccuracySortKey | null;
4475
+ sort_by?: 'asc' | 'desc' | null;
4476
+ /** Page size, 1 to 200 (clamped). Default 50. */
4477
+ limit?: number | null;
4478
+ offset?: number | null;
4479
+ }
4480
+ /**
4481
+ * Add a row to the platform VAT rate table. Unknown fields are refused.
4482
+ * A `zero` row must carry `rate_bp: 0`.
4483
+ */
4484
+ interface CreateVatRateRequest {
4485
+ /** ISO 3166-1 alpha-2; stored upper case. */
4486
+ country: string;
4487
+ category: VatRateCategory;
4488
+ /** Basis points, 0 to 10000. */
4489
+ rate_bp: number;
4490
+ /** The tax's local name, at most 32 characters. */
4491
+ label?: string | null;
4492
+ /** First day the rate applies (`YYYY-MM-DD`). One row per country, category and date. */
4493
+ valid_from: string;
4494
+ }
4495
+ /**
4496
+ * Change a VAT rate row. Country, category and `valid_from` never change. A
4497
+ * row already in force accepts only a new label. Unknown fields are refused.
4498
+ */
4499
+ interface UpdateVatRateRequest {
4500
+ /** Basis points, 0 to 10000. Omitted, unchanged. */
4501
+ rate_bp?: number | null;
4502
+ /** The tax's local name. Omitted, unchanged; an empty string clears it. */
4503
+ label?: string | null;
4504
+ }
4505
+ /** The answer to deleting a VAT rate row. */
4506
+ interface VatRateDeleteResponse {
4507
+ deleted: boolean;
4508
+ id: string;
4509
+ }
4510
+
4511
+ export type { AdminUserMembership as $, AdminAdjustmentRequest as A, AdminPreventionRefundActionListRequest as B, AdminPreventionRefundRuleListRequest as C, AdminPreventionRefundRuleStop as D, AdminProcessorCostEventsParams as E, AdminResetLedgerRequest as F, AdminResetLedgerResponse as G, AdminSetFreeRequest as H, AdminSetHardFloorRequest as I, AdminSetTrustedRequest as J, AdminShopVaultState as K, AdminSignInRequest as L, AdminSuspendRequest as M, AdminTransactionDetail as N, AdminTransactionExportParams as O, AdminTransactionExportRecord as P, AdminTransactionLineExportRecord as Q, AdminTransactionListParams as R, AdminTransactionListResponse as S, AdminTransactionRow as T, AdminUnresolvedRefund as U, AdminUnresolvedRefundListParams as V, AdminUnresolvedRefundListResponse as W, AdminUnresolvedRefundSortBy as X, AdminUnsuspendRequest as Y, AdminUpdateUserRequest as Z, AdminUserDetailResponse as _, AdminAdjustmentResponse as a, CreateConnectorRestrictionRuleRequest as a$, AdminUserMembershipStatus as a0, AdminUserResponse as a1, AdminVaultEntitlementState as a2, AdminVaultEnvironmentState as a3, AdminVaultStateResponse as a4, AuditActorInfo as a5, AuditActorKind as a6, AuditImpersonationKind as a7, AuditLogListParams as a8, AuditLogListResponse as a9, CardIssuerListResponse as aA, CardIssuerResponse as aB, CardIssuerUpdateRequest as aC, ConnectionCheckAccountState as aD, ConnectionCheckCounts as aE, ConnectionCheckDay as aF, ConnectionCheckLevelCount as aG, ConnectionCheckPayment as aH, ConnectionCheckPaymentSort as aI, ConnectionCheckPaymentsParams as aJ, ConnectionCheckPaymentsResponse as aK, ConnectionCheckReasonCount as aL, ConnectionCheckUsage as aM, ConnectionCheckUsageParams as aN, ConnectionCheckUsageResponse as aO, ConnectorHealthConfig as aP, ConnectorRestrictionResponse as aQ, ConnectorRestrictionRuleAction as aR, ConnectorRestrictionRuleResponse as aS, ConnectorRestrictionScope as aT, ConnectorVisibility as aU, ConsolidateRolesRequest as aV, ConsolidateRolesResponse as aW, ConsolidationCandidate as aX, ConsolidationCandidatesResponse as aY, ConsolidationSource as aZ, ConsolidationVerdict as a_, AuditLogResponse as aa, AuditLogSortBy as ab, AuditSessionInfo as ac, AuthorizeResponse as ad, BillingProfileAdoptionCandidate as ae, BlockedFile as af, BlockedFileList as ag, BlockedFileQuery as ah, BlockedFileSortBy as ai, BrandingAdminResponse as aj, BrandingUpdateRequest as ak, BuyerEvidenceAssign as al, BuyerEvidenceDeadlineChange as am, BuyerRiskAccuracyPaymentsRequest as an, BuyerRiskAccuracyQuery as ao, BuyerRiskAccuracyRates as ap, BuyerRiskAccuracyReport as aq, BuyerRiskAccuracySortKey as ar, BuyerRiskBandAccuracy as as, BuyerRiskFalseDeclines as at, BuyerRiskOutcomeCounts as au, BuyerRiskSignalAccuracy as av, CardFundingBackfillCursor as aw, CardFundingBackfillRequest as ax, CardFundingBackfillResponse as ay, CardIssuerCreateRequest as az, AdminAnalyticsRequest as b, DiagnosticRevealResponse as b$, CreateInternalUserRequest as b0, CreateSharedRoleRequest as b1, CreateTenantUserRequest as b2, CreateVatRateRequest as b3, CustomerSummary as b4, CustomerUser as b5, DashboardTourOfferDetail as b6, DashboardTourOfferPlatformValue as b7, DeploymentBranding as b8, DeviceIntelligencePayment as b9, DiagnosticHealthState as bA, DiagnosticHealthTile as bB, DiagnosticIncomingWebhook as bC, DiagnosticIncomingWebhookDetail as bD, DiagnosticIncomingWebhookListParams as bE, DiagnosticIncomingWebhookSortBy as bF, DiagnosticInfrastructure as bG, DiagnosticList as bH, DiagnosticNearMatch as bI, DiagnosticOutgoingAttempt as bJ, DiagnosticOutgoingDelivery as bK, DiagnosticOutgoingWebhook as bL, DiagnosticOutgoingWebhookListParams as bM, DiagnosticOutgoingWebhookSortBy as bN, DiagnosticOutgoingWebhookSummary as bO, DiagnosticPage as bP, DiagnosticPanel as bQ, DiagnosticPayment as bR, DiagnosticPaymentListParams as bS, DiagnosticPaymentSortBy as bT, DiagnosticQueueItem as bU, DiagnosticQueueListParams as bV, DiagnosticQueueSortBy as bW, DiagnosticQueueSummary as bX, DiagnosticReplicaHealth as bY, DiagnosticResolvedId as bZ, DiagnosticRevealRequest as b_, DeviceIntelligencePaymentList as ba, DeviceIntelligencePaymentOutcome as bb, DeviceIntelligencePaymentSort as bc, DeviceIntelligencePaymentsParams as bd, DeviceIntelligencePaymentsResponse as be, DeviceIntelligenceUsage as bf, DeviceIntelligenceUsageParams as bg, DeviceIntelligenceUsageResponse as bh, DeviceSignalCounts as bi, DeviceSignalDay as bj, DeviceSignalReasonCount as bk, DiagnosticAttentionBoard as bl, DiagnosticAttentionItem as bm, DiagnosticAttentionParams as bn, DiagnosticAttentionSeverity as bo, DiagnosticCaptureState as bp, DiagnosticChange as bq, DiagnosticChangeListParams as br, DiagnosticConnectorCall as bs, DiagnosticConnectorCallListParams as bt, DiagnosticConnectorCallSortBy as bu, DiagnosticDependencyCard as bv, DiagnosticEmptyReason as bw, DiagnosticEnvironment as bx, DiagnosticErrorCodeCount as by, DiagnosticFiringAlert as bz, AdminAttachVaultRequest as c, MerchantRiskConditionReport as c$, DiagnosticRouterLog as c0, DiagnosticRouterLogParams as c1, DiagnosticSourceUnavailable as c2, DiagnosticTrace as c3, DiagnosticTraceSpan as c4, DiagnosticWindow as c5, FeeTotalBound as c6, FileScanSettingsSource as c7, FileScanStatus as c8, FileScannerCheck as c9, IndustryStatus as cA, LastAdministratorRefusal as cB, LastAdministratorRoute as cC, LedgerDayBucket as cD, LedgerMerchant as cE, ListConnectorRestrictionRulesQuery as cF, MerchantRiskActionBlock as cG, MerchantRiskActionCatalogEntry as cH, MerchantRiskActionConfirmRequest as cI, MerchantRiskActionDismissRequest as cJ, MerchantRiskActionKind as cK, MerchantRiskActionLiftRequest as cL, MerchantRiskActionMode as cM, MerchantRiskActionResponse as cN, MerchantRiskActionRule as cO, MerchantRiskActionRuleInput as cP, MerchantRiskActionStatus as cQ, MerchantRiskAmlEvidenceItem as cR, MerchantRiskAssessment as cS, MerchantRiskBand as cT, MerchantRiskBillingStatus as cU, MerchantRiskBlockedAttempt as cV, MerchantRiskBlockedAttemptList as cW, MerchantRiskBlockedAttemptListParams as cX, MerchantRiskBlockedSubject as cY, MerchantRiskCondition as cZ, MerchantRiskConditionInput as c_, FileScannerProblem as ca, FileScannerTestRequest as cb, FlaggedElsewhere as cc, FlaggedElsewhereKey as cd, FlaggedElsewhereList as ce, FlaggedPerson as cf, FlaggedPersonList as cg, FlaggedPersonListParams as ch, GsmDecision as ci, GsmRuleCreateRequest as cj, GsmRuleResponse as ck, GsmRuleUpdateRequest as cl, IndustryAvailability as cm, IndustryAvailabilityMode as cn, IndustryCatalog as co, IndustryCatalogEntry as cp, IndustryCategory as cq, IndustryChoice as cr, IndustryChoiceReason as cs, IndustryCreateRequest as ct, IndustryPreview as cu, IndustryPreviewEntry as cv, IndustryPreviewQuery as cw, IndustryPreviewTarget as cx, IndustryRenameRequest as cy, IndustryScope as cz, AdminAttachVaultResponse as d, PersonFlagStatus as d$, MerchantRiskConditionResult as d0, MerchantRiskCurrentStage as d1, MerchantRiskDeviceEvidenceItem as d2, MerchantRiskDimension as d3, MerchantRiskEffect as d4, MerchantRiskEnforcement as d5, MerchantRiskEnforcementActionKind as d6, MerchantRiskEnvironment as d7, MerchantRiskEvidenceLevel as d8, MerchantRiskExemptionCreateRequest as d9, MerchantRiskShopBandEvidenceRow as dA, MerchantRiskStageResponse as dB, MerchantRiskStageRule as dC, MerchantRiskStageRuleInput as dD, MerchantRiskSubjectVerificationKind as dE, MerchantRiskTransitionDirection as dF, MerchantRiskTransitionResponse as dG, MerchantRiskTransitionSource as dH, MerchantRiskTreatment as dI, MerchantRiskTreatments as dJ, MerchantRiskUnavailableActionKind as dK, MerchantRiskUnknownReason as dL, MerchantRiskVerificationEvidenceItem as dM, MerchantRoleSummary as dN, NativeRenewalCloseResponse as dO, NativeRenewalCloseTarget as dP, OnboardMerchantRequest as dQ, OnboardMerchantResponse as dR, OrphanedBillingProfile as dS, OverviewStat as dT, OverviewStatsResponse as dU, PaymentAnalyticsRequest as dV, PaymentAnalyticsResponse as dW, PaymentPeriodStats as dX, PersonFlagCreate as dY, PersonFlagList as dZ, PersonFlagReason as d_, MerchantRiskExemptionResponse as da, MerchantRiskExemptionRevokeRequest as db, MerchantRiskIdentityBar as dc, MerchantRiskIdentityCondition as dd, MerchantRiskIdentityConditionInput as de, MerchantRiskIdentityConditionInputOf as df, MerchantRiskIdentityEvidence as dg, MerchantRiskIdentityEvidenceItem as dh, MerchantRiskIdentityItemCount as di, MerchantRiskIdentityResultState as dj, MerchantRiskIdentitySignal as dk, MerchantRiskLiftSource as dl, MerchantRiskPaymentScope as dm, MerchantRiskPaymentScopeType as dn, MerchantRiskPaymentsStopRequest as dp, MerchantRiskPolicyPreviewAction as dq, MerchantRiskPolicyPreviewEffect as dr, MerchantRiskPolicyPreviewMerchant as ds, MerchantRiskPolicyPreviewRequest as dt, MerchantRiskPolicyPreviewResponse as du, MerchantRiskPolicyPreviewStage as dv, MerchantRiskPolicySetting as dw, MerchantRiskPolicySource as dx, MerchantRiskPolicyView as dy, MerchantRiskScreeningEvidenceItem as dz, AdminAttemptProcessorCost as e, SupportStaffConversationCreate as e$, PersonFlagStatusList as e0, PersonFlagUpdate as e1, PersonFlagView as e2, PlatformAnalyticsResponse as e3, PlatformFeeReturnListResponse as e4, PlatformFeeReturnQuery as e5, PlatformFeeReturnRecord as e6, PlatformFeeReturnResponse as e7, PlatformFeeReturnScope as e8, PlatformFeeReturnSetting as e9, RiskModelSource as eA, RiskModelUpdateOptions as eB, RiskProviderWarningRule as eC, RiskSettingsOverrides as eD, RoleAccessChange as eE, RoleColor as eF, RoleParentGroup as eG, ScannedFileBlockReason as eH, ScannedFileKind as eI, ScannedFileSide as eJ, SharedRoleApplied as eK, SharedRoleAudience as eL, SharedRoleChange as eM, SharedRoleDetailResponse as eN, SharedRoleListResponse as eO, SharedRoleMerchantHolders as eP, SharedRoleMerchantRef as eQ, SharedRolePreviewResponse as eR, SharedRoleRefusal as eS, SharedRoleReplacementKind as eT, SharedRoleReplacementOption as eU, SharedRoleSummary as eV, SignupToggleRequest as eW, SignupToggleResponse as eX, SupportRecipientList as eY, SupportRecipientView as eZ, SupportRecipientsQuery as e_, PlatformFeeReturnSource as ea, PlatformFeeReturnStatus as eb, RefundVolumeQuery as ec, RefundVolumeResponse as ed, RefundVolumeScope as ee, RefundVolumeSetting as ef, RefundVolumeSource as eg, ReplayMaskMode as eh, ReplayMaskingRule as ei, RetireSharedRolePreviewRequest as ej, RetireSharedRolePreviewResponse as ek, RetireSharedRoleRequest as el, RiskBackfillFailure as em, RiskBackfillIncompleteDays as en, RiskBackfillPreview as eo, RiskBackfillRequest as ep, RiskBackfillResponse as eq, RiskBackfillState as er, RiskBackfillStatus as es, RiskCardTesting as et, RiskClassWeights as eu, RiskCombine as ev, RiskFloorBand as ew, RiskModel as ex, RiskModelPatch as ey, RiskModelResponse as ez, AdminAttemptProcessorCostBase as f, SupportStaffConversationList as f0, SupportStaffConversationView as f1, SupportStaffListQuery as f2, SupportStaffMessageCreate as f3, SupportStaffSortBy as f4, SupportStaffUpdate as f5, SystemRoleSummary as f6, UpdateConnectorRestrictionRuleRequest as f7, UpdateLedgerEntryRequest as f8, UpdatePlatformFeeReturnRequest as f9, UpdateRefundVolumeRequest as fa, UpdateSharedRoleRequest as fb, UpdateVatRateRequest as fc, UpsertConnectorRestrictionRequest as fd, VatRateDeleteResponse as fe, AdminAttemptProcessorCostKnown as g, AdminAttemptProcessorCostUnrecorded as h, AdminAttemptProcessorCostWithoutFigure as i, AdminAuditLogExportRecord as j, AdminCreateLedgerRequest as k, AdminCreateLedgerResponse as l, AdminCreateUserForMerchantRequest as m, AdminCustomerDetail as n, AdminCustomerListParams as o, AdminCustomerListReconciliation as p, AdminCustomerListResponse as q, AdminCustomerSortBy as r, AdminLedgerAnalyticsRequest as s, AdminLedgerAnalyticsResponse as t, AdminOrphanedBillingProfilesResponse as u, AdminPersonListParams as v, AdminPersonListResponse as w, AdminPersonSummary as x, AdminPreventionCaseListRequest as y, AdminPreventionConnectionListRequest as z };