@delopay/sdk 0.495.0 → 0.496.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 (300) hide show
  1. package/dist/airwallexCard.cjs.map +1 -1
  2. package/dist/branding.cjs.map +1 -1
  3. package/dist/cardFormStyles.cjs.map +1 -1
  4. package/dist/checkoutSession.cjs.map +1 -1
  5. package/dist/chunk-244VZFFO.cjs.map +1 -1
  6. package/dist/chunk-2IJRBJXW.cjs.map +1 -1
  7. package/dist/{chunk-OMQK3CMR.cjs → chunk-2NVGA4G5.cjs} +23 -1
  8. package/dist/chunk-2NVGA4G5.cjs.map +1 -0
  9. package/dist/chunk-34PC72O7.cjs.map +1 -1
  10. package/dist/chunk-3GBWQWTP.cjs.map +1 -1
  11. package/dist/chunk-3YBBJT3Y.cjs.map +1 -1
  12. package/dist/chunk-44QBWVRS.cjs.map +1 -1
  13. package/dist/chunk-4EKAWNYI.cjs.map +1 -1
  14. package/dist/chunk-4LN4BR2T.cjs.map +1 -1
  15. package/dist/chunk-4T4XHPYN.cjs.map +1 -1
  16. package/dist/chunk-5CITBN33.cjs.map +1 -1
  17. package/dist/chunk-5HCKC4HF.cjs.map +1 -1
  18. package/dist/chunk-5O2JSQYA.cjs.map +1 -1
  19. package/dist/chunk-5QS67SBO.cjs.map +1 -1
  20. package/dist/chunk-6EBY2KKL.cjs.map +1 -1
  21. package/dist/chunk-6LFOM6HV.cjs.map +1 -1
  22. package/dist/chunk-6LOWE2YI.cjs.map +1 -1
  23. package/dist/chunk-6LSG5Z4T.cjs.map +1 -1
  24. package/dist/chunk-6SU2MTN2.cjs.map +1 -1
  25. package/dist/chunk-6YCDLSIU.cjs.map +1 -1
  26. package/dist/chunk-75E5WNJG.cjs.map +1 -1
  27. package/dist/chunk-7JV6VVO7.cjs.map +1 -1
  28. package/dist/chunk-7NKJD5ST.cjs.map +1 -1
  29. package/dist/chunk-7QZCUXWB.cjs.map +1 -1
  30. package/dist/chunk-7VXF5D67.cjs.map +1 -1
  31. package/dist/chunk-ABWAYMN5.cjs.map +1 -1
  32. package/dist/chunk-ACZ2R47X.cjs.map +1 -1
  33. package/dist/chunk-AYUYJO3I.cjs.map +1 -1
  34. package/dist/chunk-BCA3TCGS.cjs.map +1 -1
  35. package/dist/chunk-BP6KDQ6I.cjs.map +1 -1
  36. package/dist/chunk-BRY3W7N3.cjs.map +1 -1
  37. package/dist/chunk-BT3UAUEV.cjs.map +1 -1
  38. package/dist/chunk-CAMALM35.cjs.map +1 -1
  39. package/dist/chunk-CCN44NZJ.cjs.map +1 -1
  40. package/dist/chunk-CR3JBTP3.cjs.map +1 -1
  41. package/dist/chunk-DJASVBOJ.cjs.map +1 -1
  42. package/dist/chunk-EEB2HDYL.cjs.map +1 -1
  43. package/dist/chunk-ENPSUWTS.cjs.map +1 -1
  44. package/dist/chunk-EQ6P6ZND.cjs.map +1 -1
  45. package/dist/chunk-EXPWQBI3.cjs.map +1 -1
  46. package/dist/chunk-EYHSXJMJ.cjs.map +1 -1
  47. package/dist/chunk-F3I5DOWV.cjs.map +1 -1
  48. package/dist/chunk-F46K5H3U.cjs.map +1 -1
  49. package/dist/{chunk-3HUJ7PPJ.js → chunk-F6LZ2YNM.js} +23 -1
  50. package/dist/chunk-F6LZ2YNM.js.map +1 -0
  51. package/dist/chunk-F6QJB4XP.cjs.map +1 -1
  52. package/dist/chunk-F6S3WCCB.cjs.map +1 -1
  53. package/dist/chunk-FQRC4NJG.cjs.map +1 -1
  54. package/dist/chunk-FTWGI7UZ.cjs.map +1 -1
  55. package/dist/chunk-FYISDU2Y.cjs.map +1 -1
  56. package/dist/chunk-GG52SAHA.cjs.map +1 -1
  57. package/dist/chunk-GK5FWN4H.cjs.map +1 -1
  58. package/dist/chunk-GLQ7EJAH.cjs.map +1 -1
  59. package/dist/chunk-GSQN5EOO.cjs.map +1 -1
  60. package/dist/chunk-GW7IHYXR.cjs.map +1 -1
  61. package/dist/chunk-GWSVQXEY.cjs.map +1 -1
  62. package/dist/chunk-HLKFUOAQ.cjs.map +1 -1
  63. package/dist/chunk-HLYGHP6F.cjs.map +1 -1
  64. package/dist/chunk-HSJABE7X.cjs.map +1 -1
  65. package/dist/chunk-I2W7AO4B.cjs.map +1 -1
  66. package/dist/chunk-I2XGNALG.cjs.map +1 -1
  67. package/dist/chunk-IKXGA2Z5.cjs.map +1 -1
  68. package/dist/chunk-IR2LFKKA.cjs.map +1 -1
  69. package/dist/chunk-J4ZB7MU4.cjs.map +1 -1
  70. package/dist/chunk-J5RPSRBQ.cjs.map +1 -1
  71. package/dist/chunk-JPPRDMTJ.cjs.map +1 -1
  72. package/dist/chunk-K5Q2H3VD.cjs.map +1 -1
  73. package/dist/chunk-KD5Y2YWK.cjs.map +1 -1
  74. package/dist/chunk-KJDMNF2T.cjs.map +1 -1
  75. package/dist/chunk-KLONGJCL.cjs.map +1 -1
  76. package/dist/chunk-LJ2EG6JK.cjs.map +1 -1
  77. package/dist/chunk-LLYY4TCZ.cjs.map +1 -1
  78. package/dist/chunk-LYIBTVK6.cjs.map +1 -1
  79. package/dist/chunk-M3HWE7KT.cjs.map +1 -1
  80. package/dist/chunk-M3SJHFT4.cjs.map +1 -1
  81. package/dist/chunk-MLG6NXI6.cjs.map +1 -1
  82. package/dist/chunk-MYAXAWBQ.cjs.map +1 -1
  83. package/dist/chunk-NFB3S2E6.cjs.map +1 -1
  84. package/dist/chunk-NYL3BNHR.cjs.map +1 -1
  85. package/dist/chunk-O4AYHLQX.cjs.map +1 -1
  86. package/dist/chunk-OAEKP665.cjs.map +1 -1
  87. package/dist/chunk-ODPNVNYE.cjs.map +1 -1
  88. package/dist/chunk-OFZJ4JAH.cjs.map +1 -1
  89. package/dist/chunk-OG2KJAYD.cjs.map +1 -1
  90. package/dist/chunk-OYZP6NF6.cjs.map +1 -1
  91. package/dist/chunk-P4UILJVU.cjs.map +1 -1
  92. package/dist/chunk-P7DYLUUI.cjs.map +1 -1
  93. package/dist/chunk-PKAE6AQT.cjs.map +1 -1
  94. package/dist/chunk-PYNHK6AP.cjs.map +1 -1
  95. package/dist/chunk-Q7M7DO7M.cjs.map +1 -1
  96. package/dist/chunk-QKUWFMZP.cjs.map +1 -1
  97. package/dist/chunk-QRSA72B3.cjs.map +1 -1
  98. package/dist/chunk-QYNRNDIY.cjs.map +1 -1
  99. package/dist/chunk-R4GA6BVP.cjs.map +1 -1
  100. package/dist/chunk-R5VYSZ3Q.cjs.map +1 -1
  101. package/dist/chunk-RHFUXHQN.cjs.map +1 -1
  102. package/dist/chunk-RI42IDRR.cjs.map +1 -1
  103. package/dist/chunk-S77LQWYC.cjs.map +1 -1
  104. package/dist/chunk-S7SBNOGS.cjs.map +1 -1
  105. package/dist/chunk-TMAJE5P2.cjs.map +1 -1
  106. package/dist/chunk-TNIJ6OSH.cjs.map +1 -1
  107. package/dist/chunk-U3JK7NBG.cjs.map +1 -1
  108. package/dist/chunk-UGSM7RJ2.cjs.map +1 -1
  109. package/dist/chunk-UKLZAOLW.cjs.map +1 -1
  110. package/dist/chunk-UTCXNBID.cjs.map +1 -1
  111. package/dist/chunk-V47G7P6L.cjs.map +1 -1
  112. package/dist/chunk-VH5A6SMU.cjs.map +1 -1
  113. package/dist/chunk-VHMH4QMY.cjs.map +1 -1
  114. package/dist/chunk-VYC7WUM5.cjs.map +1 -1
  115. package/dist/chunk-W457XUA6.cjs.map +1 -1
  116. package/dist/chunk-WHDI3TMP.cjs.map +1 -1
  117. package/dist/chunk-WITCPKNL.cjs.map +1 -1
  118. package/dist/chunk-WX6NP7UU.cjs.map +1 -1
  119. package/dist/chunk-XPSN5YYU.cjs.map +1 -1
  120. package/dist/chunk-XQLRIBVR.cjs.map +1 -1
  121. package/dist/chunk-Y7LSSRNJ.cjs.map +1 -1
  122. package/dist/chunk-YFRAI34Y.cjs.map +1 -1
  123. package/dist/chunk-YK3P5QNZ.cjs.map +1 -1
  124. package/dist/chunk-YW4DVKNT.cjs.map +1 -1
  125. package/dist/chunk-YWN76H2W.cjs.map +1 -1
  126. package/dist/chunk-ZGMIHHGL.cjs.map +1 -1
  127. package/dist/chunk-ZKPVUCQV.cjs.map +1 -1
  128. package/dist/chunk-ZUULK36E.cjs.map +1 -1
  129. package/dist/client.cjs.map +1 -1
  130. package/dist/core.cjs.map +1 -1
  131. package/dist/currencies.cjs.map +1 -1
  132. package/dist/enigmaCardForm.cjs.map +1 -1
  133. package/dist/error.cjs.map +1 -1
  134. package/dist/eventStream.cjs.map +1 -1
  135. package/dist/exportDownload.cjs.map +1 -1
  136. package/dist/feeProgram.cjs.map +1 -1
  137. package/dist/index.cjs.map +1 -1
  138. package/dist/index.d.cts +1 -1
  139. package/dist/index.d.ts +1 -1
  140. package/dist/internal/resources/admin.cjs.map +1 -1
  141. package/dist/internal/resources/admin.d.cts +1 -1
  142. package/dist/internal/resources/admin.d.ts +1 -1
  143. package/dist/internal/resources/adminBranding.cjs.map +1 -1
  144. package/dist/internal/resources/adminBranding.d.cts +1 -1
  145. package/dist/internal/resources/adminBranding.d.ts +1 -1
  146. package/dist/internal/resources/adminCheckoutDomains.cjs.map +1 -1
  147. package/dist/internal/resources/adminCheckoutDomains.d.cts +1 -1
  148. package/dist/internal/resources/adminCheckoutDomains.d.ts +1 -1
  149. package/dist/internal/resources/adminFeePlans.cjs.map +1 -1
  150. package/dist/internal/resources/adminFeePlans.d.cts +1 -1
  151. package/dist/internal/resources/adminFeePlans.d.ts +1 -1
  152. package/dist/internal/resources/adminFileScans.cjs.map +1 -1
  153. package/dist/internal/resources/adminFileScans.d.cts +1 -1
  154. package/dist/internal/resources/adminFileScans.d.ts +1 -1
  155. package/dist/internal/resources/adminIndustries.cjs.map +1 -1
  156. package/dist/internal/resources/adminIndustries.d.cts +1 -1
  157. package/dist/internal/resources/adminIndustries.d.ts +1 -1
  158. package/dist/internal/resources/adminLive.cjs.map +1 -1
  159. package/dist/internal/resources/adminNotices.cjs.map +1 -1
  160. package/dist/internal/resources/adminNotices.d.cts +1 -1
  161. package/dist/internal/resources/adminNotices.d.ts +1 -1
  162. package/dist/internal/resources/adminPortal.cjs.map +1 -1
  163. package/dist/internal/resources/adminPortal.d.cts +1 -1
  164. package/dist/internal/resources/adminPortal.d.ts +1 -1
  165. package/dist/internal/resources/adminPricing.cjs +2 -2
  166. package/dist/internal/resources/adminPricing.cjs.map +1 -1
  167. package/dist/internal/resources/adminPricing.d.cts +11 -1
  168. package/dist/internal/resources/adminPricing.d.ts +11 -1
  169. package/dist/internal/resources/adminPricing.js +1 -1
  170. package/dist/internal/resources/adminSupport.cjs.map +1 -1
  171. package/dist/internal/resources/adminSupport.d.cts +1 -1
  172. package/dist/internal/resources/adminSupport.d.ts +1 -1
  173. package/dist/internal/resources/auditLogs.cjs.map +1 -1
  174. package/dist/internal/resources/auditLogs.d.cts +1 -1
  175. package/dist/internal/resources/auditLogs.d.ts +1 -1
  176. package/dist/internal/resources/cache.cjs.map +1 -1
  177. package/dist/internal/resources/cardIssuers.cjs.map +1 -1
  178. package/dist/internal/resources/cardIssuers.d.cts +1 -1
  179. package/dist/internal/resources/cardIssuers.d.ts +1 -1
  180. package/dist/internal/resources/configs.cjs.map +1 -1
  181. package/dist/internal/resources/connectorRestrictionRules.cjs.map +1 -1
  182. package/dist/internal/resources/connectorRestrictionRules.d.cts +1 -1
  183. package/dist/internal/resources/connectorRestrictionRules.d.ts +1 -1
  184. package/dist/internal/resources/connectorRestrictions.cjs.map +1 -1
  185. package/dist/internal/resources/connectorRestrictions.d.cts +1 -1
  186. package/dist/internal/resources/connectorRestrictions.d.ts +1 -1
  187. package/dist/internal/resources/diagnostic.cjs.map +1 -1
  188. package/dist/internal/resources/diagnostic.d.cts +1 -1
  189. package/dist/internal/resources/diagnostic.d.ts +1 -1
  190. package/dist/internal/resources/gsm.cjs.map +1 -1
  191. package/dist/internal/resources/gsm.d.cts +1 -1
  192. package/dist/internal/resources/gsm.d.ts +1 -1
  193. package/dist/internal/resources/nativeRenewals.cjs.map +1 -1
  194. package/dist/internal/resources/nativeRenewals.d.cts +1 -1
  195. package/dist/internal/resources/nativeRenewals.d.ts +1 -1
  196. package/dist/internal/resources/platformBilling.cjs.map +1 -1
  197. package/dist/internal/resources/platformBilling.d.cts +1 -1
  198. package/dist/internal/resources/platformBilling.d.ts +1 -1
  199. package/dist/internal/resources/platformFees.cjs.map +1 -1
  200. package/dist/internal/resources/platformMessageTemplates.cjs.map +1 -1
  201. package/dist/internal/resources/platformSettings.cjs.map +1 -1
  202. package/dist/internal/resources/platformSettings.d.cts +1 -1
  203. package/dist/internal/resources/platformSettings.d.ts +1 -1
  204. package/dist/internal.cjs +3 -3
  205. package/dist/internal.cjs.map +1 -1
  206. package/dist/internal.d.cts +2 -2
  207. package/dist/internal.d.ts +2 -2
  208. package/dist/internal.js +1 -1
  209. package/dist/listQuery.cjs.map +1 -1
  210. package/dist/panes.cjs.map +1 -1
  211. package/dist/paymentPresentation.cjs.map +1 -1
  212. package/dist/recordCounter.cjs.map +1 -1
  213. package/dist/resources/aiTools.cjs.map +1 -1
  214. package/dist/resources/analytics.cjs.map +1 -1
  215. package/dist/resources/analyticsDashboard.cjs.map +1 -1
  216. package/dist/resources/apiKeys.cjs.map +1 -1
  217. package/dist/resources/audit.cjs.map +1 -1
  218. package/dist/resources/authentication.cjs.map +1 -1
  219. package/dist/resources/availabilityOverrides.cjs.map +1 -1
  220. package/dist/resources/billing.cjs.map +1 -1
  221. package/dist/resources/buyerAccount.cjs.map +1 -1
  222. package/dist/resources/buyerBlocklist.cjs.map +1 -1
  223. package/dist/resources/buyerConversations.cjs.map +1 -1
  224. package/dist/resources/buyerEvidenceReviews.cjs.map +1 -1
  225. package/dist/resources/buyerPortal.cjs.map +1 -1
  226. package/dist/resources/cards.cjs.map +1 -1
  227. package/dist/resources/chargebackPrevention.cjs.map +1 -1
  228. package/dist/resources/checkoutDomains.cjs.map +1 -1
  229. package/dist/resources/checkoutMethods.cjs.map +1 -1
  230. package/dist/resources/checkoutRecovery.cjs.map +1 -1
  231. package/dist/resources/checkoutTemplates.cjs.map +1 -1
  232. package/dist/resources/connectors.cjs.map +1 -1
  233. package/dist/resources/contentEncryption.cjs.map +1 -1
  234. package/dist/resources/costRules.cjs.map +1 -1
  235. package/dist/resources/customers.cjs.map +1 -1
  236. package/dist/resources/deploymentBranding.cjs.map +1 -1
  237. package/dist/resources/disputes.cjs.map +1 -1
  238. package/dist/resources/ephemeralKeys.cjs.map +1 -1
  239. package/dist/resources/events.cjs.map +1 -1
  240. package/dist/resources/export.cjs.map +1 -1
  241. package/dist/resources/externalRecords.cjs.map +1 -1
  242. package/dist/resources/featureMatrix.cjs.map +1 -1
  243. package/dist/resources/fees.cjs.map +1 -1
  244. package/dist/resources/files.cjs.map +1 -1
  245. package/dist/resources/forex.cjs.map +1 -1
  246. package/dist/resources/identityVerifications.cjs.map +1 -1
  247. package/dist/resources/industries.cjs.map +1 -1
  248. package/dist/resources/invoiceSettings.cjs.map +1 -1
  249. package/dist/resources/invoices.cjs.map +1 -1
  250. package/dist/resources/live.cjs.map +1 -1
  251. package/dist/resources/mandates.cjs.map +1 -1
  252. package/dist/resources/merchantAccounts.cjs.map +1 -1
  253. package/dist/resources/messageTemplates.cjs.map +1 -1
  254. package/dist/resources/notices.cjs.map +1 -1
  255. package/dist/resources/operationLimits.cjs.map +1 -1
  256. package/dist/resources/paymentLinks.cjs.map +1 -1
  257. package/dist/resources/paymentMethods.cjs.map +1 -1
  258. package/dist/resources/payments.cjs.map +1 -1
  259. package/dist/resources/payoutDestinations.cjs.map +1 -1
  260. package/dist/resources/payouts.cjs.map +1 -1
  261. package/dist/resources/paypalDisputes.cjs.map +1 -1
  262. package/dist/resources/persons.cjs.map +1 -1
  263. package/dist/resources/poll.cjs.map +1 -1
  264. package/dist/resources/processorCosts.cjs.map +1 -1
  265. package/dist/resources/processorImports.cjs.map +1 -1
  266. package/dist/resources/products.cjs.map +1 -1
  267. package/dist/resources/profileAcquirers.cjs.map +1 -1
  268. package/dist/resources/profiles.cjs.map +1 -1
  269. package/dist/resources/projects.cjs.map +1 -1
  270. package/dist/resources/refunds.cjs.map +1 -1
  271. package/dist/resources/regions.cjs.map +1 -1
  272. package/dist/resources/relay.cjs.map +1 -1
  273. package/dist/resources/risk.cjs.map +1 -1
  274. package/dist/resources/routing.cjs.map +1 -1
  275. package/dist/resources/search.cjs.map +1 -1
  276. package/dist/resources/sellToRestrictions.cjs.map +1 -1
  277. package/dist/resources/settings.cjs.map +1 -1
  278. package/dist/resources/settlement.cjs.map +1 -1
  279. package/dist/resources/shareLinks.cjs.map +1 -1
  280. package/dist/resources/shopLabels.cjs.map +1 -1
  281. package/dist/resources/shopify.cjs.map +1 -1
  282. package/dist/resources/shops.cjs.map +1 -1
  283. package/dist/resources/stripeConnect.cjs.map +1 -1
  284. package/dist/resources/subscriptions.cjs.map +1 -1
  285. package/dist/resources/support.cjs.map +1 -1
  286. package/dist/resources/threeDsRules.cjs.map +1 -1
  287. package/dist/resources/users.cjs.map +1 -1
  288. package/dist/resources/vatRates.cjs.map +1 -1
  289. package/dist/resources/verification.cjs.map +1 -1
  290. package/dist/resources/webhooks.cjs.map +1 -1
  291. package/dist/resources/whopResolutionCases.cjs.map +1 -1
  292. package/dist/trustedOrigins.cjs.map +1 -1
  293. package/dist/{types-EnPuyp4N.d.ts → types-BxgOWS55.d.ts} +67 -1
  294. package/dist/{types-BWd5W8Eg.d.cts → types-D_Y2A9ny.d.cts} +67 -1
  295. package/dist/types.cjs.map +1 -1
  296. package/dist/types.d.cts +49 -3
  297. package/dist/types.d.ts +49 -3
  298. package/package.json +19 -17
  299. package/dist/chunk-3HUJ7PPJ.js.map +0 -1
  300. package/dist/chunk-OMQK3CMR.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/chunk-YWN76H2W.cjs","../src/resources/analytics.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACsBO,IAAM,UAAA,EAAN,MAAgB;AAAA,EACrB,WAAA,CAA6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AK,CAAC,CAAA;AAAA,EACrE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,eAAA,CACJ,EAAA,EACA,IAAA,EACA,OAAA,EACqC;AACrC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,CAAA,sBAAA,EAAyB,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAA;AAClE,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAMuE,EAAA;AACK,IAAA;AAC5E,EAAA;AAAA;AAGgF,EAAA;AACb,IAAA;AACnE,EAAA;AAAA;AAMoC,EAAA;AACyC,IAAA;AACnE,MAAA;AACP,IAAA;AACH,EAAA;AAAA;AAGgE,EAAA;AACY,IAAA;AAC5E,EAAA;AAAA;AAKoC,EAAA;AACuC,IAAA;AAC3E,EAAA;AAAA;AAGsF,EAAA;AACX,IAAA;AAC3E,EAAA;AAAA;AAKoC,EAAA;AACqC,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcoC,EAAA;AACmC,IAAA;AACvE,EAAA;AAAA;AAKoC,EAAA;AACqC,IAAA;AACzE,EAAA;AACF;AD3D+E;AACA;AACA;AACA","file":"/tmp/pub0495/delopay-typescript-sdk/dist/chunk-YWN76H2W.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport { csvQuery } from '../listQuery';\nimport type {\n AnalyticsScopeRequest,\n AnalyticsScopeResponse,\n AnalyticsShopsRequest,\n AnalyticsShopsResponse,\n AnalyticsConnectorsRequest,\n AnalyticsConnectorsResponse,\n ClientAnalyticsRequest,\n IndustryAnalytics,\n IndustryAnalyticsRequest,\n DevicesAnalyticsResponse,\n GeoAnalyticsResponse,\n DeviceDrillRequest,\n GeoDrillRequest,\n DrillResponse,\n SubscriptionAnalyticsRequest,\n SubscriptionAnalyticsResponse,\n SubscriptionDrillRequest,\n ScopeDrillRequest,\n AnalyticsExclusionRequest,\n AnalyticsExclusionResponse,\n AnalyticsExclusionsResponse,\n} from '../types';\n\nexport class Analytics {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Scoped, drill-level analytics dashboard for the authenticated merchant\n * (the same engine as the admin portal, pinned server-side to your own\n * merchant). The server ignores `merchant_id` — it always scopes to your\n * merchant, and to your single shop for profile-scoped users — so pass only\n * `project_id` / `shop_id` to drill and the window / `sections` fields.\n * Returns one drill level: the scope's daily series + previous window,\n * processor mix and direct children. Accepts a dashboard session or an API\n * key, including a `statistics_read` key; a shop-bound key reads only its\n * shop. `GET /analytics/scope`\n */\n async scope(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/scope', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Period Reports: the scoped daily series, pinned exactly like `scope`, but\n * gated on the Period Reports permission area instead of Payment\n * Performance. Pass `timezone` and each day bucket is a local calendar day,\n * which sums exactly into calendar weeks and months. Answers only the\n * `series`, `previous` and `children` blocks and ignores country and device\n * filters. Accepts a dashboard session or an API key, including a\n * `statistics_read` key. `GET /analytics/reports`\n */\n async reports(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/reports', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Shop comparison: one series per shop over one window, with whole-window\n * and previous-window totals, so shops can be drawn side by side. Pinned\n * server-side to your own merchant (`merchant_id` is ignored), and to your\n * single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.\n * Shops without activity are included, sorted by name. Hourly buckets are\n * refused for windows over 7 days. Accepts an API key like `scope`.\n * `GET /analytics/shops`\n */\n async shops(params?: AnalyticsShopsRequest): Promise<AnalyticsShopsResponse> {\n return this.request('GET', '/analytics/shops', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * PSP analytics: routed payments, outcomes, volume and payment sizes per\n * connector and per connector account over one window, with the breakdown\n * by project and shop. Pinned server-side to your own merchant\n * (`merchant_id` is ignored) and to your shop for a shop-scoped user. Live\n * payments unless `test_mode` is `true`. Amounts are in USD unless\n * `currency` names one. Pass `sections` to compute only some blocks.\n * A role that may see no processor gets a 403.\n * `GET /analytics/connectors`\n */\n async connectors(params?: AnalyticsConnectorsRequest): Promise<AnalyticsConnectorsResponse> {\n return this.request('GET', '/analytics/connectors', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Industry analytics: payments, volume, outcomes, refunds and disputes by\n * the industry each shop had on the UTC day a payment was created, as a tree\n * of industries, sub-industries, the merchant's own industries and the\n * shops without one, each with the previous window, a series, the processor\n * and country split and the largest shops. Pinned server-side to your own\n * merchant (`merchant_id` is ignored). Needs the `IndustryAnalytics` area,\n * which no other analytics grant implies, at merchant level: a shop-scoped\n * role or a shop-bound key gets a 403 (`IR_22`). Live payments unless\n * `test_mode` is `true`; amounts in USD unless `currency` names one.\n * `GET /analytics/industries`\n */\n async industries(params?: IndustryAnalyticsRequest): Promise<IndustryAnalytics> {\n return this.request('GET', '/analytics/industries', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Device analytics over the canonical client-context observation per\n * payment (browser/platform families, device classes and models, checkout\n * channel mix, time-to-pay), pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the\n * client-context optimisation-use switch: when it is off the server answers\n * 200 with `enabled: false` and a caveat naming the switch. Accepts an API\n * key like `scope`. `GET /analytics/devices`\n */\n async devices(params?: ClientAnalyticsRequest): Promise<DevicesAnalyticsResponse> {\n return this.request('GET', '/analytics/devices', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Geo analytics over the canonical client-context observation per payment:\n * country totals, city bubbles (IP mode), buyer languages, buyer-local\n * purchase hours and the IP-vs-billing mismatch share. `mode` selects the\n * location claim (`ip` default, `billing`); the two are never coalesced.\n * Same drill, window, gating and API-key contract as `devices`.\n * `GET /analytics/geo`\n */\n async geo(params?: ClientAnalyticsRequest): Promise<GeoAnalyticsResponse> {\n return this.request('GET', '/analytics/geo', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The recent payments behind one clicked geo target: a map country (in the\n * active claim mode), optionally narrowed to an IP-resolved city, or one\n * buyer-local heatmap cell (`dow` + `hour`, paid sessions only). Same\n * window/scope/filter and gating contract as `geo`; capped at 50 rows,\n * newest first, with the full match count alongside.\n * `GET /analytics/geo/transactions`\n */\n async geoTransactions(params: GeoDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/geo/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The recent payments behind one clicked device target: exactly one of a\n * browser family, a platform family, an identified device-model label, or\n * a device class. Family/model targets are resolved server-side with the\n * same classifiers the cards use. Same window/scope/filter and gating\n * contract as `devices`; 50 rows per page (`offset` for the next page),\n * newest first, with the full match count alongside.\n * `GET /analytics/devices/transactions`\n */\n async deviceTransactions(params: DeviceDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/devices/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The payments behind one clicked element of the payments dashboard: a\n * processor-donut slice, a payment-method slice, an outcome segment of a\n * series bar, a series bucket, or a breakdown row — combinable, with\n * `target_bucket` narrowing every other target. The outcome mapping is the\n * one the series and donuts are folded with, expanded server-side, so the\n * list is what the clicked number was made of. Rows and the whole-match\n * `summary` carry USD figures converted with the dashboard's own rates.\n * Same window/scope/chip contract as `scope`; sorted per `sort_on` /\n * `sort_by`, `limit` rows (default 50) per page, `offset` for the next.\n * `GET /analytics/scope/transactions`\n */\n async scopeTransactions(params: ScopeDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/scope/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Subscription analytics over `subscription` and `invoice`: estimated\n * recurring volume, the invoice funnel, movement (new / expansion /\n * contraction / churn), both processor axes, plan mix and the breakdown one\n * level below the scope. Pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`.\n *\n * Half the figures are **stocks** — a snapshot at the window's end rather\n * than a sum over it — so `est_monthly_volume_usd` and `active` can match\n * across a 7-day and a 30-day window while `billed_volume_usd` does not.\n * Day granularity only. Accepts an API key like `scope`.\n * `GET /analytics/subscriptions`\n */\n async subscriptions(\n params?: SubscriptionAnalyticsRequest,\n ): Promise<SubscriptionAnalyticsResponse> {\n return this.request('GET', '/analytics/subscriptions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The billing cycles behind one clicked element of the subscription\n * dashboard: an invoice outcome, a processor slice on either axis, a plan\n * row, a subscription status, a movement component, a series bucket or a\n * breakdown row. Same window/scope/filter contract as `subscriptions`; 50\n * rows per page (`offset` for the next), newest first, with the full match\n * count alongside.\n *\n * A cycle that never reached a payment is listed too — that is what \"still\n * unpaid\" means — and carries its invoice id as `payment_id` with\n * `invoice_id` set to the same value, so you can always tell which you got.\n * `GET /analytics/subscriptions/list`\n */\n async subscriptionsList(params: SubscriptionDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/subscriptions/list', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Every analytics exclusion of the merchant, with the payments each one\n * matched in the lookback window.\n *\n * These rules change what the merchant's own dashboards count. Financial\n * records and transaction lists are never filtered by them.\n *\n * `matched_payments` counts overlap between rules: a payment matched by\n * three rules is counted once by each, so the values are not additive. The\n * envelope's `best_effort` and `lookback_days` apply to every row — matching\n * runs on client signals that may be absent or expired, within that window.\n * `GET /analytics/exclusions`\n */\n async listExclusions(): Promise<AnalyticsExclusionsResponse> {\n return this.request('GET', '/analytics/exclusions');\n }\n\n /**\n * Write a new exclusion. A shop-scoped user must name their own shop in\n * `profile_id`; omitting it applies the rule to every shop of the merchant.\n * Omitting `surfaces` means **all five**, not none.\n * `POST /analytics/exclusions`\n */\n async createExclusion(rule: AnalyticsExclusionRequest): Promise<AnalyticsExclusionResponse> {\n return this.request('POST', '/analytics/exclusions', { body: rule });\n }\n\n /**\n * Replace a stored exclusion **completely**. This is not a patch: every\n * field you leave out reverts to its default rather than keeping its stored\n * value, so send the whole rule — including an explicit `null` for a\n * `profile_id`, `value`, `valid_from`, `valid_until` or `note` you mean to\n * clear, and the full `surfaces` list you mean to keep.\n * `PUT /analytics/exclusions/{id}`\n */\n async updateExclusion(\n id: string,\n rule: AnalyticsExclusionRequest,\n options?: RequestExtras,\n ): Promise<AnalyticsExclusionResponse> {\n return this.request('PUT', `/analytics/exclusions/${encodeURIComponent(id)}`, {\n body: rule,\n ...options,\n });\n }\n\n /**\n * Delete a stored exclusion. Returns the rule as it was, so a caller can\n * say what it removed. `DELETE /analytics/exclusions/{id}`\n */\n async deleteExclusion(id: string): Promise<AnalyticsExclusionResponse> {\n return this.request('DELETE', `/analytics/exclusions/${encodeURIComponent(id)}`);\n }\n\n /** Global search. `POST /analytics/search` */\n async search(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/search', { body: params });\n }\n\n /** Domain-specific search. `POST /analytics/search/{domain}` */\n async searchDomain(\n domain: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/analytics/search/${encodeURIComponent(domain)}`, {\n body: params,\n });\n }\n\n /** Get analytics info. `GET /analytics/{domain}/info` */\n async getInfo(domain: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/analytics/${encodeURIComponent(domain)}/info`);\n }\n\n /** Get API event logs. `GET /analytics/api-event-logs` */\n async apiEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/api-event-logs', { query: params });\n }\n\n /** Get SDK event logs. `POST /analytics/sdk-event-logs` */\n async sdkEventLogs(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/sdk-event-logs', { body: params });\n }\n\n /** Get connector event logs. `GET /analytics/connector-event-logs` */\n async connectorEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/connector-event-logs', { query: params });\n }\n\n /**\n * Get routing event logs. `GET /analytics/routing-event-logs`\n *\n * @deprecated The service answers this only from a ClickHouse analytics\n * store; with SQL analytics, the default configuration, it answers an\n * error. To learn why a payment used a connector, read\n * `payments.routingDecisions(paymentId)`,\n * the routing decision recorded behind each attempt. This method stays for\n * compatibility and still sends the same request.\n */\n async routingEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/routing-event-logs', { query: params });\n }\n\n /** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */\n async outgoingWebhookEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/outgoing-webhook-event-logs', { query: params });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/chunk-YWN76H2W.cjs","../src/resources/analytics.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACsBO,IAAM,UAAA,EAAN,MAAgB;AAAA,EACrB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAalD,MAAM,KAAA,CAAM,MAAA,EAAiE;AAC3E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,kBAAA,EAAoB;AAAA,MAC7C,KAAA,EAAO,wCAAA,MAAS,EAAQ,CAAC,UAAU,CAAC;AAAA,IACtC,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,MAAM,OAAA,CAAQ,MAAA,EAAiE;AAC7E,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,E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C5E,EAAA;AAAA;AAKoC,EAAA;AACuC,IAAA;AAC3E,EAAA;AAAA;AAGsF,EAAA;AACX,IAAA;AAC3E,EAAA;AAAA;AAKoC,EAAA;AACqC,IAAA;AACzE,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcoC,EAAA;AACmC,IAAA;AACvE,EAAA;AAAA;AAKoC,EAAA;AACqC,IAAA;AACzE,EAAA;AACF;AD3D+E;AACA;AACA;AACA","file":"/tmp/publish-sdk-0496/dist/chunk-YWN76H2W.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport { csvQuery } from '../listQuery';\nimport type {\n AnalyticsScopeRequest,\n AnalyticsScopeResponse,\n AnalyticsShopsRequest,\n AnalyticsShopsResponse,\n AnalyticsConnectorsRequest,\n AnalyticsConnectorsResponse,\n ClientAnalyticsRequest,\n IndustryAnalytics,\n IndustryAnalyticsRequest,\n DevicesAnalyticsResponse,\n GeoAnalyticsResponse,\n DeviceDrillRequest,\n GeoDrillRequest,\n DrillResponse,\n SubscriptionAnalyticsRequest,\n SubscriptionAnalyticsResponse,\n SubscriptionDrillRequest,\n ScopeDrillRequest,\n AnalyticsExclusionRequest,\n AnalyticsExclusionResponse,\n AnalyticsExclusionsResponse,\n} from '../types';\n\nexport class Analytics {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Scoped, drill-level analytics dashboard for the authenticated merchant\n * (the same engine as the admin portal, pinned server-side to your own\n * merchant). The server ignores `merchant_id` — it always scopes to your\n * merchant, and to your single shop for profile-scoped users — so pass only\n * `project_id` / `shop_id` to drill and the window / `sections` fields.\n * Returns one drill level: the scope's daily series + previous window,\n * processor mix and direct children. Accepts a dashboard session or an API\n * key, including a `statistics_read` key; a shop-bound key reads only its\n * shop. `GET /analytics/scope`\n */\n async scope(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/scope', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Period Reports: the scoped daily series, pinned exactly like `scope`, but\n * gated on the Period Reports permission area instead of Payment\n * Performance. Pass `timezone` and each day bucket is a local calendar day,\n * which sums exactly into calendar weeks and months. Answers only the\n * `series`, `previous` and `children` blocks and ignores country and device\n * filters. Accepts a dashboard session or an API key, including a\n * `statistics_read` key. `GET /analytics/reports`\n */\n async reports(params?: AnalyticsScopeRequest): Promise<AnalyticsScopeResponse> {\n return this.request('GET', '/analytics/reports', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Shop comparison: one series per shop over one window, with whole-window\n * and previous-window totals, so shops can be drawn side by side. Pinned\n * server-side to your own merchant (`merchant_id` is ignored), and to your\n * single shop for a shop-scoped user; `project_id` / `shop_id` narrow it.\n * Shops without activity are included, sorted by name. Hourly buckets are\n * refused for windows over 7 days. Accepts an API key like `scope`.\n * `GET /analytics/shops`\n */\n async shops(params?: AnalyticsShopsRequest): Promise<AnalyticsShopsResponse> {\n return this.request('GET', '/analytics/shops', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * PSP analytics: routed payments, outcomes, volume and payment sizes per\n * connector and per connector account over one window, with the breakdown\n * by project and shop. Pinned server-side to your own merchant\n * (`merchant_id` is ignored) and to your shop for a shop-scoped user. Live\n * payments unless `test_mode` is `true`. Amounts are in USD unless\n * `currency` names one. Pass `sections` to compute only some blocks.\n * A role that may see no processor gets a 403.\n * `GET /analytics/connectors`\n */\n async connectors(params?: AnalyticsConnectorsRequest): Promise<AnalyticsConnectorsResponse> {\n return this.request('GET', '/analytics/connectors', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Industry analytics: payments, volume, outcomes, refunds and disputes by\n * the industry each shop had on the UTC day a payment was created, as a tree\n * of industries, sub-industries, the merchant's own industries and the\n * shops without one, each with the previous window, a series, the processor\n * and country split and the largest shops. Pinned server-side to your own\n * merchant (`merchant_id` is ignored). Needs the `IndustryAnalytics` area,\n * which no other analytics grant implies, at merchant level: a shop-scoped\n * role or a shop-bound key gets a 403 (`IR_22`). Live payments unless\n * `test_mode` is `true`; amounts in USD unless `currency` names one.\n * `GET /analytics/industries`\n */\n async industries(params?: IndustryAnalyticsRequest): Promise<IndustryAnalytics> {\n return this.request('GET', '/analytics/industries', {\n query: params as Record<string, string | number | boolean | undefined>,\n });\n }\n\n /**\n * Device analytics over the canonical client-context observation per\n * payment (browser/platform families, device classes and models, checkout\n * channel mix, time-to-pay), pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`. Gated on the\n * client-context optimisation-use switch: when it is off the server answers\n * 200 with `enabled: false` and a caveat naming the switch. Accepts an API\n * key like `scope`. `GET /analytics/devices`\n */\n async devices(params?: ClientAnalyticsRequest): Promise<DevicesAnalyticsResponse> {\n return this.request('GET', '/analytics/devices', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Geo analytics over the canonical client-context observation per payment:\n * country totals, city bubbles (IP mode), buyer languages, buyer-local\n * purchase hours and the IP-vs-billing mismatch share. `mode` selects the\n * location claim (`ip` default, `billing`); the two are never coalesced.\n * Same drill, window, gating and API-key contract as `devices`.\n * `GET /analytics/geo`\n */\n async geo(params?: ClientAnalyticsRequest): Promise<GeoAnalyticsResponse> {\n return this.request('GET', '/analytics/geo', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The recent payments behind one clicked geo target: a map country (in the\n * active claim mode), optionally narrowed to an IP-resolved city, or one\n * buyer-local heatmap cell (`dow` + `hour`, paid sessions only). Same\n * window/scope/filter and gating contract as `geo`; capped at 50 rows,\n * newest first, with the full match count alongside.\n * `GET /analytics/geo/transactions`\n */\n async geoTransactions(params: GeoDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/geo/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The recent payments behind one clicked device target: exactly one of a\n * browser family, a platform family, an identified device-model label, or\n * a device class. Family/model targets are resolved server-side with the\n * same classifiers the cards use. Same window/scope/filter and gating\n * contract as `devices`; 50 rows per page (`offset` for the next page),\n * newest first, with the full match count alongside.\n * `GET /analytics/devices/transactions`\n */\n async deviceTransactions(params: DeviceDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/devices/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The payments behind one clicked element of the payments dashboard: a\n * processor-donut slice, a payment-method slice, an outcome segment of a\n * series bar, a series bucket, or a breakdown row — combinable, with\n * `target_bucket` narrowing every other target. The outcome mapping is the\n * one the series and donuts are folded with, expanded server-side, so the\n * list is what the clicked number was made of. Rows and the whole-match\n * `summary` carry USD figures converted with the dashboard's own rates.\n * Same window/scope/chip contract as `scope`; sorted per `sort_on` /\n * `sort_by`, `limit` rows (default 50) per page, `offset` for the next.\n * `GET /analytics/scope/transactions`\n */\n async scopeTransactions(params: ScopeDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/scope/transactions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Subscription analytics over `subscription` and `invoice`: estimated\n * recurring volume, the invoice funnel, movement (new / expansion /\n * contraction / churn), both processor axes, plan mix and the breakdown one\n * level below the scope. Pinned server-side to your own merchant and\n * drillable via `project_id` / `shop_id` exactly like `scope`.\n *\n * Half the figures are **stocks** — a snapshot at the window's end rather\n * than a sum over it — so `est_monthly_volume_usd` and `active` can match\n * across a 7-day and a 30-day window while `billed_volume_usd` does not.\n * Day granularity only. Accepts an API key like `scope`.\n * `GET /analytics/subscriptions`\n */\n async subscriptions(\n params?: SubscriptionAnalyticsRequest,\n ): Promise<SubscriptionAnalyticsResponse> {\n return this.request('GET', '/analytics/subscriptions', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * The billing cycles behind one clicked element of the subscription\n * dashboard: an invoice outcome, a processor slice on either axis, a plan\n * row, a subscription status, a movement component, a series bucket or a\n * breakdown row. Same window/scope/filter contract as `subscriptions`; 50\n * rows per page (`offset` for the next), newest first, with the full match\n * count alongside.\n *\n * A cycle that never reached a payment is listed too — that is what \"still\n * unpaid\" means — and carries its invoice id as `payment_id` with\n * `invoice_id` set to the same value, so you can always tell which you got.\n * `GET /analytics/subscriptions/list`\n */\n async subscriptionsList(params: SubscriptionDrillRequest): Promise<DrillResponse> {\n return this.request('GET', '/analytics/subscriptions/list', {\n query: csvQuery(params, ['shop_ids']),\n });\n }\n\n /**\n * Every analytics exclusion of the merchant, with the payments each one\n * matched in the lookback window.\n *\n * These rules change what the merchant's own dashboards count. Financial\n * records and transaction lists are never filtered by them.\n *\n * `matched_payments` counts overlap between rules: a payment matched by\n * three rules is counted once by each, so the values are not additive. The\n * envelope's `best_effort` and `lookback_days` apply to every row — matching\n * runs on client signals that may be absent or expired, within that window.\n * `GET /analytics/exclusions`\n */\n async listExclusions(): Promise<AnalyticsExclusionsResponse> {\n return this.request('GET', '/analytics/exclusions');\n }\n\n /**\n * Write a new exclusion. A shop-scoped user must name their own shop in\n * `profile_id`; omitting it applies the rule to every shop of the merchant.\n * Omitting `surfaces` means **all five**, not none.\n * `POST /analytics/exclusions`\n */\n async createExclusion(rule: AnalyticsExclusionRequest): Promise<AnalyticsExclusionResponse> {\n return this.request('POST', '/analytics/exclusions', { body: rule });\n }\n\n /**\n * Replace a stored exclusion **completely**. This is not a patch: every\n * field you leave out reverts to its default rather than keeping its stored\n * value, so send the whole rule — including an explicit `null` for a\n * `profile_id`, `value`, `valid_from`, `valid_until` or `note` you mean to\n * clear, and the full `surfaces` list you mean to keep.\n * `PUT /analytics/exclusions/{id}`\n */\n async updateExclusion(\n id: string,\n rule: AnalyticsExclusionRequest,\n options?: RequestExtras,\n ): Promise<AnalyticsExclusionResponse> {\n return this.request('PUT', `/analytics/exclusions/${encodeURIComponent(id)}`, {\n body: rule,\n ...options,\n });\n }\n\n /**\n * Delete a stored exclusion. Returns the rule as it was, so a caller can\n * say what it removed. `DELETE /analytics/exclusions/{id}`\n */\n async deleteExclusion(id: string): Promise<AnalyticsExclusionResponse> {\n return this.request('DELETE', `/analytics/exclusions/${encodeURIComponent(id)}`);\n }\n\n /** Global search. `POST /analytics/search` */\n async search(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/search', { body: params });\n }\n\n /** Domain-specific search. `POST /analytics/search/{domain}` */\n async searchDomain(\n domain: string,\n params: Record<string, unknown>,\n ): Promise<Record<string, unknown>> {\n return this.request('POST', `/analytics/search/${encodeURIComponent(domain)}`, {\n body: params,\n });\n }\n\n /** Get analytics info. `GET /analytics/{domain}/info` */\n async getInfo(domain: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/analytics/${encodeURIComponent(domain)}/info`);\n }\n\n /** Get API event logs. `GET /analytics/api-event-logs` */\n async apiEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/api-event-logs', { query: params });\n }\n\n /** Get SDK event logs. `POST /analytics/sdk-event-logs` */\n async sdkEventLogs(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/analytics/sdk-event-logs', { body: params });\n }\n\n /** Get connector event logs. `GET /analytics/connector-event-logs` */\n async connectorEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/connector-event-logs', { query: params });\n }\n\n /**\n * Get routing event logs. `GET /analytics/routing-event-logs`\n *\n * @deprecated The service answers this only from a ClickHouse analytics\n * store; with SQL analytics, the default configuration, it answers an\n * error. To learn why a payment used a connector, read\n * `payments.routingDecisions(paymentId)`,\n * the routing decision recorded behind each attempt. This method stays for\n * compatibility and still sends the same request.\n */\n async routingEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/routing-event-logs', { query: params });\n }\n\n /** Get outgoing webhook event logs. `GET /analytics/outgoing-webhook-event-logs` */\n async outgoingWebhookEventLogs(\n params?: Record<string, string | number | undefined>,\n ): Promise<Record<string, unknown>> {\n return this.request('GET', '/analytics/outgoing-webhook-event-logs', { query: params });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/chunk-ZGMIHHGL.cjs","../src/resources/identityVerifications.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;AC4CO,IAAM,sBAAA,EAAN,MAA4B;AAAA,EACjC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUlD,MAAM,MAAA,CACJ,MAAA,EACA,OAAA,EACuC;AACvC,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,yBAAA,EAA2B,EAAE,IAAA,EAAM,MAAA,EAAQ,GAAG,QAAQ,CAAC,CAAA;AAAA,EACrF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,IAAA,CACJ,KAAA,EACA,OAAA,EAC2C;AAC3C,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,yBAAA,EAA2B;AAAA,MACpD,KAAA,EAAO,wCAAA,KAAS,EAAO,CAAC,SAAA,EAAW,MAAA,EAAQ,uBAAuB,CAAC,CAAA;AAAA,MACnE,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,iBAAA,CACJ,KAAA,EACA,OAAA,EACgD;AAChD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,4CAAA,EAA8C;AAAA,MACvE,KAAA;AAAA,MACA,GAAG;AAAA,IACL,CAAC,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,QAAA,CACJ,cAAA,EACA,KAAA,EACA,OAAA,EACuC;AAC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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBoD,EAAA;AACiB,IAAA;AAC3D,MAAA;AACH,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWwD,EAAA;AACoB,IAAA;AAC5E,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW0D,EAAA;AACc,IAAA;AACpE,MAAA;AACG,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWyC,EAAA;AACsC,IAAA;AAC5C,MAAA;AAC5B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYiD,EAAA;AACnC,IAAA;AACV,MAAA;AAC8E,MAAA;AAC9E,MAAA;AACF,IAAA;AACF,EAAA;AACF;ADjJ6F;AACA;AACA;AACA","file":"/tmp/pub0495/delopay-typescript-sdk/dist/chunk-ZGMIHHGL.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport type {\n AmlEventListResponse,\n AmlMonitoringRequest,\n AvailableVerificationServicesQuery,\n AvailableVerificationServicesResponse,\n ConnectionCheckSettingRequest,\n ConnectionCheckSettingResponse,\n ConnectionCheckShopRequest,\n ConnectionCheckShopResponse,\n ConnectionChecksResponse,\n IdentityVerificationCreateRequest,\n IdentityVerificationFlowsQuery,\n IdentityVerificationFlowsResponse,\n IdentityVerificationListQuery,\n IdentityVerificationListResponse,\n IdentityVerificationResponse,\n IdentityVerificationRetrieveQuery,\n DeviceIntelligenceSettingRequest,\n DeviceIntelligenceSettingResponse,\n DeviceSignalResponse,\n EffectiveRequirementResponse,\n IdentityVerificationDecisionResponse,\n IdentityVerificationRequirementDeleteQuery,\n IdentityVerificationRequirementDeleteResponse,\n IdentityVerificationRequirementListResponse,\n IdentityVerificationRequirementRequest,\n IdentityVerificationRequirementResponse,\n OperationScreeningResponse,\n PaymentScreeningResponse,\n PaymentScreeningSettingRequest,\n PaymentScreeningSettingResponse,\n SubjectVerificationQuery,\n SubjectVerificationResponse,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\ntype Query = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Identity verification (KYC, KYB, AML screening, age, proof of address)\n * through a connected identity verification provider account, such as Didit.\n *\n * The provider account is a connector account of type `fiz_operations`. A test\n * verification runs on the account's test credentials only, a live one on its\n * live credentials only. Reading needs permission to read customers; starting\n * a verification needs permission to edit them.\n */\nexport class IdentityVerifications {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Start a verification of a person or a business. The provider-side\n * workflow decides the checks. With a `return_url`, the provider's session\n * is created at once and its page returned in `verification_url`. With a\n * `payment_id` and no `return_url`, the payment's checkout starts it.\n *\n * `POST /identity-verifications`\n */\n async create(\n params: IdentityVerificationCreateRequest,\n options?: RequestExtras,\n ): Promise<IdentityVerificationResponse> {\n return this.request('POST', '/identity-verifications', { body: params, ...options });\n }\n\n /**\n * The merchant's verifications, newest first unless `sort_by` says\n * otherwise. A caller limited to one shop sees that shop's only. Several\n * `outcome`, `kind` or `merchant_connector_id` values match a verification\n * with any of them.\n *\n * `GET /identity-verifications`\n */\n async list(\n query?: IdentityVerificationListQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationListResponse> {\n return this.request('GET', '/identity-verifications', {\n query: csvQuery(query, ['outcome', 'kind', 'merchant_connector_id']),\n ...options,\n });\n }\n\n /**\n * Buyer verification services currently offered by connected identity\n * verification accounts serving the shop in the requested mode\n * (`test_mode`), together with the shop's default requirement and whether\n * the caller's role may require or skip verification on a payment.\n *\n * `GET /identity-verifications/available-services`\n */\n async availableServices(\n query: AvailableVerificationServicesQuery,\n options?: RequestExtras,\n ): Promise<AvailableVerificationServicesResponse> {\n return this.request('GET', '/identity-verifications/available-services', {\n query: query as unknown as Query,\n ...options,\n });\n }\n\n /**\n * One verification. With `force_sync: true`, a verification the provider\n * can still change (pending or in review, or a subject under ongoing AML\n * monitoring) is read from the provider first.\n *\n * `GET /identity-verifications/{verification_id}`\n */\n async retrieve(\n verificationId: string,\n query?: IdentityVerificationRetrieveQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationResponse> {\n return this.request('GET', `/identity-verifications/${encodeURIComponent(verificationId)}`, {\n query: query as Query | undefined,\n ...options,\n });\n }\n\n /**\n * A subject's latest verification in one environment (live unless\n * `test_mode: true`), with its checks, and the subject's verification under\n * ongoing AML monitoring. This is what risk rules read. `verification` and\n * `aml_monitoring` are `null` when the subject has none.\n *\n * `GET /identity-verifications/subjects/{subject_reference}`\n */\n async subject(\n subjectReference: string,\n query?: SubjectVerificationQuery,\n options?: RequestExtras,\n ): Promise<SubjectVerificationResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/subjects/${encodeURIComponent(subjectReference)}`,\n { query: query as Query | undefined, ...options },\n );\n }\n\n /**\n * The provider-side workflows an account can run in one environment, read\n * from the provider with that environment's credentials. Pass a `flow_id`\n * as `provider_flow_id` to {@link IdentityVerifications.create}.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/flows`\n */\n async flows(\n merchantConnectorId: string,\n query?: IdentityVerificationFlowsQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationFlowsResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/flows`,\n { query: query as Query | undefined, ...options },\n );\n }\n\n /**\n * Switch ongoing AML monitoring of a verification's subject. The provider\n * then keeps re-screening the subject against sanctions, PEP and\n * adverse-media lists, and every change it reports is recorded. Only a\n * verified person or business can be enrolled; monitoring can be switched\n * off at any time. Needs permission to edit customers.\n *\n * `POST /identity-verifications/{verification_id}/aml-monitoring`\n */\n async setAmlMonitoring(\n verificationId: string,\n params: AmlMonitoringRequest,\n options?: RequestExtras,\n ): Promise<IdentityVerificationResponse> {\n return this.request(\n 'POST',\n `/identity-verifications/${encodeURIComponent(verificationId)}/aml-monitoring`,\n { body: params, ...options },\n );\n }\n\n /**\n * Every change of the subject's AML result the provider reported while the\n * subject was monitored, newest first, at most 100.\n *\n * `GET /identity-verifications/{verification_id}/aml-events`\n */\n async amlEvents(verificationId: string, options?: RequestExtras): Promise<AmlEventListResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/${encodeURIComponent(verificationId)}/aml-events`,\n options,\n );\n }\n\n /**\n * A payment's screening by the transaction monitoring of the shop's\n * screening account. Recorded only: it never holds or refuses the payment.\n * Answers 404 when the payment has no screening. Needs permission to read\n * payments.\n *\n * `GET /identity-verifications/payment-screenings/{payment_id}`\n */\n async paymentScreening(\n paymentId: string,\n options?: RequestExtras,\n ): Promise<PaymentScreeningResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/payment-screenings/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n\n /**\n * Whether an account screens its shop's payments. Needs permission to read\n * connectors.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/payment-screening`\n */\n async paymentScreeningSetting(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<PaymentScreeningSettingResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/payment-screening`,\n options,\n );\n }\n\n /**\n * Switch screening of the account's shop's payments. Switched on, every\n * payment of the shop that succeeds from then on is screened shortly after,\n * in the payment's own environment. A shop has at most one screening\n * account. Needs permission to edit connectors.\n *\n * `PUT /identity-verifications/accounts/{merchant_connector_id}/payment-screening`\n */\n async updatePaymentScreeningSetting(\n merchantConnectorId: string,\n params: PaymentScreeningSettingRequest,\n options?: RequestExtras,\n ): Promise<PaymentScreeningSettingResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/payment-screening`,\n { body: params, ...options },\n );\n }\n\n /**\n * A refund's screening by the transaction monitoring of the shop's\n * screening account, for a provider that screens refunds. Recorded only: it\n * never holds or reverses the refund. Answers 404 when the refund has no\n * screening. Needs permission to read payments.\n *\n * `GET /identity-verifications/refund-screenings/{refund_id}`\n */\n async refundScreening(\n refundId: string,\n options?: RequestExtras,\n ): Promise<OperationScreeningResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/refund-screenings/${encodeURIComponent(refundId)}`,\n options,\n );\n }\n\n /**\n * A payout's screening by the transaction monitoring of the shop's\n * screening account, for a provider that screens payouts. Recorded only: it\n * never holds or reverses the payout. Answers 404 when the payout has no\n * screening. Needs permission to read payments.\n *\n * `GET /identity-verifications/payout-screenings/{payout_id}`\n */\n async payoutScreening(\n payoutId: string,\n options?: RequestExtras,\n ): Promise<OperationScreeningResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/payout-screenings/${encodeURIComponent(payoutId)}`,\n options,\n );\n }\n\n /**\n * Whether an account assesses its shop's checkout devices. Needs permission\n * to read connectors.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/device-intelligence`\n */\n async deviceIntelligenceSetting(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<DeviceIntelligenceSettingResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/device-intelligence`,\n options,\n );\n }\n\n /**\n * Switch device intelligence of the account's shop. Switched on, every\n * checkout of the shop assesses the buyer's device and records the\n * provider's signal on the payment; it never holds or refuses a payment.\n * Switching on is refused when the provider has not switched the feature on\n * for the account. A shop has at most one device intelligence account.\n * Needs permission to edit connectors.\n *\n * `PUT /identity-verifications/accounts/{merchant_connector_id}/device-intelligence`\n */\n async updateDeviceIntelligenceSetting(\n merchantConnectorId: string,\n params: DeviceIntelligenceSettingRequest,\n options?: RequestExtras,\n ): Promise<DeviceIntelligenceSettingResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/device-intelligence`,\n { body: params, ...options },\n );\n }\n\n /**\n * A payment's device signal from its checkout's device assessment. Recorded\n * only: it never holds or refuses the payment. Answers 404 when the payment's\n * checkout was not assessed. Needs permission to read payments.\n *\n * `GET /identity-verifications/device-signals/{payment_id}`\n */\n async deviceSignal(paymentId: string, options?: RequestExtras): Promise<DeviceSignalResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/device-signals/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n\n /**\n * Whether an account rates the buyer addresses of its shop's payments.\n * Needs permission to read connectors.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/connection-check`\n */\n async connectionCheckSetting(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<ConnectionCheckSettingResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/connection-check`,\n options,\n );\n }\n\n /**\n * Switch the connection check of the account's shop. Switched on, the\n * buyer address of every payment the shop confirms is rated by the\n * provider, once per payment and address, before authorization. A\n * provider that classifies addresses reports the network classes it found\n * (hosting, Tor, VPN, proxy, residential proxy), and each counts as that\n * network class in the buyer risk score and the buyer blocklist. For a\n * provider that only rates, a `high` or `very_high` rating counts as the\n * `proxy` class. A check never holds or refuses a payment by itself. Switching on asks the\n * provider nothing, since every check is billed. A shop has one\n * connection check account per provider: switching on a second of the\n * same provider, or a second account checking buyer emails, is refused\n * with `IR_16`. Every change is written to the merchant's audit log. Needs\n * permission to edit connectors.\n *\n * `PUT /identity-verifications/accounts/{merchant_connector_id}/connection-check`\n */\n async updateConnectionCheckSetting(\n merchantConnectorId: string,\n params: ConnectionCheckSettingRequest,\n options?: RequestExtras,\n ): Promise<ConnectionCheckSettingResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/connection-check`,\n { body: params, ...options },\n );\n }\n\n /**\n * A shop's connection check accounts, the first switched on first, and how\n * their results combine. A shop that never set a combination combines with\n * `any`. Needs permission to read connectors.\n *\n * `GET /identity-verifications/shops/{profile_id}/connection-check`\n */\n async connectionCheckShop(\n profileId: string,\n options?: RequestExtras,\n ): Promise<ConnectionCheckShopResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/shops/${encodeURIComponent(profileId)}/connection-check`,\n options,\n );\n }\n\n /**\n * Set how the shop's connection check providers combine (see\n * `ConnectionCheckCombination`). The change is written to the merchant's\n * audit log. Needs permission to edit connectors, and is refused (403) to a\n * role that sees only some connector accounts.\n *\n * `PUT /identity-verifications/shops/{profile_id}/connection-check`\n */\n async updateConnectionCheckShop(\n profileId: string,\n params: ConnectionCheckShopRequest,\n options?: RequestExtras,\n ): Promise<ConnectionCheckShopResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/shops/${encodeURIComponent(profileId)}/connection-check`,\n { body: params, ...options },\n );\n }\n\n /**\n * A payment's connection checks, newest first; empty when none ran. Each\n * check carries the network classes it counts as, and, from a provider that\n * classifies addresses, the services, infrastructure and risk tags it\n * named, and which account (`merchant_connector_id`) ran it.\n * `combination` and `decisions` say how the shop's rule combined the\n * providers' results for each address. `email_checks` lists the recorded email checks of the payment's\n * buyer: rating, flags and times, never the address; reading them starts no\n * check. Needs permission to read payments.\n *\n * `GET /identity-verifications/connection-checks/{payment_id}`\n */\n async connectionChecks(\n paymentId: string,\n options?: RequestExtras,\n ): Promise<ConnectionChecksResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/connection-checks/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n\n /**\n * Set which payments need an identity verification at one level: the\n * merchant, a project, a shop, a checkout template or one payment. `off`\n * lifts a wider requirement. Without `payment_method_types` or\n * `merchant_connector_ids` the checkout shows the identity step before any\n * payment option; with them, only when the buyer picks a matching method.\n * A payment is decided once, so a later change does not change it.\n * Merchant, project and checkout template requirements need a\n * merchant-level caller; a shop on a checkout template takes its\n * requirement from the template. Needs permission to edit connectors.\n *\n * `PUT /identity-verifications/requirements`\n */\n async putRequirement(\n params: IdentityVerificationRequirementRequest,\n options?: RequestExtras,\n ): Promise<IdentityVerificationRequirementResponse> {\n return this.request('PUT', '/identity-verifications/requirements', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Every requirement of the merchant. A caller limited to one shop sees the\n * merchant's and projects' requirements and its own shop's and payments'.\n * Needs permission to read connectors.\n *\n * `GET /identity-verifications/requirements`\n */\n async listRequirements(\n options?: RequestExtras,\n ): Promise<IdentityVerificationRequirementListResponse> {\n return this.request('GET', '/identity-verifications/requirements', options);\n }\n\n /**\n * The level inherits again. Payments already decided keep their decision.\n * Needs permission to edit connectors.\n *\n * `DELETE /identity-verifications/requirements`\n */\n async deleteRequirement(\n query: IdentityVerificationRequirementDeleteQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationRequirementDeleteResponse> {\n return this.request('DELETE', '/identity-verifications/requirements', {\n query: query as unknown as Query,\n ...options,\n });\n }\n\n /**\n * The requirement a new payment of the shop meets and the level it comes\n * from. Needs permission to read connectors.\n *\n * `GET /identity-verifications/requirements/effective`\n */\n async effectiveRequirement(\n profileId: string,\n options?: RequestExtras,\n ): Promise<EffectiveRequirementResponse> {\n return this.request('GET', '/identity-verifications/requirements/effective', {\n query: { profile_id: profileId },\n ...options,\n });\n }\n\n /**\n * Whether the payment needs an identity verification, as decided the first\n * time its checkout was drawn or it was confirmed. Not found until then.\n * Needs permission to read payments.\n *\n * `GET /identity-verifications/requirements/payments/{payment_id}`\n */\n async paymentDecision(\n paymentId: string,\n options?: RequestExtras,\n ): Promise<IdentityVerificationDecisionResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/requirements/payments/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/chunk-ZGMIHHGL.cjs","../src/resources/identityVerifications.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;AC4CO,IAAM,sBAAA,EAAN,MAA4B;AAAA,EACjC,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUlD,MAAM,MAAA,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AAC5B,MAAA;AACJ,IAAA;AACH,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYiD,EAAA;AACnC,IAAA;AACV,MAAA;AAC8E,MAAA;AAC9E,MAAA;AACF,IAAA;AACF,EAAA;AACF;ADjJ6F;AACA;AACA;AACA","file":"/tmp/publish-sdk-0496/dist/chunk-ZGMIHHGL.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport type {\n AmlEventListResponse,\n AmlMonitoringRequest,\n AvailableVerificationServicesQuery,\n AvailableVerificationServicesResponse,\n ConnectionCheckSettingRequest,\n ConnectionCheckSettingResponse,\n ConnectionCheckShopRequest,\n ConnectionCheckShopResponse,\n ConnectionChecksResponse,\n IdentityVerificationCreateRequest,\n IdentityVerificationFlowsQuery,\n IdentityVerificationFlowsResponse,\n IdentityVerificationListQuery,\n IdentityVerificationListResponse,\n IdentityVerificationResponse,\n IdentityVerificationRetrieveQuery,\n DeviceIntelligenceSettingRequest,\n DeviceIntelligenceSettingResponse,\n DeviceSignalResponse,\n EffectiveRequirementResponse,\n IdentityVerificationDecisionResponse,\n IdentityVerificationRequirementDeleteQuery,\n IdentityVerificationRequirementDeleteResponse,\n IdentityVerificationRequirementListResponse,\n IdentityVerificationRequirementRequest,\n IdentityVerificationRequirementResponse,\n OperationScreeningResponse,\n PaymentScreeningResponse,\n PaymentScreeningSettingRequest,\n PaymentScreeningSettingResponse,\n SubjectVerificationQuery,\n SubjectVerificationResponse,\n} from '../types';\nimport { csvQuery } from '../listQuery';\n\ntype Query = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Identity verification (KYC, KYB, AML screening, age, proof of address)\n * through a connected identity verification provider account, such as Didit.\n *\n * The provider account is a connector account of type `fiz_operations`. A test\n * verification runs on the account's test credentials only, a live one on its\n * live credentials only. Reading needs permission to read customers; starting\n * a verification needs permission to edit them.\n */\nexport class IdentityVerifications {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * Start a verification of a person or a business. The provider-side\n * workflow decides the checks. With a `return_url`, the provider's session\n * is created at once and its page returned in `verification_url`. With a\n * `payment_id` and no `return_url`, the payment's checkout starts it.\n *\n * `POST /identity-verifications`\n */\n async create(\n params: IdentityVerificationCreateRequest,\n options?: RequestExtras,\n ): Promise<IdentityVerificationResponse> {\n return this.request('POST', '/identity-verifications', { body: params, ...options });\n }\n\n /**\n * The merchant's verifications, newest first unless `sort_by` says\n * otherwise. A caller limited to one shop sees that shop's only. Several\n * `outcome`, `kind` or `merchant_connector_id` values match a verification\n * with any of them.\n *\n * `GET /identity-verifications`\n */\n async list(\n query?: IdentityVerificationListQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationListResponse> {\n return this.request('GET', '/identity-verifications', {\n query: csvQuery(query, ['outcome', 'kind', 'merchant_connector_id']),\n ...options,\n });\n }\n\n /**\n * Buyer verification services currently offered by connected identity\n * verification accounts serving the shop in the requested mode\n * (`test_mode`), together with the shop's default requirement and whether\n * the caller's role may require or skip verification on a payment.\n *\n * `GET /identity-verifications/available-services`\n */\n async availableServices(\n query: AvailableVerificationServicesQuery,\n options?: RequestExtras,\n ): Promise<AvailableVerificationServicesResponse> {\n return this.request('GET', '/identity-verifications/available-services', {\n query: query as unknown as Query,\n ...options,\n });\n }\n\n /**\n * One verification. With `force_sync: true`, a verification the provider\n * can still change (pending or in review, or a subject under ongoing AML\n * monitoring) is read from the provider first.\n *\n * `GET /identity-verifications/{verification_id}`\n */\n async retrieve(\n verificationId: string,\n query?: IdentityVerificationRetrieveQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationResponse> {\n return this.request('GET', `/identity-verifications/${encodeURIComponent(verificationId)}`, {\n query: query as Query | undefined,\n ...options,\n });\n }\n\n /**\n * A subject's latest verification in one environment (live unless\n * `test_mode: true`), with its checks, and the subject's verification under\n * ongoing AML monitoring. This is what risk rules read. `verification` and\n * `aml_monitoring` are `null` when the subject has none.\n *\n * `GET /identity-verifications/subjects/{subject_reference}`\n */\n async subject(\n subjectReference: string,\n query?: SubjectVerificationQuery,\n options?: RequestExtras,\n ): Promise<SubjectVerificationResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/subjects/${encodeURIComponent(subjectReference)}`,\n { query: query as Query | undefined, ...options },\n );\n }\n\n /**\n * The provider-side workflows an account can run in one environment, read\n * from the provider with that environment's credentials. Pass a `flow_id`\n * as `provider_flow_id` to {@link IdentityVerifications.create}.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/flows`\n */\n async flows(\n merchantConnectorId: string,\n query?: IdentityVerificationFlowsQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationFlowsResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/flows`,\n { query: query as Query | undefined, ...options },\n );\n }\n\n /**\n * Switch ongoing AML monitoring of a verification's subject. The provider\n * then keeps re-screening the subject against sanctions, PEP and\n * adverse-media lists, and every change it reports is recorded. Only a\n * verified person or business can be enrolled; monitoring can be switched\n * off at any time. Needs permission to edit customers.\n *\n * `POST /identity-verifications/{verification_id}/aml-monitoring`\n */\n async setAmlMonitoring(\n verificationId: string,\n params: AmlMonitoringRequest,\n options?: RequestExtras,\n ): Promise<IdentityVerificationResponse> {\n return this.request(\n 'POST',\n `/identity-verifications/${encodeURIComponent(verificationId)}/aml-monitoring`,\n { body: params, ...options },\n );\n }\n\n /**\n * Every change of the subject's AML result the provider reported while the\n * subject was monitored, newest first, at most 100.\n *\n * `GET /identity-verifications/{verification_id}/aml-events`\n */\n async amlEvents(verificationId: string, options?: RequestExtras): Promise<AmlEventListResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/${encodeURIComponent(verificationId)}/aml-events`,\n options,\n );\n }\n\n /**\n * A payment's screening by the transaction monitoring of the shop's\n * screening account. Recorded only: it never holds or refuses the payment.\n * Answers 404 when the payment has no screening. Needs permission to read\n * payments.\n *\n * `GET /identity-verifications/payment-screenings/{payment_id}`\n */\n async paymentScreening(\n paymentId: string,\n options?: RequestExtras,\n ): Promise<PaymentScreeningResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/payment-screenings/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n\n /**\n * Whether an account screens its shop's payments. Needs permission to read\n * connectors.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/payment-screening`\n */\n async paymentScreeningSetting(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<PaymentScreeningSettingResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/payment-screening`,\n options,\n );\n }\n\n /**\n * Switch screening of the account's shop's payments. Switched on, every\n * payment of the shop that succeeds from then on is screened shortly after,\n * in the payment's own environment. A shop has at most one screening\n * account. Needs permission to edit connectors.\n *\n * `PUT /identity-verifications/accounts/{merchant_connector_id}/payment-screening`\n */\n async updatePaymentScreeningSetting(\n merchantConnectorId: string,\n params: PaymentScreeningSettingRequest,\n options?: RequestExtras,\n ): Promise<PaymentScreeningSettingResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/payment-screening`,\n { body: params, ...options },\n );\n }\n\n /**\n * A refund's screening by the transaction monitoring of the shop's\n * screening account, for a provider that screens refunds. Recorded only: it\n * never holds or reverses the refund. Answers 404 when the refund has no\n * screening. Needs permission to read payments.\n *\n * `GET /identity-verifications/refund-screenings/{refund_id}`\n */\n async refundScreening(\n refundId: string,\n options?: RequestExtras,\n ): Promise<OperationScreeningResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/refund-screenings/${encodeURIComponent(refundId)}`,\n options,\n );\n }\n\n /**\n * A payout's screening by the transaction monitoring of the shop's\n * screening account, for a provider that screens payouts. Recorded only: it\n * never holds or reverses the payout. Answers 404 when the payout has no\n * screening. Needs permission to read payments.\n *\n * `GET /identity-verifications/payout-screenings/{payout_id}`\n */\n async payoutScreening(\n payoutId: string,\n options?: RequestExtras,\n ): Promise<OperationScreeningResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/payout-screenings/${encodeURIComponent(payoutId)}`,\n options,\n );\n }\n\n /**\n * Whether an account assesses its shop's checkout devices. Needs permission\n * to read connectors.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/device-intelligence`\n */\n async deviceIntelligenceSetting(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<DeviceIntelligenceSettingResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/device-intelligence`,\n options,\n );\n }\n\n /**\n * Switch device intelligence of the account's shop. Switched on, every\n * checkout of the shop assesses the buyer's device and records the\n * provider's signal on the payment; it never holds or refuses a payment.\n * Switching on is refused when the provider has not switched the feature on\n * for the account. A shop has at most one device intelligence account.\n * Needs permission to edit connectors.\n *\n * `PUT /identity-verifications/accounts/{merchant_connector_id}/device-intelligence`\n */\n async updateDeviceIntelligenceSetting(\n merchantConnectorId: string,\n params: DeviceIntelligenceSettingRequest,\n options?: RequestExtras,\n ): Promise<DeviceIntelligenceSettingResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/device-intelligence`,\n { body: params, ...options },\n );\n }\n\n /**\n * A payment's device signal from its checkout's device assessment. Recorded\n * only: it never holds or refuses the payment. Answers 404 when the payment's\n * checkout was not assessed. Needs permission to read payments.\n *\n * `GET /identity-verifications/device-signals/{payment_id}`\n */\n async deviceSignal(paymentId: string, options?: RequestExtras): Promise<DeviceSignalResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/device-signals/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n\n /**\n * Whether an account rates the buyer addresses of its shop's payments.\n * Needs permission to read connectors.\n *\n * `GET /identity-verifications/accounts/{merchant_connector_id}/connection-check`\n */\n async connectionCheckSetting(\n merchantConnectorId: string,\n options?: RequestExtras,\n ): Promise<ConnectionCheckSettingResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/connection-check`,\n options,\n );\n }\n\n /**\n * Switch the connection check of the account's shop. Switched on, the\n * buyer address of every payment the shop confirms is rated by the\n * provider, once per payment and address, before authorization. A\n * provider that classifies addresses reports the network classes it found\n * (hosting, Tor, VPN, proxy, residential proxy), and each counts as that\n * network class in the buyer risk score and the buyer blocklist. For a\n * provider that only rates, a `high` or `very_high` rating counts as the\n * `proxy` class. A check never holds or refuses a payment by itself. Switching on asks the\n * provider nothing, since every check is billed. A shop has one\n * connection check account per provider: switching on a second of the\n * same provider, or a second account checking buyer emails, is refused\n * with `IR_16`. Every change is written to the merchant's audit log. Needs\n * permission to edit connectors.\n *\n * `PUT /identity-verifications/accounts/{merchant_connector_id}/connection-check`\n */\n async updateConnectionCheckSetting(\n merchantConnectorId: string,\n params: ConnectionCheckSettingRequest,\n options?: RequestExtras,\n ): Promise<ConnectionCheckSettingResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/connection-check`,\n { body: params, ...options },\n );\n }\n\n /**\n * A shop's connection check accounts, the first switched on first, and how\n * their results combine. A shop that never set a combination combines with\n * `any`. Needs permission to read connectors.\n *\n * `GET /identity-verifications/shops/{profile_id}/connection-check`\n */\n async connectionCheckShop(\n profileId: string,\n options?: RequestExtras,\n ): Promise<ConnectionCheckShopResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/shops/${encodeURIComponent(profileId)}/connection-check`,\n options,\n );\n }\n\n /**\n * Set how the shop's connection check providers combine (see\n * `ConnectionCheckCombination`). The change is written to the merchant's\n * audit log. Needs permission to edit connectors, and is refused (403) to a\n * role that sees only some connector accounts.\n *\n * `PUT /identity-verifications/shops/{profile_id}/connection-check`\n */\n async updateConnectionCheckShop(\n profileId: string,\n params: ConnectionCheckShopRequest,\n options?: RequestExtras,\n ): Promise<ConnectionCheckShopResponse> {\n return this.request(\n 'PUT',\n `/identity-verifications/shops/${encodeURIComponent(profileId)}/connection-check`,\n { body: params, ...options },\n );\n }\n\n /**\n * A payment's connection checks, newest first; empty when none ran. Each\n * check carries the network classes it counts as, and, from a provider that\n * classifies addresses, the services, infrastructure and risk tags it\n * named, and which account (`merchant_connector_id`) ran it.\n * `combination` and `decisions` say how the shop's rule combined the\n * providers' results for each address. `email_checks` lists the recorded email checks of the payment's\n * buyer: rating, flags and times, never the address; reading them starts no\n * check. Needs permission to read payments.\n *\n * `GET /identity-verifications/connection-checks/{payment_id}`\n */\n async connectionChecks(\n paymentId: string,\n options?: RequestExtras,\n ): Promise<ConnectionChecksResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/connection-checks/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n\n /**\n * Set which payments need an identity verification at one level: the\n * merchant, a project, a shop, a checkout template or one payment. `off`\n * lifts a wider requirement. Without `payment_method_types` or\n * `merchant_connector_ids` the checkout shows the identity step before any\n * payment option; with them, only when the buyer picks a matching method.\n * A payment is decided once, so a later change does not change it.\n * Merchant, project and checkout template requirements need a\n * merchant-level caller; a shop on a checkout template takes its\n * requirement from the template. Needs permission to edit connectors.\n *\n * `PUT /identity-verifications/requirements`\n */\n async putRequirement(\n params: IdentityVerificationRequirementRequest,\n options?: RequestExtras,\n ): Promise<IdentityVerificationRequirementResponse> {\n return this.request('PUT', '/identity-verifications/requirements', {\n body: params,\n ...options,\n });\n }\n\n /**\n * Every requirement of the merchant. A caller limited to one shop sees the\n * merchant's and projects' requirements and its own shop's and payments'.\n * Needs permission to read connectors.\n *\n * `GET /identity-verifications/requirements`\n */\n async listRequirements(\n options?: RequestExtras,\n ): Promise<IdentityVerificationRequirementListResponse> {\n return this.request('GET', '/identity-verifications/requirements', options);\n }\n\n /**\n * The level inherits again. Payments already decided keep their decision.\n * Needs permission to edit connectors.\n *\n * `DELETE /identity-verifications/requirements`\n */\n async deleteRequirement(\n query: IdentityVerificationRequirementDeleteQuery,\n options?: RequestExtras,\n ): Promise<IdentityVerificationRequirementDeleteResponse> {\n return this.request('DELETE', '/identity-verifications/requirements', {\n query: query as unknown as Query,\n ...options,\n });\n }\n\n /**\n * The requirement a new payment of the shop meets and the level it comes\n * from. Needs permission to read connectors.\n *\n * `GET /identity-verifications/requirements/effective`\n */\n async effectiveRequirement(\n profileId: string,\n options?: RequestExtras,\n ): Promise<EffectiveRequirementResponse> {\n return this.request('GET', '/identity-verifications/requirements/effective', {\n query: { profile_id: profileId },\n ...options,\n });\n }\n\n /**\n * Whether the payment needs an identity verification, as decided the first\n * time its checkout was drawn or it was confirmed. Not found until then.\n * Needs permission to read payments.\n *\n * `GET /identity-verifications/requirements/payments/{payment_id}`\n */\n async paymentDecision(\n paymentId: string,\n options?: RequestExtras,\n ): Promise<IdentityVerificationDecisionResponse> {\n return this.request(\n 'GET',\n `/identity-verifications/requirements/payments/${encodeURIComponent(paymentId)}`,\n options,\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/chunk-ZKPVUCQV.cjs","../src/resources/users.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACsFO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAA0E;AACrF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,cAAA,EAAgB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC9D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAA8C;AACzD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,cAAA,EAAgB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC9D;AAAA;AAAA,EAGA,MAAM,kBAAA,CAAA,EAA+D;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,uBAAuB,CAAA;AAAA,EACpD;AAAA;AAAA,E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AA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuB+B,EAAA;AACsC,IAAA;AAC3D,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADhPqF;AACA;AACA;AACA","file":"/tmp/pub0495/delopay-typescript-sdk/dist/chunk-ZKPVUCQV.cjs","sourcesContent":[null,"import type {\n AdminRevokeUserSessionsResponse,\n RolePaymentVisibilityPolicy,\n SignUpRequest,\n SignUpWithMerchantRequest,\n SignInRequest,\n DashboardOAuthProvider,\n DashboardOAuthProvidersResponse,\n DashboardOAuthStartRequest,\n DashboardOAuthLinkStartRequest,\n DashboardOAuthStartResponse,\n DashboardOAuthCompleteRequest,\n DashboardOAuthDisconnectRequest,\n AuthResponse,\n UserResponse,\n ChangePasswordRequest,\n DeleteAccountRequest,\n ForgotPasswordRequest,\n ResetPasswordRequest,\n SwitchMerchantRequest,\n SwitchProfileRequest,\n ImpersonateEmployeeRequest,\n InviteUsersRequest,\n InviteUsersResponse,\n AddUserRequest,\n AddUserResponse,\n UpdateUserRoleRequest,\n DeleteUserRoleRequest,\n ChangeMemberScopeRequest,\n ChangeMemberScopeResponse,\n UpdateMemberExpiryRequest,\n UpdateMemberExpiryResponse,\n GetUserRoleDetailsResponse,\n TeamMemberDetails,\n ReInviteUserRequest,\n ReInviteUserResponse,\n InviteLinkResponse,\n TeamMemberContactProfileResponse,\n UpdateTeamMemberContactsRequest,\n WriteTeamMemberNoteRequest,\n DeleteTeamMemberNoteRequest,\n MemberMethodAccessResponse,\n UpdateMemberMethodAccessRequest,\n MemberPermissionOverridesResponse,\n PermissionOverride,\n UpdateMemberPermissionOverridesRequest,\n ResetTeamMemberPasswordRequest,\n ResetTeamMemberPasswordResponse,\n TotpResponse,\n RecoveryCodesResponse,\n PhoneOtpRequest,\n PhoneOtpResponse,\n PhoneOtpVerifyRequest,\n PhoneOtpVerifyResponse,\n UpdateMetadataRequest,\n SetUserPreferenceRequest,\n UserPreferenceResponse,\n DashboardTourResponse,\n UpdateDashboardTourRequest,\n UpdateUserDetailsRequest,\n FromEmailRequest,\n TokenResponse,\n UserInvitation,\n AcceptInvitationsPreAuthRequest,\n VerifyTotpRequest,\n Terminate2faQueryParams,\n ListInvitableRolesParams,\n ListUsersInLineageParams,\n UserInLineage,\n LoginHistoryParams,\n LoginHistoryResponse,\n UserSessionListResponse,\n UserSessionRevokeResponse,\n ParentGroupInfo,\n RoleConnectorGrant,\n UpdateRoleConnectorGrantParams,\n CreateInvitationLinkRequest,\n CreateInvitationLinkResponse,\n InvitationLinkResponse,\n InvitationLinkPreviewResponse,\n ListInvitationLinksResponse,\n UpdateInvitationLinkRequest,\n JoinInvitationLinkResponse,\n JoinInvitationLinkPreAuthResponse,\n RegisterThroughInvitationLinkRequest,\n RegisterThroughInvitationLinkResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\nimport { csvQuery } from '../listQuery';\n\nexport class Users {\n constructor(private readonly request: RequestFn) {}\n\n async signUp(params: SignUpRequest | SignUpWithMerchantRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/signup', { body: params });\n }\n\n async signIn(params: SignInRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/signin', { body: params });\n }\n\n /** Providers currently configured for dashboard sign-in. */\n async listOAuthProviders(): Promise<DashboardOAuthProvidersResponse> {\n return this.request('GET', '/user/oauth/providers');\n }\n\n /** Current account's links; disabled providers remain visible. */\n async listLinkedOAuthProviders(): Promise<DashboardOAuthProvidersResponse> {\n return this.request('GET', '/user/oauth/linked');\n }\n\n async startOAuthSignIn(params: DashboardOAuthStartRequest): Promise<DashboardOAuthStartResponse> {\n return this.request('POST', '/user/oauth/start', { body: params });\n }\n\n async startOAuthLink(\n params: DashboardOAuthLinkStartRequest,\n ): Promise<DashboardOAuthStartResponse> {\n return this.request('POST', '/user/oauth/link/start', { body: params });\n }\n\n async completeOAuthSignIn(params: DashboardOAuthCompleteRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/oauth/complete', { body: params });\n }\n\n async completeOAuthLink(params: DashboardOAuthCompleteRequest): Promise<void> {\n return this.request('POST', '/user/oauth/link/complete', { body: params });\n }\n\n async disconnectOAuthProvider(\n provider: DashboardOAuthProvider,\n params: DashboardOAuthDisconnectRequest,\n ): Promise<void> {\n return this.request('DELETE', `/user/oauth/linked/${encodeURIComponent(provider)}`, {\n body: params,\n });\n }\n\n async signOut(): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/signout');\n }\n\n /**\n * Sliding-session refresh: exchange the current (still-valid) login JWT\n * for a fresh one with the same claims and a full lifetime. The backend\n * keeps the session's identity (`jti`), slides `user_session.expires_at`\n * forward and re-sets the `login_token` cookie.\n *\n * Requires a token backed by a revocable session (a `jti` claim). Signin\n * and switch-merchant/-profile tokens have one; **session-less tokens do\n * not and are rejected with 400** — team-impersonation tokens are the\n * case in practice, and they are deliberately tab-scoped and\n * time-bounded rather than renewable. A 400 here is not a dead session:\n * the token remains valid for ordinary calls, it simply cannot slide.\n *\n * Rejected (401) for expired, blacklisted or revoked tokens — refresh can\n * only extend a session that is still alive. Rate-limited server-side\n * (429) to one mint per session per minute; treat a 429 as \"still fresh\n * enough\", not as an error.\n *\n * The returned token is NOT applied to this client automatically — pass\n * it to `setJwtToken()`, or use {@link Delopay.refreshSession} which does\n * both.\n *\n * `POST /user/token/refresh`. Requires a logged-in JWT.\n */\n async refreshToken(): Promise<TokenResponse> {\n return this.request('POST', '/user/token/refresh');\n }\n\n /**\n * Paginated login history for the authenticated user -- IP, User-Agent,\n * country / city / lat-lon (when GeoIP is enabled), success and failure\n * events with their reasons. Strictly scoped to the JWT subject; a user\n * can only see their own activity.\n *\n * `GET /user/me/login-activity`. Requires a logged-in JWT.\n *\n * Returns an empty page when a Delopay admin is impersonating a merchant,\n * so the admin's metadata is not exposed inside the merchant dashboard.\n *\n * Newest first unless `sort_by` says otherwise. Several `event_type` or\n * `auth_method` values match an event with any of them.\n */\n async listLoginActivity(params?: LoginHistoryParams): Promise<LoginHistoryResponse> {\n if (params === undefined) {\n return this.request('GET', '/user/me/login-activity');\n }\n return this.request('GET', '/user/me/login-activity', {\n query: csvQuery(params, ['event_type', 'auth_method']),\n });\n }\n\n /**\n * List the authenticated user's currently-active dashboard sessions\n * (one row per minted login JWT that hasn't been revoked or expired).\n *\n * The row matching the JWT making this call has `is_current: true`,\n * which is what lets the dashboard render a \"This device\" tag.\n *\n * `GET /user/me/sessions`. Requires a logged-in JWT. Returns an empty\n * list when a Delopay admin is impersonating a non-admin merchant\n * (same guard as `listLoginActivity`).\n */\n async listActiveSessions(): Promise<UserSessionListResponse> {\n return this.request('GET', '/user/me/sessions');\n }\n\n /**\n * Disconnect one of the authenticated user's sessions. The matching\n * JWT is rejected on its next request — fast-path via Redis, fall back\n * to the persistent `revoked_at` column.\n *\n * Idempotent: revoking an already-revoked or unknown id returns 404,\n * which the caller can treat as success for retry purposes. Revoking\n * a session id that belongs to a different user also returns 404 —\n * the response intentionally doesn't leak whether the id exists.\n *\n * `POST /user/me/sessions/{sessionId}/revoke`.\n */\n async revokeSession(sessionId: string): Promise<UserSessionRevokeResponse> {\n return this.request('POST', `/user/me/sessions/${encodeURIComponent(sessionId)}/revoke`);\n }\n\n async getDetails(): Promise<UserResponse> {\n return this.request('GET', '/user');\n }\n\n async update(params: UpdateUserDetailsRequest, options?: RequestExtras): Promise<UserResponse> {\n return this.request('POST', '/user/update', { body: params, ...options });\n }\n\n /**\n * Read a preference owned by the logged-in user. Missing keys return value null.\n * Works in both dashboards with a login JWT; API keys and impersonation are rejected.\n * Keys contain 1–128 ASCII letters, digits, dots, underscores or hyphens.\n * Unknown widget IDs and their order are preserved; consumers choose what to render.\n */\n async getPreference(key: string): Promise<UserPreferenceResponse> {\n return this.request('GET', `/user/preferences/${encodeURIComponent(key)}`);\n }\n\n /**\n * Save one own preference: omitted/false if_absent replaces it (last write wins);\n * true preserves an existing object and returns the winner. The JSON object is\n * limited to 16 KiB of compact UTF-8 JSON. For layouts, use one namespaced key\n * per page (e.g. merchant.analytics.payments) and ordered widget IDs per region,\n * without titles, fetched metrics or rendered state. Requires a login JWT.\n */\n async setPreference(\n key: string,\n params: SetUserPreferenceRequest,\n ): Promise<UserPreferenceResponse> {\n return this.request('PUT', `/user/preferences/${encodeURIComponent(key)}`, { body: params });\n }\n\n /**\n * Initialize only a missing preference. Existing objects, including a client\n * reset marker saved with setPreference (for example { reset: true }), win. Render/cache the returned value, which may differ from\n * the proposed value. Safe for migration retries after a lost response.\n * Explicit edits and reset markers use setPreference with no if_absent flag.\n * DELETE removes the key; it leaves no marker and permits initialization again.\n * Requires a login JWT and the same key/object limits as setPreference.\n */\n async initializePreference(\n key: string,\n value: Record<string, unknown>,\n ): Promise<UserPreferenceResponse> {\n return this.request('PUT', `/user/preferences/${encodeURIComponent(key)}`, {\n body: { value, if_absent: true },\n });\n }\n\n /**\n * Remove an own preference. Idempotent; returns value null, without storing a\n * tombstone. Later initialization may import a value again. To suppress legacy\n * migration after a reset, save a client reset-marker object with setPreference.\n * Login JWT only.\n */\n async deletePreference(key: string): Promise<UserPreferenceResponse> {\n return this.request('DELETE', `/user/preferences/${encodeURIComponent(key)}`);\n }\n\n /**\n * The caller's guided dashboard tour in the session's scope: their progress,\n * whether to offer the tour now, and their current and acknowledged access.\n * Progress is kept per merchant, or per shop for a user whose role is limited\n * to shops; the scope comes from the session. Login JWT only.\n *\n * `GET /user/dashboard-tour`\n */\n async getDashboardTour(): Promise<DashboardTourResponse> {\n return this.request('GET', '/user/dashboard-tour');\n }\n\n /**\n * Save the caller's tour progress in the session's scope and return the same\n * body as {@link Users.getDashboardTour}. `completed` and `skipped` are added\n * to the stored ones unless `restart` is set; `active`, `baseline` and\n * `offer_handled_at` replace them. `acknowledge_access: true` stores the\n * access the server computes as acknowledged. Unknown fields, malformed step\n * ids or baselines, and more than 300 steps per list are refused; so is any\n * save while acting as another user (`read_only`). Login JWT only.\n *\n * `PUT /user/dashboard-tour`\n */\n async updateDashboardTour(params: UpdateDashboardTourRequest): Promise<DashboardTourResponse> {\n return this.request('PUT', '/user/dashboard-tour', { body: params });\n }\n\n /**\n * RFC 7396 merge-patch the caller's own user-scoped metadata bucket.\n * Returns the full user details, so callers can refresh their context\n * without a second fetch.\n *\n * `PATCH /user/metadata`\n */\n async updateMetadata(params: UpdateMetadataRequest): Promise<UserResponse> {\n return this.request('PATCH', '/user/metadata', { body: params });\n }\n\n /**\n * RFC 7396 merge-patch the merchant-scoped metadata bucket shared by\n * every dashboard user of the merchant. Same response contract as\n * {@link Users.updateMetadata}.\n *\n * `PATCH /user/merchant/metadata`\n */\n async updateMerchantMetadata(params: UpdateMetadataRequest): Promise<UserResponse> {\n return this.request('PATCH', '/user/merchant/metadata', { body: params });\n }\n\n /**\n * Permanently delete the caller's account. Requires a fresh password\n * (and a current 6-digit TOTP code if the user has TOTP enrolled). On\n * success all role assignments are removed, the user record is\n * deactivated, and all in-flight sessions are invalidated. The caller\n * should clear local credentials and route to the login page.\n *\n * Returns `InvalidDeleteOperation` when the caller is the sole\n * owner-level admin of an org / merchant / profile -- they must\n * transfer ownership first.\n */\n async deleteAccount(params: DeleteAccountRequest): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/user/account', { body: params });\n }\n\n async changePassword(params: ChangePasswordRequest): Promise<UserResponse> {\n return this.request('POST', '/user/change-password', { body: params });\n }\n\n async rotatePassword(params: ResetPasswordRequest): Promise<UserResponse> {\n return this.request('POST', '/user/rotate-password', { body: params });\n }\n\n async forgotPassword(params: ForgotPasswordRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/forgot-password', { body: params });\n }\n\n /**\n * Commit a password reset.\n *\n * The caller is responsible for obtaining a `SinglePurposeToken` with\n * `purpose: reset_password` via the email-token exchange + TOTP flow\n * (see `fromEmail`, `beginTotp`, `updateTotp`/`verifyTotp`,\n * `generateRecoveryCodes`, `terminate2fa`) and setting it on the client\n * via `setJwtToken` before calling this method. `body.token` must still\n * be the original `EmailToken` from the reset-link URL — the handler\n * decodes it a second time to find the user.\n */\n async resetPassword(params: ResetPasswordRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/reset-password', { body: params });\n }\n\n /**\n * Exchange an email-link token (`EmailToken`) for a single-purpose JWT\n * that drives the next step of the flow (TOTP, verify email, accept\n * invitation, etc.). No authentication required.\n *\n * The `token_type` in the response tells you which step to run next.\n */\n async fromEmail(params: FromEmailRequest): Promise<TokenResponse> {\n return this.request('POST', '/user/from-email', { body: params });\n }\n\n async verifyEmail(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/verify-email', { body: params });\n }\n\n async sendVerificationEmail(params: ForgotPasswordRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/verify-email-request', { body: params });\n }\n\n async createMerchant(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/create-merchant', { body: params });\n }\n\n async switchMerchant(params: SwitchMerchantRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/switch/merchant', { body: params });\n }\n\n async switchProfile(params: SwitchProfileRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/switch/profile', { body: params });\n }\n\n async listMerchants(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/list/merchant');\n }\n\n async listProfiles(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/list/profile');\n }\n\n /**\n * Invite team members by email. `POST /user/employees/invite`\n *\n * `project_ids` grants a shop-level role on every shop of each project, once\n * the invitation is accepted. A refusal of `project_ids` is a `UR_23` error whose `data.reason` is one of\n * `project_not_in_merchant`, `role_not_grantable_on_project`,\n * `shop_in_granted_project`, `project_already_granted` or\n * `project_grant_requires_merchant_level`.\n */\n async inviteUsers(params: InviteUsersRequest[]): Promise<InviteUsersResponse[]> {\n return this.request('POST', '/user/employees/invite', { body: params });\n }\n\n /**\n * Add a team member directly, without sending an invite email.\n * `POST /user/employees/add`\n *\n * Unlike `inviteUsers`, the account is active immediately and you hand over\n * the credentials yourself. Omit `password` to have the server generate one\n * and return it once in `password` on the response; supply your own and it is\n * not echoed back. Either way the member must change it on first sign-in.\n *\n * Same role rules as invite: you cannot grant a role above your own, and a\n * shop-scoped caller can only target their own shop. `project_ids` grants a\n * shop-level role on every shop of each project. A refusal of `project_ids` is a `UR_23` error whose `data.reason` is one of\n * `project_not_in_merchant`, `role_not_grantable_on_project`,\n * `shop_in_granted_project`, `project_already_granted` or\n * `project_grant_requires_merchant_level`.\n */\n async addUser(params: AddUserRequest): Promise<AddUserResponse> {\n return this.request('POST', '/user/employees/add', { body: params });\n }\n\n /**\n * Impersonate one of your own team members — `POST /user/employees/impersonate`.\n *\n * Mints a session token **as** the given member, so the dashboard renders\n * exactly what they see (useful for support and role verification). The\n * caller needs the *Impersonation* permission, and the member's role must\n * either rank **strictly below** the caller's\n * (`Profile < Merchant < Organization`), or sit at the caller's own\n * merchant-or-higher level and be **strictly narrower** than the caller's\n * role (grant nothing the caller's role does not, and less in total). The\n * server rejects self-impersonation and cross-merchant targets.\n * `MinimalRoleInfo.can_impersonate` in `listUsersInLineage` answers the same rule\n * per binding, so a UI can offer the action only where it will succeed.\n *\n * A role refusal is a `UR_33` error whose `data.reason` names the rule:\n * `impersonation_target_not_narrower` (the member's role is above, equal to,\n * or not contained in the caller's), or `act_as_token_cannot_impersonate`\n * (the caller is itself signed in as another member — start from your own\n * session).\n *\n * The returned token is tab-scoped by design: open it in a fresh tab (e.g.\n * `/auth/impersonate?token=…`) rather than replacing the caller's own\n * session. No auth cookie is set on the response.\n */\n async impersonateEmployee(params: ImpersonateEmployeeRequest): Promise<TokenResponse> {\n return this.request('POST', '/user/employees/impersonate', { body: params });\n }\n\n async acceptInvitation(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/employees/invite/accept', { body: params });\n }\n\n /**\n * Accept invitations before a session exists.\n *\n * Sign-in issues a `token_type: \"accept_invite\"` step token instead of a\n * session when the caller has no active role yet — every role is still an\n * unaccepted invitation. With that token set via `setJwtToken`, pass the\n * entities from `listInvitations` here; the response is the next step of\n * the sign-in flow (`user_info` for the session, or `force_set_password`\n * first). Rejected when none of the entities carries a pending invitation.\n */\n async acceptInvitationsPreAuth(params: AcceptInvitationsPreAuthRequest): Promise<TokenResponse> {\n return this.request('POST', '/user/employees/invite/accept/pre-auth', { body: params });\n }\n\n /**\n * Accept an invitation via the email-link flow.\n *\n * Caller must already hold a `SinglePurposeToken` with\n * `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any\n * required TOTP step) and have set it on the client via `setJwtToken`.\n * `body.token` must still be the original `EmailToken` from the\n * invite-link URL — the handler decodes it a second time to find the\n * invitee and the entity lineage.\n */\n async acceptInviteFromEmail(params: FromEmailRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/accept-invite-from-email', { body: params });\n }\n\n /**\n * Start TOTP setup (or no-op if already set).\n *\n * Returns the QR-code payload when the user has no TOTP configured yet;\n * returns `{ secret: null }` when the user is already set up (caller\n * should then prompt for a 6-digit code and call `verifyTotp`).\n *\n * Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async beginTotp(): Promise<TotpResponse> {\n return this.request('GET', '/user/2fa/totp/begin');\n }\n\n /**\n * Verify a 6-digit TOTP code for a user whose TOTP is already set up.\n * Marks the code as used in Redis so subsequent flow steps can advance.\n *\n * Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async verifyTotp(params: VerifyTotpRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/2fa/totp/verify', { body: params });\n }\n\n async resetTotp(): Promise<Record<string, unknown>> {\n return this.request('GET', '/user/2fa/totp/reset');\n }\n\n async generateRecoveryCodes(): Promise<RecoveryCodesResponse> {\n return this.request('GET', '/user/2fa/recovery-code/generate');\n }\n\n async verifyRecoveryCode(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/2fa/recovery-code/verify', { body: params });\n }\n\n async sendPhoneOtp(params: PhoneOtpRequest): Promise<PhoneOtpResponse> {\n return this.request('POST', '/user/phone/send-otp', { body: params });\n }\n\n async verifyPhoneOtp(params: PhoneOtpVerifyRequest): Promise<PhoneOtpVerifyResponse> {\n return this.request('POST', '/user/phone/verify-otp', { body: params });\n }\n\n /**\n * List all roles visible to the caller (predefined + custom).\n *\n * `GET /user/role/list`. With `groups: true` the response is the\n * parent-groups shape: `[{role_id, role_name, entity_type, role_scope,\n * parent_groups: [{name, description, scopes}]}]`; without it, the\n * deprecated flat `groups` shape.\n *\n * Each role carries `managed_centrally: true` when it is a shared role the\n * platform offers this merchant: it can be assigned, but `updateRole`,\n * `deleteRole` and `updateRoleConnectors` refuse it with `UR_71`\n * (`data.reason: 'managed_centrally'`).\n */\n async listRoles(params?: {\n groups?: boolean;\n entity_type?: string;\n }): Promise<Record<string, unknown>[]> {\n if (params === undefined) {\n return this.request('GET', '/user/role/list');\n }\n return this.request('GET', '/user/role/list', {\n query: { groups: params.groups, entity_type: params.entity_type },\n });\n }\n\n /**\n * The roles a member holds, one entry per role. `POST /user/employees`\n *\n * A project-level role carries `project`: it applies to every shop of that\n * project.\n */\n async listUserRoles(params?: Record<string, unknown>): Promise<GetUserRoleDetailsResponse[]> {\n return this.request('POST', '/user/employees', { body: params });\n }\n\n /**\n * The current role's explicit payment-data policy, or `null` when the role\n * retains its pre-control access. A dashboard hint: every API response\n * enforces the same policy on its own. `GET /user/role/payment-visibility`\n */\n async getRolePaymentVisibility(): Promise<RolePaymentVisibilityPolicy | null> {\n return this.request('GET', '/user/role/payment-visibility');\n }\n\n /**\n * Change a team member's role. `POST /user/employees/update-role`\n *\n * Pass `profile_id` to name the shop when managing a shop's team as a\n * merchant-scoped admin — see {@link UpdateUserRoleRequest.profile_id}.\n */\n async updateUserRole(params: UpdateUserRoleRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/employees/update-role', { body: params });\n }\n\n /**\n * Remove a team member. `DELETE /user/employees/delete`\n *\n * Pass `profile_id` to name the shop when managing a shop's team as a\n * merchant-scoped admin — see {@link DeleteUserRoleRequest.profile_id}. Pass\n * `project_id` instead to remove a project-level role, which the member then\n * loses on every shop of the project.\n */\n async deleteUserRole(params: DeleteUserRoleRequest): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/user/employees/delete', { body: params });\n }\n\n /**\n * Move a team member between a merchant-level role and shop-level roles.\n * `POST /user/employees/change-scope`\n *\n * A merchant-level `role_id` takes no `profile_ids` or `project_ids`; a\n * shop-level one needs at least one shop or project. A project grants the\n * role on every shop of the project, including shops added later. Every\n * earlier merchant-, project- and shop-level binding of the member in your\n * merchant is replaced. When the change takes a scope away, the\n * member's sessions end (`sessions_revoked: true`). Needs a caller at\n * merchant level or above. A refusal is a `UR_23` error whose `data.reason`\n * names the rule; an unknown `role_id` is `UR_22`. The project rules add the\n * reasons `project_not_in_merchant`, `role_not_grantable_on_project`,\n * `shop_in_granted_project`, `project_already_granted` and\n * `project_grant_requires_merchant_level`.\n */\n async changeMemberScope(params: ChangeMemberScopeRequest): Promise<ChangeMemberScopeResponse> {\n return this.request('POST', '/user/employees/change-scope', { body: params });\n }\n\n /**\n * Set or clear when a team member's access to your merchant ends.\n * `POST /user/employees/update-expiry`\n *\n * Every merchant-, shop- and project-level role the member holds in your\n * merchant, accepted or still an invitation, gets the same `expires_at`.\n * From that instant the roles grant nothing: every request, sign-in, token\n * refresh and switch made with them is refused, and `listUsersInLineage`\n * reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove\n * the expiry. A shop-level caller reaches only members whose every role is\n * on its own shop. A refusal is a `UR_70` error whose `data` is an\n * {@link AccessExpiryRefusal}.\n */\n async updateMemberExpiry(params: UpdateMemberExpiryRequest): Promise<UpdateMemberExpiryResponse> {\n return this.request('POST', '/user/employees/update-expiry', { body: params });\n }\n\n /**\n * Create a reusable team invitation link. `POST /user/employees/invitation-links`\n *\n * Each person who joins through it gets `role_id` on the target, up to\n * `max_uses` people, until `expires_at`, and only from the networks and\n * countries `restrictions` allow. Creating it grants nothing and sends\n * nothing. You may grant only what you could invite with; a shop-level\n * caller only for its own shop. The secret to share comes back once, in\n * `token`. A refusal is a `UR_72` error whose `data` is an `InvitationLinkRefusal`.\n */\n async createInvitationLink(\n params: CreateInvitationLinkRequest,\n ): Promise<CreateInvitationLinkResponse> {\n return this.request('POST', '/user/employees/invitation-links', { body: params });\n }\n\n /**\n * Your merchant's team invitation links, newest first, with their usage and\n * status. A shop-level caller sees its own shop's.\n * `GET /user/employees/invitation-links`\n */\n async listInvitationLinks(): Promise<ListInvitationLinksResponse> {\n return this.request('GET', '/user/employees/invitation-links');\n }\n\n /**\n * Change a link's name, limit, expiry, access expiry or restrictions.\n * `PUT /user/employees/invitation-links/{link_id}`\n *\n * Send the whole policy and the `modified_at` you read as `version`. Saving\n * also reconfirms the link under your authority.\n */\n async updateInvitationLink(\n linkId: string,\n params: UpdateInvitationLinkRequest,\n ): Promise<InvitationLinkResponse> {\n return this.request('PUT', `/user/employees/invitation-links/${encodeURIComponent(linkId)}`, {\n body: params,\n });\n }\n\n /**\n * Revoke a link: nobody joins through it from now on, and who already\n * joined keeps their access. Revoking a revoked link answers it unchanged.\n * `POST /user/employees/invitation-links/{link_id}/revoke`\n */\n async revokeInvitationLink(linkId: string): Promise<InvitationLinkResponse> {\n return this.request(\n 'POST',\n `/user/employees/invitation-links/${encodeURIComponent(linkId)}/revoke`,\n );\n }\n\n /**\n * What a shared link offers, before joining. No authentication; grants\n * nothing. `POST /user/invitation-link/preview`\n */\n async previewInvitationLink(token: string): Promise<InvitationLinkPreviewResponse> {\n return this.request('POST', '/user/invitation-link/preview', { body: { token } });\n }\n\n /**\n * Join through a shared link from a signed-in session.\n * `POST /user/invitation-link/join`\n *\n * Needs a verified email address. Joining twice answers `already_member`\n * and uses no second place.\n */\n async joinInvitationLink(token: string): Promise<JoinInvitationLinkResponse> {\n return this.request('POST', '/user/invitation-link/join', { body: { token } });\n }\n\n /**\n * Join through a shared link during sign-in, for someone who holds no access\n * yet: call it with the `accept_invite` single-purpose token set on the\n * client. Answers the token for the next sign-in step.\n * `POST /user/invitation-link/join/pre-auth`\n */\n async joinInvitationLinkPreAuth(token: string): Promise<JoinInvitationLinkPreAuthResponse> {\n return this.request('POST', '/user/invitation-link/join/pre-auth', { body: { token } });\n }\n\n /**\n * Make an account through a shared link, for someone who has none. No\n * authentication. The account holds no access: its owner verifies the\n * address from the email this sends, signs in and joins.\n * `POST /user/invitation-link/register`\n */\n async registerThroughInvitationLink(\n params: RegisterThroughInvitationLinkRequest,\n ): Promise<RegisterThroughInvitationLinkResponse> {\n return this.request('POST', '/user/invitation-link/register', { body: params });\n }\n\n /**\n * One member of your merchant, with the person fields the member list\n * omits. `GET /user/employees/{user_id}/details`\n *\n * Answers only for a member `listUsersInLineage` shows you. Any other id,\n * unknown or not yours, is a 404 `UR_68` with `data.reason:\n * 'member_not_found'`.\n */\n async getTeamMemberDetails(userId: string): Promise<TeamMemberDetails> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/details`);\n }\n\n /**\n * Supplied contacts and internal notes for a visible member in the current\n * merchant. Requires a session JWT and Users read permission. The returned\n * revision is required even for the first write; can_edit states write access.\n * An unknown or invisible member is refused with the same 404 UR_68 response.\n */\n async getTeamMemberContactProfile(userId: string): Promise<TeamMemberContactProfileResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/contact-profile`);\n }\n\n /**\n * Replace the supplied contacts, preserving notes and login/recovery identity.\n * Omitted optional contact fields are cleared. Requires Users write permission\n * and authority over the whole member. Send the exact last-read revision.\n * On a changed refusal, keep the draft and read again before resubmitting.\n * Structured UR_68 data is a TeamMemberRefusal with reason contact_profile.\n */\n async updateTeamMemberContacts(\n userId: string,\n params: UpdateTeamMemberContactsRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request('PUT', `/user/employees/${encodeURIComponent(userId)}/contact-profile`, {\n body: params,\n });\n }\n\n /** Create a plain-text note with server-authored attribution; requires the current revision. */\n async createTeamMemberNote(\n userId: string,\n params: WriteTeamMemberNoteRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request('POST', `/user/employees/${encodeURIComponent(userId)}/notes`, {\n body: params,\n });\n }\n\n /** Edit one note, retaining its original author and creation time. Uses the same write scope. */\n async updateTeamMemberNote(\n userId: string,\n noteId: string,\n params: WriteTeamMemberNoteRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request(\n 'PUT',\n `/user/employees/${encodeURIComponent(userId)}/notes/${encodeURIComponent(noteId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete only the named member note. The exact profile revision is sent in the\n * query; contacts and all other notes remain. Returns the new profile revision.\n */\n async deleteTeamMemberNote(\n userId: string,\n noteId: string,\n params: DeleteTeamMemberNoteRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request(\n 'DELETE',\n `/user/employees/${encodeURIComponent(userId)}/notes/${encodeURIComponent(noteId)}`,\n { query: { expected_revision: params.expected_revision } },\n );\n }\n\n /**\n * Replace a team member's password with a temporary one, returned once.\n * `POST /user/employees/{user_id}/reset-password`\n *\n * Needs the *Users* write permission and the *Impersonation* permission,\n * and the member must be one you could sign in as with\n * `impersonateEmployee`. The member's sessions end, and their next sign-in\n * asks them to choose a new password. Two-factor authentication is left as\n * it is. `TeamMemberDetails.can_reset_password` answers the same rule. A\n * refusal is a `UR_68` error whose `data` is a {@link TeamMemberRefusal}.\n */\n async resetTeamMemberPassword(\n userId: string,\n params: ResetTeamMemberPasswordRequest,\n ): Promise<ResetTeamMemberPasswordResponse> {\n return this.request('POST', `/user/employees/${encodeURIComponent(userId)}/reset-password`, {\n body: params,\n });\n }\n\n /**\n * One team member's sign-in history: successes and failures with method,\n * address, location and device, filtered, sorted and paged as\n * `listLoginActivity` is. `GET /user/employees/{user_id}/login-activity`\n *\n * Needs the *Users* write permission. Answers only for a member\n * `listUsersInLineage` shows you; any other id is a 404 `UR_68` with\n * `data.reason: 'member_not_found'`. Sign-ins belong to the account, so\n * they are shown only for an account wholly in this merchant: refused with\n * a 400 `UR_68` `member_has_access_elsewhere` for an account that also\n * holds a role elsewhere, and `member_not_activated` for one that is only\n * invited. `TeamMemberDetails.can_view_sign_ins` answers the same rule.\n */\n async listTeamMemberLoginActivity(\n userId: string,\n params?: LoginHistoryParams,\n ): Promise<LoginHistoryResponse> {\n const path = `/user/employees/${encodeURIComponent(userId)}/login-activity`;\n if (params === undefined) {\n return this.request('GET', path);\n }\n return this.request('GET', path, {\n query: csvQuery(params, ['event_type', 'auth_method']),\n });\n }\n\n /**\n * One team member's live sessions: neither signed out nor expired.\n * `is_current` marks the caller's own session only.\n * `GET /user/employees/{user_id}/sessions`\n *\n * Same permission and refusals as `listTeamMemberLoginActivity`.\n */\n async listTeamMemberSessions(userId: string): Promise<UserSessionListResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/sessions`);\n }\n\n /**\n * Sign a team member out everywhere: ends every session and token of the\n * member, at this merchant and at every other merchant the account belongs\n * to. `POST /user/employees/{user_id}/sessions/revoke-all`\n *\n * The account stays active and its password unchanged, so the member can\n * sign in again at once. Allowed on exactly the members whose password you\n * may reset with `resetTeamMemberPassword`, and refused with the same\n * `UR_68` reasons ({@link TeamMemberRefusal}).\n * `TeamMemberDetails.can_sign_out` answers the same rule. Recorded in the\n * audit log.\n */\n async revokeTeamMemberSessions(userId: string): Promise<AdminRevokeUserSessionsResponse> {\n return this.request(\n 'POST',\n `/user/employees/${encodeURIComponent(userId)}/sessions/revoke-all`,\n );\n }\n\n /**\n * Which checkout payment methods a member may change in your merchant.\n * `GET /user/employees/{user_id}/method-access`\n *\n * Needs the *Users* read permission, and answers only for a member\n * `listUsersInLineage` shows you (any other id is a 404 `UR_68` with\n * `data.reason: 'member_not_found'`). `can_edit` says whether you may\n * change it; `grant_all` and `grantable` say which methods you may grant.\n */\n async getMemberMethodAccess(userId: string): Promise<MemberMethodAccessResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/method-access`);\n }\n\n /**\n * Limit a member to some checkout payment methods, or give every method\n * back. `PUT /user/employees/{user_id}/method-access`\n *\n * Needs the *Connectors* edit and *Payment methods* write permissions and a\n * member within your reach, other than yourself. A caller limited itself\n * grants only within its own limit. The change is audited and applies to\n * the member's next request. A refusal is a `UR_68` whose `data` is\n * `{ reason: 'method_access', refusal }` (see {@link MethodAccessRefusal}).\n */\n async updateMemberMethodAccess(\n userId: string,\n params: UpdateMemberMethodAccessRequest,\n ): Promise<MemberMethodAccessResponse> {\n return this.request('PUT', `/user/employees/${encodeURIComponent(userId)}/method-access`, {\n body: params,\n });\n }\n\n /**\n * A member's permission overrides in your merchant: every area that can be\n * overridden at their level, with what their roles give, the level set for\n * them, and what they have. `GET /user/employees/{user_id}/permission-overrides`\n *\n * Needs the *Users* read permission, and answers only for a member\n * `listUsersInLineage` shows you (any other id is a 404 `UR_68`).\n * `can_edit`, `can_raise` and each area's `grantable_level` say what you\n * may change.\n */\n async getMemberPermissionOverrides(userId: string): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'GET',\n `/user/employees/${encodeURIComponent(userId)}/permission-overrides`,\n );\n }\n\n /**\n * Replace a member's permission overrides. An area left out goes back to\n * what their roles give. `PUT /user/employees/{user_id}/permission-overrides`\n *\n * Needs the *Users* write permission and a member within your reach, other\n * than yourself. Keeping or lowering is always allowed; a gain must stay\n * within what you hold in that area, and a gain above the member's roles\n * needs `can_raise`. The change is audited and applies to the member's next\n * request. A refusal is a `UR_68` whose `data` is\n * `{ reason: 'permission_overrides', refusal }` (see\n * {@link PermissionOverrideRefusal}).\n */\n async updateMemberPermissionOverrides(\n userId: string,\n params: UpdateMemberPermissionOverridesRequest,\n ): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'PUT',\n `/user/employees/${encodeURIComponent(userId)}/permission-overrides`,\n { body: params },\n );\n }\n\n /**\n * The permission overrides your own session acts under, sorted by area.\n * An area named here has exactly that level, whatever a broader legacy area\n * of the role would suggest. `GET /user/role/permission-overrides`\n */\n async getOwnPermissionOverrides(): Promise<PermissionOverride[]> {\n return this.request('GET', '/user/role/permission-overrides');\n }\n\n /** Sign in via OIDC. `POST /user/oidc` */\n async signInOidc(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/oidc', { body: params });\n }\n\n /** Transfer key. `POST /user/key/transfer` */\n async transferKey(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/key/transfer', { body: params });\n }\n\n /**\n * Invitations still waiting on the caller. `GET /user/list/invitation`\n *\n * Accepts an `accept_invite` step token as well as a session JWT, so it\n * can feed `acceptInvitationsPreAuth` during sign-in. An invitation to a\n * project carries `project_id`; pass it back unchanged when accepting.\n */\n async listInvitations(): Promise<UserInvitation[]> {\n return this.request('GET', '/user/list/invitation');\n }\n\n /** Check 2FA status. `GET /user/2fa` */\n async check2faStatus(): Promise<Record<string, unknown>> {\n return this.request('GET', '/user/2fa');\n }\n\n /**\n * Finish first-time TOTP setup: commit the secret generated by `beginTotp`\n * against a 6-digit code from the user's authenticator app.\n *\n * `PUT /user/2fa/totp/verify`. Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async updateTotp(params: VerifyTotpRequest): Promise<Record<string, unknown>> {\n return this.request('PUT', '/user/2fa/totp/verify', { body: params });\n }\n\n /**\n * Complete the TOTP step and advance to the next flow stage (e.g.\n * `reset_password`). Returns a fresh single-purpose token with the\n * next `token_type`.\n *\n * `GET /user/2fa/terminate`. Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async terminate2fa(query?: Terminate2faQueryParams): Promise<TokenResponse> {\n if (query === undefined) {\n return this.request('GET', '/user/2fa/terminate');\n }\n return this.request('GET', '/user/2fa/terminate', {\n query: query as Record<string, boolean | undefined>,\n });\n }\n\n /** Create auth method. `POST /user/auth` */\n async createAuthMethod(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/auth', { body: params });\n }\n\n /** Update auth method. `PUT /user/auth` */\n async updateAuthMethod(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('PUT', '/user/auth', { body: params });\n }\n\n /** List auth methods. `GET /user/auth/list` */\n async listAuthMethods(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/auth/list');\n }\n\n /** Get auth URL. `GET /user/auth/url` */\n async getAuthUrl(): Promise<Record<string, unknown>> {\n return this.request('GET', '/user/auth/url');\n }\n\n /** Select auth method. `POST /user/auth/select` */\n async selectAuth(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/auth/select', { body: params });\n }\n\n /**\n * List users in lineage.\n *\n * Needs the Users *view* grant now — the response carries colleagues' email\n * addresses, so a role without it is refused rather than handed a roster.\n * A shop-scoped role keeps reading its own shop's members.\n *\n * `GET /user/employees/list`\n */\n async listUsersInLineage(params?: ListUsersInLineageParams): Promise<UserInLineage[]> {\n return this.request('GET', '/user/employees/list', {\n query: params as Record<string, string | undefined> | undefined,\n });\n }\n\n /**\n * Send a pending member a new invitation link. `POST /user/resend-invite`\n *\n * The new link replaces the one before it, which stops working. It works\n * for `link_valid_for_days` days, 7 by default. Works for any pending member\n * `listUsersInLineage` shows you. A refusal is a `UR_68` error\n * (`no_pending_invitation`, `invite_link_validity_out_of_range`) or a\n * `UR_70` `invitation_expired` when the access the invitation offers has\n * ended.\n */\n async resendInvite(params: ReInviteUserRequest): Promise<ReInviteUserResponse> {\n return this.request('POST', '/user/resend-invite', { body: params });\n }\n\n /**\n * A pending member's current invitation link, or why it is not shown.\n * `GET /user/employees/{user_id}/invite-link`\n *\n * Only the link of an account the invitation created, that nobody has used\n * since, is returned: the link signs its holder in without a password. Every\n * link returned is audited. Needs team write access.\n */\n async getInviteLink(userId: string): Promise<InviteLinkResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/invite-link`);\n }\n\n /**\n * Get the caller's parent permission groups + scopes.\n *\n * `GET /user/role`\n */\n async getRolePermissions(): Promise<ParentGroupInfo[]> {\n return this.request('GET', '/user/role');\n }\n\n /**\n * List invitable roles. `GET /user/role/list/invite`\n *\n * @param params - Optional query. `entity_type` scopes the role list to a\n * particular entity (e.g. `'merchant'` to list only merchant-scoped roles\n * when inviting employees from the merchant dashboard).\n */\n async listInvitableRoles(params?: ListInvitableRolesParams): Promise<Record<string, unknown>[]> {\n if (params === undefined || params.entity_type === undefined) {\n return this.request('GET', '/user/role/list/invite');\n }\n return this.request('GET', '/user/role/list/invite', {\n query: { entity_type: params.entity_type },\n });\n }\n\n /** List updatable roles. `GET /user/role/list/update` */\n async listUpdatableRoles(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/role/list/update');\n }\n\n /** Get parent list. `GET /user/parent/list` */\n async getParentList(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/parent/list');\n }\n\n /** Create a role. `POST /user/role` */\n async createRole(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/role', { body: params });\n }\n\n /** Get role by ID. `GET /user/role/{roleId}` */\n async getRoleById(roleId: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/user/role/${encodeURIComponent(roleId)}`);\n }\n\n /** Update role by ID. `PUT /user/role/{roleId}` */\n async updateRole(\n roleId: string,\n params: Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<Record<string, unknown>> {\n return this.request('PUT', `/user/role/${encodeURIComponent(roleId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Delete a custom role. Predefined roles and roles still assigned to\n * team members are rejected by the backend with a 400.\n *\n * `DELETE /user/role/{roleId}`\n */\n async deleteRole(roleId: string): Promise<Record<string, unknown>> {\n return this.request('DELETE', `/user/role/${encodeURIComponent(roleId)}`);\n }\n\n /**\n * Read which individual connector accounts a role may see.\n *\n * `GET /user/role/{roleId}/connectors`\n *\n * **Check `restricted` before reading `connectors`.** An empty list is\n * ambiguous by itself, so the backend states which case it is: `false` means\n * the role holds no grant and sees whatever its entity and profile scope\n * already allowed. Rendering an empty `connectors` array as \"this role sees\n * nothing\" inverts the meaning.\n *\n * Requires the permission that *edits a role*, not a connector permission.\n */\n async getRoleConnectors(roleId: string): Promise<RoleConnectorGrant> {\n return this.request('GET', `/user/role/${encodeURIComponent(roleId)}/connectors`);\n }\n\n /**\n * Replace the set of connector accounts a role may see.\n *\n * `PUT /user/role/{roleId}/connectors`\n *\n * The call **replaces** the whole set rather than adding to it, so send the\n * complete list every time. An empty `merchant_connector_ids` clears the\n * grant and returns the role to unrestricted.\n *\n * The backend refuses an id that is not a connector account of the caller's\n * own merchant, an `Organization`-scoped role (a connector account belongs to\n * exactly one merchant, so an org-spanning role cannot hold one coherently),\n * and any predefined role (one static entry shared by every tenant).\n *\n * Editing a grant invalidates the role cache and blacklists tokens minted\n * before the edit, so **users holding this role must sign in again**. Worth\n * saying in the UI before the save, not after.\n */\n async updateRoleConnectors(\n roleId: string,\n params: UpdateRoleConnectorGrantParams,\n ): Promise<RoleConnectorGrant> {\n return this.request('PUT', `/user/role/${encodeURIComponent(roleId)}/connectors`, {\n body: params,\n });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/chunk-ZKPVUCQV.cjs","../src/resources/users.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACsFO,IAAM,MAAA,EAAN,MAAY;AAAA,EACjB,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA,EAElD,MAAM,MAAA,CAAO,MAAA,EAA0E;AACrF,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,cAAA,EAAgB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC9D;AAAA,EAEA,MAAM,MAAA,CAAO,MAAA,EAA8C;AACzD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAQ,cAAA,EAAgB,EAAE,IAAA,EAAM,OAAO,CAAC,CAAA;AAAA,EAC9D;AAAA;AAAA,EAGA,MAAM,kBAAA,CAAA,EAA+D;AACnE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,uBAAuB,CAAA;AAAA,EACpD;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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuB+B,EAAA;AACsC,IAAA;AAC3D,MAAA;AACP,IAAA;AACH,EAAA;AACF;ADhPqF;AACA;AACA;AACA","file":"/tmp/publish-sdk-0496/dist/chunk-ZKPVUCQV.cjs","sourcesContent":[null,"import type {\n AdminRevokeUserSessionsResponse,\n RolePaymentVisibilityPolicy,\n SignUpRequest,\n SignUpWithMerchantRequest,\n SignInRequest,\n DashboardOAuthProvider,\n DashboardOAuthProvidersResponse,\n DashboardOAuthStartRequest,\n DashboardOAuthLinkStartRequest,\n DashboardOAuthStartResponse,\n DashboardOAuthCompleteRequest,\n DashboardOAuthDisconnectRequest,\n AuthResponse,\n UserResponse,\n ChangePasswordRequest,\n DeleteAccountRequest,\n ForgotPasswordRequest,\n ResetPasswordRequest,\n SwitchMerchantRequest,\n SwitchProfileRequest,\n ImpersonateEmployeeRequest,\n InviteUsersRequest,\n InviteUsersResponse,\n AddUserRequest,\n AddUserResponse,\n UpdateUserRoleRequest,\n DeleteUserRoleRequest,\n ChangeMemberScopeRequest,\n ChangeMemberScopeResponse,\n UpdateMemberExpiryRequest,\n UpdateMemberExpiryResponse,\n GetUserRoleDetailsResponse,\n TeamMemberDetails,\n ReInviteUserRequest,\n ReInviteUserResponse,\n InviteLinkResponse,\n TeamMemberContactProfileResponse,\n UpdateTeamMemberContactsRequest,\n WriteTeamMemberNoteRequest,\n DeleteTeamMemberNoteRequest,\n MemberMethodAccessResponse,\n UpdateMemberMethodAccessRequest,\n MemberPermissionOverridesResponse,\n PermissionOverride,\n UpdateMemberPermissionOverridesRequest,\n ResetTeamMemberPasswordRequest,\n ResetTeamMemberPasswordResponse,\n TotpResponse,\n RecoveryCodesResponse,\n PhoneOtpRequest,\n PhoneOtpResponse,\n PhoneOtpVerifyRequest,\n PhoneOtpVerifyResponse,\n UpdateMetadataRequest,\n SetUserPreferenceRequest,\n UserPreferenceResponse,\n DashboardTourResponse,\n UpdateDashboardTourRequest,\n UpdateUserDetailsRequest,\n FromEmailRequest,\n TokenResponse,\n UserInvitation,\n AcceptInvitationsPreAuthRequest,\n VerifyTotpRequest,\n Terminate2faQueryParams,\n ListInvitableRolesParams,\n ListUsersInLineageParams,\n UserInLineage,\n LoginHistoryParams,\n LoginHistoryResponse,\n UserSessionListResponse,\n UserSessionRevokeResponse,\n ParentGroupInfo,\n RoleConnectorGrant,\n UpdateRoleConnectorGrantParams,\n CreateInvitationLinkRequest,\n CreateInvitationLinkResponse,\n InvitationLinkResponse,\n InvitationLinkPreviewResponse,\n ListInvitationLinksResponse,\n UpdateInvitationLinkRequest,\n JoinInvitationLinkResponse,\n JoinInvitationLinkPreAuthResponse,\n RegisterThroughInvitationLinkRequest,\n RegisterThroughInvitationLinkResponse,\n} from '../types';\nimport type { RequestExtras, RequestFn } from '../client';\nimport { csvQuery } from '../listQuery';\n\nexport class Users {\n constructor(private readonly request: RequestFn) {}\n\n async signUp(params: SignUpRequest | SignUpWithMerchantRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/signup', { body: params });\n }\n\n async signIn(params: SignInRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/signin', { body: params });\n }\n\n /** Providers currently configured for dashboard sign-in. */\n async listOAuthProviders(): Promise<DashboardOAuthProvidersResponse> {\n return this.request('GET', '/user/oauth/providers');\n }\n\n /** Current account's links; disabled providers remain visible. */\n async listLinkedOAuthProviders(): Promise<DashboardOAuthProvidersResponse> {\n return this.request('GET', '/user/oauth/linked');\n }\n\n async startOAuthSignIn(params: DashboardOAuthStartRequest): Promise<DashboardOAuthStartResponse> {\n return this.request('POST', '/user/oauth/start', { body: params });\n }\n\n async startOAuthLink(\n params: DashboardOAuthLinkStartRequest,\n ): Promise<DashboardOAuthStartResponse> {\n return this.request('POST', '/user/oauth/link/start', { body: params });\n }\n\n async completeOAuthSignIn(params: DashboardOAuthCompleteRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/oauth/complete', { body: params });\n }\n\n async completeOAuthLink(params: DashboardOAuthCompleteRequest): Promise<void> {\n return this.request('POST', '/user/oauth/link/complete', { body: params });\n }\n\n async disconnectOAuthProvider(\n provider: DashboardOAuthProvider,\n params: DashboardOAuthDisconnectRequest,\n ): Promise<void> {\n return this.request('DELETE', `/user/oauth/linked/${encodeURIComponent(provider)}`, {\n body: params,\n });\n }\n\n async signOut(): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/signout');\n }\n\n /**\n * Sliding-session refresh: exchange the current (still-valid) login JWT\n * for a fresh one with the same claims and a full lifetime. The backend\n * keeps the session's identity (`jti`), slides `user_session.expires_at`\n * forward and re-sets the `login_token` cookie.\n *\n * Requires a token backed by a revocable session (a `jti` claim). Signin\n * and switch-merchant/-profile tokens have one; **session-less tokens do\n * not and are rejected with 400** — team-impersonation tokens are the\n * case in practice, and they are deliberately tab-scoped and\n * time-bounded rather than renewable. A 400 here is not a dead session:\n * the token remains valid for ordinary calls, it simply cannot slide.\n *\n * Rejected (401) for expired, blacklisted or revoked tokens — refresh can\n * only extend a session that is still alive. Rate-limited server-side\n * (429) to one mint per session per minute; treat a 429 as \"still fresh\n * enough\", not as an error.\n *\n * The returned token is NOT applied to this client automatically — pass\n * it to `setJwtToken()`, or use {@link Delopay.refreshSession} which does\n * both.\n *\n * `POST /user/token/refresh`. Requires a logged-in JWT.\n */\n async refreshToken(): Promise<TokenResponse> {\n return this.request('POST', '/user/token/refresh');\n }\n\n /**\n * Paginated login history for the authenticated user -- IP, User-Agent,\n * country / city / lat-lon (when GeoIP is enabled), success and failure\n * events with their reasons. Strictly scoped to the JWT subject; a user\n * can only see their own activity.\n *\n * `GET /user/me/login-activity`. Requires a logged-in JWT.\n *\n * Returns an empty page when a Delopay admin is impersonating a merchant,\n * so the admin's metadata is not exposed inside the merchant dashboard.\n *\n * Newest first unless `sort_by` says otherwise. Several `event_type` or\n * `auth_method` values match an event with any of them.\n */\n async listLoginActivity(params?: LoginHistoryParams): Promise<LoginHistoryResponse> {\n if (params === undefined) {\n return this.request('GET', '/user/me/login-activity');\n }\n return this.request('GET', '/user/me/login-activity', {\n query: csvQuery(params, ['event_type', 'auth_method']),\n });\n }\n\n /**\n * List the authenticated user's currently-active dashboard sessions\n * (one row per minted login JWT that hasn't been revoked or expired).\n *\n * The row matching the JWT making this call has `is_current: true`,\n * which is what lets the dashboard render a \"This device\" tag.\n *\n * `GET /user/me/sessions`. Requires a logged-in JWT. Returns an empty\n * list when a Delopay admin is impersonating a non-admin merchant\n * (same guard as `listLoginActivity`).\n */\n async listActiveSessions(): Promise<UserSessionListResponse> {\n return this.request('GET', '/user/me/sessions');\n }\n\n /**\n * Disconnect one of the authenticated user's sessions. The matching\n * JWT is rejected on its next request — fast-path via Redis, fall back\n * to the persistent `revoked_at` column.\n *\n * Idempotent: revoking an already-revoked or unknown id returns 404,\n * which the caller can treat as success for retry purposes. Revoking\n * a session id that belongs to a different user also returns 404 —\n * the response intentionally doesn't leak whether the id exists.\n *\n * `POST /user/me/sessions/{sessionId}/revoke`.\n */\n async revokeSession(sessionId: string): Promise<UserSessionRevokeResponse> {\n return this.request('POST', `/user/me/sessions/${encodeURIComponent(sessionId)}/revoke`);\n }\n\n async getDetails(): Promise<UserResponse> {\n return this.request('GET', '/user');\n }\n\n async update(params: UpdateUserDetailsRequest, options?: RequestExtras): Promise<UserResponse> {\n return this.request('POST', '/user/update', { body: params, ...options });\n }\n\n /**\n * Read a preference owned by the logged-in user. Missing keys return value null.\n * Works in both dashboards with a login JWT; API keys and impersonation are rejected.\n * Keys contain 1–128 ASCII letters, digits, dots, underscores or hyphens.\n * Unknown widget IDs and their order are preserved; consumers choose what to render.\n */\n async getPreference(key: string): Promise<UserPreferenceResponse> {\n return this.request('GET', `/user/preferences/${encodeURIComponent(key)}`);\n }\n\n /**\n * Save one own preference: omitted/false if_absent replaces it (last write wins);\n * true preserves an existing object and returns the winner. The JSON object is\n * limited to 16 KiB of compact UTF-8 JSON. For layouts, use one namespaced key\n * per page (e.g. merchant.analytics.payments) and ordered widget IDs per region,\n * without titles, fetched metrics or rendered state. Requires a login JWT.\n */\n async setPreference(\n key: string,\n params: SetUserPreferenceRequest,\n ): Promise<UserPreferenceResponse> {\n return this.request('PUT', `/user/preferences/${encodeURIComponent(key)}`, { body: params });\n }\n\n /**\n * Initialize only a missing preference. Existing objects, including a client\n * reset marker saved with setPreference (for example { reset: true }), win. Render/cache the returned value, which may differ from\n * the proposed value. Safe for migration retries after a lost response.\n * Explicit edits and reset markers use setPreference with no if_absent flag.\n * DELETE removes the key; it leaves no marker and permits initialization again.\n * Requires a login JWT and the same key/object limits as setPreference.\n */\n async initializePreference(\n key: string,\n value: Record<string, unknown>,\n ): Promise<UserPreferenceResponse> {\n return this.request('PUT', `/user/preferences/${encodeURIComponent(key)}`, {\n body: { value, if_absent: true },\n });\n }\n\n /**\n * Remove an own preference. Idempotent; returns value null, without storing a\n * tombstone. Later initialization may import a value again. To suppress legacy\n * migration after a reset, save a client reset-marker object with setPreference.\n * Login JWT only.\n */\n async deletePreference(key: string): Promise<UserPreferenceResponse> {\n return this.request('DELETE', `/user/preferences/${encodeURIComponent(key)}`);\n }\n\n /**\n * The caller's guided dashboard tour in the session's scope: their progress,\n * whether to offer the tour now, and their current and acknowledged access.\n * Progress is kept per merchant, or per shop for a user whose role is limited\n * to shops; the scope comes from the session. Login JWT only.\n *\n * `GET /user/dashboard-tour`\n */\n async getDashboardTour(): Promise<DashboardTourResponse> {\n return this.request('GET', '/user/dashboard-tour');\n }\n\n /**\n * Save the caller's tour progress in the session's scope and return the same\n * body as {@link Users.getDashboardTour}. `completed` and `skipped` are added\n * to the stored ones unless `restart` is set; `active`, `baseline` and\n * `offer_handled_at` replace them. `acknowledge_access: true` stores the\n * access the server computes as acknowledged. Unknown fields, malformed step\n * ids or baselines, and more than 300 steps per list are refused; so is any\n * save while acting as another user (`read_only`). Login JWT only.\n *\n * `PUT /user/dashboard-tour`\n */\n async updateDashboardTour(params: UpdateDashboardTourRequest): Promise<DashboardTourResponse> {\n return this.request('PUT', '/user/dashboard-tour', { body: params });\n }\n\n /**\n * RFC 7396 merge-patch the caller's own user-scoped metadata bucket.\n * Returns the full user details, so callers can refresh their context\n * without a second fetch.\n *\n * `PATCH /user/metadata`\n */\n async updateMetadata(params: UpdateMetadataRequest): Promise<UserResponse> {\n return this.request('PATCH', '/user/metadata', { body: params });\n }\n\n /**\n * RFC 7396 merge-patch the merchant-scoped metadata bucket shared by\n * every dashboard user of the merchant. Same response contract as\n * {@link Users.updateMetadata}.\n *\n * `PATCH /user/merchant/metadata`\n */\n async updateMerchantMetadata(params: UpdateMetadataRequest): Promise<UserResponse> {\n return this.request('PATCH', '/user/merchant/metadata', { body: params });\n }\n\n /**\n * Permanently delete the caller's account. Requires a fresh password\n * (and a current 6-digit TOTP code if the user has TOTP enrolled). On\n * success all role assignments are removed, the user record is\n * deactivated, and all in-flight sessions are invalidated. The caller\n * should clear local credentials and route to the login page.\n *\n * Returns `InvalidDeleteOperation` when the caller is the sole\n * owner-level admin of an org / merchant / profile -- they must\n * transfer ownership first.\n */\n async deleteAccount(params: DeleteAccountRequest): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/user/account', { body: params });\n }\n\n async changePassword(params: ChangePasswordRequest): Promise<UserResponse> {\n return this.request('POST', '/user/change-password', { body: params });\n }\n\n async rotatePassword(params: ResetPasswordRequest): Promise<UserResponse> {\n return this.request('POST', '/user/rotate-password', { body: params });\n }\n\n async forgotPassword(params: ForgotPasswordRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/forgot-password', { body: params });\n }\n\n /**\n * Commit a password reset.\n *\n * The caller is responsible for obtaining a `SinglePurposeToken` with\n * `purpose: reset_password` via the email-token exchange + TOTP flow\n * (see `fromEmail`, `beginTotp`, `updateTotp`/`verifyTotp`,\n * `generateRecoveryCodes`, `terminate2fa`) and setting it on the client\n * via `setJwtToken` before calling this method. `body.token` must still\n * be the original `EmailToken` from the reset-link URL — the handler\n * decodes it a second time to find the user.\n */\n async resetPassword(params: ResetPasswordRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/reset-password', { body: params });\n }\n\n /**\n * Exchange an email-link token (`EmailToken`) for a single-purpose JWT\n * that drives the next step of the flow (TOTP, verify email, accept\n * invitation, etc.). No authentication required.\n *\n * The `token_type` in the response tells you which step to run next.\n */\n async fromEmail(params: FromEmailRequest): Promise<TokenResponse> {\n return this.request('POST', '/user/from-email', { body: params });\n }\n\n async verifyEmail(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/verify-email', { body: params });\n }\n\n async sendVerificationEmail(params: ForgotPasswordRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/verify-email-request', { body: params });\n }\n\n async createMerchant(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/create-merchant', { body: params });\n }\n\n async switchMerchant(params: SwitchMerchantRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/switch/merchant', { body: params });\n }\n\n async switchProfile(params: SwitchProfileRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/switch/profile', { body: params });\n }\n\n async listMerchants(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/list/merchant');\n }\n\n async listProfiles(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/list/profile');\n }\n\n /**\n * Invite team members by email. `POST /user/employees/invite`\n *\n * `project_ids` grants a shop-level role on every shop of each project, once\n * the invitation is accepted. A refusal of `project_ids` is a `UR_23` error whose `data.reason` is one of\n * `project_not_in_merchant`, `role_not_grantable_on_project`,\n * `shop_in_granted_project`, `project_already_granted` or\n * `project_grant_requires_merchant_level`.\n */\n async inviteUsers(params: InviteUsersRequest[]): Promise<InviteUsersResponse[]> {\n return this.request('POST', '/user/employees/invite', { body: params });\n }\n\n /**\n * Add a team member directly, without sending an invite email.\n * `POST /user/employees/add`\n *\n * Unlike `inviteUsers`, the account is active immediately and you hand over\n * the credentials yourself. Omit `password` to have the server generate one\n * and return it once in `password` on the response; supply your own and it is\n * not echoed back. Either way the member must change it on first sign-in.\n *\n * Same role rules as invite: you cannot grant a role above your own, and a\n * shop-scoped caller can only target their own shop. `project_ids` grants a\n * shop-level role on every shop of each project. A refusal of `project_ids` is a `UR_23` error whose `data.reason` is one of\n * `project_not_in_merchant`, `role_not_grantable_on_project`,\n * `shop_in_granted_project`, `project_already_granted` or\n * `project_grant_requires_merchant_level`.\n */\n async addUser(params: AddUserRequest): Promise<AddUserResponse> {\n return this.request('POST', '/user/employees/add', { body: params });\n }\n\n /**\n * Impersonate one of your own team members — `POST /user/employees/impersonate`.\n *\n * Mints a session token **as** the given member, so the dashboard renders\n * exactly what they see (useful for support and role verification). The\n * caller needs the *Impersonation* permission, and the member's role must\n * either rank **strictly below** the caller's\n * (`Profile < Merchant < Organization`), or sit at the caller's own\n * merchant-or-higher level and be **strictly narrower** than the caller's\n * role (grant nothing the caller's role does not, and less in total). The\n * server rejects self-impersonation and cross-merchant targets.\n * `MinimalRoleInfo.can_impersonate` in `listUsersInLineage` answers the same rule\n * per binding, so a UI can offer the action only where it will succeed.\n *\n * A role refusal is a `UR_33` error whose `data.reason` names the rule:\n * `impersonation_target_not_narrower` (the member's role is above, equal to,\n * or not contained in the caller's), or `act_as_token_cannot_impersonate`\n * (the caller is itself signed in as another member — start from your own\n * session).\n *\n * The returned token is tab-scoped by design: open it in a fresh tab (e.g.\n * `/auth/impersonate?token=…`) rather than replacing the caller's own\n * session. No auth cookie is set on the response.\n */\n async impersonateEmployee(params: ImpersonateEmployeeRequest): Promise<TokenResponse> {\n return this.request('POST', '/user/employees/impersonate', { body: params });\n }\n\n async acceptInvitation(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/employees/invite/accept', { body: params });\n }\n\n /**\n * Accept invitations before a session exists.\n *\n * Sign-in issues a `token_type: \"accept_invite\"` step token instead of a\n * session when the caller has no active role yet — every role is still an\n * unaccepted invitation. With that token set via `setJwtToken`, pass the\n * entities from `listInvitations` here; the response is the next step of\n * the sign-in flow (`user_info` for the session, or `force_set_password`\n * first). Rejected when none of the entities carries a pending invitation.\n */\n async acceptInvitationsPreAuth(params: AcceptInvitationsPreAuthRequest): Promise<TokenResponse> {\n return this.request('POST', '/user/employees/invite/accept/pre-auth', { body: params });\n }\n\n /**\n * Accept an invitation via the email-link flow.\n *\n * Caller must already hold a `SinglePurposeToken` with\n * `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any\n * required TOTP step) and have set it on the client via `setJwtToken`.\n * `body.token` must still be the original `EmailToken` from the\n * invite-link URL — the handler decodes it a second time to find the\n * invitee and the entity lineage.\n */\n async acceptInviteFromEmail(params: FromEmailRequest): Promise<AuthResponse> {\n return this.request('POST', '/user/accept-invite-from-email', { body: params });\n }\n\n /**\n * Start TOTP setup (or no-op if already set).\n *\n * Returns the QR-code payload when the user has no TOTP configured yet;\n * returns `{ secret: null }` when the user is already set up (caller\n * should then prompt for a 6-digit code and call `verifyTotp`).\n *\n * Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async beginTotp(): Promise<TotpResponse> {\n return this.request('GET', '/user/2fa/totp/begin');\n }\n\n /**\n * Verify a 6-digit TOTP code for a user whose TOTP is already set up.\n * Marks the code as used in Redis so subsequent flow steps can advance.\n *\n * Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async verifyTotp(params: VerifyTotpRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/2fa/totp/verify', { body: params });\n }\n\n async resetTotp(): Promise<Record<string, unknown>> {\n return this.request('GET', '/user/2fa/totp/reset');\n }\n\n async generateRecoveryCodes(): Promise<RecoveryCodesResponse> {\n return this.request('GET', '/user/2fa/recovery-code/generate');\n }\n\n async verifyRecoveryCode(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/2fa/recovery-code/verify', { body: params });\n }\n\n async sendPhoneOtp(params: PhoneOtpRequest): Promise<PhoneOtpResponse> {\n return this.request('POST', '/user/phone/send-otp', { body: params });\n }\n\n async verifyPhoneOtp(params: PhoneOtpVerifyRequest): Promise<PhoneOtpVerifyResponse> {\n return this.request('POST', '/user/phone/verify-otp', { body: params });\n }\n\n /**\n * List all roles visible to the caller (predefined + custom).\n *\n * `GET /user/role/list`. With `groups: true` the response is the\n * parent-groups shape: `[{role_id, role_name, entity_type, role_scope,\n * parent_groups: [{name, description, scopes}]}]`; without it, the\n * deprecated flat `groups` shape.\n *\n * Each role carries `managed_centrally: true` when it is a shared role the\n * platform offers this merchant: it can be assigned, but `updateRole`,\n * `deleteRole` and `updateRoleConnectors` refuse it with `UR_71`\n * (`data.reason: 'managed_centrally'`).\n */\n async listRoles(params?: {\n groups?: boolean;\n entity_type?: string;\n }): Promise<Record<string, unknown>[]> {\n if (params === undefined) {\n return this.request('GET', '/user/role/list');\n }\n return this.request('GET', '/user/role/list', {\n query: { groups: params.groups, entity_type: params.entity_type },\n });\n }\n\n /**\n * The roles a member holds, one entry per role. `POST /user/employees`\n *\n * A project-level role carries `project`: it applies to every shop of that\n * project.\n */\n async listUserRoles(params?: Record<string, unknown>): Promise<GetUserRoleDetailsResponse[]> {\n return this.request('POST', '/user/employees', { body: params });\n }\n\n /**\n * The current role's explicit payment-data policy, or `null` when the role\n * retains its pre-control access. A dashboard hint: every API response\n * enforces the same policy on its own. `GET /user/role/payment-visibility`\n */\n async getRolePaymentVisibility(): Promise<RolePaymentVisibilityPolicy | null> {\n return this.request('GET', '/user/role/payment-visibility');\n }\n\n /**\n * Change a team member's role. `POST /user/employees/update-role`\n *\n * Pass `profile_id` to name the shop when managing a shop's team as a\n * merchant-scoped admin — see {@link UpdateUserRoleRequest.profile_id}.\n */\n async updateUserRole(params: UpdateUserRoleRequest): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/employees/update-role', { body: params });\n }\n\n /**\n * Remove a team member. `DELETE /user/employees/delete`\n *\n * Pass `profile_id` to name the shop when managing a shop's team as a\n * merchant-scoped admin — see {@link DeleteUserRoleRequest.profile_id}. Pass\n * `project_id` instead to remove a project-level role, which the member then\n * loses on every shop of the project.\n */\n async deleteUserRole(params: DeleteUserRoleRequest): Promise<Record<string, unknown>> {\n return this.request('DELETE', '/user/employees/delete', { body: params });\n }\n\n /**\n * Move a team member between a merchant-level role and shop-level roles.\n * `POST /user/employees/change-scope`\n *\n * A merchant-level `role_id` takes no `profile_ids` or `project_ids`; a\n * shop-level one needs at least one shop or project. A project grants the\n * role on every shop of the project, including shops added later. Every\n * earlier merchant-, project- and shop-level binding of the member in your\n * merchant is replaced. When the change takes a scope away, the\n * member's sessions end (`sessions_revoked: true`). Needs a caller at\n * merchant level or above. A refusal is a `UR_23` error whose `data.reason`\n * names the rule; an unknown `role_id` is `UR_22`. The project rules add the\n * reasons `project_not_in_merchant`, `role_not_grantable_on_project`,\n * `shop_in_granted_project`, `project_already_granted` and\n * `project_grant_requires_merchant_level`.\n */\n async changeMemberScope(params: ChangeMemberScopeRequest): Promise<ChangeMemberScopeResponse> {\n return this.request('POST', '/user/employees/change-scope', { body: params });\n }\n\n /**\n * Set or clear when a team member's access to your merchant ends.\n * `POST /user/employees/update-expiry`\n *\n * Every merchant-, shop- and project-level role the member holds in your\n * merchant, accepted or still an invitation, gets the same `expires_at`.\n * From that instant the roles grant nothing: every request, sign-in, token\n * refresh and switch made with them is refused, and `listUsersInLineage`\n * reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove\n * the expiry. A shop-level caller reaches only members whose every role is\n * on its own shop. A refusal is a `UR_70` error whose `data` is an\n * {@link AccessExpiryRefusal}.\n */\n async updateMemberExpiry(params: UpdateMemberExpiryRequest): Promise<UpdateMemberExpiryResponse> {\n return this.request('POST', '/user/employees/update-expiry', { body: params });\n }\n\n /**\n * Create a reusable team invitation link. `POST /user/employees/invitation-links`\n *\n * Each person who joins through it gets `role_id` on the target, up to\n * `max_uses` people, until `expires_at`, and only from the networks and\n * countries `restrictions` allow. Creating it grants nothing and sends\n * nothing. You may grant only what you could invite with; a shop-level\n * caller only for its own shop. The secret to share comes back once, in\n * `token`. A refusal is a `UR_72` error whose `data` is an `InvitationLinkRefusal`.\n */\n async createInvitationLink(\n params: CreateInvitationLinkRequest,\n ): Promise<CreateInvitationLinkResponse> {\n return this.request('POST', '/user/employees/invitation-links', { body: params });\n }\n\n /**\n * Your merchant's team invitation links, newest first, with their usage and\n * status. A shop-level caller sees its own shop's.\n * `GET /user/employees/invitation-links`\n */\n async listInvitationLinks(): Promise<ListInvitationLinksResponse> {\n return this.request('GET', '/user/employees/invitation-links');\n }\n\n /**\n * Change a link's name, limit, expiry, access expiry or restrictions.\n * `PUT /user/employees/invitation-links/{link_id}`\n *\n * Send the whole policy and the `modified_at` you read as `version`. Saving\n * also reconfirms the link under your authority.\n */\n async updateInvitationLink(\n linkId: string,\n params: UpdateInvitationLinkRequest,\n ): Promise<InvitationLinkResponse> {\n return this.request('PUT', `/user/employees/invitation-links/${encodeURIComponent(linkId)}`, {\n body: params,\n });\n }\n\n /**\n * Revoke a link: nobody joins through it from now on, and who already\n * joined keeps their access. Revoking a revoked link answers it unchanged.\n * `POST /user/employees/invitation-links/{link_id}/revoke`\n */\n async revokeInvitationLink(linkId: string): Promise<InvitationLinkResponse> {\n return this.request(\n 'POST',\n `/user/employees/invitation-links/${encodeURIComponent(linkId)}/revoke`,\n );\n }\n\n /**\n * What a shared link offers, before joining. No authentication; grants\n * nothing. `POST /user/invitation-link/preview`\n */\n async previewInvitationLink(token: string): Promise<InvitationLinkPreviewResponse> {\n return this.request('POST', '/user/invitation-link/preview', { body: { token } });\n }\n\n /**\n * Join through a shared link from a signed-in session.\n * `POST /user/invitation-link/join`\n *\n * Needs a verified email address. Joining twice answers `already_member`\n * and uses no second place.\n */\n async joinInvitationLink(token: string): Promise<JoinInvitationLinkResponse> {\n return this.request('POST', '/user/invitation-link/join', { body: { token } });\n }\n\n /**\n * Join through a shared link during sign-in, for someone who holds no access\n * yet: call it with the `accept_invite` single-purpose token set on the\n * client. Answers the token for the next sign-in step.\n * `POST /user/invitation-link/join/pre-auth`\n */\n async joinInvitationLinkPreAuth(token: string): Promise<JoinInvitationLinkPreAuthResponse> {\n return this.request('POST', '/user/invitation-link/join/pre-auth', { body: { token } });\n }\n\n /**\n * Make an account through a shared link, for someone who has none. No\n * authentication. The account holds no access: its owner verifies the\n * address from the email this sends, signs in and joins.\n * `POST /user/invitation-link/register`\n */\n async registerThroughInvitationLink(\n params: RegisterThroughInvitationLinkRequest,\n ): Promise<RegisterThroughInvitationLinkResponse> {\n return this.request('POST', '/user/invitation-link/register', { body: params });\n }\n\n /**\n * One member of your merchant, with the person fields the member list\n * omits. `GET /user/employees/{user_id}/details`\n *\n * Answers only for a member `listUsersInLineage` shows you. Any other id,\n * unknown or not yours, is a 404 `UR_68` with `data.reason:\n * 'member_not_found'`.\n */\n async getTeamMemberDetails(userId: string): Promise<TeamMemberDetails> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/details`);\n }\n\n /**\n * Supplied contacts and internal notes for a visible member in the current\n * merchant. Requires a session JWT and Users read permission. The returned\n * revision is required even for the first write; can_edit states write access.\n * An unknown or invisible member is refused with the same 404 UR_68 response.\n */\n async getTeamMemberContactProfile(userId: string): Promise<TeamMemberContactProfileResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/contact-profile`);\n }\n\n /**\n * Replace the supplied contacts, preserving notes and login/recovery identity.\n * Omitted optional contact fields are cleared. Requires Users write permission\n * and authority over the whole member. Send the exact last-read revision.\n * On a changed refusal, keep the draft and read again before resubmitting.\n * Structured UR_68 data is a TeamMemberRefusal with reason contact_profile.\n */\n async updateTeamMemberContacts(\n userId: string,\n params: UpdateTeamMemberContactsRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request('PUT', `/user/employees/${encodeURIComponent(userId)}/contact-profile`, {\n body: params,\n });\n }\n\n /** Create a plain-text note with server-authored attribution; requires the current revision. */\n async createTeamMemberNote(\n userId: string,\n params: WriteTeamMemberNoteRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request('POST', `/user/employees/${encodeURIComponent(userId)}/notes`, {\n body: params,\n });\n }\n\n /** Edit one note, retaining its original author and creation time. Uses the same write scope. */\n async updateTeamMemberNote(\n userId: string,\n noteId: string,\n params: WriteTeamMemberNoteRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request(\n 'PUT',\n `/user/employees/${encodeURIComponent(userId)}/notes/${encodeURIComponent(noteId)}`,\n { body: params },\n );\n }\n\n /**\n * Delete only the named member note. The exact profile revision is sent in the\n * query; contacts and all other notes remain. Returns the new profile revision.\n */\n async deleteTeamMemberNote(\n userId: string,\n noteId: string,\n params: DeleteTeamMemberNoteRequest,\n ): Promise<TeamMemberContactProfileResponse> {\n return this.request(\n 'DELETE',\n `/user/employees/${encodeURIComponent(userId)}/notes/${encodeURIComponent(noteId)}`,\n { query: { expected_revision: params.expected_revision } },\n );\n }\n\n /**\n * Replace a team member's password with a temporary one, returned once.\n * `POST /user/employees/{user_id}/reset-password`\n *\n * Needs the *Users* write permission and the *Impersonation* permission,\n * and the member must be one you could sign in as with\n * `impersonateEmployee`. The member's sessions end, and their next sign-in\n * asks them to choose a new password. Two-factor authentication is left as\n * it is. `TeamMemberDetails.can_reset_password` answers the same rule. A\n * refusal is a `UR_68` error whose `data` is a {@link TeamMemberRefusal}.\n */\n async resetTeamMemberPassword(\n userId: string,\n params: ResetTeamMemberPasswordRequest,\n ): Promise<ResetTeamMemberPasswordResponse> {\n return this.request('POST', `/user/employees/${encodeURIComponent(userId)}/reset-password`, {\n body: params,\n });\n }\n\n /**\n * One team member's sign-in history: successes and failures with method,\n * address, location and device, filtered, sorted and paged as\n * `listLoginActivity` is. `GET /user/employees/{user_id}/login-activity`\n *\n * Needs the *Users* write permission. Answers only for a member\n * `listUsersInLineage` shows you; any other id is a 404 `UR_68` with\n * `data.reason: 'member_not_found'`. Sign-ins belong to the account, so\n * they are shown only for an account wholly in this merchant: refused with\n * a 400 `UR_68` `member_has_access_elsewhere` for an account that also\n * holds a role elsewhere, and `member_not_activated` for one that is only\n * invited. `TeamMemberDetails.can_view_sign_ins` answers the same rule.\n */\n async listTeamMemberLoginActivity(\n userId: string,\n params?: LoginHistoryParams,\n ): Promise<LoginHistoryResponse> {\n const path = `/user/employees/${encodeURIComponent(userId)}/login-activity`;\n if (params === undefined) {\n return this.request('GET', path);\n }\n return this.request('GET', path, {\n query: csvQuery(params, ['event_type', 'auth_method']),\n });\n }\n\n /**\n * One team member's live sessions: neither signed out nor expired.\n * `is_current` marks the caller's own session only.\n * `GET /user/employees/{user_id}/sessions`\n *\n * Same permission and refusals as `listTeamMemberLoginActivity`.\n */\n async listTeamMemberSessions(userId: string): Promise<UserSessionListResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/sessions`);\n }\n\n /**\n * Sign a team member out everywhere: ends every session and token of the\n * member, at this merchant and at every other merchant the account belongs\n * to. `POST /user/employees/{user_id}/sessions/revoke-all`\n *\n * The account stays active and its password unchanged, so the member can\n * sign in again at once. Allowed on exactly the members whose password you\n * may reset with `resetTeamMemberPassword`, and refused with the same\n * `UR_68` reasons ({@link TeamMemberRefusal}).\n * `TeamMemberDetails.can_sign_out` answers the same rule. Recorded in the\n * audit log.\n */\n async revokeTeamMemberSessions(userId: string): Promise<AdminRevokeUserSessionsResponse> {\n return this.request(\n 'POST',\n `/user/employees/${encodeURIComponent(userId)}/sessions/revoke-all`,\n );\n }\n\n /**\n * Which checkout payment methods a member may change in your merchant.\n * `GET /user/employees/{user_id}/method-access`\n *\n * Needs the *Users* read permission, and answers only for a member\n * `listUsersInLineage` shows you (any other id is a 404 `UR_68` with\n * `data.reason: 'member_not_found'`). `can_edit` says whether you may\n * change it; `grant_all` and `grantable` say which methods you may grant.\n */\n async getMemberMethodAccess(userId: string): Promise<MemberMethodAccessResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/method-access`);\n }\n\n /**\n * Limit a member to some checkout payment methods, or give every method\n * back. `PUT /user/employees/{user_id}/method-access`\n *\n * Needs the *Connectors* edit and *Payment methods* write permissions and a\n * member within your reach, other than yourself. A caller limited itself\n * grants only within its own limit. The change is audited and applies to\n * the member's next request. A refusal is a `UR_68` whose `data` is\n * `{ reason: 'method_access', refusal }` (see {@link MethodAccessRefusal}).\n */\n async updateMemberMethodAccess(\n userId: string,\n params: UpdateMemberMethodAccessRequest,\n ): Promise<MemberMethodAccessResponse> {\n return this.request('PUT', `/user/employees/${encodeURIComponent(userId)}/method-access`, {\n body: params,\n });\n }\n\n /**\n * A member's permission overrides in your merchant: every area that can be\n * overridden at their level, with what their roles give, the level set for\n * them, and what they have. `GET /user/employees/{user_id}/permission-overrides`\n *\n * Needs the *Users* read permission, and answers only for a member\n * `listUsersInLineage` shows you (any other id is a 404 `UR_68`).\n * `can_edit`, `can_raise` and each area's `grantable_level` say what you\n * may change.\n */\n async getMemberPermissionOverrides(userId: string): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'GET',\n `/user/employees/${encodeURIComponent(userId)}/permission-overrides`,\n );\n }\n\n /**\n * Replace a member's permission overrides. An area left out goes back to\n * what their roles give. `PUT /user/employees/{user_id}/permission-overrides`\n *\n * Needs the *Users* write permission and a member within your reach, other\n * than yourself. Keeping or lowering is always allowed; a gain must stay\n * within what you hold in that area, and a gain above the member's roles\n * needs `can_raise`. The change is audited and applies to the member's next\n * request. A refusal is a `UR_68` whose `data` is\n * `{ reason: 'permission_overrides', refusal }` (see\n * {@link PermissionOverrideRefusal}).\n */\n async updateMemberPermissionOverrides(\n userId: string,\n params: UpdateMemberPermissionOverridesRequest,\n ): Promise<MemberPermissionOverridesResponse> {\n return this.request(\n 'PUT',\n `/user/employees/${encodeURIComponent(userId)}/permission-overrides`,\n { body: params },\n );\n }\n\n /**\n * The permission overrides your own session acts under, sorted by area.\n * An area named here has exactly that level, whatever a broader legacy area\n * of the role would suggest. `GET /user/role/permission-overrides`\n */\n async getOwnPermissionOverrides(): Promise<PermissionOverride[]> {\n return this.request('GET', '/user/role/permission-overrides');\n }\n\n /** Sign in via OIDC. `POST /user/oidc` */\n async signInOidc(params: Record<string, unknown>): Promise<AuthResponse> {\n return this.request('POST', '/user/oidc', { body: params });\n }\n\n /** Transfer key. `POST /user/key/transfer` */\n async transferKey(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/key/transfer', { body: params });\n }\n\n /**\n * Invitations still waiting on the caller. `GET /user/list/invitation`\n *\n * Accepts an `accept_invite` step token as well as a session JWT, so it\n * can feed `acceptInvitationsPreAuth` during sign-in. An invitation to a\n * project carries `project_id`; pass it back unchanged when accepting.\n */\n async listInvitations(): Promise<UserInvitation[]> {\n return this.request('GET', '/user/list/invitation');\n }\n\n /** Check 2FA status. `GET /user/2fa` */\n async check2faStatus(): Promise<Record<string, unknown>> {\n return this.request('GET', '/user/2fa');\n }\n\n /**\n * Finish first-time TOTP setup: commit the secret generated by `beginTotp`\n * against a 6-digit code from the user's authenticator app.\n *\n * `PUT /user/2fa/totp/verify`. Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async updateTotp(params: VerifyTotpRequest): Promise<Record<string, unknown>> {\n return this.request('PUT', '/user/2fa/totp/verify', { body: params });\n }\n\n /**\n * Complete the TOTP step and advance to the next flow stage (e.g.\n * `reset_password`). Returns a fresh single-purpose token with the\n * next `token_type`.\n *\n * `GET /user/2fa/terminate`. Requires `Authorization: Bearer <SPT{purpose:totp}>`.\n */\n async terminate2fa(query?: Terminate2faQueryParams): Promise<TokenResponse> {\n if (query === undefined) {\n return this.request('GET', '/user/2fa/terminate');\n }\n return this.request('GET', '/user/2fa/terminate', {\n query: query as Record<string, boolean | undefined>,\n });\n }\n\n /** Create auth method. `POST /user/auth` */\n async createAuthMethod(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/auth', { body: params });\n }\n\n /** Update auth method. `PUT /user/auth` */\n async updateAuthMethod(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('PUT', '/user/auth', { body: params });\n }\n\n /** List auth methods. `GET /user/auth/list` */\n async listAuthMethods(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/auth/list');\n }\n\n /** Get auth URL. `GET /user/auth/url` */\n async getAuthUrl(): Promise<Record<string, unknown>> {\n return this.request('GET', '/user/auth/url');\n }\n\n /** Select auth method. `POST /user/auth/select` */\n async selectAuth(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/auth/select', { body: params });\n }\n\n /**\n * List users in lineage.\n *\n * Needs the Users *view* grant now — the response carries colleagues' email\n * addresses, so a role without it is refused rather than handed a roster.\n * A shop-scoped role keeps reading its own shop's members.\n *\n * `GET /user/employees/list`\n */\n async listUsersInLineage(params?: ListUsersInLineageParams): Promise<UserInLineage[]> {\n return this.request('GET', '/user/employees/list', {\n query: params as Record<string, string | undefined> | undefined,\n });\n }\n\n /**\n * Send a pending member a new invitation link. `POST /user/resend-invite`\n *\n * The new link replaces the one before it, which stops working. It works\n * for `link_valid_for_days` days, 7 by default. Works for any pending member\n * `listUsersInLineage` shows you. A refusal is a `UR_68` error\n * (`no_pending_invitation`, `invite_link_validity_out_of_range`) or a\n * `UR_70` `invitation_expired` when the access the invitation offers has\n * ended.\n */\n async resendInvite(params: ReInviteUserRequest): Promise<ReInviteUserResponse> {\n return this.request('POST', '/user/resend-invite', { body: params });\n }\n\n /**\n * A pending member's current invitation link, or why it is not shown.\n * `GET /user/employees/{user_id}/invite-link`\n *\n * Only the link of an account the invitation created, that nobody has used\n * since, is returned: the link signs its holder in without a password. Every\n * link returned is audited. Needs team write access.\n */\n async getInviteLink(userId: string): Promise<InviteLinkResponse> {\n return this.request('GET', `/user/employees/${encodeURIComponent(userId)}/invite-link`);\n }\n\n /**\n * Get the caller's parent permission groups + scopes.\n *\n * `GET /user/role`\n */\n async getRolePermissions(): Promise<ParentGroupInfo[]> {\n return this.request('GET', '/user/role');\n }\n\n /**\n * List invitable roles. `GET /user/role/list/invite`\n *\n * @param params - Optional query. `entity_type` scopes the role list to a\n * particular entity (e.g. `'merchant'` to list only merchant-scoped roles\n * when inviting employees from the merchant dashboard).\n */\n async listInvitableRoles(params?: ListInvitableRolesParams): Promise<Record<string, unknown>[]> {\n if (params === undefined || params.entity_type === undefined) {\n return this.request('GET', '/user/role/list/invite');\n }\n return this.request('GET', '/user/role/list/invite', {\n query: { entity_type: params.entity_type },\n });\n }\n\n /** List updatable roles. `GET /user/role/list/update` */\n async listUpdatableRoles(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/role/list/update');\n }\n\n /** Get parent list. `GET /user/parent/list` */\n async getParentList(): Promise<Record<string, unknown>[]> {\n return this.request('GET', '/user/parent/list');\n }\n\n /** Create a role. `POST /user/role` */\n async createRole(params: Record<string, unknown>): Promise<Record<string, unknown>> {\n return this.request('POST', '/user/role', { body: params });\n }\n\n /** Get role by ID. `GET /user/role/{roleId}` */\n async getRoleById(roleId: string): Promise<Record<string, unknown>> {\n return this.request('GET', `/user/role/${encodeURIComponent(roleId)}`);\n }\n\n /** Update role by ID. `PUT /user/role/{roleId}` */\n async updateRole(\n roleId: string,\n params: Record<string, unknown>,\n options?: RequestExtras,\n ): Promise<Record<string, unknown>> {\n return this.request('PUT', `/user/role/${encodeURIComponent(roleId)}`, {\n body: params,\n ...options,\n });\n }\n\n /**\n * Delete a custom role. Predefined roles and roles still assigned to\n * team members are rejected by the backend with a 400.\n *\n * `DELETE /user/role/{roleId}`\n */\n async deleteRole(roleId: string): Promise<Record<string, unknown>> {\n return this.request('DELETE', `/user/role/${encodeURIComponent(roleId)}`);\n }\n\n /**\n * Read which individual connector accounts a role may see.\n *\n * `GET /user/role/{roleId}/connectors`\n *\n * **Check `restricted` before reading `connectors`.** An empty list is\n * ambiguous by itself, so the backend states which case it is: `false` means\n * the role holds no grant and sees whatever its entity and profile scope\n * already allowed. Rendering an empty `connectors` array as \"this role sees\n * nothing\" inverts the meaning.\n *\n * Requires the permission that *edits a role*, not a connector permission.\n */\n async getRoleConnectors(roleId: string): Promise<RoleConnectorGrant> {\n return this.request('GET', `/user/role/${encodeURIComponent(roleId)}/connectors`);\n }\n\n /**\n * Replace the set of connector accounts a role may see.\n *\n * `PUT /user/role/{roleId}/connectors`\n *\n * The call **replaces** the whole set rather than adding to it, so send the\n * complete list every time. An empty `merchant_connector_ids` clears the\n * grant and returns the role to unrestricted.\n *\n * The backend refuses an id that is not a connector account of the caller's\n * own merchant, an `Organization`-scoped role (a connector account belongs to\n * exactly one merchant, so an org-spanning role cannot hold one coherently),\n * and any predefined role (one static entry shared by every tenant).\n *\n * Editing a grant invalidates the role cache and blacklists tokens minted\n * before the edit, so **users holding this role must sign in again**. Worth\n * saying in the UI before the save, not after.\n */\n async updateRoleConnectors(\n roleId: string,\n params: UpdateRoleConnectorGrantParams,\n ): Promise<RoleConnectorGrant> {\n return this.request('PUT', `/user/role/${encodeURIComponent(roleId)}/connectors`, {\n body: params,\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/chunk-ZUULK36E.cjs","../src/resources/contentEncryption.ts"],"names":[],"mappings":"AAAA;ACWO,IAAM,kBAAA,EAAN,MAAwB;AAAA,EAC7B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAalD,MAAM,QAAA,CAAS,OAAA,EAA2D;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,qBAAA,EAAuB,EAAE,GAAG,QAAQ,CAAC,CAAA;AAAA,EAClE;AACF,CAAA;ADRA;AACA;AACE;AACF,8CAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/chunk-ZUULK36E.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport type { ContentEncryptionStatus } from '../types';\n\n/**\n * Whether the deployment stores new messages and uploaded files encrypted\n * with its own key. Public: no credential is needed, so a client built with\n * no API key or with only a publishable key can ask before anyone signs in.\n *\n * This is encryption at rest by the deployment's servers, which hold the\n * key. It is never end-to-end.\n */\nexport class ContentEncryption {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The current status. Show a \"stored encrypted\" note only while\n * `encrypted` is `true`. The answer is cached for up to 60 seconds, so a\n * change can take that long to show.\n *\n * Pass a `signal` (e.g. `AbortSignal.timeout(2500)`) to bound the call\n * including its retries; a `timeout` alone applies to each attempt. A\n * page that cannot get an answer should show no note, rather than wait.\n *\n * `GET /content-encryption`\n */\n async retrieve(options?: RequestExtras): Promise<ContentEncryptionStatus> {\n return this.request('GET', '/content-encryption', { ...options });\n }\n}\n"]}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/chunk-ZUULK36E.cjs","../src/resources/contentEncryption.ts"],"names":[],"mappings":"AAAA;ACWO,IAAM,kBAAA,EAAN,MAAwB;AAAA,EAC7B,WAAA,CAA6B,OAAA,EAAoB;AAApB,IAAA,IAAA,CAAA,QAAA,EAAA,OAAA;AAAA,EAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAalD,MAAM,QAAA,CAAS,OAAA,EAA2D;AACxE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,KAAA,EAAO,qBAAA,EAAuB,EAAE,GAAG,QAAQ,CAAC,CAAA;AAAA,EAClE;AACF,CAAA;ADRA;AACA;AACE;AACF,8CAAC","file":"/tmp/publish-sdk-0496/dist/chunk-ZUULK36E.cjs","sourcesContent":[null,"import type { RequestExtras, RequestFn } from '../client';\nimport type { ContentEncryptionStatus } from '../types';\n\n/**\n * Whether the deployment stores new messages and uploaded files encrypted\n * with its own key. Public: no credential is needed, so a client built with\n * no API key or with only a publishable key can ask before anyone signs in.\n *\n * This is encryption at rest by the deployment's servers, which hold the\n * key. It is never end-to-end.\n */\nexport class ContentEncryption {\n constructor(private readonly request: RequestFn) {}\n\n /**\n * The current status. Show a \"stored encrypted\" note only while\n * `encrypted` is `true`. The answer is cached for up to 60 seconds, so a\n * change can take that long to show.\n *\n * Pass a `signal` (e.g. `AbortSignal.timeout(2500)`) to bound the call\n * including its retries; a `timeout` alone applies to each attempt. A\n * page that cannot get an answer should show no note, rather than wait.\n *\n * `GET /content-encryption`\n */\n async retrieve(options?: RequestExtras): Promise<ContentEncryptionStatus> {\n return this.request('GET', '/content-encryption', { ...options });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/client.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B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;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,2OAAC","file":"/tmp/publish-sdk-0496/dist/client.cjs"}
package/dist/core.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/core.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,8LAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/core.cjs"}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/core.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,8LAAC","file":"/tmp/publish-sdk-0496/dist/core.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/currencies.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,kEAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/currencies.cjs"}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/currencies.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,kEAAC","file":"/tmp/publish-sdk-0496/dist/currencies.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/enigmaCardForm.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ukEAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/enigmaCardForm.cjs"}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/enigmaCardForm.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ukEAAC","file":"/tmp/publish-sdk-0496/dist/enigmaCardForm.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/error.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,yIAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/error.cjs"}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/error.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,yIAAC","file":"/tmp/publish-sdk-0496/dist/error.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/eventStream.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,gEAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/eventStream.cjs"}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/eventStream.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,gEAAC","file":"/tmp/publish-sdk-0496/dist/eventStream.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/exportDownload.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+eAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/exportDownload.cjs"}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/exportDownload.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,+eAAC","file":"/tmp/publish-sdk-0496/dist/exportDownload.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/tmp/pub0495/delopay-typescript-sdk/dist/feeProgram.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ihBAAC","file":"/tmp/pub0495/delopay-typescript-sdk/dist/feeProgram.cjs"}
1
+ {"version":3,"sources":["/tmp/publish-sdk-0496/dist/feeProgram.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,ihBAAC","file":"/tmp/publish-sdk-0496/dist/feeProgram.cjs"}