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.
- package/README.md +29 -9
- package/bin/mcp-server.js +1163 -122
- package/bin/mcp-server.js.map +37 -26
- package/dist/commonjs/funcs/actions-propose-action.d.ts +1 -1
- package/dist/commonjs/funcs/actions-propose-action.js +1 -1
- package/dist/commonjs/funcs/actions-verify-resolution.d.ts +18 -0
- package/dist/commonjs/funcs/actions-verify-resolution.d.ts.map +1 -0
- package/dist/commonjs/funcs/actions-verify-resolution.js +129 -0
- package/dist/commonjs/funcs/actions-verify-resolution.js.map +1 -0
- package/dist/commonjs/funcs/census-confirm-link.d.ts +17 -0
- package/dist/commonjs/funcs/census-confirm-link.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-confirm-link.js +119 -0
- package/dist/commonjs/funcs/census-confirm-link.js.map +1 -0
- package/dist/commonjs/funcs/census-create-verification-link.d.ts +2 -0
- package/dist/commonjs/funcs/census-create-verification-link.d.ts.map +1 -1
- package/dist/commonjs/funcs/census-create-verification-link.js +2 -0
- package/dist/commonjs/funcs/census-create-verification-link.js.map +1 -1
- package/dist/commonjs/funcs/census-send-by-number.d.ts +18 -0
- package/dist/commonjs/funcs/census-send-by-number.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-send-by-number.js +123 -0
- package/dist/commonjs/funcs/census-send-by-number.js.map +1 -0
- package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +1 -1
- package/dist/commonjs/funcs/gates-actions-request-cancel.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-request-cancel.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request-cancel.js +123 -0
- package/dist/commonjs/funcs/gates-actions-request-cancel.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request-status.js +1 -0
- package/dist/commonjs/funcs/gates-actions-request-status.js.map +1 -1
- package/dist/commonjs/funcs/gates-actions-request.d.ts +1 -1
- package/dist/commonjs/funcs/gates-actions-request.js +1 -1
- package/dist/commonjs/funcs/gates-actions-update.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-update.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-update.js +123 -0
- package/dist/commonjs/funcs/gates-actions-update.js.map +1 -0
- package/dist/commonjs/funcs/inline-passkey-complete.d.ts +20 -0
- package/dist/commonjs/funcs/inline-passkey-complete.d.ts.map +1 -0
- package/dist/commonjs/funcs/inline-passkey-complete.js +116 -0
- package/dist/commonjs/funcs/inline-passkey-complete.js.map +1 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.d.ts +20 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.d.ts.map +1 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.js +116 -0
- package/dist/commonjs/funcs/inline-passkey-get-options.js.map +1 -0
- package/dist/commonjs/funcs/verification-get-status.d.ts +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +1 -1
- package/dist/commonjs/lib/config.d.ts +20 -4
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +22 -18
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +4 -3
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +2 -2
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/bot-shield-action.d.ts +10 -0
- package/dist/commonjs/models/bot-shield-action.d.ts.map +1 -1
- package/dist/commonjs/models/bot-shield-action.js +8 -0
- package/dist/commonjs/models/bot-shield-action.js.map +1 -1
- package/dist/commonjs/models/error-body.d.ts +11 -1
- package/dist/commonjs/models/error-body.d.ts.map +1 -1
- package/dist/commonjs/models/error-body.js +6 -0
- package/dist/commonjs/models/error-body.js.map +1 -1
- package/dist/commonjs/models/gate-human-verified-event.d.ts +93 -0
- package/dist/commonjs/models/gate-human-verified-event.d.ts.map +1 -0
- package/dist/commonjs/models/gate-human-verified-event.js +119 -0
- package/dist/commonjs/models/gate-human-verified-event.js.map +1 -0
- package/dist/commonjs/models/gate-unavailable-event.d.ts +112 -0
- package/dist/commonjs/models/gate-unavailable-event.d.ts.map +1 -0
- package/dist/commonjs/models/gate-unavailable-event.js +137 -0
- package/dist/commonjs/models/gate-unavailable-event.js.map +1 -0
- package/dist/commonjs/models/gates-api-error.d.ts +5 -0
- package/dist/commonjs/models/gates-api-error.d.ts.map +1 -1
- package/dist/commonjs/models/gates-api-error.js +11 -0
- package/dist/commonjs/models/gates-api-error.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +4 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/inline-passkey-assertion.d.ts +66 -0
- package/dist/commonjs/models/inline-passkey-assertion.d.ts.map +1 -0
- package/dist/commonjs/models/inline-passkey-assertion.js +98 -0
- package/dist/commonjs/models/inline-passkey-assertion.js.map +1 -0
- package/dist/commonjs/models/inline-passkey-request-options.d.ts +78 -0
- package/dist/commonjs/models/inline-passkey-request-options.d.ts.map +1 -0
- package/dist/commonjs/models/inline-passkey-request-options.js +107 -0
- package/dist/commonjs/models/inline-passkey-request-options.js.map +1 -0
- package/dist/commonjs/models/operations/actions-propose.d.ts +21 -1
- package/dist/commonjs/models/operations/actions-propose.d.ts.map +1 -1
- package/dist/commonjs/models/operations/actions-propose.js +16 -0
- package/dist/commonjs/models/operations/actions-propose.js.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-create.d.ts +11 -1
- package/dist/commonjs/models/operations/gates-api-actions-create.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-create.js +4 -0
- package/dist/commonjs/models/operations/gates-api-actions-create.js.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-list.d.ts +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-request-cancel.d.ts +113 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-cancel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-cancel.js +178 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-cancel.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts +12 -1
- package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-request-status.js +2 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-status.js.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-request.d.ts +34 -4
- package/dist/commonjs/models/operations/gates-api-actions-request.d.ts.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-request.js +32 -3
- package/dist/commonjs/models/operations/gates-api-actions-request.js.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-set-state.d.ts +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-update.d.ts +99 -0
- package/dist/commonjs/models/operations/gates-api-actions-update.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-update.js +141 -0
- package/dist/commonjs/models/operations/gates-api-actions-update.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +7 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +7 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/request-passkey-complete.d.ts +107 -0
- package/dist/commonjs/models/operations/request-passkey-complete.d.ts.map +1 -0
- package/dist/commonjs/models/operations/request-passkey-complete.js +141 -0
- package/dist/commonjs/models/operations/request-passkey-complete.js.map +1 -0
- package/dist/commonjs/models/operations/request-passkey-options.d.ts +178 -0
- package/dist/commonjs/models/operations/request-passkey-options.d.ts.map +1 -0
- package/dist/commonjs/models/operations/request-passkey-options.js +193 -0
- package/dist/commonjs/models/operations/request-passkey-options.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-confirm-link.d.ts +130 -0
- package/dist/commonjs/models/operations/sdk-confirm-link.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-confirm-link.js +205 -0
- package/dist/commonjs/models/operations/sdk-confirm-link.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-create-session.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +43 -2
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js +30 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-send-by-number.d.ts +124 -0
- package/dist/commonjs/models/operations/sdk-send-by-number.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-send-by-number.js +203 -0
- package/dist/commonjs/models/operations/sdk-send-by-number.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-verify-resolution.d.ts +125 -0
- package/dist/commonjs/models/operations/sdk-verify-resolution.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-verify-resolution.js +182 -0
- package/dist/commonjs/models/operations/sdk-verify-resolution.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +95 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +86 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +86 -24
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +70 -18
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/passes-per-person.d.ts +1 -1
- package/dist/commonjs/sdk/actions.d.ts +8 -1
- package/dist/commonjs/sdk/actions.d.ts.map +1 -1
- package/dist/commonjs/sdk/actions.js +11 -1
- package/dist/commonjs/sdk/actions.js.map +1 -1
- package/dist/commonjs/sdk/census.d.ts +17 -1
- package/dist/commonjs/sdk/census.d.ts.map +1 -1
- package/dist/commonjs/sdk/census.js +23 -1
- package/dist/commonjs/sdk/census.js.map +1 -1
- package/dist/commonjs/sdk/gates-actions.d.ts +15 -1
- package/dist/commonjs/sdk/gates-actions.d.ts.map +1 -1
- package/dist/commonjs/sdk/gates-actions.js +21 -1
- package/dist/commonjs/sdk/gates-actions.js.map +1 -1
- package/dist/commonjs/sdk/inline-passkey.d.ts +23 -0
- package/dist/commonjs/sdk/inline-passkey.d.ts.map +1 -0
- package/dist/commonjs/sdk/inline-passkey.js +36 -0
- package/dist/commonjs/sdk/inline-passkey.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +5 -2
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +9 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/verification.d.ts +1 -1
- package/dist/commonjs/sdk/verification.js +1 -1
- package/dist/esm/funcs/actions-propose-action.d.ts +1 -1
- package/dist/esm/funcs/actions-propose-action.js +1 -1
- package/dist/esm/funcs/actions-verify-resolution.d.ts +18 -0
- package/dist/esm/funcs/actions-verify-resolution.d.ts.map +1 -0
- package/dist/esm/funcs/actions-verify-resolution.js +93 -0
- package/dist/esm/funcs/actions-verify-resolution.js.map +1 -0
- package/dist/esm/funcs/census-confirm-link.d.ts +17 -0
- package/dist/esm/funcs/census-confirm-link.d.ts.map +1 -0
- package/dist/esm/funcs/census-confirm-link.js +83 -0
- package/dist/esm/funcs/census-confirm-link.js.map +1 -0
- package/dist/esm/funcs/census-create-verification-link.d.ts +2 -0
- package/dist/esm/funcs/census-create-verification-link.d.ts.map +1 -1
- package/dist/esm/funcs/census-create-verification-link.js +2 -0
- package/dist/esm/funcs/census-create-verification-link.js.map +1 -1
- package/dist/esm/funcs/census-send-by-number.d.ts +18 -0
- package/dist/esm/funcs/census-send-by-number.d.ts.map +1 -0
- package/dist/esm/funcs/census-send-by-number.js +87 -0
- package/dist/esm/funcs/census-send-by-number.js.map +1 -0
- package/dist/esm/funcs/census-verify-token.d.ts +1 -1
- package/dist/esm/funcs/census-verify-token.js +1 -1
- package/dist/esm/funcs/gates-actions-request-cancel.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-request-cancel.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-request-cancel.js +87 -0
- package/dist/esm/funcs/gates-actions-request-cancel.js.map +1 -0
- package/dist/esm/funcs/gates-actions-request-status.js +1 -0
- package/dist/esm/funcs/gates-actions-request-status.js.map +1 -1
- package/dist/esm/funcs/gates-actions-request.d.ts +1 -1
- package/dist/esm/funcs/gates-actions-request.js +1 -1
- package/dist/esm/funcs/gates-actions-update.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-update.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-update.js +87 -0
- package/dist/esm/funcs/gates-actions-update.js.map +1 -0
- package/dist/esm/funcs/inline-passkey-complete.d.ts +20 -0
- package/dist/esm/funcs/inline-passkey-complete.d.ts.map +1 -0
- package/dist/esm/funcs/inline-passkey-complete.js +80 -0
- package/dist/esm/funcs/inline-passkey-complete.js.map +1 -0
- package/dist/esm/funcs/inline-passkey-get-options.d.ts +20 -0
- package/dist/esm/funcs/inline-passkey-get-options.d.ts.map +1 -0
- package/dist/esm/funcs/inline-passkey-get-options.js +80 -0
- package/dist/esm/funcs/inline-passkey-get-options.js.map +1 -0
- package/dist/esm/funcs/verification-get-status.d.ts +1 -1
- package/dist/esm/funcs/verification-get-status.js +1 -1
- package/dist/esm/lib/config.d.ts +20 -4
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +21 -17
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +5 -4
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +2 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +2 -2
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/bot-shield-action.d.ts +10 -0
- package/dist/esm/models/bot-shield-action.d.ts.map +1 -1
- package/dist/esm/models/bot-shield-action.js +8 -0
- package/dist/esm/models/bot-shield-action.js.map +1 -1
- package/dist/esm/models/error-body.d.ts +11 -1
- package/dist/esm/models/error-body.d.ts.map +1 -1
- package/dist/esm/models/error-body.js +6 -0
- package/dist/esm/models/error-body.js.map +1 -1
- package/dist/esm/models/gate-human-verified-event.d.ts +93 -0
- package/dist/esm/models/gate-human-verified-event.d.ts.map +1 -0
- package/dist/esm/models/gate-human-verified-event.js +81 -0
- package/dist/esm/models/gate-human-verified-event.js.map +1 -0
- package/dist/esm/models/gate-unavailable-event.d.ts +112 -0
- package/dist/esm/models/gate-unavailable-event.d.ts.map +1 -0
- package/dist/esm/models/gate-unavailable-event.js +99 -0
- package/dist/esm/models/gate-unavailable-event.js.map +1 -0
- package/dist/esm/models/gates-api-error.d.ts +5 -0
- package/dist/esm/models/gates-api-error.d.ts.map +1 -1
- package/dist/esm/models/gates-api-error.js +11 -0
- package/dist/esm/models/gates-api-error.js.map +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/inline-passkey-assertion.d.ts +66 -0
- package/dist/esm/models/inline-passkey-assertion.d.ts.map +1 -0
- package/dist/esm/models/inline-passkey-assertion.js +58 -0
- package/dist/esm/models/inline-passkey-assertion.js.map +1 -0
- package/dist/esm/models/inline-passkey-request-options.d.ts +78 -0
- package/dist/esm/models/inline-passkey-request-options.d.ts.map +1 -0
- package/dist/esm/models/inline-passkey-request-options.js +67 -0
- package/dist/esm/models/inline-passkey-request-options.js.map +1 -0
- package/dist/esm/models/operations/actions-propose.d.ts +21 -1
- package/dist/esm/models/operations/actions-propose.d.ts.map +1 -1
- package/dist/esm/models/operations/actions-propose.js +16 -0
- package/dist/esm/models/operations/actions-propose.js.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-create.d.ts +11 -1
- package/dist/esm/models/operations/gates-api-actions-create.d.ts.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-create.js +4 -0
- package/dist/esm/models/operations/gates-api-actions-create.js.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-list.d.ts +1 -1
- package/dist/esm/models/operations/gates-api-actions-request-cancel.d.ts +113 -0
- package/dist/esm/models/operations/gates-api-actions-request-cancel.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-request-cancel.js +132 -0
- package/dist/esm/models/operations/gates-api-actions-request-cancel.js.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-request-status.d.ts +12 -1
- package/dist/esm/models/operations/gates-api-actions-request-status.d.ts.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-request-status.js +2 -0
- package/dist/esm/models/operations/gates-api-actions-request-status.js.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-request.d.ts +34 -4
- package/dist/esm/models/operations/gates-api-actions-request.d.ts.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-request.js +29 -2
- package/dist/esm/models/operations/gates-api-actions-request.js.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-set-state.d.ts +1 -1
- package/dist/esm/models/operations/gates-api-actions-update.d.ts +99 -0
- package/dist/esm/models/operations/gates-api-actions-update.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-update.js +95 -0
- package/dist/esm/models/operations/gates-api-actions-update.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +7 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +7 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/request-passkey-complete.d.ts +107 -0
- package/dist/esm/models/operations/request-passkey-complete.d.ts.map +1 -0
- package/dist/esm/models/operations/request-passkey-complete.js +97 -0
- package/dist/esm/models/operations/request-passkey-complete.js.map +1 -0
- package/dist/esm/models/operations/request-passkey-options.d.ts +178 -0
- package/dist/esm/models/operations/request-passkey-options.d.ts.map +1 -0
- package/dist/esm/models/operations/request-passkey-options.js +149 -0
- package/dist/esm/models/operations/request-passkey-options.js.map +1 -0
- package/dist/esm/models/operations/sdk-confirm-link.d.ts +130 -0
- package/dist/esm/models/operations/sdk-confirm-link.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-confirm-link.js +157 -0
- package/dist/esm/models/operations/sdk-confirm-link.js.map +1 -0
- package/dist/esm/models/operations/sdk-create-session.d.ts +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts +43 -2
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.js +29 -0
- package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/esm/models/operations/sdk-send-by-number.d.ts +124 -0
- package/dist/esm/models/operations/sdk-send-by-number.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-send-by-number.js +155 -0
- package/dist/esm/models/operations/sdk-send-by-number.js.map +1 -0
- package/dist/esm/models/operations/sdk-verify-resolution.d.ts +125 -0
- package/dist/esm/models/operations/sdk-verify-resolution.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-verify-resolution.js +136 -0
- package/dist/esm/models/operations/sdk-verify-resolution.js.map +1 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts +95 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +83 -0
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +86 -24
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +69 -17
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/passes-per-person.d.ts +1 -1
- package/dist/esm/sdk/actions.d.ts +8 -1
- package/dist/esm/sdk/actions.d.ts.map +1 -1
- package/dist/esm/sdk/actions.js +11 -1
- package/dist/esm/sdk/actions.js.map +1 -1
- package/dist/esm/sdk/census.d.ts +17 -1
- package/dist/esm/sdk/census.d.ts.map +1 -1
- package/dist/esm/sdk/census.js +23 -1
- package/dist/esm/sdk/census.js.map +1 -1
- package/dist/esm/sdk/gates-actions.d.ts +15 -1
- package/dist/esm/sdk/gates-actions.d.ts.map +1 -1
- package/dist/esm/sdk/gates-actions.js +21 -1
- package/dist/esm/sdk/gates-actions.js.map +1 -1
- package/dist/esm/sdk/inline-passkey.d.ts +23 -0
- package/dist/esm/sdk/inline-passkey.d.ts.map +1 -0
- package/dist/esm/sdk/inline-passkey.js +32 -0
- package/dist/esm/sdk/inline-passkey.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +5 -2
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +9 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/verification.d.ts +1 -1
- package/dist/esm/sdk/verification.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/actions-propose-action.ts +1 -1
- package/src/funcs/actions-verify-resolution.ts +192 -0
- package/src/funcs/census-confirm-link.ts +171 -0
- package/src/funcs/census-create-verification-link.ts +2 -0
- package/src/funcs/census-send-by-number.ts +180 -0
- package/src/funcs/census-verify-token.ts +1 -1
- package/src/funcs/gates-actions-request-cancel.ts +187 -0
- package/src/funcs/gates-actions-request-status.ts +1 -0
- package/src/funcs/gates-actions-request.ts +1 -1
- package/src/funcs/gates-actions-update.ts +185 -0
- package/src/funcs/inline-passkey-complete.ts +172 -0
- package/src/funcs/inline-passkey-get-options.ts +172 -0
- package/src/funcs/verification-get-status.ts +1 -1
- package/src/lib/config.ts +22 -18
- package/src/mcp-server/cli/start/command.ts +5 -4
- package/src/mcp-server/cli/start/impl.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/models/bot-shield-action.ts +18 -0
- package/src/models/error-body.ts +17 -1
- package/src/models/gate-human-verified-event.ts +181 -0
- package/src/models/gate-unavailable-event.ts +218 -0
- package/src/models/gates-api-error.ts +16 -0
- package/src/models/index.ts +4 -0
- package/src/models/inline-passkey-assertion.ts +147 -0
- package/src/models/inline-passkey-request-options.ts +175 -0
- package/src/models/operations/actions-propose.ts +37 -1
- package/src/models/operations/gates-api-actions-create.ts +15 -1
- package/src/models/operations/gates-api-actions-list.ts +1 -1
- package/src/models/operations/gates-api-actions-request-cancel.ts +339 -0
- package/src/models/operations/gates-api-actions-request-status.ts +14 -1
- package/src/models/operations/gates-api-actions-request.ts +83 -6
- package/src/models/operations/gates-api-actions-set-state.ts +1 -1
- package/src/models/operations/gates-api-actions-update.ts +281 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/request-passkey-complete.ts +272 -0
- package/src/models/operations/request-passkey-options.ts +372 -0
- package/src/models/operations/sdk-confirm-link.ts +380 -0
- package/src/models/operations/sdk-create-session.ts +1 -1
- package/src/models/operations/sdk-create-verification-link.ts +69 -2
- package/src/models/operations/sdk-send-by-number.ts +372 -0
- package/src/models/operations/sdk-verify-resolution.ts +341 -0
- package/src/models/operations/sdk-verify-token.ts +189 -1
- package/src/models/operations/verification-get-status.ts +151 -38
- package/src/models/passes-per-person.ts +1 -1
- package/src/sdk/actions.ts +21 -1
- package/src/sdk/census.ts +43 -1
- package/src/sdk/gates-actions.ts +41 -1
- package/src/sdk/inline-passkey.ts +49 -0
- package/src/sdk/sdk.ts +11 -5
- 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",
|