botshield-sdk 2.3.0 → 4.0.1
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 +28 -2
- package/bin/mcp-server.js +1129 -52
- package/bin/mcp-server.js.map +34 -24
- 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/recovery-exchange.d.ts +18 -0
- package/dist/commonjs/funcs/recovery-exchange.d.ts.map +1 -0
- package/dist/commonjs/funcs/recovery-exchange.js +123 -0
- package/dist/commonjs/funcs/recovery-exchange.js.map +1 -0
- package/dist/commonjs/funcs/recovery-other-route.d.ts +18 -0
- package/dist/commonjs/funcs/recovery-other-route.d.ts.map +1 -0
- package/dist/commonjs/funcs/recovery-other-route.js +123 -0
- package/dist/commonjs/funcs/recovery-other-route.js.map +1 -0
- package/dist/commonjs/funcs/sign-in-confirm.d.ts +18 -0
- package/dist/commonjs/funcs/sign-in-confirm.d.ts.map +1 -0
- package/dist/commonjs/funcs/sign-in-confirm.js +123 -0
- package/dist/commonjs/funcs/sign-in-confirm.js.map +1 -0
- package/dist/commonjs/funcs/sign-in-request.d.ts +18 -0
- package/dist/commonjs/funcs/sign-in-request.d.ts.map +1 -0
- package/dist/commonjs/funcs/sign-in-request.js +123 -0
- package/dist/commonjs/funcs/sign-in-request.js.map +1 -0
- package/dist/commonjs/funcs/verification-get-status.d.ts +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +2 -1
- package/dist/commonjs/funcs/verification-get-status.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/bot-shield-action.d.ts +46 -0
- package/dist/commonjs/models/bot-shield-action.d.ts.map +1 -1
- package/dist/commonjs/models/bot-shield-action.js +36 -1
- package/dist/commonjs/models/bot-shield-action.js.map +1 -1
- 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 +4 -0
- package/dist/commonjs/models/error-body.js.map +1 -1
- 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 +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- 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 +5 -0
- 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 +9 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +9 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/recovery-exchange.d.ts +114 -0
- package/dist/commonjs/models/operations/recovery-exchange.d.ts.map +1 -0
- package/dist/commonjs/models/operations/recovery-exchange.js +164 -0
- package/dist/commonjs/models/operations/recovery-exchange.js.map +1 -0
- package/dist/commonjs/models/operations/recovery-other-route.d.ts +86 -0
- package/dist/commonjs/models/operations/recovery-other-route.d.ts.map +1 -0
- package/dist/commonjs/models/operations/recovery-other-route.js +145 -0
- package/dist/commonjs/models/operations/recovery-other-route.js.map +1 -0
- package/dist/commonjs/models/operations/request-passkey-complete.d.ts +1 -1
- 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 +48 -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 +34 -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 +110 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +96 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/signin-confirm.d.ts +148 -0
- package/dist/commonjs/models/operations/signin-confirm.d.ts.map +1 -0
- package/dist/commonjs/models/operations/signin-confirm.js +202 -0
- package/dist/commonjs/models/operations/signin-confirm.js.map +1 -0
- package/dist/commonjs/models/operations/signin-request.d.ts +115 -0
- package/dist/commonjs/models/operations/signin-request.d.ts.map +1 -0
- package/dist/commonjs/models/operations/signin-request.js +174 -0
- package/dist/commonjs/models/operations/signin-request.js.map +1 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts +45 -5
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +37 -2
- 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/recovery.d.ts +19 -0
- package/dist/commonjs/sdk/recovery.d.ts.map +1 -0
- package/dist/commonjs/sdk/recovery.js +32 -0
- package/dist/commonjs/sdk/recovery.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +8 -2
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +14 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/sign-in.d.ts +19 -0
- package/dist/commonjs/sdk/sign-in.d.ts.map +1 -0
- package/dist/commonjs/sdk/sign-in.js +32 -0
- package/dist/commonjs/sdk/sign-in.js.map +1 -0
- 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/recovery-exchange.d.ts +18 -0
- package/dist/esm/funcs/recovery-exchange.d.ts.map +1 -0
- package/dist/esm/funcs/recovery-exchange.js +87 -0
- package/dist/esm/funcs/recovery-exchange.js.map +1 -0
- package/dist/esm/funcs/recovery-other-route.d.ts +18 -0
- package/dist/esm/funcs/recovery-other-route.d.ts.map +1 -0
- package/dist/esm/funcs/recovery-other-route.js +87 -0
- package/dist/esm/funcs/recovery-other-route.js.map +1 -0
- package/dist/esm/funcs/sign-in-confirm.d.ts +18 -0
- package/dist/esm/funcs/sign-in-confirm.d.ts.map +1 -0
- package/dist/esm/funcs/sign-in-confirm.js +87 -0
- package/dist/esm/funcs/sign-in-confirm.js.map +1 -0
- package/dist/esm/funcs/sign-in-request.d.ts +18 -0
- package/dist/esm/funcs/sign-in-request.d.ts.map +1 -0
- package/dist/esm/funcs/sign-in-request.js +87 -0
- package/dist/esm/funcs/sign-in-request.js.map +1 -0
- package/dist/esm/funcs/verification-get-status.d.ts +1 -1
- package/dist/esm/funcs/verification-get-status.js +3 -2
- package/dist/esm/funcs/verification-get-status.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/bot-shield-action.d.ts +46 -0
- package/dist/esm/models/bot-shield-action.d.ts.map +1 -1
- package/dist/esm/models/bot-shield-action.js +35 -0
- package/dist/esm/models/bot-shield-action.js.map +1 -1
- 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 +4 -0
- package/dist/esm/models/error-body.js.map +1 -1
- 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 +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- 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 +5 -0
- 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 +9 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +9 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/recovery-exchange.d.ts +114 -0
- package/dist/esm/models/operations/recovery-exchange.d.ts.map +1 -0
- package/dist/esm/models/operations/recovery-exchange.js +118 -0
- package/dist/esm/models/operations/recovery-exchange.js.map +1 -0
- package/dist/esm/models/operations/recovery-other-route.d.ts +86 -0
- package/dist/esm/models/operations/recovery-other-route.d.ts.map +1 -0
- package/dist/esm/models/operations/recovery-other-route.js +99 -0
- package/dist/esm/models/operations/recovery-other-route.js.map +1 -0
- package/dist/esm/models/operations/request-passkey-complete.d.ts +1 -1
- 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 +48 -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 +33 -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 +110 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +93 -0
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/signin-confirm.d.ts +148 -0
- package/dist/esm/models/operations/signin-confirm.d.ts.map +1 -0
- package/dist/esm/models/operations/signin-confirm.js +156 -0
- package/dist/esm/models/operations/signin-confirm.js.map +1 -0
- package/dist/esm/models/operations/signin-request.d.ts +115 -0
- package/dist/esm/models/operations/signin-request.d.ts.map +1 -0
- package/dist/esm/models/operations/signin-request.js +128 -0
- package/dist/esm/models/operations/signin-request.js.map +1 -0
- package/dist/esm/models/operations/verification-get-status.d.ts +45 -5
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +36 -1
- 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/recovery.d.ts +19 -0
- package/dist/esm/sdk/recovery.d.ts.map +1 -0
- package/dist/esm/sdk/recovery.js +28 -0
- package/dist/esm/sdk/recovery.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +8 -2
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +14 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/sign-in.d.ts +19 -0
- package/dist/esm/sdk/sign-in.d.ts.map +1 -0
- package/dist/esm/sdk/sign-in.js +28 -0
- package/dist/esm/sdk/sign-in.js.map +1 -0
- 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/recovery-exchange.ts +184 -0
- package/src/funcs/recovery-other-route.ts +184 -0
- package/src/funcs/sign-in-confirm.ts +184 -0
- package/src/funcs/sign-in-request.ts +184 -0
- package/src/funcs/verification-get-status.ts +7 -2
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/bot-shield-action.ts +79 -0
- package/src/models/error-body.ts +10 -1
- package/src/models/gate-unavailable-event.ts +218 -0
- package/src/models/gates-api-error.ts +16 -0
- package/src/models/index.ts +1 -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 +7 -0
- 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 +9 -0
- package/src/models/operations/recovery-exchange.ts +308 -0
- package/src/models/operations/recovery-other-route.ts +262 -0
- package/src/models/operations/request-passkey-complete.ts +1 -1
- 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 +78 -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 +214 -1
- package/src/models/operations/signin-confirm.ts +383 -0
- package/src/models/operations/signin-request.ts +319 -0
- package/src/models/operations/verification-get-status.ts +76 -5
- 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/recovery.ts +49 -0
- package/src/sdk/sdk.ts +17 -5
- package/src/sdk/sign-in.ts +49 -0
- package/src/sdk/verification.ts +1 -1
|
@@ -16,6 +16,11 @@ export type GatesApiActionsRequestSecurity = {
|
|
|
16
16
|
gatesKeyAuth: string;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
export type GatesApiActionsRequestDetail = {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
19
24
|
export type GatesApiActionsRequestRequest = {
|
|
20
25
|
/**
|
|
21
26
|
* Your idempotency key for this request.
|
|
@@ -34,13 +39,21 @@ export type GatesApiActionsRequestRequest = {
|
|
|
34
39
|
*/
|
|
35
40
|
actLabel?: string | undefined;
|
|
36
41
|
/**
|
|
37
|
-
* Your reference for the person (the one you linked them with). The person must already be linked.
|
|
42
|
+
* Your reference for the person (the one you linked them with). The person must already be linked. Exactly one of this and `phone_number`.
|
|
38
43
|
*/
|
|
39
|
-
partnerUserRef
|
|
44
|
+
partnerUserRef?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* 4.0 · the person's phone number, in place of `partner_user_ref` (exactly one of the two). Used for one lookup, then dropped: never stored, logged or sent in a webhook. The answer is the same whether or not anyone holds the number. Show the returned `match_number` to the person; they pick it in the app before approving. A person not yet linked to your company gets an introduction first, never the card; the ask is held and becomes the card if they allow. An ask nobody answers reads `queued`, then `expired`. Production needs a verified business.
|
|
47
|
+
*/
|
|
48
|
+
phoneNumber?: string | undefined;
|
|
40
49
|
/**
|
|
41
50
|
* Display only: who asked on the person's behalf, e.g. their assistant.
|
|
42
51
|
*/
|
|
43
52
|
requestedBy?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The terms the person is approving, as rows on the card. Shown as you send them and signed with the act: a row changed after the approval breaks it. A label and a value only.
|
|
55
|
+
*/
|
|
56
|
+
details?: Array<GatesApiActionsRequestDetail> | undefined;
|
|
44
57
|
/**
|
|
45
58
|
* How long the card waits for the person.
|
|
46
59
|
*/
|
|
@@ -62,6 +75,10 @@ export type GatesApiActionsRequestDataData = {
|
|
|
62
75
|
requestId: string;
|
|
63
76
|
status: GatesApiActionsRequestStatus;
|
|
64
77
|
expiresAt: Date;
|
|
78
|
+
/**
|
|
79
|
+
* By phone number only: the two-digit number to show the person (in your conversation, or on your screen). They pick it in the BotShield app before approving.
|
|
80
|
+
*/
|
|
81
|
+
matchNumber?: number | undefined;
|
|
65
82
|
};
|
|
66
83
|
|
|
67
84
|
export type GatesApiActionsRequestData = {
|
|
@@ -73,7 +90,7 @@ export type GatesApiActionsRequestData = {
|
|
|
73
90
|
};
|
|
74
91
|
|
|
75
92
|
/**
|
|
76
|
-
* Queued. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401), `gates_scope_required` (403), `org_not_found` (404), `action_invalid` (400), `action_not_found` (404), `action_off` (404), `agent_not_found` (404), `not_linked` (409 — the person isn't linked to your company), `request_id_reused` (409), `internal` (500).
|
|
93
|
+
* Queued. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401), `gates_scope_required` (403), `org_not_found` (404), `action_invalid` (400), `action_not_found` (404), `action_off` (404), `agent_not_found` (404), `not_linked` (409 — the person isn't linked to your company), `details_invalid` (400), `agent_removed_by_person` (409 — the person removed this agent), `account_reconfirm_required` (409 — the customer changed their phone number without approval from another phone, so they must confirm this account with BotShield again from your signed-in page before anything can be sent to them; nothing is counted or sent), `request_id_reused` (409 — also when the same request_id is sent with other terms), `too_many_open_requests` (429 — this person already has 5 of your requests waiting; carries `retry_after_seconds`), `daily_request_limit` (429 — 50 requests to this person in 24 hours; carries `retry_after_seconds`), `request_limit_unavailable` (503 — the request could not be counted, so it was not sent; retry), `one_addressee_required` (400 — send exactly one of partner_user_ref and phone_number), `phone_invalid` (400), `org_not_verified` (403 — by phone number in production), `send_rate_limited` (429 — asks by phone number per key per hour), `unanswered_limit_reached` (429 — too many unanswered asks by phone number in 24 hours), `unavailable` (503), `internal` (500). 4.0: `action_is_recovery` / `action_is_signin` (404 — that act is your Recovery Action or Sign-on Action, which no request starts).
|
|
77
94
|
*/
|
|
78
95
|
export type GatesApiActionsRequestResponse = {
|
|
79
96
|
data: GatesApiActionsRequestData;
|
|
@@ -128,6 +145,50 @@ export function gatesApiActionsRequestSecurityFromJSON(
|
|
|
128
145
|
);
|
|
129
146
|
}
|
|
130
147
|
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const GatesApiActionsRequestDetail$inboundSchema: z.ZodType<
|
|
150
|
+
GatesApiActionsRequestDetail,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
unknown
|
|
153
|
+
> = z.object({
|
|
154
|
+
label: types.string(),
|
|
155
|
+
value: types.string(),
|
|
156
|
+
});
|
|
157
|
+
/** @internal */
|
|
158
|
+
export type GatesApiActionsRequestDetail$Outbound = {
|
|
159
|
+
label: string;
|
|
160
|
+
value: string;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const GatesApiActionsRequestDetail$outboundSchema: z.ZodType<
|
|
165
|
+
GatesApiActionsRequestDetail$Outbound,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
GatesApiActionsRequestDetail
|
|
168
|
+
> = z.object({
|
|
169
|
+
label: z.string(),
|
|
170
|
+
value: z.string(),
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
export function gatesApiActionsRequestDetailToJSON(
|
|
174
|
+
gatesApiActionsRequestDetail: GatesApiActionsRequestDetail,
|
|
175
|
+
): string {
|
|
176
|
+
return JSON.stringify(
|
|
177
|
+
GatesApiActionsRequestDetail$outboundSchema.parse(
|
|
178
|
+
gatesApiActionsRequestDetail,
|
|
179
|
+
),
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
export function gatesApiActionsRequestDetailFromJSON(
|
|
183
|
+
jsonString: string,
|
|
184
|
+
): SafeParseResult<GatesApiActionsRequestDetail, SDKValidationError> {
|
|
185
|
+
return safeParse(
|
|
186
|
+
jsonString,
|
|
187
|
+
(x) => GatesApiActionsRequestDetail$inboundSchema.parse(JSON.parse(x)),
|
|
188
|
+
`Failed to parse 'GatesApiActionsRequestDetail' from JSON`,
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
131
192
|
/** @internal */
|
|
132
193
|
export const GatesApiActionsRequestRequest$inboundSchema: z.ZodType<
|
|
133
194
|
GatesApiActionsRequestRequest,
|
|
@@ -138,14 +199,19 @@ export const GatesApiActionsRequestRequest$inboundSchema: z.ZodType<
|
|
|
138
199
|
agent: types.string(),
|
|
139
200
|
act: types.string(),
|
|
140
201
|
act_label: types.optional(types.string()),
|
|
141
|
-
partner_user_ref: types.string(),
|
|
202
|
+
partner_user_ref: types.optional(types.string()),
|
|
203
|
+
phone_number: types.optional(types.string()),
|
|
142
204
|
requested_by: types.optional(types.string()),
|
|
205
|
+
details: types.optional(
|
|
206
|
+
z.array(z.lazy(() => GatesApiActionsRequestDetail$inboundSchema)),
|
|
207
|
+
),
|
|
143
208
|
ttl_seconds: types.number().default(600),
|
|
144
209
|
}).transform((v) => {
|
|
145
210
|
return remap$(v, {
|
|
146
211
|
"request_id": "requestId",
|
|
147
212
|
"act_label": "actLabel",
|
|
148
213
|
"partner_user_ref": "partnerUserRef",
|
|
214
|
+
"phone_number": "phoneNumber",
|
|
149
215
|
"requested_by": "requestedBy",
|
|
150
216
|
"ttl_seconds": "ttlSeconds",
|
|
151
217
|
});
|
|
@@ -156,8 +222,10 @@ export type GatesApiActionsRequestRequest$Outbound = {
|
|
|
156
222
|
agent: string;
|
|
157
223
|
act: string;
|
|
158
224
|
act_label?: string | undefined;
|
|
159
|
-
partner_user_ref
|
|
225
|
+
partner_user_ref?: string | undefined;
|
|
226
|
+
phone_number?: string | undefined;
|
|
160
227
|
requested_by?: string | undefined;
|
|
228
|
+
details?: Array<GatesApiActionsRequestDetail$Outbound> | undefined;
|
|
161
229
|
ttl_seconds: number;
|
|
162
230
|
};
|
|
163
231
|
|
|
@@ -171,14 +239,18 @@ export const GatesApiActionsRequestRequest$outboundSchema: z.ZodType<
|
|
|
171
239
|
agent: z.string(),
|
|
172
240
|
act: z.string(),
|
|
173
241
|
actLabel: z.string().optional(),
|
|
174
|
-
partnerUserRef: z.string(),
|
|
242
|
+
partnerUserRef: z.string().optional(),
|
|
243
|
+
phoneNumber: z.string().optional(),
|
|
175
244
|
requestedBy: z.string().optional(),
|
|
245
|
+
details: z.array(z.lazy(() => GatesApiActionsRequestDetail$outboundSchema))
|
|
246
|
+
.optional(),
|
|
176
247
|
ttlSeconds: z.number().int().default(600),
|
|
177
248
|
}).transform((v) => {
|
|
178
249
|
return remap$(v, {
|
|
179
250
|
requestId: "request_id",
|
|
180
251
|
actLabel: "act_label",
|
|
181
252
|
partnerUserRef: "partner_user_ref",
|
|
253
|
+
phoneNumber: "phone_number",
|
|
182
254
|
requestedBy: "requested_by",
|
|
183
255
|
ttlSeconds: "ttl_seconds",
|
|
184
256
|
});
|
|
@@ -225,10 +297,12 @@ export const GatesApiActionsRequestDataData$inboundSchema: z.ZodType<
|
|
|
225
297
|
request_id: types.string(),
|
|
226
298
|
status: GatesApiActionsRequestStatus$inboundSchema,
|
|
227
299
|
expires_at: types.date(),
|
|
300
|
+
match_number: types.optional(types.number()),
|
|
228
301
|
}).transform((v) => {
|
|
229
302
|
return remap$(v, {
|
|
230
303
|
"request_id": "requestId",
|
|
231
304
|
"expires_at": "expiresAt",
|
|
305
|
+
"match_number": "matchNumber",
|
|
232
306
|
});
|
|
233
307
|
});
|
|
234
308
|
/** @internal */
|
|
@@ -236,6 +310,7 @@ export type GatesApiActionsRequestDataData$Outbound = {
|
|
|
236
310
|
request_id: string;
|
|
237
311
|
status: string;
|
|
238
312
|
expires_at: string;
|
|
313
|
+
match_number?: number | undefined;
|
|
239
314
|
};
|
|
240
315
|
|
|
241
316
|
/** @internal */
|
|
@@ -247,10 +322,12 @@ export const GatesApiActionsRequestDataData$outboundSchema: z.ZodType<
|
|
|
247
322
|
requestId: z.string(),
|
|
248
323
|
status: GatesApiActionsRequestStatus$outboundSchema,
|
|
249
324
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
325
|
+
matchNumber: z.number().int().optional(),
|
|
250
326
|
}).transform((v) => {
|
|
251
327
|
return remap$(v, {
|
|
252
328
|
requestId: "request_id",
|
|
253
329
|
expiresAt: "expires_at",
|
|
330
|
+
matchNumber: "match_number",
|
|
254
331
|
});
|
|
255
332
|
});
|
|
256
333
|
|
|
@@ -47,7 +47,7 @@ export type GatesApiActionsSetStateData = {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* The action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `action_not_found` (404), `internal` (500).
|
|
50
|
+
* The action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `action_not_found` (404), `internal` (500). Each action carries `staff_can_send`. 4.0: each action carries `kind` (`action`, `recovery` or `signin`), `signin_qr` and, for a Recovery Action, `pending_where_url` / `pending_where_url_at`. Recovery and Sign-on Actions are placed in the Console, not here.
|
|
51
51
|
*/
|
|
52
52
|
export type GatesApiActionsSetStateResponse = {
|
|
53
53
|
data: GatesApiActionsSetStateData;
|
|
@@ -0,0 +1,281 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export type GatesApiActionsUpdateSecurity = {
|
|
14
|
+
gatesKeyAuth: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type GatesApiActionsUpdateRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* The action's key (input is lower-cased).
|
|
20
|
+
*/
|
|
21
|
+
actKey: string;
|
|
22
|
+
/**
|
|
23
|
+
* Shown to the person on their card.
|
|
24
|
+
*/
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Your support team can send this to a customer. Its name is what the customer reads.
|
|
28
|
+
*/
|
|
29
|
+
staffCanSend?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* 4.0 VH-31: high-value. It starts only from your customer's signed-in session (your server naming the account by your own reference). It is refused by phone number and for staff sends (`action_requires_signed_in`).
|
|
32
|
+
*/
|
|
33
|
+
highValue?: boolean | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type GatesApiActionsUpdateDataData = {
|
|
37
|
+
/**
|
|
38
|
+
* A BotShield Action: one act on your own surface keyed to a passkey. Not a gate — no schedule, no levers — and it always stands on a verified account, so a tap runs the linking ceremony.
|
|
39
|
+
*/
|
|
40
|
+
action: models.BotShieldAction;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type GatesApiActionsUpdateData = {
|
|
44
|
+
data?: GatesApiActionsUpdateDataData | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Gates API handler error. Arrives inside `data.error` with HTTP 200 — check for it before reading the result.
|
|
47
|
+
*/
|
|
48
|
+
error?: models.GatesApiError | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The action. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401 — missing, malformed or inactive key), `gates_scope_required` (403 — the key lacks Gates API access), `org_not_found` (404), `nothing_to_change` (400), `action_not_found` (404), `not_migrated` (503), `internal` (500). 4.0: each action carries `kind` (`action`, `recovery` or `signin`), `signin_qr` and, for a Recovery Action, `pending_where_url` / `pending_where_url_at`. Recovery and Sign-on Actions are placed in the Console, not here.
|
|
53
|
+
*/
|
|
54
|
+
export type GatesApiActionsUpdateResponse = {
|
|
55
|
+
data: GatesApiActionsUpdateData;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const GatesApiActionsUpdateSecurity$inboundSchema: z.ZodType<
|
|
60
|
+
GatesApiActionsUpdateSecurity,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
GatesKeyAuth: types.string(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
"GatesKeyAuth": "gatesKeyAuth",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type GatesApiActionsUpdateSecurity$Outbound = {
|
|
72
|
+
GatesKeyAuth: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const GatesApiActionsUpdateSecurity$outboundSchema: z.ZodType<
|
|
77
|
+
GatesApiActionsUpdateSecurity$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
GatesApiActionsUpdateSecurity
|
|
80
|
+
> = z.object({
|
|
81
|
+
gatesKeyAuth: z.string(),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
gatesKeyAuth: "GatesKeyAuth",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function gatesApiActionsUpdateSecurityToJSON(
|
|
89
|
+
gatesApiActionsUpdateSecurity: GatesApiActionsUpdateSecurity,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
GatesApiActionsUpdateSecurity$outboundSchema.parse(
|
|
93
|
+
gatesApiActionsUpdateSecurity,
|
|
94
|
+
),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
export function gatesApiActionsUpdateSecurityFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<GatesApiActionsUpdateSecurity, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => GatesApiActionsUpdateSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'GatesApiActionsUpdateSecurity' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const GatesApiActionsUpdateRequest$inboundSchema: z.ZodType<
|
|
109
|
+
GatesApiActionsUpdateRequest,
|
|
110
|
+
z.ZodTypeDef,
|
|
111
|
+
unknown
|
|
112
|
+
> = z.object({
|
|
113
|
+
actKey: types.string(),
|
|
114
|
+
name: types.optional(types.string()),
|
|
115
|
+
staffCanSend: types.optional(types.boolean()),
|
|
116
|
+
highValue: types.optional(types.boolean()),
|
|
117
|
+
});
|
|
118
|
+
/** @internal */
|
|
119
|
+
export type GatesApiActionsUpdateRequest$Outbound = {
|
|
120
|
+
actKey: string;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
staffCanSend?: boolean | undefined;
|
|
123
|
+
highValue?: boolean | undefined;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const GatesApiActionsUpdateRequest$outboundSchema: z.ZodType<
|
|
128
|
+
GatesApiActionsUpdateRequest$Outbound,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
GatesApiActionsUpdateRequest
|
|
131
|
+
> = z.object({
|
|
132
|
+
actKey: z.string(),
|
|
133
|
+
name: z.string().optional(),
|
|
134
|
+
staffCanSend: z.boolean().optional(),
|
|
135
|
+
highValue: z.boolean().optional(),
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
export function gatesApiActionsUpdateRequestToJSON(
|
|
139
|
+
gatesApiActionsUpdateRequest: GatesApiActionsUpdateRequest,
|
|
140
|
+
): string {
|
|
141
|
+
return JSON.stringify(
|
|
142
|
+
GatesApiActionsUpdateRequest$outboundSchema.parse(
|
|
143
|
+
gatesApiActionsUpdateRequest,
|
|
144
|
+
),
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
export function gatesApiActionsUpdateRequestFromJSON(
|
|
148
|
+
jsonString: string,
|
|
149
|
+
): SafeParseResult<GatesApiActionsUpdateRequest, SDKValidationError> {
|
|
150
|
+
return safeParse(
|
|
151
|
+
jsonString,
|
|
152
|
+
(x) => GatesApiActionsUpdateRequest$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
+
`Failed to parse 'GatesApiActionsUpdateRequest' from JSON`,
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const GatesApiActionsUpdateDataData$inboundSchema: z.ZodType<
|
|
159
|
+
GatesApiActionsUpdateDataData,
|
|
160
|
+
z.ZodTypeDef,
|
|
161
|
+
unknown
|
|
162
|
+
> = z.object({
|
|
163
|
+
action: models.BotShieldAction$inboundSchema,
|
|
164
|
+
});
|
|
165
|
+
/** @internal */
|
|
166
|
+
export type GatesApiActionsUpdateDataData$Outbound = {
|
|
167
|
+
action: models.BotShieldAction$Outbound;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const GatesApiActionsUpdateDataData$outboundSchema: z.ZodType<
|
|
172
|
+
GatesApiActionsUpdateDataData$Outbound,
|
|
173
|
+
z.ZodTypeDef,
|
|
174
|
+
GatesApiActionsUpdateDataData
|
|
175
|
+
> = z.object({
|
|
176
|
+
action: models.BotShieldAction$outboundSchema,
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
export function gatesApiActionsUpdateDataDataToJSON(
|
|
180
|
+
gatesApiActionsUpdateDataData: GatesApiActionsUpdateDataData,
|
|
181
|
+
): string {
|
|
182
|
+
return JSON.stringify(
|
|
183
|
+
GatesApiActionsUpdateDataData$outboundSchema.parse(
|
|
184
|
+
gatesApiActionsUpdateDataData,
|
|
185
|
+
),
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
export function gatesApiActionsUpdateDataDataFromJSON(
|
|
189
|
+
jsonString: string,
|
|
190
|
+
): SafeParseResult<GatesApiActionsUpdateDataData, SDKValidationError> {
|
|
191
|
+
return safeParse(
|
|
192
|
+
jsonString,
|
|
193
|
+
(x) => GatesApiActionsUpdateDataData$inboundSchema.parse(JSON.parse(x)),
|
|
194
|
+
`Failed to parse 'GatesApiActionsUpdateDataData' from JSON`,
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/** @internal */
|
|
199
|
+
export const GatesApiActionsUpdateData$inboundSchema: z.ZodType<
|
|
200
|
+
GatesApiActionsUpdateData,
|
|
201
|
+
z.ZodTypeDef,
|
|
202
|
+
unknown
|
|
203
|
+
> = z.object({
|
|
204
|
+
data: types.optional(
|
|
205
|
+
z.lazy(() => GatesApiActionsUpdateDataData$inboundSchema),
|
|
206
|
+
),
|
|
207
|
+
error: types.optional(models.GatesApiError$inboundSchema),
|
|
208
|
+
});
|
|
209
|
+
/** @internal */
|
|
210
|
+
export type GatesApiActionsUpdateData$Outbound = {
|
|
211
|
+
data?: GatesApiActionsUpdateDataData$Outbound | undefined;
|
|
212
|
+
error?: models.GatesApiError$Outbound | undefined;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/** @internal */
|
|
216
|
+
export const GatesApiActionsUpdateData$outboundSchema: z.ZodType<
|
|
217
|
+
GatesApiActionsUpdateData$Outbound,
|
|
218
|
+
z.ZodTypeDef,
|
|
219
|
+
GatesApiActionsUpdateData
|
|
220
|
+
> = z.object({
|
|
221
|
+
data: z.lazy(() => GatesApiActionsUpdateDataData$outboundSchema).optional(),
|
|
222
|
+
error: models.GatesApiError$outboundSchema.optional(),
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
export function gatesApiActionsUpdateDataToJSON(
|
|
226
|
+
gatesApiActionsUpdateData: GatesApiActionsUpdateData,
|
|
227
|
+
): string {
|
|
228
|
+
return JSON.stringify(
|
|
229
|
+
GatesApiActionsUpdateData$outboundSchema.parse(gatesApiActionsUpdateData),
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
export function gatesApiActionsUpdateDataFromJSON(
|
|
233
|
+
jsonString: string,
|
|
234
|
+
): SafeParseResult<GatesApiActionsUpdateData, SDKValidationError> {
|
|
235
|
+
return safeParse(
|
|
236
|
+
jsonString,
|
|
237
|
+
(x) => GatesApiActionsUpdateData$inboundSchema.parse(JSON.parse(x)),
|
|
238
|
+
`Failed to parse 'GatesApiActionsUpdateData' from JSON`,
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/** @internal */
|
|
243
|
+
export const GatesApiActionsUpdateResponse$inboundSchema: z.ZodType<
|
|
244
|
+
GatesApiActionsUpdateResponse,
|
|
245
|
+
z.ZodTypeDef,
|
|
246
|
+
unknown
|
|
247
|
+
> = z.object({
|
|
248
|
+
data: z.lazy(() => GatesApiActionsUpdateData$inboundSchema),
|
|
249
|
+
});
|
|
250
|
+
/** @internal */
|
|
251
|
+
export type GatesApiActionsUpdateResponse$Outbound = {
|
|
252
|
+
data: GatesApiActionsUpdateData$Outbound;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
/** @internal */
|
|
256
|
+
export const GatesApiActionsUpdateResponse$outboundSchema: z.ZodType<
|
|
257
|
+
GatesApiActionsUpdateResponse$Outbound,
|
|
258
|
+
z.ZodTypeDef,
|
|
259
|
+
GatesApiActionsUpdateResponse
|
|
260
|
+
> = z.object({
|
|
261
|
+
data: z.lazy(() => GatesApiActionsUpdateData$outboundSchema),
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
export function gatesApiActionsUpdateResponseToJSON(
|
|
265
|
+
gatesApiActionsUpdateResponse: GatesApiActionsUpdateResponse,
|
|
266
|
+
): string {
|
|
267
|
+
return JSON.stringify(
|
|
268
|
+
GatesApiActionsUpdateResponse$outboundSchema.parse(
|
|
269
|
+
gatesApiActionsUpdateResponse,
|
|
270
|
+
),
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
export function gatesApiActionsUpdateResponseFromJSON(
|
|
274
|
+
jsonString: string,
|
|
275
|
+
): SafeParseResult<GatesApiActionsUpdateResponse, SDKValidationError> {
|
|
276
|
+
return safeParse(
|
|
277
|
+
jsonString,
|
|
278
|
+
(x) => GatesApiActionsUpdateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
279
|
+
`Failed to parse 'GatesApiActionsUpdateResponse' from JSON`,
|
|
280
|
+
);
|
|
281
|
+
}
|
|
@@ -7,9 +7,11 @@ export * from "./actions-check-status.js";
|
|
|
7
7
|
export * from "./actions-propose.js";
|
|
8
8
|
export * from "./gates-api-actions-create.js";
|
|
9
9
|
export * from "./gates-api-actions-list.js";
|
|
10
|
+
export * from "./gates-api-actions-request-cancel.js";
|
|
10
11
|
export * from "./gates-api-actions-request-status.js";
|
|
11
12
|
export * from "./gates-api-actions-request.js";
|
|
12
13
|
export * from "./gates-api-actions-set-state.js";
|
|
14
|
+
export * from "./gates-api-actions-update.js";
|
|
13
15
|
export * from "./gates-api-activate.js";
|
|
14
16
|
export * from "./gates-api-cancel.js";
|
|
15
17
|
export * from "./gates-api-close.js";
|
|
@@ -17,17 +19,24 @@ export * from "./gates-api-create.js";
|
|
|
17
19
|
export * from "./gates-api-extend.js";
|
|
18
20
|
export * from "./gates-api-get.js";
|
|
19
21
|
export * from "./gates-api-list.js";
|
|
22
|
+
export * from "./recovery-exchange.js";
|
|
23
|
+
export * from "./recovery-other-route.js";
|
|
20
24
|
export * from "./request-passkey-complete.js";
|
|
21
25
|
export * from "./request-passkey-options.js";
|
|
26
|
+
export * from "./sdk-confirm-link.js";
|
|
22
27
|
export * from "./sdk-create-session.js";
|
|
23
28
|
export * from "./sdk-create-verification-link.js";
|
|
24
29
|
export * from "./sdk-get-partner-config.js";
|
|
25
30
|
export * from "./sdk-logout.js";
|
|
26
31
|
export * from "./sdk-revoke-verification.js";
|
|
32
|
+
export * from "./sdk-send-by-number.js";
|
|
27
33
|
export * from "./sdk-store-signal.js";
|
|
28
34
|
export * from "./sdk-validate-signal.js";
|
|
35
|
+
export * from "./sdk-verify-resolution.js";
|
|
29
36
|
export * from "./sdk-verify-token.js";
|
|
30
37
|
export * from "./secured-accounts-list.js";
|
|
31
38
|
export * from "./secured-accounts-revoke.js";
|
|
32
39
|
export * from "./secured-accounts-status.js";
|
|
40
|
+
export * from "./signin-confirm.js";
|
|
41
|
+
export * from "./signin-request.js";
|
|
33
42
|
export * from "./verification-get-status.js";
|