botshield-sdk 2.2.0 → 2.3.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 (493) hide show
  1. package/README.md +45 -7
  2. package/bin/mcp-server.js +1643 -120
  3. package/bin/mcp-server.js.map +40 -17
  4. package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
  5. package/dist/commonjs/funcs/census-verify-token.js +1 -1
  6. package/dist/commonjs/funcs/gates-actions-create.d.ts +18 -0
  7. package/dist/commonjs/funcs/gates-actions-create.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/gates-actions-create.js +123 -0
  9. package/dist/commonjs/funcs/gates-actions-create.js.map +1 -0
  10. package/dist/commonjs/funcs/gates-actions-list.d.ts +18 -0
  11. package/dist/commonjs/funcs/gates-actions-list.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/gates-actions-list.js +113 -0
  13. package/dist/commonjs/funcs/gates-actions-list.js.map +1 -0
  14. package/dist/commonjs/funcs/gates-actions-request-status.d.ts +18 -0
  15. package/dist/commonjs/funcs/gates-actions-request-status.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/gates-actions-request-status.js +127 -0
  17. package/dist/commonjs/funcs/gates-actions-request-status.js.map +1 -0
  18. package/dist/commonjs/funcs/gates-actions-request.d.ts +18 -0
  19. package/dist/commonjs/funcs/gates-actions-request.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/gates-actions-request.js +123 -0
  21. package/dist/commonjs/funcs/gates-actions-request.js.map +1 -0
  22. package/dist/commonjs/funcs/gates-actions-set-state.d.ts +18 -0
  23. package/dist/commonjs/funcs/gates-actions-set-state.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/gates-actions-set-state.js +123 -0
  25. package/dist/commonjs/funcs/gates-actions-set-state.js.map +1 -0
  26. package/dist/commonjs/funcs/gates-activate.d.ts +18 -0
  27. package/dist/commonjs/funcs/gates-activate.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/gates-activate.js +123 -0
  29. package/dist/commonjs/funcs/gates-activate.js.map +1 -0
  30. package/dist/commonjs/funcs/gates-cancel.d.ts +18 -0
  31. package/dist/commonjs/funcs/gates-cancel.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/gates-cancel.js +123 -0
  33. package/dist/commonjs/funcs/gates-cancel.js.map +1 -0
  34. package/dist/commonjs/funcs/gates-close.d.ts +18 -0
  35. package/dist/commonjs/funcs/gates-close.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/gates-close.js +123 -0
  37. package/dist/commonjs/funcs/gates-close.js.map +1 -0
  38. package/dist/commonjs/funcs/gates-create.d.ts +18 -0
  39. package/dist/commonjs/funcs/gates-create.d.ts.map +1 -0
  40. package/dist/commonjs/funcs/gates-create.js +123 -0
  41. package/dist/commonjs/funcs/gates-create.js.map +1 -0
  42. package/dist/commonjs/funcs/gates-extend.d.ts +18 -0
  43. package/dist/commonjs/funcs/gates-extend.d.ts.map +1 -0
  44. package/dist/commonjs/funcs/gates-extend.js +123 -0
  45. package/dist/commonjs/funcs/gates-extend.js.map +1 -0
  46. package/dist/commonjs/funcs/gates-get.d.ts +18 -0
  47. package/dist/commonjs/funcs/gates-get.d.ts.map +1 -0
  48. package/dist/commonjs/funcs/gates-get.js +126 -0
  49. package/dist/commonjs/funcs/gates-get.js.map +1 -0
  50. package/dist/commonjs/funcs/gates-list.d.ts +18 -0
  51. package/dist/commonjs/funcs/gates-list.d.ts.map +1 -0
  52. package/dist/commonjs/funcs/gates-list.js +126 -0
  53. package/dist/commonjs/funcs/gates-list.js.map +1 -0
  54. package/dist/commonjs/funcs/inline-passkey-complete.d.ts +20 -0
  55. package/dist/commonjs/funcs/inline-passkey-complete.d.ts.map +1 -0
  56. package/dist/commonjs/funcs/inline-passkey-complete.js +116 -0
  57. package/dist/commonjs/funcs/inline-passkey-complete.js.map +1 -0
  58. package/dist/commonjs/funcs/inline-passkey-get-options.d.ts +20 -0
  59. package/dist/commonjs/funcs/inline-passkey-get-options.d.ts.map +1 -0
  60. package/dist/commonjs/funcs/inline-passkey-get-options.js +116 -0
  61. package/dist/commonjs/funcs/inline-passkey-get-options.js.map +1 -0
  62. package/dist/commonjs/lib/config.d.ts +20 -4
  63. package/dist/commonjs/lib/config.d.ts.map +1 -1
  64. package/dist/commonjs/lib/config.js +22 -18
  65. package/dist/commonjs/lib/config.js.map +1 -1
  66. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  67. package/dist/commonjs/mcp-server/cli/start/command.js +4 -3
  68. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  69. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -1
  70. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  71. package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
  72. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  73. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  74. package/dist/commonjs/mcp-server/server.d.ts +1 -1
  75. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  76. package/dist/commonjs/mcp-server/server.js +2 -2
  77. package/dist/commonjs/mcp-server/server.js.map +1 -1
  78. package/dist/commonjs/models/bot-shield-action.d.ts +71 -0
  79. package/dist/commonjs/models/bot-shield-action.d.ts.map +1 -0
  80. package/dist/commonjs/models/bot-shield-action.js +108 -0
  81. package/dist/commonjs/models/bot-shield-action.js.map +1 -0
  82. package/dist/commonjs/models/error-body.d.ts +6 -1
  83. package/dist/commonjs/models/error-body.d.ts.map +1 -1
  84. package/dist/commonjs/models/error-body.js +2 -0
  85. package/dist/commonjs/models/error-body.js.map +1 -1
  86. package/dist/commonjs/models/gate-human-verified-event.d.ts +93 -0
  87. package/dist/commonjs/models/gate-human-verified-event.d.ts.map +1 -0
  88. package/dist/commonjs/models/gate-human-verified-event.js +119 -0
  89. package/dist/commonjs/models/gate-human-verified-event.js.map +1 -0
  90. package/dist/commonjs/models/gate-policy-doc.d.ts +126 -0
  91. package/dist/commonjs/models/gate-policy-doc.d.ts.map +1 -0
  92. package/dist/commonjs/models/gate-policy-doc.js +125 -0
  93. package/dist/commonjs/models/gate-policy-doc.js.map +1 -0
  94. package/dist/commonjs/models/gate-schedule.d.ts +28 -0
  95. package/dist/commonjs/models/gate-schedule.d.ts.map +1 -0
  96. package/dist/commonjs/models/gate-schedule.js +61 -0
  97. package/dist/commonjs/models/gate-schedule.js.map +1 -0
  98. package/dist/commonjs/models/gate.d.ts +215 -0
  99. package/dist/commonjs/models/gate.d.ts.map +1 -0
  100. package/dist/commonjs/models/gate.js +236 -0
  101. package/dist/commonjs/models/gate.js.map +1 -0
  102. package/dist/commonjs/models/gates-api-error.d.ts +24 -0
  103. package/dist/commonjs/models/gates-api-error.d.ts.map +1 -0
  104. package/dist/commonjs/models/gates-api-error.js +63 -0
  105. package/dist/commonjs/models/gates-api-error.js.map +1 -0
  106. package/dist/commonjs/models/index.d.ts +9 -0
  107. package/dist/commonjs/models/index.d.ts.map +1 -1
  108. package/dist/commonjs/models/index.js +9 -0
  109. package/dist/commonjs/models/index.js.map +1 -1
  110. package/dist/commonjs/models/inline-passkey-assertion.d.ts +66 -0
  111. package/dist/commonjs/models/inline-passkey-assertion.d.ts.map +1 -0
  112. package/dist/commonjs/models/inline-passkey-assertion.js +98 -0
  113. package/dist/commonjs/models/inline-passkey-assertion.js.map +1 -0
  114. package/dist/commonjs/models/inline-passkey-request-options.d.ts +78 -0
  115. package/dist/commonjs/models/inline-passkey-request-options.d.ts.map +1 -0
  116. package/dist/commonjs/models/inline-passkey-request-options.js +107 -0
  117. package/dist/commonjs/models/inline-passkey-request-options.js.map +1 -0
  118. package/dist/commonjs/models/operations/actions-propose.d.ts +8 -8
  119. package/dist/commonjs/models/operations/actions-propose.d.ts.map +1 -1
  120. package/dist/commonjs/models/operations/actions-propose.js +11 -12
  121. package/dist/commonjs/models/operations/actions-propose.js.map +1 -1
  122. package/dist/commonjs/models/operations/gates-api-actions-create.d.ts +94 -0
  123. package/dist/commonjs/models/operations/gates-api-actions-create.d.ts.map +1 -0
  124. package/dist/commonjs/models/operations/gates-api-actions-create.js +139 -0
  125. package/dist/commonjs/models/operations/gates-api-actions-create.js.map +1 -0
  126. package/dist/commonjs/models/operations/gates-api-actions-list.d.ts +65 -0
  127. package/dist/commonjs/models/operations/gates-api-actions-list.d.ts.map +1 -0
  128. package/dist/commonjs/models/operations/gates-api-actions-list.js +119 -0
  129. package/dist/commonjs/models/operations/gates-api-actions-list.js.map +1 -0
  130. package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts +114 -0
  131. package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts.map +1 -0
  132. package/dist/commonjs/models/operations/gates-api-actions-request-status.js +186 -0
  133. package/dist/commonjs/models/operations/gates-api-actions-request-status.js.map +1 -0
  134. package/dist/commonjs/models/operations/gates-api-actions-request.d.ts +128 -0
  135. package/dist/commonjs/models/operations/gates-api-actions-request.d.ts.map +1 -0
  136. package/dist/commonjs/models/operations/gates-api-actions-request.js +189 -0
  137. package/dist/commonjs/models/operations/gates-api-actions-request.js.map +1 -0
  138. package/dist/commonjs/models/operations/gates-api-actions-set-state.d.ts +96 -0
  139. package/dist/commonjs/models/operations/gates-api-actions-set-state.d.ts.map +1 -0
  140. package/dist/commonjs/models/operations/gates-api-actions-set-state.js +145 -0
  141. package/dist/commonjs/models/operations/gates-api-actions-set-state.js.map +1 -0
  142. package/dist/commonjs/models/operations/gates-api-activate.d.ts +84 -0
  143. package/dist/commonjs/models/operations/gates-api-activate.d.ts.map +1 -0
  144. package/dist/commonjs/models/operations/gates-api-activate.js +135 -0
  145. package/dist/commonjs/models/operations/gates-api-activate.js.map +1 -0
  146. package/dist/commonjs/models/operations/gates-api-cancel.d.ts +84 -0
  147. package/dist/commonjs/models/operations/gates-api-cancel.d.ts.map +1 -0
  148. package/dist/commonjs/models/operations/gates-api-cancel.js +135 -0
  149. package/dist/commonjs/models/operations/gates-api-cancel.js.map +1 -0
  150. package/dist/commonjs/models/operations/gates-api-close.d.ts +89 -0
  151. package/dist/commonjs/models/operations/gates-api-close.d.ts.map +1 -0
  152. package/dist/commonjs/models/operations/gates-api-close.js +145 -0
  153. package/dist/commonjs/models/operations/gates-api-close.js.map +1 -0
  154. package/dist/commonjs/models/operations/gates-api-create.d.ts +173 -0
  155. package/dist/commonjs/models/operations/gates-api-create.d.ts.map +1 -0
  156. package/dist/commonjs/models/operations/gates-api-create.js +198 -0
  157. package/dist/commonjs/models/operations/gates-api-create.js.map +1 -0
  158. package/dist/commonjs/models/operations/gates-api-extend.d.ts +99 -0
  159. package/dist/commonjs/models/operations/gates-api-extend.d.ts.map +1 -0
  160. package/dist/commonjs/models/operations/gates-api-extend.js +141 -0
  161. package/dist/commonjs/models/operations/gates-api-extend.js.map +1 -0
  162. package/dist/commonjs/models/operations/gates-api-get.d.ts +84 -0
  163. package/dist/commonjs/models/operations/gates-api-get.d.ts.map +1 -0
  164. package/dist/commonjs/models/operations/gates-api-get.js +135 -0
  165. package/dist/commonjs/models/operations/gates-api-get.js.map +1 -0
  166. package/dist/commonjs/models/operations/gates-api-list.d.ts +81 -0
  167. package/dist/commonjs/models/operations/gates-api-list.d.ts.map +1 -0
  168. package/dist/commonjs/models/operations/gates-api-list.js +135 -0
  169. package/dist/commonjs/models/operations/gates-api-list.js.map +1 -0
  170. package/dist/commonjs/models/operations/index.d.ts +14 -0
  171. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  172. package/dist/commonjs/models/operations/index.js +14 -0
  173. package/dist/commonjs/models/operations/index.js.map +1 -1
  174. package/dist/commonjs/models/operations/request-passkey-complete.d.ts +107 -0
  175. package/dist/commonjs/models/operations/request-passkey-complete.d.ts.map +1 -0
  176. package/dist/commonjs/models/operations/request-passkey-complete.js +141 -0
  177. package/dist/commonjs/models/operations/request-passkey-complete.js.map +1 -0
  178. package/dist/commonjs/models/operations/request-passkey-options.d.ts +178 -0
  179. package/dist/commonjs/models/operations/request-passkey-options.d.ts.map +1 -0
  180. package/dist/commonjs/models/operations/request-passkey-options.js +193 -0
  181. package/dist/commonjs/models/operations/request-passkey-options.js.map +1 -0
  182. package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +22 -12
  183. package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
  184. package/dist/commonjs/models/operations/sdk-create-verification-link.js +17 -11
  185. package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
  186. package/dist/commonjs/models/operations/sdk-verify-token.d.ts +6 -6
  187. package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
  188. package/dist/commonjs/models/operations/sdk-verify-token.js +2 -4
  189. package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
  190. package/dist/commonjs/models/operations/secured-accounts-status.d.ts +5 -5
  191. package/dist/commonjs/models/operations/secured-accounts-status.d.ts.map +1 -1
  192. package/dist/commonjs/models/operations/secured-accounts-status.js +6 -6
  193. package/dist/commonjs/models/operations/secured-accounts-status.js.map +1 -1
  194. package/dist/commonjs/models/operations/verification-get-status.d.ts +181 -13
  195. package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
  196. package/dist/commonjs/models/operations/verification-get-status.js +159 -12
  197. package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
  198. package/dist/commonjs/models/passes-per-person.d.ts +34 -0
  199. package/dist/commonjs/models/passes-per-person.d.ts.map +1 -0
  200. package/dist/commonjs/models/passes-per-person.js +72 -0
  201. package/dist/commonjs/models/passes-per-person.js.map +1 -0
  202. package/dist/commonjs/sdk/census.d.ts +1 -1
  203. package/dist/commonjs/sdk/census.js +1 -1
  204. package/dist/commonjs/sdk/gates-actions.d.ts +40 -0
  205. package/dist/commonjs/sdk/gates-actions.d.ts.map +1 -0
  206. package/dist/commonjs/sdk/gates-actions.js +62 -0
  207. package/dist/commonjs/sdk/gates-actions.js.map +1 -0
  208. package/dist/commonjs/sdk/gates.d.ts +57 -0
  209. package/dist/commonjs/sdk/gates.d.ts.map +1 -0
  210. package/dist/commonjs/sdk/gates.js +87 -0
  211. package/dist/commonjs/sdk/gates.js.map +1 -0
  212. package/dist/commonjs/sdk/inline-passkey.d.ts +23 -0
  213. package/dist/commonjs/sdk/inline-passkey.d.ts.map +1 -0
  214. package/dist/commonjs/sdk/inline-passkey.js +36 -0
  215. package/dist/commonjs/sdk/inline-passkey.js.map +1 -0
  216. package/dist/commonjs/sdk/sdk.d.ts +6 -0
  217. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  218. package/dist/commonjs/sdk/sdk.js +10 -0
  219. package/dist/commonjs/sdk/sdk.js.map +1 -1
  220. package/dist/esm/funcs/census-verify-token.d.ts +1 -1
  221. package/dist/esm/funcs/census-verify-token.js +1 -1
  222. package/dist/esm/funcs/gates-actions-create.d.ts +18 -0
  223. package/dist/esm/funcs/gates-actions-create.d.ts.map +1 -0
  224. package/dist/esm/funcs/gates-actions-create.js +87 -0
  225. package/dist/esm/funcs/gates-actions-create.js.map +1 -0
  226. package/dist/esm/funcs/gates-actions-list.d.ts +18 -0
  227. package/dist/esm/funcs/gates-actions-list.d.ts.map +1 -0
  228. package/dist/esm/funcs/gates-actions-list.js +77 -0
  229. package/dist/esm/funcs/gates-actions-list.js.map +1 -0
  230. package/dist/esm/funcs/gates-actions-request-status.d.ts +18 -0
  231. package/dist/esm/funcs/gates-actions-request-status.d.ts.map +1 -0
  232. package/dist/esm/funcs/gates-actions-request-status.js +91 -0
  233. package/dist/esm/funcs/gates-actions-request-status.js.map +1 -0
  234. package/dist/esm/funcs/gates-actions-request.d.ts +18 -0
  235. package/dist/esm/funcs/gates-actions-request.d.ts.map +1 -0
  236. package/dist/esm/funcs/gates-actions-request.js +87 -0
  237. package/dist/esm/funcs/gates-actions-request.js.map +1 -0
  238. package/dist/esm/funcs/gates-actions-set-state.d.ts +18 -0
  239. package/dist/esm/funcs/gates-actions-set-state.d.ts.map +1 -0
  240. package/dist/esm/funcs/gates-actions-set-state.js +87 -0
  241. package/dist/esm/funcs/gates-actions-set-state.js.map +1 -0
  242. package/dist/esm/funcs/gates-activate.d.ts +18 -0
  243. package/dist/esm/funcs/gates-activate.d.ts.map +1 -0
  244. package/dist/esm/funcs/gates-activate.js +87 -0
  245. package/dist/esm/funcs/gates-activate.js.map +1 -0
  246. package/dist/esm/funcs/gates-cancel.d.ts +18 -0
  247. package/dist/esm/funcs/gates-cancel.d.ts.map +1 -0
  248. package/dist/esm/funcs/gates-cancel.js +87 -0
  249. package/dist/esm/funcs/gates-cancel.js.map +1 -0
  250. package/dist/esm/funcs/gates-close.d.ts +18 -0
  251. package/dist/esm/funcs/gates-close.d.ts.map +1 -0
  252. package/dist/esm/funcs/gates-close.js +87 -0
  253. package/dist/esm/funcs/gates-close.js.map +1 -0
  254. package/dist/esm/funcs/gates-create.d.ts +18 -0
  255. package/dist/esm/funcs/gates-create.d.ts.map +1 -0
  256. package/dist/esm/funcs/gates-create.js +87 -0
  257. package/dist/esm/funcs/gates-create.js.map +1 -0
  258. package/dist/esm/funcs/gates-extend.d.ts +18 -0
  259. package/dist/esm/funcs/gates-extend.d.ts.map +1 -0
  260. package/dist/esm/funcs/gates-extend.js +87 -0
  261. package/dist/esm/funcs/gates-extend.js.map +1 -0
  262. package/dist/esm/funcs/gates-get.d.ts +18 -0
  263. package/dist/esm/funcs/gates-get.d.ts.map +1 -0
  264. package/dist/esm/funcs/gates-get.js +90 -0
  265. package/dist/esm/funcs/gates-get.js.map +1 -0
  266. package/dist/esm/funcs/gates-list.d.ts +18 -0
  267. package/dist/esm/funcs/gates-list.d.ts.map +1 -0
  268. package/dist/esm/funcs/gates-list.js +90 -0
  269. package/dist/esm/funcs/gates-list.js.map +1 -0
  270. package/dist/esm/funcs/inline-passkey-complete.d.ts +20 -0
  271. package/dist/esm/funcs/inline-passkey-complete.d.ts.map +1 -0
  272. package/dist/esm/funcs/inline-passkey-complete.js +80 -0
  273. package/dist/esm/funcs/inline-passkey-complete.js.map +1 -0
  274. package/dist/esm/funcs/inline-passkey-get-options.d.ts +20 -0
  275. package/dist/esm/funcs/inline-passkey-get-options.d.ts.map +1 -0
  276. package/dist/esm/funcs/inline-passkey-get-options.js +80 -0
  277. package/dist/esm/funcs/inline-passkey-get-options.js.map +1 -0
  278. package/dist/esm/lib/config.d.ts +20 -4
  279. package/dist/esm/lib/config.d.ts.map +1 -1
  280. package/dist/esm/lib/config.js +21 -17
  281. package/dist/esm/lib/config.js.map +1 -1
  282. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  283. package/dist/esm/mcp-server/cli/start/command.js +5 -4
  284. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  285. package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -1
  286. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  287. package/dist/esm/mcp-server/cli/start/impl.js +2 -2
  288. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  289. package/dist/esm/mcp-server/mcp-server.js +1 -1
  290. package/dist/esm/mcp-server/server.d.ts +1 -1
  291. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  292. package/dist/esm/mcp-server/server.js +2 -2
  293. package/dist/esm/mcp-server/server.js.map +1 -1
  294. package/dist/esm/models/bot-shield-action.d.ts +71 -0
  295. package/dist/esm/models/bot-shield-action.d.ts.map +1 -0
  296. package/dist/esm/models/bot-shield-action.js +70 -0
  297. package/dist/esm/models/bot-shield-action.js.map +1 -0
  298. package/dist/esm/models/error-body.d.ts +6 -1
  299. package/dist/esm/models/error-body.d.ts.map +1 -1
  300. package/dist/esm/models/error-body.js +2 -0
  301. package/dist/esm/models/error-body.js.map +1 -1
  302. package/dist/esm/models/gate-human-verified-event.d.ts +93 -0
  303. package/dist/esm/models/gate-human-verified-event.d.ts.map +1 -0
  304. package/dist/esm/models/gate-human-verified-event.js +81 -0
  305. package/dist/esm/models/gate-human-verified-event.js.map +1 -0
  306. package/dist/esm/models/gate-policy-doc.d.ts +126 -0
  307. package/dist/esm/models/gate-policy-doc.d.ts.map +1 -0
  308. package/dist/esm/models/gate-policy-doc.js +87 -0
  309. package/dist/esm/models/gate-policy-doc.js.map +1 -0
  310. package/dist/esm/models/gate-schedule.d.ts +28 -0
  311. package/dist/esm/models/gate-schedule.d.ts.map +1 -0
  312. package/dist/esm/models/gate-schedule.js +23 -0
  313. package/dist/esm/models/gate-schedule.js.map +1 -0
  314. package/dist/esm/models/gate.d.ts +215 -0
  315. package/dist/esm/models/gate.d.ts.map +1 -0
  316. package/dist/esm/models/gate.js +194 -0
  317. package/dist/esm/models/gate.js.map +1 -0
  318. package/dist/esm/models/gates-api-error.d.ts +24 -0
  319. package/dist/esm/models/gates-api-error.d.ts.map +1 -0
  320. package/dist/esm/models/gates-api-error.js +25 -0
  321. package/dist/esm/models/gates-api-error.js.map +1 -0
  322. package/dist/esm/models/index.d.ts +9 -0
  323. package/dist/esm/models/index.d.ts.map +1 -1
  324. package/dist/esm/models/index.js +9 -0
  325. package/dist/esm/models/index.js.map +1 -1
  326. package/dist/esm/models/inline-passkey-assertion.d.ts +66 -0
  327. package/dist/esm/models/inline-passkey-assertion.d.ts.map +1 -0
  328. package/dist/esm/models/inline-passkey-assertion.js +58 -0
  329. package/dist/esm/models/inline-passkey-assertion.js.map +1 -0
  330. package/dist/esm/models/inline-passkey-request-options.d.ts +78 -0
  331. package/dist/esm/models/inline-passkey-request-options.d.ts.map +1 -0
  332. package/dist/esm/models/inline-passkey-request-options.js +67 -0
  333. package/dist/esm/models/inline-passkey-request-options.js.map +1 -0
  334. package/dist/esm/models/operations/actions-propose.d.ts +8 -8
  335. package/dist/esm/models/operations/actions-propose.d.ts.map +1 -1
  336. package/dist/esm/models/operations/actions-propose.js +8 -9
  337. package/dist/esm/models/operations/actions-propose.js.map +1 -1
  338. package/dist/esm/models/operations/gates-api-actions-create.d.ts +94 -0
  339. package/dist/esm/models/operations/gates-api-actions-create.d.ts.map +1 -0
  340. package/dist/esm/models/operations/gates-api-actions-create.js +93 -0
  341. package/dist/esm/models/operations/gates-api-actions-create.js.map +1 -0
  342. package/dist/esm/models/operations/gates-api-actions-list.d.ts +65 -0
  343. package/dist/esm/models/operations/gates-api-actions-list.d.ts.map +1 -0
  344. package/dist/esm/models/operations/gates-api-actions-list.js +75 -0
  345. package/dist/esm/models/operations/gates-api-actions-list.js.map +1 -0
  346. package/dist/esm/models/operations/gates-api-actions-request-status.d.ts +114 -0
  347. package/dist/esm/models/operations/gates-api-actions-request-status.d.ts.map +1 -0
  348. package/dist/esm/models/operations/gates-api-actions-request-status.js +140 -0
  349. package/dist/esm/models/operations/gates-api-actions-request-status.js.map +1 -0
  350. package/dist/esm/models/operations/gates-api-actions-request.d.ts +128 -0
  351. package/dist/esm/models/operations/gates-api-actions-request.d.ts.map +1 -0
  352. package/dist/esm/models/operations/gates-api-actions-request.js +143 -0
  353. package/dist/esm/models/operations/gates-api-actions-request.js.map +1 -0
  354. package/dist/esm/models/operations/gates-api-actions-set-state.d.ts +96 -0
  355. package/dist/esm/models/operations/gates-api-actions-set-state.d.ts.map +1 -0
  356. package/dist/esm/models/operations/gates-api-actions-set-state.js +99 -0
  357. package/dist/esm/models/operations/gates-api-actions-set-state.js.map +1 -0
  358. package/dist/esm/models/operations/gates-api-activate.d.ts +84 -0
  359. package/dist/esm/models/operations/gates-api-activate.d.ts.map +1 -0
  360. package/dist/esm/models/operations/gates-api-activate.js +89 -0
  361. package/dist/esm/models/operations/gates-api-activate.js.map +1 -0
  362. package/dist/esm/models/operations/gates-api-cancel.d.ts +84 -0
  363. package/dist/esm/models/operations/gates-api-cancel.d.ts.map +1 -0
  364. package/dist/esm/models/operations/gates-api-cancel.js +89 -0
  365. package/dist/esm/models/operations/gates-api-cancel.js.map +1 -0
  366. package/dist/esm/models/operations/gates-api-close.d.ts +89 -0
  367. package/dist/esm/models/operations/gates-api-close.d.ts.map +1 -0
  368. package/dist/esm/models/operations/gates-api-close.js +99 -0
  369. package/dist/esm/models/operations/gates-api-close.js.map +1 -0
  370. package/dist/esm/models/operations/gates-api-create.d.ts +173 -0
  371. package/dist/esm/models/operations/gates-api-create.d.ts.map +1 -0
  372. package/dist/esm/models/operations/gates-api-create.js +152 -0
  373. package/dist/esm/models/operations/gates-api-create.js.map +1 -0
  374. package/dist/esm/models/operations/gates-api-extend.d.ts +99 -0
  375. package/dist/esm/models/operations/gates-api-extend.d.ts.map +1 -0
  376. package/dist/esm/models/operations/gates-api-extend.js +95 -0
  377. package/dist/esm/models/operations/gates-api-extend.js.map +1 -0
  378. package/dist/esm/models/operations/gates-api-get.d.ts +84 -0
  379. package/dist/esm/models/operations/gates-api-get.d.ts.map +1 -0
  380. package/dist/esm/models/operations/gates-api-get.js +89 -0
  381. package/dist/esm/models/operations/gates-api-get.js.map +1 -0
  382. package/dist/esm/models/operations/gates-api-list.d.ts +81 -0
  383. package/dist/esm/models/operations/gates-api-list.d.ts.map +1 -0
  384. package/dist/esm/models/operations/gates-api-list.js +89 -0
  385. package/dist/esm/models/operations/gates-api-list.js.map +1 -0
  386. package/dist/esm/models/operations/index.d.ts +14 -0
  387. package/dist/esm/models/operations/index.d.ts.map +1 -1
  388. package/dist/esm/models/operations/index.js +14 -0
  389. package/dist/esm/models/operations/index.js.map +1 -1
  390. package/dist/esm/models/operations/request-passkey-complete.d.ts +107 -0
  391. package/dist/esm/models/operations/request-passkey-complete.d.ts.map +1 -0
  392. package/dist/esm/models/operations/request-passkey-complete.js +97 -0
  393. package/dist/esm/models/operations/request-passkey-complete.js.map +1 -0
  394. package/dist/esm/models/operations/request-passkey-options.d.ts +178 -0
  395. package/dist/esm/models/operations/request-passkey-options.d.ts.map +1 -0
  396. package/dist/esm/models/operations/request-passkey-options.js +149 -0
  397. package/dist/esm/models/operations/request-passkey-options.js.map +1 -0
  398. package/dist/esm/models/operations/sdk-create-verification-link.d.ts +22 -12
  399. package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
  400. package/dist/esm/models/operations/sdk-create-verification-link.js +16 -10
  401. package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
  402. package/dist/esm/models/operations/sdk-verify-token.d.ts +6 -6
  403. package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
  404. package/dist/esm/models/operations/sdk-verify-token.js +2 -4
  405. package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
  406. package/dist/esm/models/operations/secured-accounts-status.d.ts +5 -5
  407. package/dist/esm/models/operations/secured-accounts-status.d.ts.map +1 -1
  408. package/dist/esm/models/operations/secured-accounts-status.js +5 -5
  409. package/dist/esm/models/operations/secured-accounts-status.js.map +1 -1
  410. package/dist/esm/models/operations/verification-get-status.d.ts +181 -13
  411. package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
  412. package/dist/esm/models/operations/verification-get-status.js +154 -11
  413. package/dist/esm/models/operations/verification-get-status.js.map +1 -1
  414. package/dist/esm/models/passes-per-person.d.ts +34 -0
  415. package/dist/esm/models/passes-per-person.d.ts.map +1 -0
  416. package/dist/esm/models/passes-per-person.js +34 -0
  417. package/dist/esm/models/passes-per-person.js.map +1 -0
  418. package/dist/esm/sdk/census.d.ts +1 -1
  419. package/dist/esm/sdk/census.js +1 -1
  420. package/dist/esm/sdk/gates-actions.d.ts +40 -0
  421. package/dist/esm/sdk/gates-actions.d.ts.map +1 -0
  422. package/dist/esm/sdk/gates-actions.js +58 -0
  423. package/dist/esm/sdk/gates-actions.js.map +1 -0
  424. package/dist/esm/sdk/gates.d.ts +57 -0
  425. package/dist/esm/sdk/gates.d.ts.map +1 -0
  426. package/dist/esm/sdk/gates.js +83 -0
  427. package/dist/esm/sdk/gates.js.map +1 -0
  428. package/dist/esm/sdk/inline-passkey.d.ts +23 -0
  429. package/dist/esm/sdk/inline-passkey.d.ts.map +1 -0
  430. package/dist/esm/sdk/inline-passkey.js +32 -0
  431. package/dist/esm/sdk/inline-passkey.js.map +1 -0
  432. package/dist/esm/sdk/sdk.d.ts +6 -0
  433. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  434. package/dist/esm/sdk/sdk.js +10 -0
  435. package/dist/esm/sdk/sdk.js.map +1 -1
  436. package/jsr.json +1 -1
  437. package/package.json +1 -1
  438. package/src/funcs/census-verify-token.ts +1 -1
  439. package/src/funcs/gates-actions-create.ts +185 -0
  440. package/src/funcs/gates-actions-list.ts +166 -0
  441. package/src/funcs/gates-actions-request-status.ts +192 -0
  442. package/src/funcs/gates-actions-request.ts +185 -0
  443. package/src/funcs/gates-actions-set-state.ts +185 -0
  444. package/src/funcs/gates-activate.ts +184 -0
  445. package/src/funcs/gates-cancel.ts +184 -0
  446. package/src/funcs/gates-close.ts +184 -0
  447. package/src/funcs/gates-create.ts +184 -0
  448. package/src/funcs/gates-extend.ts +184 -0
  449. package/src/funcs/gates-get.ts +188 -0
  450. package/src/funcs/gates-list.ts +189 -0
  451. package/src/funcs/inline-passkey-complete.ts +172 -0
  452. package/src/funcs/inline-passkey-get-options.ts +172 -0
  453. package/src/lib/config.ts +22 -18
  454. package/src/mcp-server/cli/start/command.ts +5 -4
  455. package/src/mcp-server/cli/start/impl.ts +3 -3
  456. package/src/mcp-server/mcp-server.ts +1 -1
  457. package/src/mcp-server/server.ts +3 -3
  458. package/src/models/bot-shield-action.ts +156 -0
  459. package/src/models/error-body.ts +8 -1
  460. package/src/models/gate-human-verified-event.ts +181 -0
  461. package/src/models/gate-policy-doc.ts +202 -0
  462. package/src/models/gate-schedule.ts +61 -0
  463. package/src/models/gate.ts +424 -0
  464. package/src/models/gates-api-error.ts +59 -0
  465. package/src/models/index.ts +9 -0
  466. package/src/models/inline-passkey-assertion.ts +147 -0
  467. package/src/models/inline-passkey-request-options.ts +175 -0
  468. package/src/models/operations/actions-propose.ts +34 -27
  469. package/src/models/operations/gates-api-actions-create.ts +274 -0
  470. package/src/models/operations/gates-api-actions-list.ts +207 -0
  471. package/src/models/operations/gates-api-actions-request-status.ts +348 -0
  472. package/src/models/operations/gates-api-actions-request.ts +359 -0
  473. package/src/models/operations/gates-api-actions-set-state.ts +284 -0
  474. package/src/models/operations/gates-api-activate.ts +250 -0
  475. package/src/models/operations/gates-api-cancel.ts +250 -0
  476. package/src/models/operations/gates-api-close.ts +265 -0
  477. package/src/models/operations/gates-api-create.ts +387 -0
  478. package/src/models/operations/gates-api-extend.ts +271 -0
  479. package/src/models/operations/gates-api-get.ts +248 -0
  480. package/src/models/operations/gates-api-list.ts +247 -0
  481. package/src/models/operations/index.ts +14 -0
  482. package/src/models/operations/request-passkey-complete.ts +272 -0
  483. package/src/models/operations/request-passkey-options.ts +372 -0
  484. package/src/models/operations/sdk-create-verification-link.ts +46 -24
  485. package/src/models/operations/sdk-verify-token.ts +8 -10
  486. package/src/models/operations/secured-accounts-status.ts +17 -9
  487. package/src/models/operations/verification-get-status.ts +352 -20
  488. package/src/models/passes-per-person.ts +74 -0
  489. package/src/sdk/census.ts +1 -1
  490. package/src/sdk/gates-actions.ts +107 -0
  491. package/src/sdk/gates.ts +155 -0
  492. package/src/sdk/inline-passkey.ts +49 -0
  493. package/src/sdk/sdk.ts +12 -0
@@ -0,0 +1,372 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { ClosedEnum, OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import * as types from "../../types/primitives.js";
12
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
13
+ import * as models from "../index.js";
14
+
15
+ export type RequestPasskeyOptionsRequest = {
16
+ /**
17
+ * From create-verification-link (server to server). Must be pending and unexpired.
18
+ */
19
+ requestId: string;
20
+ };
21
+
22
+ /**
23
+ * Present instead of `options` when the inline passkey can't run for this request.
24
+ */
25
+ export const Fallback = {
26
+ App: "app",
27
+ } as const;
28
+ /**
29
+ * Present instead of `options` when the inline passkey can't run for this request.
30
+ */
31
+ export type Fallback = ClosedEnum<typeof Fallback>;
32
+
33
+ /**
34
+ * Why `fallback` was returned. `not_linked`: the request's partner_user_ref has no active link (or the request carries none). `no_passkey`: the linked person has no passkey.
35
+ */
36
+ export const RequestPasskeyOptionsReason = {
37
+ NotLinked: "not_linked",
38
+ NoPasskey: "no_passkey",
39
+ } as const;
40
+ /**
41
+ * Why `fallback` was returned. `not_linked`: the request's partner_user_ref has no active link (or the request carries none). `no_passkey`: the linked person has no passkey.
42
+ */
43
+ export type RequestPasskeyOptionsReason = OpenEnum<
44
+ typeof RequestPasskeyOptionsReason
45
+ >;
46
+
47
+ /**
48
+ * Closed request only.
49
+ */
50
+ export const RequestPasskeyOptionsOutcome = {
51
+ Expired: "expired",
52
+ Failed: "failed",
53
+ } as const;
54
+ /**
55
+ * Closed request only.
56
+ */
57
+ export type RequestPasskeyOptionsOutcome = OpenEnum<
58
+ typeof RequestPasskeyOptionsOutcome
59
+ >;
60
+
61
+ /**
62
+ * Closed request only. `unknown_request` (outcome failed), `request_closed` (failed — no longer pending), `request_expired` (expired).
63
+ */
64
+ export const Code = {
65
+ UnknownRequest: "unknown_request",
66
+ RequestClosed: "request_closed",
67
+ RequestExpired: "request_expired",
68
+ } as const;
69
+ /**
70
+ * Closed request only. `unknown_request` (outcome failed), `request_closed` (failed — no longer pending), `request_expired` (expired).
71
+ */
72
+ export type Code = OpenEnum<typeof Code>;
73
+
74
+ /**
75
+ * Exactly one of three shapes. **Passkey**: `options` + `challenge_id` — run `navigator.credentials.get({ publicKey: options })` (or the native equivalent on rpId botshield.ai) and send the result to passkey-complete. **Fallback**: `fallback: "app"` — the request has no linked person (`not_linked`) or that person has no passkey (`no_passkey`); open `url` (the app hand-off). **Closed**: `outcome` + `code` — the request is unknown, closed or expired. Every passkey/fallback answer carries `url` and `setup_url` so you can offer both when this device holds none of the listed passkeys.
76
+ */
77
+ export type DataApp = {
78
+ /**
79
+ * WebAuthn PublicKeyCredentialRequestOptionsJSON (base64url strings). rpId is botshield.ai; userVerification is always `required`.
80
+ */
81
+ options?: models.InlinePasskeyRequestOptions | undefined;
82
+ /**
83
+ * Send back with passkey-complete. Single use.
84
+ */
85
+ challengeId?: string | undefined;
86
+ /**
87
+ * The challenge expires 5 minutes after it is issued.
88
+ */
89
+ expiresAt?: Date | undefined;
90
+ /**
91
+ * Present instead of `options` when the inline passkey can't run for this request.
92
+ */
93
+ fallback?: Fallback | undefined;
94
+ /**
95
+ * Why `fallback` was returned. `not_linked`: the request's partner_user_ref has no active link (or the request carries none). `no_passkey`: the linked person has no passkey.
96
+ */
97
+ reason?: RequestPasskeyOptionsReason | undefined;
98
+ /**
99
+ * The app hand-off for this request (the same /verify URL create-verification-link returns as web_url).
100
+ */
101
+ url?: string | undefined;
102
+ /**
103
+ * Where the person adds a BotShield passkey (Settings → Passkey). Render "Set up a passkey in BotShield" from this; never hardcode a BotShield URL.
104
+ */
105
+ setupUrl?: string | undefined;
106
+ /**
107
+ * Closed request only.
108
+ */
109
+ outcome?: RequestPasskeyOptionsOutcome | undefined;
110
+ /**
111
+ * Closed request only. `unknown_request` (outcome failed), `request_closed` (failed — no longer pending), `request_expired` (expired).
112
+ */
113
+ code?: Code | undefined;
114
+ };
115
+
116
+ export type RequestPasskeyOptionsData = {
117
+ /**
118
+ * Exactly one of three shapes. **Passkey**: `options` + `challenge_id` — run `navigator.credentials.get({ publicKey: options })` (or the native equivalent on rpId botshield.ai) and send the result to passkey-complete. **Fallback**: `fallback: "app"` — the request has no linked person (`not_linked`) or that person has no passkey (`no_passkey`); open `url` (the app hand-off). **Closed**: `outcome` + `code` — the request is unknown, closed or expired. Every passkey/fallback answer carries `url` and `setup_url` so you can offer both when this device holds none of the listed passkeys.
119
+ */
120
+ data?: DataApp | undefined;
121
+ /**
122
+ * Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
123
+ */
124
+ error?: models.ErrorBody | undefined;
125
+ };
126
+
127
+ /**
128
+ * Passkey options, the app fallback, or a closed-request outcome at `data.data`. Handler errors arrive here too (HTTP 200) as `data.error`: `inline_not_for_age_gate` (400): the request is an Age Gate. This lane is for one named account; send the person to `data.error.url` (the app hand-off), where the age assertion is read. A 500-class `data.error` ("Could not start the passkey") means retry.
129
+ */
130
+ export type RequestPasskeyOptionsResponse = {
131
+ data: RequestPasskeyOptionsData;
132
+ };
133
+
134
+ /** @internal */
135
+ export const RequestPasskeyOptionsRequest$inboundSchema: z.ZodType<
136
+ RequestPasskeyOptionsRequest,
137
+ z.ZodTypeDef,
138
+ unknown
139
+ > = z.object({
140
+ request_id: types.string(),
141
+ }).transform((v) => {
142
+ return remap$(v, {
143
+ "request_id": "requestId",
144
+ });
145
+ });
146
+ /** @internal */
147
+ export type RequestPasskeyOptionsRequest$Outbound = {
148
+ request_id: string;
149
+ };
150
+
151
+ /** @internal */
152
+ export const RequestPasskeyOptionsRequest$outboundSchema: z.ZodType<
153
+ RequestPasskeyOptionsRequest$Outbound,
154
+ z.ZodTypeDef,
155
+ RequestPasskeyOptionsRequest
156
+ > = z.object({
157
+ requestId: z.string(),
158
+ }).transform((v) => {
159
+ return remap$(v, {
160
+ requestId: "request_id",
161
+ });
162
+ });
163
+
164
+ export function requestPasskeyOptionsRequestToJSON(
165
+ requestPasskeyOptionsRequest: RequestPasskeyOptionsRequest,
166
+ ): string {
167
+ return JSON.stringify(
168
+ RequestPasskeyOptionsRequest$outboundSchema.parse(
169
+ requestPasskeyOptionsRequest,
170
+ ),
171
+ );
172
+ }
173
+ export function requestPasskeyOptionsRequestFromJSON(
174
+ jsonString: string,
175
+ ): SafeParseResult<RequestPasskeyOptionsRequest, SDKValidationError> {
176
+ return safeParse(
177
+ jsonString,
178
+ (x) => RequestPasskeyOptionsRequest$inboundSchema.parse(JSON.parse(x)),
179
+ `Failed to parse 'RequestPasskeyOptionsRequest' from JSON`,
180
+ );
181
+ }
182
+
183
+ /** @internal */
184
+ export const Fallback$inboundSchema: z.ZodNativeEnum<typeof Fallback> = z
185
+ .nativeEnum(Fallback);
186
+ /** @internal */
187
+ export const Fallback$outboundSchema: z.ZodNativeEnum<typeof Fallback> =
188
+ Fallback$inboundSchema;
189
+
190
+ /** @internal */
191
+ export const RequestPasskeyOptionsReason$inboundSchema: z.ZodType<
192
+ RequestPasskeyOptionsReason,
193
+ z.ZodTypeDef,
194
+ unknown
195
+ > = openEnums.inboundSchema(RequestPasskeyOptionsReason);
196
+ /** @internal */
197
+ export const RequestPasskeyOptionsReason$outboundSchema: z.ZodType<
198
+ string,
199
+ z.ZodTypeDef,
200
+ RequestPasskeyOptionsReason
201
+ > = openEnums.outboundSchema(RequestPasskeyOptionsReason);
202
+
203
+ /** @internal */
204
+ export const RequestPasskeyOptionsOutcome$inboundSchema: z.ZodType<
205
+ RequestPasskeyOptionsOutcome,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = openEnums.inboundSchema(RequestPasskeyOptionsOutcome);
209
+ /** @internal */
210
+ export const RequestPasskeyOptionsOutcome$outboundSchema: z.ZodType<
211
+ string,
212
+ z.ZodTypeDef,
213
+ RequestPasskeyOptionsOutcome
214
+ > = openEnums.outboundSchema(RequestPasskeyOptionsOutcome);
215
+
216
+ /** @internal */
217
+ export const Code$inboundSchema: z.ZodType<Code, z.ZodTypeDef, unknown> =
218
+ openEnums.inboundSchema(Code);
219
+ /** @internal */
220
+ export const Code$outboundSchema: z.ZodType<string, z.ZodTypeDef, Code> =
221
+ openEnums.outboundSchema(Code);
222
+
223
+ /** @internal */
224
+ export const DataApp$inboundSchema: z.ZodType<DataApp, z.ZodTypeDef, unknown> =
225
+ z.object({
226
+ options: types.optional(models.InlinePasskeyRequestOptions$inboundSchema),
227
+ challenge_id: types.optional(types.string()),
228
+ expires_at: types.optional(types.date()),
229
+ fallback: types.optional(Fallback$inboundSchema),
230
+ reason: types.optional(RequestPasskeyOptionsReason$inboundSchema),
231
+ url: types.optional(types.string()),
232
+ setup_url: types.optional(types.string()),
233
+ outcome: types.optional(RequestPasskeyOptionsOutcome$inboundSchema),
234
+ code: types.optional(Code$inboundSchema),
235
+ }).transform((v) => {
236
+ return remap$(v, {
237
+ "challenge_id": "challengeId",
238
+ "expires_at": "expiresAt",
239
+ "setup_url": "setupUrl",
240
+ });
241
+ });
242
+ /** @internal */
243
+ export type DataApp$Outbound = {
244
+ options?: models.InlinePasskeyRequestOptions$Outbound | undefined;
245
+ challenge_id?: string | undefined;
246
+ expires_at?: string | undefined;
247
+ fallback?: string | undefined;
248
+ reason?: string | undefined;
249
+ url?: string | undefined;
250
+ setup_url?: string | undefined;
251
+ outcome?: string | undefined;
252
+ code?: string | undefined;
253
+ };
254
+
255
+ /** @internal */
256
+ export const DataApp$outboundSchema: z.ZodType<
257
+ DataApp$Outbound,
258
+ z.ZodTypeDef,
259
+ DataApp
260
+ > = z.object({
261
+ options: models.InlinePasskeyRequestOptions$outboundSchema.optional(),
262
+ challengeId: z.string().optional(),
263
+ expiresAt: z.date().transform(v => v.toISOString()).optional(),
264
+ fallback: Fallback$outboundSchema.optional(),
265
+ reason: RequestPasskeyOptionsReason$outboundSchema.optional(),
266
+ url: z.string().optional(),
267
+ setupUrl: z.string().optional(),
268
+ outcome: RequestPasskeyOptionsOutcome$outboundSchema.optional(),
269
+ code: Code$outboundSchema.optional(),
270
+ }).transform((v) => {
271
+ return remap$(v, {
272
+ challengeId: "challenge_id",
273
+ expiresAt: "expires_at",
274
+ setupUrl: "setup_url",
275
+ });
276
+ });
277
+
278
+ export function dataAppToJSON(dataApp: DataApp): string {
279
+ return JSON.stringify(DataApp$outboundSchema.parse(dataApp));
280
+ }
281
+ export function dataAppFromJSON(
282
+ jsonString: string,
283
+ ): SafeParseResult<DataApp, SDKValidationError> {
284
+ return safeParse(
285
+ jsonString,
286
+ (x) => DataApp$inboundSchema.parse(JSON.parse(x)),
287
+ `Failed to parse 'DataApp' from JSON`,
288
+ );
289
+ }
290
+
291
+ /** @internal */
292
+ export const RequestPasskeyOptionsData$inboundSchema: z.ZodType<
293
+ RequestPasskeyOptionsData,
294
+ z.ZodTypeDef,
295
+ unknown
296
+ > = z.object({
297
+ data: types.optional(z.lazy(() => DataApp$inboundSchema)),
298
+ error: types.optional(models.ErrorBody$inboundSchema),
299
+ });
300
+ /** @internal */
301
+ export type RequestPasskeyOptionsData$Outbound = {
302
+ data?: DataApp$Outbound | undefined;
303
+ error?: models.ErrorBody$Outbound | undefined;
304
+ };
305
+
306
+ /** @internal */
307
+ export const RequestPasskeyOptionsData$outboundSchema: z.ZodType<
308
+ RequestPasskeyOptionsData$Outbound,
309
+ z.ZodTypeDef,
310
+ RequestPasskeyOptionsData
311
+ > = z.object({
312
+ data: z.lazy(() => DataApp$outboundSchema).optional(),
313
+ error: models.ErrorBody$outboundSchema.optional(),
314
+ });
315
+
316
+ export function requestPasskeyOptionsDataToJSON(
317
+ requestPasskeyOptionsData: RequestPasskeyOptionsData,
318
+ ): string {
319
+ return JSON.stringify(
320
+ RequestPasskeyOptionsData$outboundSchema.parse(requestPasskeyOptionsData),
321
+ );
322
+ }
323
+ export function requestPasskeyOptionsDataFromJSON(
324
+ jsonString: string,
325
+ ): SafeParseResult<RequestPasskeyOptionsData, SDKValidationError> {
326
+ return safeParse(
327
+ jsonString,
328
+ (x) => RequestPasskeyOptionsData$inboundSchema.parse(JSON.parse(x)),
329
+ `Failed to parse 'RequestPasskeyOptionsData' from JSON`,
330
+ );
331
+ }
332
+
333
+ /** @internal */
334
+ export const RequestPasskeyOptionsResponse$inboundSchema: z.ZodType<
335
+ RequestPasskeyOptionsResponse,
336
+ z.ZodTypeDef,
337
+ unknown
338
+ > = z.object({
339
+ data: z.lazy(() => RequestPasskeyOptionsData$inboundSchema),
340
+ });
341
+ /** @internal */
342
+ export type RequestPasskeyOptionsResponse$Outbound = {
343
+ data: RequestPasskeyOptionsData$Outbound;
344
+ };
345
+
346
+ /** @internal */
347
+ export const RequestPasskeyOptionsResponse$outboundSchema: z.ZodType<
348
+ RequestPasskeyOptionsResponse$Outbound,
349
+ z.ZodTypeDef,
350
+ RequestPasskeyOptionsResponse
351
+ > = z.object({
352
+ data: z.lazy(() => RequestPasskeyOptionsData$outboundSchema),
353
+ });
354
+
355
+ export function requestPasskeyOptionsResponseToJSON(
356
+ requestPasskeyOptionsResponse: RequestPasskeyOptionsResponse,
357
+ ): string {
358
+ return JSON.stringify(
359
+ RequestPasskeyOptionsResponse$outboundSchema.parse(
360
+ requestPasskeyOptionsResponse,
361
+ ),
362
+ );
363
+ }
364
+ export function requestPasskeyOptionsResponseFromJSON(
365
+ jsonString: string,
366
+ ): SafeParseResult<RequestPasskeyOptionsResponse, SDKValidationError> {
367
+ return safeParse(
368
+ jsonString,
369
+ (x) => RequestPasskeyOptionsResponse$inboundSchema.parse(JSON.parse(x)),
370
+ `Failed to parse 'RequestPasskeyOptionsResponse' from JSON`,
371
+ );
372
+ }
@@ -72,7 +72,7 @@ export type SDKCreateVerificationLinkRequest = {
72
72
  */
73
73
  botshieldUserId?: string | undefined;
74
74
  /**
75
- * Your own reference for this user (hashed at rest, never returned). Enables BotShield ID continuity: on later visits a returning human evaluates as human_verified without a ceremony.
75
+ * Your own reference for this user (hashed at rest, never returned). Enables BotShield ID continuity: on later visits a returning human evaluates as human_verified without a ceremony. Required on a gate whose policy is `link: required` (`link_requires_user_ref`) and with `act` (`action_requires_user_ref`).
76
76
  */
77
77
  partnerUserRef?: string | undefined;
78
78
  /**
@@ -92,6 +92,14 @@ export type SDKCreateVerificationLinkRequest = {
92
92
  * The gate this request runs (the gate's action name, as listed in the Console under BotShield Gate).
93
93
  */
94
94
  gate?: string | undefined;
95
+ /**
96
+ * BotShield Actions: the act this tap is for — e.g. `watch` or `dibs:listing_4417`. The part before the first ':' must name a placed, live BotShield Action (Console → Verified Accounts › BotShield Actions, or the Gates API); the rest is yours and is never read — it rides the signed token as the `act` claim (verify-token echoes it verbatim), so your own check can tell one tap from another. Never together with `gate`/`scope` (`action_not_a_gate`). An action always stands on a verified account: `partner_user_ref` is required (`action_requires_user_ref`) and the tap runs the linking ceremony.
97
+ */
98
+ act?: string | undefined;
99
+ /**
100
+ * What the person is confirming, shown verbatim on their card (e.g. "Trade with sam_k — 2 GA for $180"). Only with `act` (`act_label_without_act`). Display only — it is NOT in the token; bind terms through `act` (e.g. a hash of them), which the token carries.
101
+ */
102
+ actLabel?: string | undefined;
95
103
  };
96
104
 
97
105
  export const SDKCreateVerificationLinkSDKTypeResponse = {
@@ -115,19 +123,21 @@ export type SDKCreateVerificationLinkOrganization = {
115
123
  /**
116
124
  * The gate's type. An Age Gate never notarizes (widget suppresses the chip).
117
125
  */
118
- export const GateType = {
126
+ export const SDKCreateVerificationLinkGateType = {
119
127
  Human: "human",
120
128
  Age: "age",
121
129
  } as const;
122
130
  /**
123
131
  * The gate's type. An Age Gate never notarizes (widget suppresses the chip).
124
132
  */
125
- export type GateType = OpenEnum<typeof GateType>;
133
+ export type SDKCreateVerificationLinkGateType = OpenEnum<
134
+ typeof SDKCreateVerificationLinkGateType
135
+ >;
126
136
 
127
137
  /**
128
138
  * Age Gate only.
129
139
  */
130
- export const AgeThreshold = {
140
+ export const SDKCreateVerificationLinkAgeThreshold = {
131
141
  Thirteen: 13,
132
142
  Eighteen: 18,
133
143
  TwentyOne: 21,
@@ -135,7 +145,9 @@ export const AgeThreshold = {
135
145
  /**
136
146
  * Age Gate only.
137
147
  */
138
- export type AgeThreshold = OpenEnum<typeof AgeThreshold>;
148
+ export type SDKCreateVerificationLinkAgeThreshold = OpenEnum<
149
+ typeof SDKCreateVerificationLinkAgeThreshold
150
+ >;
139
151
 
140
152
  /**
141
153
  * GA 3.0: present when notarize was requested but could not be applied. notarize_not_enabled = the gate's Console switch is off; the switch is the authority and the request field cannot turn the offer on.
@@ -179,11 +191,11 @@ export type SDKCreateVerificationLinkDataData = {
179
191
  /**
180
192
  * The gate's type. An Age Gate never notarizes (widget suppresses the chip).
181
193
  */
182
- gateType?: GateType | undefined;
194
+ gateType?: SDKCreateVerificationLinkGateType | undefined;
183
195
  /**
184
196
  * Age Gate only.
185
197
  */
186
- ageThreshold?: AgeThreshold | undefined;
198
+ ageThreshold?: SDKCreateVerificationLinkAgeThreshold | undefined;
187
199
  /**
188
200
  * GA 3.0 Secured Accounts: true when an active Secured Account binding exists for (your platform, platform-user-ref). The widget skips the "Link BotShield ID" chip when true.
189
201
  */
@@ -213,7 +225,7 @@ export type SDKCreateVerificationLinkData = {
213
225
  };
214
226
 
215
227
  /**
216
- * Verification link created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 400 (partner not found / gate not active), 401, 403 (gate not in the token allowlist), 409 (pending request already exists — call revoke-verification).
228
+ * Verification link created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 400 (partner not found / gate not active), 401, 403 (gate not in the token allowlist), 409 (pending request already exists — call revoke-verification). BotShield Actions and linking codes (`data.error.code`): `act_label_without_act` (400), `action_not_a_gate` (400), `action_invalid` (400 — act malformed), `action_not_found` (400 — no action with that key here), `action_off` (409), `action_requires_user_ref` (400), `link_requires_user_ref` (400 — the gate's policy is `link: required` and no partner_user_ref was sent).
217
229
  */
218
230
  export type SDKCreateVerificationLinkResponse = {
219
231
  data: SDKCreateVerificationLinkData;
@@ -304,6 +316,8 @@ export const SDKCreateVerificationLinkRequest$inboundSchema: z.ZodType<
304
316
  metadata: types.optional(z.record(z.any())),
305
317
  notarize: types.optional(types.boolean()),
306
318
  gate: types.optional(types.string()),
319
+ act: types.optional(types.string()),
320
+ act_label: types.optional(types.string()),
307
321
  }).transform((v) => {
308
322
  return remap$(v, {
309
323
  "user_email": "userEmail",
@@ -314,6 +328,7 @@ export const SDKCreateVerificationLinkRequest$inboundSchema: z.ZodType<
314
328
  "partner_user_ref": "partnerUserRef",
315
329
  "link_on_verify": "linkOnVerify",
316
330
  "parent_request_id": "parentRequestId",
331
+ "act_label": "actLabel",
317
332
  });
318
333
  });
319
334
  /** @internal */
@@ -331,6 +346,8 @@ export type SDKCreateVerificationLinkRequest$Outbound = {
331
346
  metadata?: { [k: string]: any } | undefined;
332
347
  notarize?: boolean | undefined;
333
348
  gate?: string | undefined;
349
+ act?: string | undefined;
350
+ act_label?: string | undefined;
334
351
  };
335
352
 
336
353
  /** @internal */
@@ -352,6 +369,8 @@ export const SDKCreateVerificationLinkRequest$outboundSchema: z.ZodType<
352
369
  metadata: z.record(z.any()).optional(),
353
370
  notarize: z.boolean().optional(),
354
371
  gate: z.string().optional(),
372
+ act: z.string().optional(),
373
+ actLabel: z.string().optional(),
355
374
  }).transform((v) => {
356
375
  return remap$(v, {
357
376
  userEmail: "user_email",
@@ -362,6 +381,7 @@ export const SDKCreateVerificationLinkRequest$outboundSchema: z.ZodType<
362
381
  partnerUserRef: "partner_user_ref",
363
382
  linkOnVerify: "link_on_verify",
364
383
  parentRequestId: "parent_request_id",
384
+ actLabel: "act_label",
365
385
  });
366
386
  });
367
387
 
@@ -453,30 +473,30 @@ export function sdkCreateVerificationLinkOrganizationFromJSON(
453
473
  }
454
474
 
455
475
  /** @internal */
456
- export const GateType$inboundSchema: z.ZodType<
457
- GateType,
476
+ export const SDKCreateVerificationLinkGateType$inboundSchema: z.ZodType<
477
+ SDKCreateVerificationLinkGateType,
458
478
  z.ZodTypeDef,
459
479
  unknown
460
- > = openEnums.inboundSchema(GateType);
480
+ > = openEnums.inboundSchema(SDKCreateVerificationLinkGateType);
461
481
  /** @internal */
462
- export const GateType$outboundSchema: z.ZodType<
482
+ export const SDKCreateVerificationLinkGateType$outboundSchema: z.ZodType<
463
483
  string,
464
484
  z.ZodTypeDef,
465
- GateType
466
- > = openEnums.outboundSchema(GateType);
485
+ SDKCreateVerificationLinkGateType
486
+ > = openEnums.outboundSchema(SDKCreateVerificationLinkGateType);
467
487
 
468
488
  /** @internal */
469
- export const AgeThreshold$inboundSchema: z.ZodType<
470
- AgeThreshold,
489
+ export const SDKCreateVerificationLinkAgeThreshold$inboundSchema: z.ZodType<
490
+ SDKCreateVerificationLinkAgeThreshold,
471
491
  z.ZodTypeDef,
472
492
  unknown
473
- > = openEnums.inboundSchemaInt(AgeThreshold);
493
+ > = openEnums.inboundSchemaInt(SDKCreateVerificationLinkAgeThreshold);
474
494
  /** @internal */
475
- export const AgeThreshold$outboundSchema: z.ZodType<
495
+ export const SDKCreateVerificationLinkAgeThreshold$outboundSchema: z.ZodType<
476
496
  number,
477
497
  z.ZodTypeDef,
478
- AgeThreshold
479
- > = openEnums.outboundSchemaInt(AgeThreshold);
498
+ SDKCreateVerificationLinkAgeThreshold
499
+ > = openEnums.outboundSchemaInt(SDKCreateVerificationLinkAgeThreshold);
480
500
 
481
501
  /** @internal */
482
502
  export const SDKCreateVerificationLinkNotarizeFallbackReason$inboundSchema:
@@ -513,8 +533,10 @@ export const SDKCreateVerificationLinkDataData$inboundSchema: z.ZodType<
513
533
  z.lazy(() => SDKCreateVerificationLinkOrganization$inboundSchema),
514
534
  ),
515
535
  pushed_to_devices: types.number(),
516
- gate_type: types.optional(GateType$inboundSchema),
517
- age_threshold: types.optional(AgeThreshold$inboundSchema),
536
+ gate_type: types.optional(SDKCreateVerificationLinkGateType$inboundSchema),
537
+ age_threshold: types.optional(
538
+ SDKCreateVerificationLinkAgeThreshold$inboundSchema,
539
+ ),
518
540
  trusted: types.optional(types.boolean()),
519
541
  notarize: types.optional(types.boolean()),
520
542
  notarize_fallback_reason: types.optional(
@@ -574,8 +596,8 @@ export const SDKCreateVerificationLinkDataData$outboundSchema: z.ZodType<
574
596
  SDKCreateVerificationLinkOrganization$outboundSchema
575
597
  ).optional(),
576
598
  pushedToDevices: z.number().int(),
577
- gateType: GateType$outboundSchema.optional(),
578
- ageThreshold: AgeThreshold$outboundSchema.optional(),
599
+ gateType: SDKCreateVerificationLinkGateType$outboundSchema.optional(),
600
+ ageThreshold: SDKCreateVerificationLinkAgeThreshold$outboundSchema.optional(),
579
601
  trusted: z.boolean().optional(),
580
602
  notarize: z.boolean().optional(),
581
603
  notarizeFallbackReason:
@@ -69,6 +69,10 @@ export type Claims = {
69
69
  * The organization the token was issued for (the JWT aud claim).
70
70
  */
71
71
  audience?: string | null | undefined;
72
+ /**
73
+ * BotShield Actions: the `act` this tap was for, echoed verbatim (your own string, e.g. `dibs:listing_4417`). Present only on tokens minted for an action.
74
+ */
75
+ act?: string | undefined;
72
76
  };
73
77
 
74
78
  /**
@@ -95,13 +99,9 @@ export type SDKVerifyTokenDataData = {
95
99
  expiredAt?: Date | null | undefined;
96
100
  claims?: Claims | null | undefined;
97
101
  /**
98
- * true when this token was already checked once. From 2026-11-15 a second check returns valid: false (single use).
102
+ * true when this token was already checked once — the check is refused (valid: false). Each token is valid for one check.
99
103
  */
100
104
  replayed?: boolean | undefined;
101
- /**
102
- * When repeat checks start failing (present when replayed is true).
103
- */
104
- strictSingleUseFrom?: Date | undefined;
105
105
  /**
106
106
  * Present when `valid` is true. `pass` when the token records a verified human.
107
107
  */
@@ -229,6 +229,7 @@ export const Claims$inboundSchema: z.ZodType<Claims, z.ZodTypeDef, unknown> = z
229
229
  trusted_since: types.optional(types.date()),
230
230
  last_pass_at: types.optional(types.date()),
231
231
  audience: z.nullable(types.string()).optional(),
232
+ act: types.optional(types.string()),
232
233
  }).transform((v) => {
233
234
  return remap$(v, {
234
235
  "request_id": "requestId",
@@ -254,6 +255,7 @@ export type Claims$Outbound = {
254
255
  trusted_since?: string | undefined;
255
256
  last_pass_at?: string | undefined;
256
257
  audience?: string | null | undefined;
258
+ act?: string | undefined;
257
259
  };
258
260
 
259
261
  /** @internal */
@@ -274,6 +276,7 @@ export const Claims$outboundSchema: z.ZodType<
274
276
  trustedSince: z.date().transform(v => v.toISOString()).optional(),
275
277
  lastPassAt: z.date().transform(v => v.toISOString()).optional(),
276
278
  audience: z.nullable(z.string()).optional(),
279
+ act: z.string().optional(),
277
280
  }).transform((v) => {
278
281
  return remap$(v, {
279
282
  requestId: "request_id",
@@ -323,12 +326,10 @@ export const SDKVerifyTokenDataData$inboundSchema: z.ZodType<
323
326
  expired_at: z.nullable(types.date()).optional(),
324
327
  claims: z.nullable(z.lazy(() => Claims$inboundSchema)).optional(),
325
328
  replayed: types.optional(types.boolean()),
326
- strict_single_use_from: types.optional(types.date()),
327
329
  verdict: types.optional(SDKVerifyTokenVerdict$inboundSchema),
328
330
  }).transform((v) => {
329
331
  return remap$(v, {
330
332
  "expired_at": "expiredAt",
331
- "strict_single_use_from": "strictSingleUseFrom",
332
333
  });
333
334
  });
334
335
  /** @internal */
@@ -338,7 +339,6 @@ export type SDKVerifyTokenDataData$Outbound = {
338
339
  expired_at?: string | null | undefined;
339
340
  claims?: Claims$Outbound | null | undefined;
340
341
  replayed?: boolean | undefined;
341
- strict_single_use_from?: string | undefined;
342
342
  verdict?: string | undefined;
343
343
  };
344
344
 
@@ -353,12 +353,10 @@ export const SDKVerifyTokenDataData$outboundSchema: z.ZodType<
353
353
  expiredAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
354
354
  claims: z.nullable(z.lazy(() => Claims$outboundSchema)).optional(),
355
355
  replayed: z.boolean().optional(),
356
- strictSingleUseFrom: z.date().transform(v => v.toISOString()).optional(),
357
356
  verdict: SDKVerifyTokenVerdict$outboundSchema.optional(),
358
357
  }).transform((v) => {
359
358
  return remap$(v, {
360
359
  expiredAt: "expired_at",
361
- strictSingleUseFrom: "strict_single_use_from",
362
360
  });
363
361
  });
364
362