botshield-sdk 2.2.1 → 4.0.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 (408) hide show
  1. package/README.md +29 -9
  2. package/bin/mcp-server.js +1163 -122
  3. package/bin/mcp-server.js.map +37 -26
  4. package/dist/commonjs/funcs/actions-propose-action.d.ts +1 -1
  5. package/dist/commonjs/funcs/actions-propose-action.js +1 -1
  6. package/dist/commonjs/funcs/actions-verify-resolution.d.ts +18 -0
  7. package/dist/commonjs/funcs/actions-verify-resolution.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/actions-verify-resolution.js +129 -0
  9. package/dist/commonjs/funcs/actions-verify-resolution.js.map +1 -0
  10. package/dist/commonjs/funcs/census-confirm-link.d.ts +17 -0
  11. package/dist/commonjs/funcs/census-confirm-link.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/census-confirm-link.js +119 -0
  13. package/dist/commonjs/funcs/census-confirm-link.js.map +1 -0
  14. package/dist/commonjs/funcs/census-create-verification-link.d.ts +2 -0
  15. package/dist/commonjs/funcs/census-create-verification-link.d.ts.map +1 -1
  16. package/dist/commonjs/funcs/census-create-verification-link.js +2 -0
  17. package/dist/commonjs/funcs/census-create-verification-link.js.map +1 -1
  18. package/dist/commonjs/funcs/census-send-by-number.d.ts +18 -0
  19. package/dist/commonjs/funcs/census-send-by-number.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/census-send-by-number.js +123 -0
  21. package/dist/commonjs/funcs/census-send-by-number.js.map +1 -0
  22. package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
  23. package/dist/commonjs/funcs/census-verify-token.js +1 -1
  24. package/dist/commonjs/funcs/gates-actions-request-cancel.d.ts +18 -0
  25. package/dist/commonjs/funcs/gates-actions-request-cancel.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/gates-actions-request-cancel.js +123 -0
  27. package/dist/commonjs/funcs/gates-actions-request-cancel.js.map +1 -0
  28. package/dist/commonjs/funcs/gates-actions-request-status.js +1 -0
  29. package/dist/commonjs/funcs/gates-actions-request-status.js.map +1 -1
  30. package/dist/commonjs/funcs/gates-actions-request.d.ts +1 -1
  31. package/dist/commonjs/funcs/gates-actions-request.js +1 -1
  32. package/dist/commonjs/funcs/gates-actions-update.d.ts +18 -0
  33. package/dist/commonjs/funcs/gates-actions-update.d.ts.map +1 -0
  34. package/dist/commonjs/funcs/gates-actions-update.js +123 -0
  35. package/dist/commonjs/funcs/gates-actions-update.js.map +1 -0
  36. package/dist/commonjs/funcs/inline-passkey-complete.d.ts +20 -0
  37. package/dist/commonjs/funcs/inline-passkey-complete.d.ts.map +1 -0
  38. package/dist/commonjs/funcs/inline-passkey-complete.js +116 -0
  39. package/dist/commonjs/funcs/inline-passkey-complete.js.map +1 -0
  40. package/dist/commonjs/funcs/inline-passkey-get-options.d.ts +20 -0
  41. package/dist/commonjs/funcs/inline-passkey-get-options.d.ts.map +1 -0
  42. package/dist/commonjs/funcs/inline-passkey-get-options.js +116 -0
  43. package/dist/commonjs/funcs/inline-passkey-get-options.js.map +1 -0
  44. package/dist/commonjs/funcs/verification-get-status.d.ts +1 -1
  45. package/dist/commonjs/funcs/verification-get-status.js +1 -1
  46. package/dist/commonjs/lib/config.d.ts +20 -4
  47. package/dist/commonjs/lib/config.d.ts.map +1 -1
  48. package/dist/commonjs/lib/config.js +22 -18
  49. package/dist/commonjs/lib/config.js.map +1 -1
  50. package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
  51. package/dist/commonjs/mcp-server/cli/start/command.js +4 -3
  52. package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
  53. package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -1
  54. package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
  55. package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
  56. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  57. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  58. package/dist/commonjs/mcp-server/server.d.ts +1 -1
  59. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  60. package/dist/commonjs/mcp-server/server.js +2 -2
  61. package/dist/commonjs/mcp-server/server.js.map +1 -1
  62. package/dist/commonjs/models/bot-shield-action.d.ts +10 -0
  63. package/dist/commonjs/models/bot-shield-action.d.ts.map +1 -1
  64. package/dist/commonjs/models/bot-shield-action.js +8 -0
  65. package/dist/commonjs/models/bot-shield-action.js.map +1 -1
  66. package/dist/commonjs/models/error-body.d.ts +11 -1
  67. package/dist/commonjs/models/error-body.d.ts.map +1 -1
  68. package/dist/commonjs/models/error-body.js +6 -0
  69. package/dist/commonjs/models/error-body.js.map +1 -1
  70. package/dist/commonjs/models/gate-human-verified-event.d.ts +93 -0
  71. package/dist/commonjs/models/gate-human-verified-event.d.ts.map +1 -0
  72. package/dist/commonjs/models/gate-human-verified-event.js +119 -0
  73. package/dist/commonjs/models/gate-human-verified-event.js.map +1 -0
  74. package/dist/commonjs/models/gate-unavailable-event.d.ts +112 -0
  75. package/dist/commonjs/models/gate-unavailable-event.d.ts.map +1 -0
  76. package/dist/commonjs/models/gate-unavailable-event.js +137 -0
  77. package/dist/commonjs/models/gate-unavailable-event.js.map +1 -0
  78. package/dist/commonjs/models/gates-api-error.d.ts +5 -0
  79. package/dist/commonjs/models/gates-api-error.d.ts.map +1 -1
  80. package/dist/commonjs/models/gates-api-error.js +11 -0
  81. package/dist/commonjs/models/gates-api-error.js.map +1 -1
  82. package/dist/commonjs/models/index.d.ts +4 -0
  83. package/dist/commonjs/models/index.d.ts.map +1 -1
  84. package/dist/commonjs/models/index.js +4 -0
  85. package/dist/commonjs/models/index.js.map +1 -1
  86. package/dist/commonjs/models/inline-passkey-assertion.d.ts +66 -0
  87. package/dist/commonjs/models/inline-passkey-assertion.d.ts.map +1 -0
  88. package/dist/commonjs/models/inline-passkey-assertion.js +98 -0
  89. package/dist/commonjs/models/inline-passkey-assertion.js.map +1 -0
  90. package/dist/commonjs/models/inline-passkey-request-options.d.ts +78 -0
  91. package/dist/commonjs/models/inline-passkey-request-options.d.ts.map +1 -0
  92. package/dist/commonjs/models/inline-passkey-request-options.js +107 -0
  93. package/dist/commonjs/models/inline-passkey-request-options.js.map +1 -0
  94. package/dist/commonjs/models/operations/actions-propose.d.ts +21 -1
  95. package/dist/commonjs/models/operations/actions-propose.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/actions-propose.js +16 -0
  97. package/dist/commonjs/models/operations/actions-propose.js.map +1 -1
  98. package/dist/commonjs/models/operations/gates-api-actions-create.d.ts +11 -1
  99. package/dist/commonjs/models/operations/gates-api-actions-create.d.ts.map +1 -1
  100. package/dist/commonjs/models/operations/gates-api-actions-create.js +4 -0
  101. package/dist/commonjs/models/operations/gates-api-actions-create.js.map +1 -1
  102. package/dist/commonjs/models/operations/gates-api-actions-list.d.ts +1 -1
  103. package/dist/commonjs/models/operations/gates-api-actions-request-cancel.d.ts +113 -0
  104. package/dist/commonjs/models/operations/gates-api-actions-request-cancel.d.ts.map +1 -0
  105. package/dist/commonjs/models/operations/gates-api-actions-request-cancel.js +178 -0
  106. package/dist/commonjs/models/operations/gates-api-actions-request-cancel.js.map +1 -0
  107. package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts +12 -1
  108. package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts.map +1 -1
  109. package/dist/commonjs/models/operations/gates-api-actions-request-status.js +2 -0
  110. package/dist/commonjs/models/operations/gates-api-actions-request-status.js.map +1 -1
  111. package/dist/commonjs/models/operations/gates-api-actions-request.d.ts +34 -4
  112. package/dist/commonjs/models/operations/gates-api-actions-request.d.ts.map +1 -1
  113. package/dist/commonjs/models/operations/gates-api-actions-request.js +32 -3
  114. package/dist/commonjs/models/operations/gates-api-actions-request.js.map +1 -1
  115. package/dist/commonjs/models/operations/gates-api-actions-set-state.d.ts +1 -1
  116. package/dist/commonjs/models/operations/gates-api-actions-update.d.ts +99 -0
  117. package/dist/commonjs/models/operations/gates-api-actions-update.d.ts.map +1 -0
  118. package/dist/commonjs/models/operations/gates-api-actions-update.js +141 -0
  119. package/dist/commonjs/models/operations/gates-api-actions-update.js.map +1 -0
  120. package/dist/commonjs/models/operations/index.d.ts +7 -0
  121. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  122. package/dist/commonjs/models/operations/index.js +7 -0
  123. package/dist/commonjs/models/operations/index.js.map +1 -1
  124. package/dist/commonjs/models/operations/request-passkey-complete.d.ts +107 -0
  125. package/dist/commonjs/models/operations/request-passkey-complete.d.ts.map +1 -0
  126. package/dist/commonjs/models/operations/request-passkey-complete.js +141 -0
  127. package/dist/commonjs/models/operations/request-passkey-complete.js.map +1 -0
  128. package/dist/commonjs/models/operations/request-passkey-options.d.ts +178 -0
  129. package/dist/commonjs/models/operations/request-passkey-options.d.ts.map +1 -0
  130. package/dist/commonjs/models/operations/request-passkey-options.js +193 -0
  131. package/dist/commonjs/models/operations/request-passkey-options.js.map +1 -0
  132. package/dist/commonjs/models/operations/sdk-confirm-link.d.ts +130 -0
  133. package/dist/commonjs/models/operations/sdk-confirm-link.d.ts.map +1 -0
  134. package/dist/commonjs/models/operations/sdk-confirm-link.js +205 -0
  135. package/dist/commonjs/models/operations/sdk-confirm-link.js.map +1 -0
  136. package/dist/commonjs/models/operations/sdk-create-session.d.ts +1 -1
  137. package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +43 -2
  138. package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
  139. package/dist/commonjs/models/operations/sdk-create-verification-link.js +30 -1
  140. package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
  141. package/dist/commonjs/models/operations/sdk-send-by-number.d.ts +124 -0
  142. package/dist/commonjs/models/operations/sdk-send-by-number.d.ts.map +1 -0
  143. package/dist/commonjs/models/operations/sdk-send-by-number.js +203 -0
  144. package/dist/commonjs/models/operations/sdk-send-by-number.js.map +1 -0
  145. package/dist/commonjs/models/operations/sdk-verify-resolution.d.ts +125 -0
  146. package/dist/commonjs/models/operations/sdk-verify-resolution.d.ts.map +1 -0
  147. package/dist/commonjs/models/operations/sdk-verify-resolution.js +182 -0
  148. package/dist/commonjs/models/operations/sdk-verify-resolution.js.map +1 -0
  149. package/dist/commonjs/models/operations/sdk-verify-token.d.ts +95 -1
  150. package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
  151. package/dist/commonjs/models/operations/sdk-verify-token.js +86 -1
  152. package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
  153. package/dist/commonjs/models/operations/verification-get-status.d.ts +86 -24
  154. package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
  155. package/dist/commonjs/models/operations/verification-get-status.js +70 -18
  156. package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
  157. package/dist/commonjs/models/passes-per-person.d.ts +1 -1
  158. package/dist/commonjs/sdk/actions.d.ts +8 -1
  159. package/dist/commonjs/sdk/actions.d.ts.map +1 -1
  160. package/dist/commonjs/sdk/actions.js +11 -1
  161. package/dist/commonjs/sdk/actions.js.map +1 -1
  162. package/dist/commonjs/sdk/census.d.ts +17 -1
  163. package/dist/commonjs/sdk/census.d.ts.map +1 -1
  164. package/dist/commonjs/sdk/census.js +23 -1
  165. package/dist/commonjs/sdk/census.js.map +1 -1
  166. package/dist/commonjs/sdk/gates-actions.d.ts +15 -1
  167. package/dist/commonjs/sdk/gates-actions.d.ts.map +1 -1
  168. package/dist/commonjs/sdk/gates-actions.js +21 -1
  169. package/dist/commonjs/sdk/gates-actions.js.map +1 -1
  170. package/dist/commonjs/sdk/inline-passkey.d.ts +23 -0
  171. package/dist/commonjs/sdk/inline-passkey.d.ts.map +1 -0
  172. package/dist/commonjs/sdk/inline-passkey.js +36 -0
  173. package/dist/commonjs/sdk/inline-passkey.js.map +1 -0
  174. package/dist/commonjs/sdk/sdk.d.ts +5 -2
  175. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  176. package/dist/commonjs/sdk/sdk.js +9 -4
  177. package/dist/commonjs/sdk/sdk.js.map +1 -1
  178. package/dist/commonjs/sdk/verification.d.ts +1 -1
  179. package/dist/commonjs/sdk/verification.js +1 -1
  180. package/dist/esm/funcs/actions-propose-action.d.ts +1 -1
  181. package/dist/esm/funcs/actions-propose-action.js +1 -1
  182. package/dist/esm/funcs/actions-verify-resolution.d.ts +18 -0
  183. package/dist/esm/funcs/actions-verify-resolution.d.ts.map +1 -0
  184. package/dist/esm/funcs/actions-verify-resolution.js +93 -0
  185. package/dist/esm/funcs/actions-verify-resolution.js.map +1 -0
  186. package/dist/esm/funcs/census-confirm-link.d.ts +17 -0
  187. package/dist/esm/funcs/census-confirm-link.d.ts.map +1 -0
  188. package/dist/esm/funcs/census-confirm-link.js +83 -0
  189. package/dist/esm/funcs/census-confirm-link.js.map +1 -0
  190. package/dist/esm/funcs/census-create-verification-link.d.ts +2 -0
  191. package/dist/esm/funcs/census-create-verification-link.d.ts.map +1 -1
  192. package/dist/esm/funcs/census-create-verification-link.js +2 -0
  193. package/dist/esm/funcs/census-create-verification-link.js.map +1 -1
  194. package/dist/esm/funcs/census-send-by-number.d.ts +18 -0
  195. package/dist/esm/funcs/census-send-by-number.d.ts.map +1 -0
  196. package/dist/esm/funcs/census-send-by-number.js +87 -0
  197. package/dist/esm/funcs/census-send-by-number.js.map +1 -0
  198. package/dist/esm/funcs/census-verify-token.d.ts +1 -1
  199. package/dist/esm/funcs/census-verify-token.js +1 -1
  200. package/dist/esm/funcs/gates-actions-request-cancel.d.ts +18 -0
  201. package/dist/esm/funcs/gates-actions-request-cancel.d.ts.map +1 -0
  202. package/dist/esm/funcs/gates-actions-request-cancel.js +87 -0
  203. package/dist/esm/funcs/gates-actions-request-cancel.js.map +1 -0
  204. package/dist/esm/funcs/gates-actions-request-status.js +1 -0
  205. package/dist/esm/funcs/gates-actions-request-status.js.map +1 -1
  206. package/dist/esm/funcs/gates-actions-request.d.ts +1 -1
  207. package/dist/esm/funcs/gates-actions-request.js +1 -1
  208. package/dist/esm/funcs/gates-actions-update.d.ts +18 -0
  209. package/dist/esm/funcs/gates-actions-update.d.ts.map +1 -0
  210. package/dist/esm/funcs/gates-actions-update.js +87 -0
  211. package/dist/esm/funcs/gates-actions-update.js.map +1 -0
  212. package/dist/esm/funcs/inline-passkey-complete.d.ts +20 -0
  213. package/dist/esm/funcs/inline-passkey-complete.d.ts.map +1 -0
  214. package/dist/esm/funcs/inline-passkey-complete.js +80 -0
  215. package/dist/esm/funcs/inline-passkey-complete.js.map +1 -0
  216. package/dist/esm/funcs/inline-passkey-get-options.d.ts +20 -0
  217. package/dist/esm/funcs/inline-passkey-get-options.d.ts.map +1 -0
  218. package/dist/esm/funcs/inline-passkey-get-options.js +80 -0
  219. package/dist/esm/funcs/inline-passkey-get-options.js.map +1 -0
  220. package/dist/esm/funcs/verification-get-status.d.ts +1 -1
  221. package/dist/esm/funcs/verification-get-status.js +1 -1
  222. package/dist/esm/lib/config.d.ts +20 -4
  223. package/dist/esm/lib/config.d.ts.map +1 -1
  224. package/dist/esm/lib/config.js +21 -17
  225. package/dist/esm/lib/config.js.map +1 -1
  226. package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
  227. package/dist/esm/mcp-server/cli/start/command.js +5 -4
  228. package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
  229. package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -1
  230. package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
  231. package/dist/esm/mcp-server/cli/start/impl.js +2 -2
  232. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  233. package/dist/esm/mcp-server/mcp-server.js +1 -1
  234. package/dist/esm/mcp-server/server.d.ts +1 -1
  235. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  236. package/dist/esm/mcp-server/server.js +2 -2
  237. package/dist/esm/mcp-server/server.js.map +1 -1
  238. package/dist/esm/models/bot-shield-action.d.ts +10 -0
  239. package/dist/esm/models/bot-shield-action.d.ts.map +1 -1
  240. package/dist/esm/models/bot-shield-action.js +8 -0
  241. package/dist/esm/models/bot-shield-action.js.map +1 -1
  242. package/dist/esm/models/error-body.d.ts +11 -1
  243. package/dist/esm/models/error-body.d.ts.map +1 -1
  244. package/dist/esm/models/error-body.js +6 -0
  245. package/dist/esm/models/error-body.js.map +1 -1
  246. package/dist/esm/models/gate-human-verified-event.d.ts +93 -0
  247. package/dist/esm/models/gate-human-verified-event.d.ts.map +1 -0
  248. package/dist/esm/models/gate-human-verified-event.js +81 -0
  249. package/dist/esm/models/gate-human-verified-event.js.map +1 -0
  250. package/dist/esm/models/gate-unavailable-event.d.ts +112 -0
  251. package/dist/esm/models/gate-unavailable-event.d.ts.map +1 -0
  252. package/dist/esm/models/gate-unavailable-event.js +99 -0
  253. package/dist/esm/models/gate-unavailable-event.js.map +1 -0
  254. package/dist/esm/models/gates-api-error.d.ts +5 -0
  255. package/dist/esm/models/gates-api-error.d.ts.map +1 -1
  256. package/dist/esm/models/gates-api-error.js +11 -0
  257. package/dist/esm/models/gates-api-error.js.map +1 -1
  258. package/dist/esm/models/index.d.ts +4 -0
  259. package/dist/esm/models/index.d.ts.map +1 -1
  260. package/dist/esm/models/index.js +4 -0
  261. package/dist/esm/models/index.js.map +1 -1
  262. package/dist/esm/models/inline-passkey-assertion.d.ts +66 -0
  263. package/dist/esm/models/inline-passkey-assertion.d.ts.map +1 -0
  264. package/dist/esm/models/inline-passkey-assertion.js +58 -0
  265. package/dist/esm/models/inline-passkey-assertion.js.map +1 -0
  266. package/dist/esm/models/inline-passkey-request-options.d.ts +78 -0
  267. package/dist/esm/models/inline-passkey-request-options.d.ts.map +1 -0
  268. package/dist/esm/models/inline-passkey-request-options.js +67 -0
  269. package/dist/esm/models/inline-passkey-request-options.js.map +1 -0
  270. package/dist/esm/models/operations/actions-propose.d.ts +21 -1
  271. package/dist/esm/models/operations/actions-propose.d.ts.map +1 -1
  272. package/dist/esm/models/operations/actions-propose.js +16 -0
  273. package/dist/esm/models/operations/actions-propose.js.map +1 -1
  274. package/dist/esm/models/operations/gates-api-actions-create.d.ts +11 -1
  275. package/dist/esm/models/operations/gates-api-actions-create.d.ts.map +1 -1
  276. package/dist/esm/models/operations/gates-api-actions-create.js +4 -0
  277. package/dist/esm/models/operations/gates-api-actions-create.js.map +1 -1
  278. package/dist/esm/models/operations/gates-api-actions-list.d.ts +1 -1
  279. package/dist/esm/models/operations/gates-api-actions-request-cancel.d.ts +113 -0
  280. package/dist/esm/models/operations/gates-api-actions-request-cancel.d.ts.map +1 -0
  281. package/dist/esm/models/operations/gates-api-actions-request-cancel.js +132 -0
  282. package/dist/esm/models/operations/gates-api-actions-request-cancel.js.map +1 -0
  283. package/dist/esm/models/operations/gates-api-actions-request-status.d.ts +12 -1
  284. package/dist/esm/models/operations/gates-api-actions-request-status.d.ts.map +1 -1
  285. package/dist/esm/models/operations/gates-api-actions-request-status.js +2 -0
  286. package/dist/esm/models/operations/gates-api-actions-request-status.js.map +1 -1
  287. package/dist/esm/models/operations/gates-api-actions-request.d.ts +34 -4
  288. package/dist/esm/models/operations/gates-api-actions-request.d.ts.map +1 -1
  289. package/dist/esm/models/operations/gates-api-actions-request.js +29 -2
  290. package/dist/esm/models/operations/gates-api-actions-request.js.map +1 -1
  291. package/dist/esm/models/operations/gates-api-actions-set-state.d.ts +1 -1
  292. package/dist/esm/models/operations/gates-api-actions-update.d.ts +99 -0
  293. package/dist/esm/models/operations/gates-api-actions-update.d.ts.map +1 -0
  294. package/dist/esm/models/operations/gates-api-actions-update.js +95 -0
  295. package/dist/esm/models/operations/gates-api-actions-update.js.map +1 -0
  296. package/dist/esm/models/operations/index.d.ts +7 -0
  297. package/dist/esm/models/operations/index.d.ts.map +1 -1
  298. package/dist/esm/models/operations/index.js +7 -0
  299. package/dist/esm/models/operations/index.js.map +1 -1
  300. package/dist/esm/models/operations/request-passkey-complete.d.ts +107 -0
  301. package/dist/esm/models/operations/request-passkey-complete.d.ts.map +1 -0
  302. package/dist/esm/models/operations/request-passkey-complete.js +97 -0
  303. package/dist/esm/models/operations/request-passkey-complete.js.map +1 -0
  304. package/dist/esm/models/operations/request-passkey-options.d.ts +178 -0
  305. package/dist/esm/models/operations/request-passkey-options.d.ts.map +1 -0
  306. package/dist/esm/models/operations/request-passkey-options.js +149 -0
  307. package/dist/esm/models/operations/request-passkey-options.js.map +1 -0
  308. package/dist/esm/models/operations/sdk-confirm-link.d.ts +130 -0
  309. package/dist/esm/models/operations/sdk-confirm-link.d.ts.map +1 -0
  310. package/dist/esm/models/operations/sdk-confirm-link.js +157 -0
  311. package/dist/esm/models/operations/sdk-confirm-link.js.map +1 -0
  312. package/dist/esm/models/operations/sdk-create-session.d.ts +1 -1
  313. package/dist/esm/models/operations/sdk-create-verification-link.d.ts +43 -2
  314. package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
  315. package/dist/esm/models/operations/sdk-create-verification-link.js +29 -0
  316. package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
  317. package/dist/esm/models/operations/sdk-send-by-number.d.ts +124 -0
  318. package/dist/esm/models/operations/sdk-send-by-number.d.ts.map +1 -0
  319. package/dist/esm/models/operations/sdk-send-by-number.js +155 -0
  320. package/dist/esm/models/operations/sdk-send-by-number.js.map +1 -0
  321. package/dist/esm/models/operations/sdk-verify-resolution.d.ts +125 -0
  322. package/dist/esm/models/operations/sdk-verify-resolution.d.ts.map +1 -0
  323. package/dist/esm/models/operations/sdk-verify-resolution.js +136 -0
  324. package/dist/esm/models/operations/sdk-verify-resolution.js.map +1 -0
  325. package/dist/esm/models/operations/sdk-verify-token.d.ts +95 -1
  326. package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
  327. package/dist/esm/models/operations/sdk-verify-token.js +83 -0
  328. package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
  329. package/dist/esm/models/operations/verification-get-status.d.ts +86 -24
  330. package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
  331. package/dist/esm/models/operations/verification-get-status.js +69 -17
  332. package/dist/esm/models/operations/verification-get-status.js.map +1 -1
  333. package/dist/esm/models/passes-per-person.d.ts +1 -1
  334. package/dist/esm/sdk/actions.d.ts +8 -1
  335. package/dist/esm/sdk/actions.d.ts.map +1 -1
  336. package/dist/esm/sdk/actions.js +11 -1
  337. package/dist/esm/sdk/actions.js.map +1 -1
  338. package/dist/esm/sdk/census.d.ts +17 -1
  339. package/dist/esm/sdk/census.d.ts.map +1 -1
  340. package/dist/esm/sdk/census.js +23 -1
  341. package/dist/esm/sdk/census.js.map +1 -1
  342. package/dist/esm/sdk/gates-actions.d.ts +15 -1
  343. package/dist/esm/sdk/gates-actions.d.ts.map +1 -1
  344. package/dist/esm/sdk/gates-actions.js +21 -1
  345. package/dist/esm/sdk/gates-actions.js.map +1 -1
  346. package/dist/esm/sdk/inline-passkey.d.ts +23 -0
  347. package/dist/esm/sdk/inline-passkey.d.ts.map +1 -0
  348. package/dist/esm/sdk/inline-passkey.js +32 -0
  349. package/dist/esm/sdk/inline-passkey.js.map +1 -0
  350. package/dist/esm/sdk/sdk.d.ts +5 -2
  351. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  352. package/dist/esm/sdk/sdk.js +9 -4
  353. package/dist/esm/sdk/sdk.js.map +1 -1
  354. package/dist/esm/sdk/verification.d.ts +1 -1
  355. package/dist/esm/sdk/verification.js +1 -1
  356. package/jsr.json +1 -1
  357. package/package.json +1 -1
  358. package/src/funcs/actions-propose-action.ts +1 -1
  359. package/src/funcs/actions-verify-resolution.ts +192 -0
  360. package/src/funcs/census-confirm-link.ts +171 -0
  361. package/src/funcs/census-create-verification-link.ts +2 -0
  362. package/src/funcs/census-send-by-number.ts +180 -0
  363. package/src/funcs/census-verify-token.ts +1 -1
  364. package/src/funcs/gates-actions-request-cancel.ts +187 -0
  365. package/src/funcs/gates-actions-request-status.ts +1 -0
  366. package/src/funcs/gates-actions-request.ts +1 -1
  367. package/src/funcs/gates-actions-update.ts +185 -0
  368. package/src/funcs/inline-passkey-complete.ts +172 -0
  369. package/src/funcs/inline-passkey-get-options.ts +172 -0
  370. package/src/funcs/verification-get-status.ts +1 -1
  371. package/src/lib/config.ts +22 -18
  372. package/src/mcp-server/cli/start/command.ts +5 -4
  373. package/src/mcp-server/cli/start/impl.ts +3 -3
  374. package/src/mcp-server/mcp-server.ts +1 -1
  375. package/src/mcp-server/server.ts +3 -3
  376. package/src/models/bot-shield-action.ts +18 -0
  377. package/src/models/error-body.ts +17 -1
  378. package/src/models/gate-human-verified-event.ts +181 -0
  379. package/src/models/gate-unavailable-event.ts +218 -0
  380. package/src/models/gates-api-error.ts +16 -0
  381. package/src/models/index.ts +4 -0
  382. package/src/models/inline-passkey-assertion.ts +147 -0
  383. package/src/models/inline-passkey-request-options.ts +175 -0
  384. package/src/models/operations/actions-propose.ts +37 -1
  385. package/src/models/operations/gates-api-actions-create.ts +15 -1
  386. package/src/models/operations/gates-api-actions-list.ts +1 -1
  387. package/src/models/operations/gates-api-actions-request-cancel.ts +339 -0
  388. package/src/models/operations/gates-api-actions-request-status.ts +14 -1
  389. package/src/models/operations/gates-api-actions-request.ts +83 -6
  390. package/src/models/operations/gates-api-actions-set-state.ts +1 -1
  391. package/src/models/operations/gates-api-actions-update.ts +281 -0
  392. package/src/models/operations/index.ts +7 -0
  393. package/src/models/operations/request-passkey-complete.ts +272 -0
  394. package/src/models/operations/request-passkey-options.ts +372 -0
  395. package/src/models/operations/sdk-confirm-link.ts +380 -0
  396. package/src/models/operations/sdk-create-session.ts +1 -1
  397. package/src/models/operations/sdk-create-verification-link.ts +69 -2
  398. package/src/models/operations/sdk-send-by-number.ts +372 -0
  399. package/src/models/operations/sdk-verify-resolution.ts +341 -0
  400. package/src/models/operations/sdk-verify-token.ts +189 -1
  401. package/src/models/operations/verification-get-status.ts +151 -38
  402. package/src/models/passes-per-person.ts +1 -1
  403. package/src/sdk/actions.ts +21 -1
  404. package/src/sdk/census.ts +43 -1
  405. package/src/sdk/gates-actions.ts +41 -1
  406. package/src/sdk/inline-passkey.ts +49 -0
  407. package/src/sdk/sdk.ts +11 -5
  408. package/src/sdk/verification.ts +1 -1
@@ -0,0 +1,380 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as types from "../../types/primitives.js";
11
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
12
+
13
+ export type SDKConfirmLinkSecurity = {
14
+ apiKeyAuth: string;
15
+ };
16
+
17
+ export type SDKConfirmLinkRequest = {
18
+ /**
19
+ * The request the person tapped (req_…).
20
+ */
21
+ requestId: string;
22
+ /**
23
+ * The account your own session shows — the same id you started the link with.
24
+ */
25
+ partnerUserRef?: string | undefined;
26
+ /**
27
+ * Alias of partner_user_ref.
28
+ */
29
+ partnerUserId?: string | undefined;
30
+ };
31
+
32
+ export const SDKConfirmLinkState = {
33
+ Live: "live",
34
+ } as const;
35
+ export type SDKConfirmLinkState = ClosedEnum<typeof SDKConfirmLinkState>;
36
+
37
+ export type SDKConfirmLinkDataData = {
38
+ linked?: boolean | undefined;
39
+ state?: SDKConfirmLinkState | undefined;
40
+ firstTime?: boolean | undefined;
41
+ requestId?: string | undefined;
42
+ handle?: string | undefined;
43
+ trusted?: boolean | undefined;
44
+ trustedSince?: Date | undefined;
45
+ /**
46
+ * The finished token. Single use, 2 minutes.
47
+ */
48
+ verificationToken?: string | undefined;
49
+ };
50
+
51
+ export type SDKConfirmLinkError = {
52
+ code?: string | undefined;
53
+ message?: string | undefined;
54
+ statusCode?: number | undefined;
55
+ };
56
+
57
+ export type SDKConfirmLinkData = {
58
+ data?: SDKConfirmLinkDataData | undefined;
59
+ error?: SDKConfirmLinkError | undefined;
60
+ };
61
+
62
+ /**
63
+ * Result. NOTE: handler errors arrive here (HTTP 200) as data.error — codes: secret_key_required · invalid_key · account_required · link_not_found · environment_mismatch · link_account_mismatch · link_expired · link_refused · rebind_requires_prior_id · already_trusted · unavailable.
64
+ */
65
+ export type SDKConfirmLinkResponse = {
66
+ data?: SDKConfirmLinkData | undefined;
67
+ };
68
+
69
+ /** @internal */
70
+ export const SDKConfirmLinkSecurity$inboundSchema: z.ZodType<
71
+ SDKConfirmLinkSecurity,
72
+ z.ZodTypeDef,
73
+ unknown
74
+ > = z.object({
75
+ ApiKeyAuth: types.string(),
76
+ }).transform((v) => {
77
+ return remap$(v, {
78
+ "ApiKeyAuth": "apiKeyAuth",
79
+ });
80
+ });
81
+ /** @internal */
82
+ export type SDKConfirmLinkSecurity$Outbound = {
83
+ ApiKeyAuth: string;
84
+ };
85
+
86
+ /** @internal */
87
+ export const SDKConfirmLinkSecurity$outboundSchema: z.ZodType<
88
+ SDKConfirmLinkSecurity$Outbound,
89
+ z.ZodTypeDef,
90
+ SDKConfirmLinkSecurity
91
+ > = z.object({
92
+ apiKeyAuth: z.string(),
93
+ }).transform((v) => {
94
+ return remap$(v, {
95
+ apiKeyAuth: "ApiKeyAuth",
96
+ });
97
+ });
98
+
99
+ export function sdkConfirmLinkSecurityToJSON(
100
+ sdkConfirmLinkSecurity: SDKConfirmLinkSecurity,
101
+ ): string {
102
+ return JSON.stringify(
103
+ SDKConfirmLinkSecurity$outboundSchema.parse(sdkConfirmLinkSecurity),
104
+ );
105
+ }
106
+ export function sdkConfirmLinkSecurityFromJSON(
107
+ jsonString: string,
108
+ ): SafeParseResult<SDKConfirmLinkSecurity, SDKValidationError> {
109
+ return safeParse(
110
+ jsonString,
111
+ (x) => SDKConfirmLinkSecurity$inboundSchema.parse(JSON.parse(x)),
112
+ `Failed to parse 'SDKConfirmLinkSecurity' from JSON`,
113
+ );
114
+ }
115
+
116
+ /** @internal */
117
+ export const SDKConfirmLinkRequest$inboundSchema: z.ZodType<
118
+ SDKConfirmLinkRequest,
119
+ z.ZodTypeDef,
120
+ unknown
121
+ > = z.object({
122
+ request_id: types.string(),
123
+ partner_user_ref: types.optional(types.string()),
124
+ partner_user_id: types.optional(types.string()),
125
+ }).transform((v) => {
126
+ return remap$(v, {
127
+ "request_id": "requestId",
128
+ "partner_user_ref": "partnerUserRef",
129
+ "partner_user_id": "partnerUserId",
130
+ });
131
+ });
132
+ /** @internal */
133
+ export type SDKConfirmLinkRequest$Outbound = {
134
+ request_id: string;
135
+ partner_user_ref?: string | undefined;
136
+ partner_user_id?: string | undefined;
137
+ };
138
+
139
+ /** @internal */
140
+ export const SDKConfirmLinkRequest$outboundSchema: z.ZodType<
141
+ SDKConfirmLinkRequest$Outbound,
142
+ z.ZodTypeDef,
143
+ SDKConfirmLinkRequest
144
+ > = z.object({
145
+ requestId: z.string(),
146
+ partnerUserRef: z.string().optional(),
147
+ partnerUserId: z.string().optional(),
148
+ }).transform((v) => {
149
+ return remap$(v, {
150
+ requestId: "request_id",
151
+ partnerUserRef: "partner_user_ref",
152
+ partnerUserId: "partner_user_id",
153
+ });
154
+ });
155
+
156
+ export function sdkConfirmLinkRequestToJSON(
157
+ sdkConfirmLinkRequest: SDKConfirmLinkRequest,
158
+ ): string {
159
+ return JSON.stringify(
160
+ SDKConfirmLinkRequest$outboundSchema.parse(sdkConfirmLinkRequest),
161
+ );
162
+ }
163
+ export function sdkConfirmLinkRequestFromJSON(
164
+ jsonString: string,
165
+ ): SafeParseResult<SDKConfirmLinkRequest, SDKValidationError> {
166
+ return safeParse(
167
+ jsonString,
168
+ (x) => SDKConfirmLinkRequest$inboundSchema.parse(JSON.parse(x)),
169
+ `Failed to parse 'SDKConfirmLinkRequest' from JSON`,
170
+ );
171
+ }
172
+
173
+ /** @internal */
174
+ export const SDKConfirmLinkState$inboundSchema: z.ZodNativeEnum<
175
+ typeof SDKConfirmLinkState
176
+ > = z.nativeEnum(SDKConfirmLinkState);
177
+ /** @internal */
178
+ export const SDKConfirmLinkState$outboundSchema: z.ZodNativeEnum<
179
+ typeof SDKConfirmLinkState
180
+ > = SDKConfirmLinkState$inboundSchema;
181
+
182
+ /** @internal */
183
+ export const SDKConfirmLinkDataData$inboundSchema: z.ZodType<
184
+ SDKConfirmLinkDataData,
185
+ z.ZodTypeDef,
186
+ unknown
187
+ > = z.object({
188
+ linked: types.optional(types.boolean()),
189
+ state: types.optional(SDKConfirmLinkState$inboundSchema),
190
+ first_time: types.optional(types.boolean()),
191
+ request_id: types.optional(types.string()),
192
+ handle: types.optional(types.string()),
193
+ trusted: types.optional(types.boolean()),
194
+ trusted_since: types.optional(types.date()),
195
+ verification_token: types.optional(types.string()),
196
+ }).transform((v) => {
197
+ return remap$(v, {
198
+ "first_time": "firstTime",
199
+ "request_id": "requestId",
200
+ "trusted_since": "trustedSince",
201
+ "verification_token": "verificationToken",
202
+ });
203
+ });
204
+ /** @internal */
205
+ export type SDKConfirmLinkDataData$Outbound = {
206
+ linked?: boolean | undefined;
207
+ state?: string | undefined;
208
+ first_time?: boolean | undefined;
209
+ request_id?: string | undefined;
210
+ handle?: string | undefined;
211
+ trusted?: boolean | undefined;
212
+ trusted_since?: string | undefined;
213
+ verification_token?: string | undefined;
214
+ };
215
+
216
+ /** @internal */
217
+ export const SDKConfirmLinkDataData$outboundSchema: z.ZodType<
218
+ SDKConfirmLinkDataData$Outbound,
219
+ z.ZodTypeDef,
220
+ SDKConfirmLinkDataData
221
+ > = z.object({
222
+ linked: z.boolean().optional(),
223
+ state: SDKConfirmLinkState$outboundSchema.optional(),
224
+ firstTime: z.boolean().optional(),
225
+ requestId: z.string().optional(),
226
+ handle: z.string().optional(),
227
+ trusted: z.boolean().optional(),
228
+ trustedSince: z.date().transform(v => v.toISOString()).optional(),
229
+ verificationToken: z.string().optional(),
230
+ }).transform((v) => {
231
+ return remap$(v, {
232
+ firstTime: "first_time",
233
+ requestId: "request_id",
234
+ trustedSince: "trusted_since",
235
+ verificationToken: "verification_token",
236
+ });
237
+ });
238
+
239
+ export function sdkConfirmLinkDataDataToJSON(
240
+ sdkConfirmLinkDataData: SDKConfirmLinkDataData,
241
+ ): string {
242
+ return JSON.stringify(
243
+ SDKConfirmLinkDataData$outboundSchema.parse(sdkConfirmLinkDataData),
244
+ );
245
+ }
246
+ export function sdkConfirmLinkDataDataFromJSON(
247
+ jsonString: string,
248
+ ): SafeParseResult<SDKConfirmLinkDataData, SDKValidationError> {
249
+ return safeParse(
250
+ jsonString,
251
+ (x) => SDKConfirmLinkDataData$inboundSchema.parse(JSON.parse(x)),
252
+ `Failed to parse 'SDKConfirmLinkDataData' from JSON`,
253
+ );
254
+ }
255
+
256
+ /** @internal */
257
+ export const SDKConfirmLinkError$inboundSchema: z.ZodType<
258
+ SDKConfirmLinkError,
259
+ z.ZodTypeDef,
260
+ unknown
261
+ > = z.object({
262
+ code: types.optional(types.string()),
263
+ message: types.optional(types.string()),
264
+ statusCode: types.optional(types.number()),
265
+ });
266
+ /** @internal */
267
+ export type SDKConfirmLinkError$Outbound = {
268
+ code?: string | undefined;
269
+ message?: string | undefined;
270
+ statusCode?: number | undefined;
271
+ };
272
+
273
+ /** @internal */
274
+ export const SDKConfirmLinkError$outboundSchema: z.ZodType<
275
+ SDKConfirmLinkError$Outbound,
276
+ z.ZodTypeDef,
277
+ SDKConfirmLinkError
278
+ > = z.object({
279
+ code: z.string().optional(),
280
+ message: z.string().optional(),
281
+ statusCode: z.number().int().optional(),
282
+ });
283
+
284
+ export function sdkConfirmLinkErrorToJSON(
285
+ sdkConfirmLinkError: SDKConfirmLinkError,
286
+ ): string {
287
+ return JSON.stringify(
288
+ SDKConfirmLinkError$outboundSchema.parse(sdkConfirmLinkError),
289
+ );
290
+ }
291
+ export function sdkConfirmLinkErrorFromJSON(
292
+ jsonString: string,
293
+ ): SafeParseResult<SDKConfirmLinkError, SDKValidationError> {
294
+ return safeParse(
295
+ jsonString,
296
+ (x) => SDKConfirmLinkError$inboundSchema.parse(JSON.parse(x)),
297
+ `Failed to parse 'SDKConfirmLinkError' from JSON`,
298
+ );
299
+ }
300
+
301
+ /** @internal */
302
+ export const SDKConfirmLinkData$inboundSchema: z.ZodType<
303
+ SDKConfirmLinkData,
304
+ z.ZodTypeDef,
305
+ unknown
306
+ > = z.object({
307
+ data: types.optional(z.lazy(() => SDKConfirmLinkDataData$inboundSchema)),
308
+ error: types.optional(z.lazy(() => SDKConfirmLinkError$inboundSchema)),
309
+ });
310
+ /** @internal */
311
+ export type SDKConfirmLinkData$Outbound = {
312
+ data?: SDKConfirmLinkDataData$Outbound | undefined;
313
+ error?: SDKConfirmLinkError$Outbound | undefined;
314
+ };
315
+
316
+ /** @internal */
317
+ export const SDKConfirmLinkData$outboundSchema: z.ZodType<
318
+ SDKConfirmLinkData$Outbound,
319
+ z.ZodTypeDef,
320
+ SDKConfirmLinkData
321
+ > = z.object({
322
+ data: z.lazy(() => SDKConfirmLinkDataData$outboundSchema).optional(),
323
+ error: z.lazy(() => SDKConfirmLinkError$outboundSchema).optional(),
324
+ });
325
+
326
+ export function sdkConfirmLinkDataToJSON(
327
+ sdkConfirmLinkData: SDKConfirmLinkData,
328
+ ): string {
329
+ return JSON.stringify(
330
+ SDKConfirmLinkData$outboundSchema.parse(sdkConfirmLinkData),
331
+ );
332
+ }
333
+ export function sdkConfirmLinkDataFromJSON(
334
+ jsonString: string,
335
+ ): SafeParseResult<SDKConfirmLinkData, SDKValidationError> {
336
+ return safeParse(
337
+ jsonString,
338
+ (x) => SDKConfirmLinkData$inboundSchema.parse(JSON.parse(x)),
339
+ `Failed to parse 'SDKConfirmLinkData' from JSON`,
340
+ );
341
+ }
342
+
343
+ /** @internal */
344
+ export const SDKConfirmLinkResponse$inboundSchema: z.ZodType<
345
+ SDKConfirmLinkResponse,
346
+ z.ZodTypeDef,
347
+ unknown
348
+ > = z.object({
349
+ data: types.optional(z.lazy(() => SDKConfirmLinkData$inboundSchema)),
350
+ });
351
+ /** @internal */
352
+ export type SDKConfirmLinkResponse$Outbound = {
353
+ data?: SDKConfirmLinkData$Outbound | undefined;
354
+ };
355
+
356
+ /** @internal */
357
+ export const SDKConfirmLinkResponse$outboundSchema: z.ZodType<
358
+ SDKConfirmLinkResponse$Outbound,
359
+ z.ZodTypeDef,
360
+ SDKConfirmLinkResponse
361
+ > = z.object({
362
+ data: z.lazy(() => SDKConfirmLinkData$outboundSchema).optional(),
363
+ });
364
+
365
+ export function sdkConfirmLinkResponseToJSON(
366
+ sdkConfirmLinkResponse: SDKConfirmLinkResponse,
367
+ ): string {
368
+ return JSON.stringify(
369
+ SDKConfirmLinkResponse$outboundSchema.parse(sdkConfirmLinkResponse),
370
+ );
371
+ }
372
+ export function sdkConfirmLinkResponseFromJSON(
373
+ jsonString: string,
374
+ ): SafeParseResult<SDKConfirmLinkResponse, SDKValidationError> {
375
+ return safeParse(
376
+ jsonString,
377
+ (x) => SDKConfirmLinkResponse$inboundSchema.parse(JSON.parse(x)),
378
+ `Failed to parse 'SDKConfirmLinkResponse' from JSON`,
379
+ );
380
+ }
@@ -100,7 +100,7 @@ export type SDKCreateSessionData = {
100
100
  };
101
101
 
102
102
  /**
103
- * Anchor grant window created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 401 (bad or missing credential), 403 (origin not allowed for the site key).
103
+ * Anchor grant window created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 401 (bad or missing credential), 403 (origin not allowed for the site key; also a production site key with no allowed origins, which is refused until you add your domain to the key in the Console).
104
104
  */
105
105
  export type SDKCreateSessionResponse = {
106
106
  data: SDKCreateSessionData;
@@ -97,7 +97,7 @@ export type SDKCreateVerificationLinkRequest = {
97
97
  */
98
98
  act?: string | undefined;
99
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.
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`). Plain words only: a link, a domain or a URI scheme is refused (`act_label_has_link`). Display only — it is NOT in the token; bind terms through `act` (e.g. a hash of them), which the token carries.
101
101
  */
102
102
  actLabel?: string | undefined;
103
103
  };
@@ -120,6 +120,31 @@ export type SDKCreateVerificationLinkOrganization = {
120
120
  id?: string | undefined;
121
121
  };
122
122
 
123
+ /**
124
+ * Present when you sent `partner_user_ref`. `pushed`: the customer's phone was asked. `not_delivered`: nothing was pushed (the customer has turned off checks from you, has no phone set up, or the push was skipped or could not be sent; see `push_skipped`). The check still exists and still answers. `not_linked`: this account is not verified with BotShield, so nothing was pushed.
125
+ */
126
+ export const Delivery = {
127
+ Pushed: "pushed",
128
+ NotDelivered: "not_delivered",
129
+ NotLinked: "not_linked",
130
+ } as const;
131
+ /**
132
+ * Present when you sent `partner_user_ref`. `pushed`: the customer's phone was asked. `not_delivered`: nothing was pushed (the customer has turned off checks from you, has no phone set up, or the push was skipped or could not be sent; see `push_skipped`). The check still exists and still answers. `not_linked`: this account is not verified with BotShield, so nothing was pushed.
133
+ */
134
+ export type Delivery = OpenEnum<typeof Delivery>;
135
+
136
+ /**
137
+ * Present only when the account is linked but its phones were not pushed for one of these reasons. `daily_cap`: you have sent this customer the most checks allowed in 24 hours. `unavailable`: BotShield could not read this customer's recent checks, so it pushed nothing (fails closed). The request is still created either way.
138
+ */
139
+ export const PushSkipped = {
140
+ DailyCap: "daily_cap",
141
+ Unavailable: "unavailable",
142
+ } as const;
143
+ /**
144
+ * Present only when the account is linked but its phones were not pushed for one of these reasons. `daily_cap`: you have sent this customer the most checks allowed in 24 hours. `unavailable`: BotShield could not read this customer's recent checks, so it pushed nothing (fails closed). The request is still created either way.
145
+ */
146
+ export type PushSkipped = OpenEnum<typeof PushSkipped>;
147
+
123
148
  /**
124
149
  * The gate's type. An Age Gate never notarizes (widget suppresses the chip).
125
150
  */
@@ -188,6 +213,14 @@ export type SDKCreateVerificationLinkDataData = {
188
213
  * Number of the user's registered devices the request was pushed to (0 when the user is unknown or has no devices).
189
214
  */
190
215
  pushedToDevices: number;
216
+ /**
217
+ * Present when you sent `partner_user_ref`. `pushed`: the customer's phone was asked. `not_delivered`: nothing was pushed (the customer has turned off checks from you, has no phone set up, or the push was skipped or could not be sent; see `push_skipped`). The check still exists and still answers. `not_linked`: this account is not verified with BotShield, so nothing was pushed.
218
+ */
219
+ delivery?: Delivery | undefined;
220
+ /**
221
+ * Present only when the account is linked but its phones were not pushed for one of these reasons. `daily_cap`: you have sent this customer the most checks allowed in 24 hours. `unavailable`: BotShield could not read this customer's recent checks, so it pushed nothing (fails closed). The request is still created either way.
222
+ */
223
+ pushSkipped?: PushSkipped | undefined;
191
224
  /**
192
225
  * The gate's type. An Age Gate never notarizes (widget suppresses the chip).
193
226
  */
@@ -225,7 +258,7 @@ export type SDKCreateVerificationLinkData = {
225
258
  };
226
259
 
227
260
  /**
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).
261
+ * 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), `act_label_has_link` (400 — `act_label` may not contain a link, a domain or a URI scheme), `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), `account_reconfirm_required` (409 — the customer changed their phone number without approval from another phone; only the link ceremony (`notarize`) can be started for this partner_user_ref until they confirm the account again from your signed-in page). A development key over its limit: `RATE_LIMITED`.
229
262
  */
230
263
  export type SDKCreateVerificationLinkResponse = {
231
264
  data: SDKCreateVerificationLinkData;
@@ -472,6 +505,32 @@ export function sdkCreateVerificationLinkOrganizationFromJSON(
472
505
  );
473
506
  }
474
507
 
508
+ /** @internal */
509
+ export const Delivery$inboundSchema: z.ZodType<
510
+ Delivery,
511
+ z.ZodTypeDef,
512
+ unknown
513
+ > = openEnums.inboundSchema(Delivery);
514
+ /** @internal */
515
+ export const Delivery$outboundSchema: z.ZodType<
516
+ string,
517
+ z.ZodTypeDef,
518
+ Delivery
519
+ > = openEnums.outboundSchema(Delivery);
520
+
521
+ /** @internal */
522
+ export const PushSkipped$inboundSchema: z.ZodType<
523
+ PushSkipped,
524
+ z.ZodTypeDef,
525
+ unknown
526
+ > = openEnums.inboundSchema(PushSkipped);
527
+ /** @internal */
528
+ export const PushSkipped$outboundSchema: z.ZodType<
529
+ string,
530
+ z.ZodTypeDef,
531
+ PushSkipped
532
+ > = openEnums.outboundSchema(PushSkipped);
533
+
475
534
  /** @internal */
476
535
  export const SDKCreateVerificationLinkGateType$inboundSchema: z.ZodType<
477
536
  SDKCreateVerificationLinkGateType,
@@ -533,6 +592,8 @@ export const SDKCreateVerificationLinkDataData$inboundSchema: z.ZodType<
533
592
  z.lazy(() => SDKCreateVerificationLinkOrganization$inboundSchema),
534
593
  ),
535
594
  pushed_to_devices: types.number(),
595
+ delivery: types.optional(Delivery$inboundSchema),
596
+ push_skipped: types.optional(PushSkipped$inboundSchema),
536
597
  gate_type: types.optional(SDKCreateVerificationLinkGateType$inboundSchema),
537
598
  age_threshold: types.optional(
538
599
  SDKCreateVerificationLinkAgeThreshold$inboundSchema,
@@ -553,6 +614,7 @@ export const SDKCreateVerificationLinkDataData$inboundSchema: z.ZodType<
553
614
  "sdk_type": "sdkType",
554
615
  "auth_mode": "authMode",
555
616
  "pushed_to_devices": "pushedToDevices",
617
+ "push_skipped": "pushSkipped",
556
618
  "gate_type": "gateType",
557
619
  "age_threshold": "ageThreshold",
558
620
  "notarize_fallback_reason": "notarizeFallbackReason",
@@ -570,6 +632,8 @@ export type SDKCreateVerificationLinkDataData$Outbound = {
570
632
  scope?: string | undefined;
571
633
  organization?: SDKCreateVerificationLinkOrganization$Outbound | undefined;
572
634
  pushed_to_devices: number;
635
+ delivery?: string | undefined;
636
+ push_skipped?: string | undefined;
573
637
  gate_type?: string | undefined;
574
638
  age_threshold?: number | undefined;
575
639
  trusted?: boolean | undefined;
@@ -596,6 +660,8 @@ export const SDKCreateVerificationLinkDataData$outboundSchema: z.ZodType<
596
660
  SDKCreateVerificationLinkOrganization$outboundSchema
597
661
  ).optional(),
598
662
  pushedToDevices: z.number().int(),
663
+ delivery: Delivery$outboundSchema.optional(),
664
+ pushSkipped: PushSkipped$outboundSchema.optional(),
599
665
  gateType: SDKCreateVerificationLinkGateType$outboundSchema.optional(),
600
666
  ageThreshold: SDKCreateVerificationLinkAgeThreshold$outboundSchema.optional(),
601
667
  trusted: z.boolean().optional(),
@@ -613,6 +679,7 @@ export const SDKCreateVerificationLinkDataData$outboundSchema: z.ZodType<
613
679
  sdkType: "sdk_type",
614
680
  authMode: "auth_mode",
615
681
  pushedToDevices: "pushed_to_devices",
682
+ pushSkipped: "push_skipped",
616
683
  gateType: "gate_type",
617
684
  ageThreshold: "age_threshold",
618
685
  notarizeFallbackReason: "notarize_fallback_reason",