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