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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
9
|
import * as types from "../types/primitives.js";
|
|
@@ -15,6 +16,10 @@ export type GatesApiError = {
|
|
|
15
16
|
message: string;
|
|
16
17
|
statusCode: number;
|
|
17
18
|
code: string;
|
|
19
|
+
/**
|
|
20
|
+
* On a 429 limit: seconds until a retry can succeed.
|
|
21
|
+
*/
|
|
22
|
+
retryAfterSeconds?: number | undefined;
|
|
18
23
|
};
|
|
19
24
|
|
|
20
25
|
/** @internal */
|
|
@@ -26,12 +31,18 @@ export const GatesApiError$inboundSchema: z.ZodType<
|
|
|
26
31
|
message: types.string(),
|
|
27
32
|
statusCode: types.number(),
|
|
28
33
|
code: types.string(),
|
|
34
|
+
retry_after_seconds: types.optional(types.number()),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"retry_after_seconds": "retryAfterSeconds",
|
|
38
|
+
});
|
|
29
39
|
});
|
|
30
40
|
/** @internal */
|
|
31
41
|
export type GatesApiError$Outbound = {
|
|
32
42
|
message: string;
|
|
33
43
|
statusCode: number;
|
|
34
44
|
code: string;
|
|
45
|
+
retry_after_seconds?: number | undefined;
|
|
35
46
|
};
|
|
36
47
|
|
|
37
48
|
/** @internal */
|
|
@@ -43,6 +54,11 @@ export const GatesApiError$outboundSchema: z.ZodType<
|
|
|
43
54
|
message: z.string(),
|
|
44
55
|
statusCode: z.number().int(),
|
|
45
56
|
code: z.string(),
|
|
57
|
+
retryAfterSeconds: z.number().int().optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
retryAfterSeconds: "retry_after_seconds",
|
|
61
|
+
});
|
|
46
62
|
});
|
|
47
63
|
|
|
48
64
|
export function gatesApiErrorToJSON(gatesApiError: GatesApiError): string {
|
package/src/models/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./error-response.js";
|
|
|
8
8
|
export * from "./gate-human-verified-event.js";
|
|
9
9
|
export * from "./gate-policy-doc.js";
|
|
10
10
|
export * from "./gate-schedule.js";
|
|
11
|
+
export * from "./gate-unavailable-event.js";
|
|
11
12
|
export * from "./gate.js";
|
|
12
13
|
export * from "./gates-api-error.js";
|
|
13
14
|
export * from "./inline-passkey-assertion.js";
|
|
@@ -61,6 +61,10 @@ export type ActionsProposeRequest = {
|
|
|
61
61
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
62
62
|
*/
|
|
63
63
|
userEmail?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* 4.0 · the person's phone number, in place of `opaque_id` / `botshield_user_id` / `user_email` (never together with them). 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.
|
|
66
|
+
*/
|
|
67
|
+
phoneNumber?: string | undefined;
|
|
64
68
|
action: ActionsProposeAction;
|
|
65
69
|
/**
|
|
66
70
|
* Optional Adaptive Card v1.5 JSON shown when the user expands the card. Allowlist: TextBlock, FactSet, ColumnSet, Container, Table, Image (bundled-asset only).
|
|
@@ -70,6 +74,10 @@ export type ActionsProposeRequest = {
|
|
|
70
74
|
* How long the user has to respond before the proposal expires (60–86400; default 600). Out-of-range values are rejected with ttl_below_floor / ttl_above_ceiling.
|
|
71
75
|
*/
|
|
72
76
|
ttlSeconds?: number | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Your company's own id for the customer's verified account (the same value your server sends as partner_user_ref). A verified account is what lets your company's agents ask; no pairing code is needed. Hashed, never stored or echoed.
|
|
79
|
+
*/
|
|
80
|
+
partnerUserRef?: string | undefined;
|
|
73
81
|
};
|
|
74
82
|
|
|
75
83
|
/**
|
|
@@ -101,6 +109,14 @@ export type ActionsProposeDataData = {
|
|
|
101
109
|
* true when this request_id was already proposed; no new card was created.
|
|
102
110
|
*/
|
|
103
111
|
idempotentReplay?: boolean | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* By phone number only: your request_id, echoed.
|
|
114
|
+
*/
|
|
115
|
+
requestId?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* 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.
|
|
118
|
+
*/
|
|
119
|
+
matchNumber?: number | undefined;
|
|
104
120
|
};
|
|
105
121
|
|
|
106
122
|
export type ActionsProposeData = {
|
|
@@ -112,7 +128,7 @@ export type ActionsProposeData = {
|
|
|
112
128
|
};
|
|
113
129
|
|
|
114
130
|
/**
|
|
115
|
-
* Action proposal queued (or replayed). NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 401, 403 (category_not_allowed), 404 (no binding for opaque_id / user not found), 422 (Adaptive Card rejected, see violations), 400 with code ttl_below_floor | ttl_above_ceiling, 500, 502 (user lookup failed).
|
|
131
|
+
* Action proposal queued (or replayed). NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 401, 403 (category_not_allowed), 404 (no binding for opaque_id / user not found), 422 (Adaptive Card rejected, see violations), 400 with code ttl_below_floor | ttl_above_ceiling, 429 with code too_many_open_requests | daily_request_limit (a cap per person: 5 requests waiting, 50 in 24 hours, counted across your company's agents; carries retry_after_seconds), 503 with code request_limit_unavailable (not counted, so not sent; retry), 400 with code one_addressee_required (phone_number together with another way to name the person) | phone_invalid, 403 with code org_not_verified (by phone number in production), 429 with code send_rate_limited | unanswered_limit_reached (asks by phone number), 503 with code unavailable, 409 with code account_reconfirm_required (the customer changed their phone number without approval from another phone; they must confirm their account with your company again from its signed-in page before your agents can ask them anything — nothing is counted or sent), 500, 502 (user lookup failed).
|
|
116
132
|
*/
|
|
117
133
|
export type ActionsProposeResponse = {
|
|
118
134
|
data: ActionsProposeData;
|
|
@@ -226,17 +242,21 @@ export const ActionsProposeRequest$inboundSchema: z.ZodType<
|
|
|
226
242
|
opaque_id: types.optional(types.string()),
|
|
227
243
|
botshield_user_id: types.optional(types.string()),
|
|
228
244
|
user_email: types.optional(types.string()),
|
|
245
|
+
phone_number: types.optional(types.string()),
|
|
229
246
|
action: z.lazy(() => ActionsProposeAction$inboundSchema),
|
|
230
247
|
adaptive_card_payload: types.optional(z.record(z.any())),
|
|
231
248
|
ttl_seconds: types.number().default(600),
|
|
249
|
+
partner_user_ref: types.optional(types.string()),
|
|
232
250
|
}).transform((v) => {
|
|
233
251
|
return remap$(v, {
|
|
234
252
|
"request_id": "requestId",
|
|
235
253
|
"opaque_id": "opaqueId",
|
|
236
254
|
"botshield_user_id": "botshieldUserId",
|
|
237
255
|
"user_email": "userEmail",
|
|
256
|
+
"phone_number": "phoneNumber",
|
|
238
257
|
"adaptive_card_payload": "adaptiveCardPayload",
|
|
239
258
|
"ttl_seconds": "ttlSeconds",
|
|
259
|
+
"partner_user_ref": "partnerUserRef",
|
|
240
260
|
});
|
|
241
261
|
});
|
|
242
262
|
/** @internal */
|
|
@@ -245,9 +265,11 @@ export type ActionsProposeRequest$Outbound = {
|
|
|
245
265
|
opaque_id?: string | undefined;
|
|
246
266
|
botshield_user_id?: string | undefined;
|
|
247
267
|
user_email?: string | undefined;
|
|
268
|
+
phone_number?: string | undefined;
|
|
248
269
|
action: ActionsProposeAction$Outbound;
|
|
249
270
|
adaptive_card_payload?: { [k: string]: any } | undefined;
|
|
250
271
|
ttl_seconds: number;
|
|
272
|
+
partner_user_ref?: string | undefined;
|
|
251
273
|
};
|
|
252
274
|
|
|
253
275
|
/** @internal */
|
|
@@ -260,17 +282,21 @@ export const ActionsProposeRequest$outboundSchema: z.ZodType<
|
|
|
260
282
|
opaqueId: z.string().optional(),
|
|
261
283
|
botshieldUserId: z.string().optional(),
|
|
262
284
|
userEmail: z.string().optional(),
|
|
285
|
+
phoneNumber: z.string().optional(),
|
|
263
286
|
action: z.lazy(() => ActionsProposeAction$outboundSchema),
|
|
264
287
|
adaptiveCardPayload: z.record(z.any()).optional(),
|
|
265
288
|
ttlSeconds: z.number().int().default(600),
|
|
289
|
+
partnerUserRef: z.string().optional(),
|
|
266
290
|
}).transform((v) => {
|
|
267
291
|
return remap$(v, {
|
|
268
292
|
requestId: "request_id",
|
|
269
293
|
opaqueId: "opaque_id",
|
|
270
294
|
botshieldUserId: "botshield_user_id",
|
|
271
295
|
userEmail: "user_email",
|
|
296
|
+
phoneNumber: "phone_number",
|
|
272
297
|
adaptiveCardPayload: "adaptive_card_payload",
|
|
273
298
|
ttlSeconds: "ttl_seconds",
|
|
299
|
+
partnerUserRef: "partner_user_ref",
|
|
274
300
|
});
|
|
275
301
|
});
|
|
276
302
|
|
|
@@ -314,11 +340,15 @@ export const ActionsProposeDataData$inboundSchema: z.ZodType<
|
|
|
314
340
|
card_id: types.string(),
|
|
315
341
|
ttl_at: types.optional(types.date()),
|
|
316
342
|
idempotent_replay: types.optional(types.boolean()),
|
|
343
|
+
request_id: types.optional(types.string()),
|
|
344
|
+
match_number: types.optional(types.number()),
|
|
317
345
|
}).transform((v) => {
|
|
318
346
|
return remap$(v, {
|
|
319
347
|
"card_id": "cardId",
|
|
320
348
|
"ttl_at": "ttlAt",
|
|
321
349
|
"idempotent_replay": "idempotentReplay",
|
|
350
|
+
"request_id": "requestId",
|
|
351
|
+
"match_number": "matchNumber",
|
|
322
352
|
});
|
|
323
353
|
});
|
|
324
354
|
/** @internal */
|
|
@@ -327,6 +357,8 @@ export type ActionsProposeDataData$Outbound = {
|
|
|
327
357
|
card_id: string;
|
|
328
358
|
ttl_at?: string | undefined;
|
|
329
359
|
idempotent_replay?: boolean | undefined;
|
|
360
|
+
request_id?: string | undefined;
|
|
361
|
+
match_number?: number | undefined;
|
|
330
362
|
};
|
|
331
363
|
|
|
332
364
|
/** @internal */
|
|
@@ -339,11 +371,15 @@ export const ActionsProposeDataData$outboundSchema: z.ZodType<
|
|
|
339
371
|
cardId: z.string(),
|
|
340
372
|
ttlAt: z.date().transform(v => v.toISOString()).optional(),
|
|
341
373
|
idempotentReplay: z.boolean().optional(),
|
|
374
|
+
requestId: z.string().optional(),
|
|
375
|
+
matchNumber: z.number().int().optional(),
|
|
342
376
|
}).transform((v) => {
|
|
343
377
|
return remap$(v, {
|
|
344
378
|
cardId: "card_id",
|
|
345
379
|
ttlAt: "ttl_at",
|
|
346
380
|
idempotentReplay: "idempotent_replay",
|
|
381
|
+
requestId: "request_id",
|
|
382
|
+
matchNumber: "match_number",
|
|
347
383
|
});
|
|
348
384
|
});
|
|
349
385
|
|
|
@@ -27,6 +27,14 @@ export type GatesApiActionsCreateRequest = {
|
|
|
27
27
|
* Where the action lives on your surface. `https://` only.
|
|
28
28
|
*/
|
|
29
29
|
whereUrl?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Your support team can send this to a customer. Its name is what the customer reads.
|
|
32
|
+
*/
|
|
33
|
+
staffCanSend?: boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* 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`).
|
|
36
|
+
*/
|
|
37
|
+
highValue?: boolean | undefined;
|
|
30
38
|
};
|
|
31
39
|
|
|
32
40
|
export type GatesApiActionsCreateDataData = {
|
|
@@ -45,7 +53,7 @@ export type GatesApiActionsCreateData = {
|
|
|
45
53
|
};
|
|
46
54
|
|
|
47
55
|
/**
|
|
48
|
-
* The placed 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_key_taken` (409), `internal` (500).
|
|
56
|
+
* The placed 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_key_taken` (409), `not_migrated` (503 — `staffCanSend` is not available yet), `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.
|
|
49
57
|
*/
|
|
50
58
|
export type GatesApiActionsCreateResponse = {
|
|
51
59
|
data: GatesApiActionsCreateData;
|
|
@@ -109,12 +117,16 @@ export const GatesApiActionsCreateRequest$inboundSchema: z.ZodType<
|
|
|
109
117
|
name: types.string(),
|
|
110
118
|
actKey: types.string(),
|
|
111
119
|
whereUrl: types.optional(types.string()),
|
|
120
|
+
staffCanSend: types.optional(types.boolean()),
|
|
121
|
+
highValue: types.optional(types.boolean()),
|
|
112
122
|
});
|
|
113
123
|
/** @internal */
|
|
114
124
|
export type GatesApiActionsCreateRequest$Outbound = {
|
|
115
125
|
name: string;
|
|
116
126
|
actKey: string;
|
|
117
127
|
whereUrl?: string | undefined;
|
|
128
|
+
staffCanSend?: boolean | undefined;
|
|
129
|
+
highValue?: boolean | undefined;
|
|
118
130
|
};
|
|
119
131
|
|
|
120
132
|
/** @internal */
|
|
@@ -126,6 +138,8 @@ export const GatesApiActionsCreateRequest$outboundSchema: z.ZodType<
|
|
|
126
138
|
name: z.string(),
|
|
127
139
|
actKey: z.string(),
|
|
128
140
|
whereUrl: z.string().optional(),
|
|
141
|
+
staffCanSend: z.boolean().optional(),
|
|
142
|
+
highValue: z.boolean().optional(),
|
|
129
143
|
});
|
|
130
144
|
|
|
131
145
|
export function gatesApiActionsCreateRequestToJSON(
|
|
@@ -27,7 +27,7 @@ export type GatesApiActionsListData = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Actions. 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), `internal` (500).
|
|
30
|
+
* Actions. 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), `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.
|
|
31
31
|
*/
|
|
32
32
|
export type GatesApiActionsListResponse = {
|
|
33
33
|
data: GatesApiActionsListData;
|
|
@@ -0,0 +1,339 @@
|
|
|
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 { 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 GatesApiActionsRequestCancelSecurity = {
|
|
16
|
+
gatesKeyAuth: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type GatesApiActionsRequestCancelRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The request_id you sent.
|
|
22
|
+
*/
|
|
23
|
+
requestId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The agent you sent it through.
|
|
26
|
+
*/
|
|
27
|
+
agent: string;
|
|
28
|
+
/**
|
|
29
|
+
* For your own audit trail. Never shown to the person.
|
|
30
|
+
*/
|
|
31
|
+
reason?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const GatesApiActionsRequestCancelStatus = {
|
|
35
|
+
Queued: "queued",
|
|
36
|
+
Approved: "approved",
|
|
37
|
+
Denied: "denied",
|
|
38
|
+
Expired: "expired",
|
|
39
|
+
Cancelled: "cancelled",
|
|
40
|
+
} as const;
|
|
41
|
+
export type GatesApiActionsRequestCancelStatus = OpenEnum<
|
|
42
|
+
typeof GatesApiActionsRequestCancelStatus
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type GatesApiActionsRequestCancelDataData = {
|
|
46
|
+
requestId: string;
|
|
47
|
+
status: GatesApiActionsRequestCancelStatus;
|
|
48
|
+
/**
|
|
49
|
+
* True when the request was no longer waiting, so nothing was withdrawn.
|
|
50
|
+
*/
|
|
51
|
+
alreadyResolved?: boolean | undefined;
|
|
52
|
+
cancelledAt?: Date | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type GatesApiActionsRequestCancelData = {
|
|
56
|
+
data?: GatesApiActionsRequestCancelDataData | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Gates API handler error. Arrives inside `data.error` with HTTP 200 — check for it before reading the result.
|
|
59
|
+
*/
|
|
60
|
+
error?: models.GatesApiError | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Withdrawn, or the request as it stands when it was no longer waiting. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: `invalid_key` (401), `gates_scope_required` (403), `org_not_found` (404), `request_not_found` (404), `internal` (500).
|
|
65
|
+
*/
|
|
66
|
+
export type GatesApiActionsRequestCancelResponse = {
|
|
67
|
+
data: GatesApiActionsRequestCancelData;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const GatesApiActionsRequestCancelSecurity$inboundSchema: z.ZodType<
|
|
72
|
+
GatesApiActionsRequestCancelSecurity,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
GatesKeyAuth: types.string(),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
"GatesKeyAuth": "gatesKeyAuth",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
/** @internal */
|
|
83
|
+
export type GatesApiActionsRequestCancelSecurity$Outbound = {
|
|
84
|
+
GatesKeyAuth: string;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const GatesApiActionsRequestCancelSecurity$outboundSchema: z.ZodType<
|
|
89
|
+
GatesApiActionsRequestCancelSecurity$Outbound,
|
|
90
|
+
z.ZodTypeDef,
|
|
91
|
+
GatesApiActionsRequestCancelSecurity
|
|
92
|
+
> = z.object({
|
|
93
|
+
gatesKeyAuth: z.string(),
|
|
94
|
+
}).transform((v) => {
|
|
95
|
+
return remap$(v, {
|
|
96
|
+
gatesKeyAuth: "GatesKeyAuth",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export function gatesApiActionsRequestCancelSecurityToJSON(
|
|
101
|
+
gatesApiActionsRequestCancelSecurity: GatesApiActionsRequestCancelSecurity,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
GatesApiActionsRequestCancelSecurity$outboundSchema.parse(
|
|
105
|
+
gatesApiActionsRequestCancelSecurity,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
export function gatesApiActionsRequestCancelSecurityFromJSON(
|
|
110
|
+
jsonString: string,
|
|
111
|
+
): SafeParseResult<GatesApiActionsRequestCancelSecurity, SDKValidationError> {
|
|
112
|
+
return safeParse(
|
|
113
|
+
jsonString,
|
|
114
|
+
(x) =>
|
|
115
|
+
GatesApiActionsRequestCancelSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'GatesApiActionsRequestCancelSecurity' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const GatesApiActionsRequestCancelRequest$inboundSchema: z.ZodType<
|
|
122
|
+
GatesApiActionsRequestCancelRequest,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
request_id: types.string(),
|
|
127
|
+
agent: types.string(),
|
|
128
|
+
reason: types.optional(types.string()),
|
|
129
|
+
}).transform((v) => {
|
|
130
|
+
return remap$(v, {
|
|
131
|
+
"request_id": "requestId",
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
/** @internal */
|
|
135
|
+
export type GatesApiActionsRequestCancelRequest$Outbound = {
|
|
136
|
+
request_id: string;
|
|
137
|
+
agent: string;
|
|
138
|
+
reason?: string | undefined;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/** @internal */
|
|
142
|
+
export const GatesApiActionsRequestCancelRequest$outboundSchema: z.ZodType<
|
|
143
|
+
GatesApiActionsRequestCancelRequest$Outbound,
|
|
144
|
+
z.ZodTypeDef,
|
|
145
|
+
GatesApiActionsRequestCancelRequest
|
|
146
|
+
> = z.object({
|
|
147
|
+
requestId: z.string(),
|
|
148
|
+
agent: z.string(),
|
|
149
|
+
reason: z.string().optional(),
|
|
150
|
+
}).transform((v) => {
|
|
151
|
+
return remap$(v, {
|
|
152
|
+
requestId: "request_id",
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export function gatesApiActionsRequestCancelRequestToJSON(
|
|
157
|
+
gatesApiActionsRequestCancelRequest: GatesApiActionsRequestCancelRequest,
|
|
158
|
+
): string {
|
|
159
|
+
return JSON.stringify(
|
|
160
|
+
GatesApiActionsRequestCancelRequest$outboundSchema.parse(
|
|
161
|
+
gatesApiActionsRequestCancelRequest,
|
|
162
|
+
),
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
export function gatesApiActionsRequestCancelRequestFromJSON(
|
|
166
|
+
jsonString: string,
|
|
167
|
+
): SafeParseResult<GatesApiActionsRequestCancelRequest, SDKValidationError> {
|
|
168
|
+
return safeParse(
|
|
169
|
+
jsonString,
|
|
170
|
+
(x) =>
|
|
171
|
+
GatesApiActionsRequestCancelRequest$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
+
`Failed to parse 'GatesApiActionsRequestCancelRequest' from JSON`,
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** @internal */
|
|
177
|
+
export const GatesApiActionsRequestCancelStatus$inboundSchema: z.ZodType<
|
|
178
|
+
GatesApiActionsRequestCancelStatus,
|
|
179
|
+
z.ZodTypeDef,
|
|
180
|
+
unknown
|
|
181
|
+
> = openEnums.inboundSchema(GatesApiActionsRequestCancelStatus);
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const GatesApiActionsRequestCancelStatus$outboundSchema: z.ZodType<
|
|
184
|
+
string,
|
|
185
|
+
z.ZodTypeDef,
|
|
186
|
+
GatesApiActionsRequestCancelStatus
|
|
187
|
+
> = openEnums.outboundSchema(GatesApiActionsRequestCancelStatus);
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const GatesApiActionsRequestCancelDataData$inboundSchema: z.ZodType<
|
|
191
|
+
GatesApiActionsRequestCancelDataData,
|
|
192
|
+
z.ZodTypeDef,
|
|
193
|
+
unknown
|
|
194
|
+
> = z.object({
|
|
195
|
+
request_id: types.string(),
|
|
196
|
+
status: GatesApiActionsRequestCancelStatus$inboundSchema,
|
|
197
|
+
already_resolved: types.optional(types.boolean()),
|
|
198
|
+
cancelled_at: types.optional(types.date()),
|
|
199
|
+
}).transform((v) => {
|
|
200
|
+
return remap$(v, {
|
|
201
|
+
"request_id": "requestId",
|
|
202
|
+
"already_resolved": "alreadyResolved",
|
|
203
|
+
"cancelled_at": "cancelledAt",
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
/** @internal */
|
|
207
|
+
export type GatesApiActionsRequestCancelDataData$Outbound = {
|
|
208
|
+
request_id: string;
|
|
209
|
+
status: string;
|
|
210
|
+
already_resolved?: boolean | undefined;
|
|
211
|
+
cancelled_at?: string | undefined;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const GatesApiActionsRequestCancelDataData$outboundSchema: z.ZodType<
|
|
216
|
+
GatesApiActionsRequestCancelDataData$Outbound,
|
|
217
|
+
z.ZodTypeDef,
|
|
218
|
+
GatesApiActionsRequestCancelDataData
|
|
219
|
+
> = z.object({
|
|
220
|
+
requestId: z.string(),
|
|
221
|
+
status: GatesApiActionsRequestCancelStatus$outboundSchema,
|
|
222
|
+
alreadyResolved: z.boolean().optional(),
|
|
223
|
+
cancelledAt: z.date().transform(v => v.toISOString()).optional(),
|
|
224
|
+
}).transform((v) => {
|
|
225
|
+
return remap$(v, {
|
|
226
|
+
requestId: "request_id",
|
|
227
|
+
alreadyResolved: "already_resolved",
|
|
228
|
+
cancelledAt: "cancelled_at",
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
export function gatesApiActionsRequestCancelDataDataToJSON(
|
|
233
|
+
gatesApiActionsRequestCancelDataData: GatesApiActionsRequestCancelDataData,
|
|
234
|
+
): string {
|
|
235
|
+
return JSON.stringify(
|
|
236
|
+
GatesApiActionsRequestCancelDataData$outboundSchema.parse(
|
|
237
|
+
gatesApiActionsRequestCancelDataData,
|
|
238
|
+
),
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
export function gatesApiActionsRequestCancelDataDataFromJSON(
|
|
242
|
+
jsonString: string,
|
|
243
|
+
): SafeParseResult<GatesApiActionsRequestCancelDataData, SDKValidationError> {
|
|
244
|
+
return safeParse(
|
|
245
|
+
jsonString,
|
|
246
|
+
(x) =>
|
|
247
|
+
GatesApiActionsRequestCancelDataData$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
+
`Failed to parse 'GatesApiActionsRequestCancelDataData' from JSON`,
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const GatesApiActionsRequestCancelData$inboundSchema: z.ZodType<
|
|
254
|
+
GatesApiActionsRequestCancelData,
|
|
255
|
+
z.ZodTypeDef,
|
|
256
|
+
unknown
|
|
257
|
+
> = z.object({
|
|
258
|
+
data: types.optional(
|
|
259
|
+
z.lazy(() => GatesApiActionsRequestCancelDataData$inboundSchema),
|
|
260
|
+
),
|
|
261
|
+
error: types.optional(models.GatesApiError$inboundSchema),
|
|
262
|
+
});
|
|
263
|
+
/** @internal */
|
|
264
|
+
export type GatesApiActionsRequestCancelData$Outbound = {
|
|
265
|
+
data?: GatesApiActionsRequestCancelDataData$Outbound | undefined;
|
|
266
|
+
error?: models.GatesApiError$Outbound | undefined;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
/** @internal */
|
|
270
|
+
export const GatesApiActionsRequestCancelData$outboundSchema: z.ZodType<
|
|
271
|
+
GatesApiActionsRequestCancelData$Outbound,
|
|
272
|
+
z.ZodTypeDef,
|
|
273
|
+
GatesApiActionsRequestCancelData
|
|
274
|
+
> = z.object({
|
|
275
|
+
data: z.lazy(() => GatesApiActionsRequestCancelDataData$outboundSchema)
|
|
276
|
+
.optional(),
|
|
277
|
+
error: models.GatesApiError$outboundSchema.optional(),
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
export function gatesApiActionsRequestCancelDataToJSON(
|
|
281
|
+
gatesApiActionsRequestCancelData: GatesApiActionsRequestCancelData,
|
|
282
|
+
): string {
|
|
283
|
+
return JSON.stringify(
|
|
284
|
+
GatesApiActionsRequestCancelData$outboundSchema.parse(
|
|
285
|
+
gatesApiActionsRequestCancelData,
|
|
286
|
+
),
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
export function gatesApiActionsRequestCancelDataFromJSON(
|
|
290
|
+
jsonString: string,
|
|
291
|
+
): SafeParseResult<GatesApiActionsRequestCancelData, SDKValidationError> {
|
|
292
|
+
return safeParse(
|
|
293
|
+
jsonString,
|
|
294
|
+
(x) => GatesApiActionsRequestCancelData$inboundSchema.parse(JSON.parse(x)),
|
|
295
|
+
`Failed to parse 'GatesApiActionsRequestCancelData' from JSON`,
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/** @internal */
|
|
300
|
+
export const GatesApiActionsRequestCancelResponse$inboundSchema: z.ZodType<
|
|
301
|
+
GatesApiActionsRequestCancelResponse,
|
|
302
|
+
z.ZodTypeDef,
|
|
303
|
+
unknown
|
|
304
|
+
> = z.object({
|
|
305
|
+
data: z.lazy(() => GatesApiActionsRequestCancelData$inboundSchema),
|
|
306
|
+
});
|
|
307
|
+
/** @internal */
|
|
308
|
+
export type GatesApiActionsRequestCancelResponse$Outbound = {
|
|
309
|
+
data: GatesApiActionsRequestCancelData$Outbound;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
/** @internal */
|
|
313
|
+
export const GatesApiActionsRequestCancelResponse$outboundSchema: z.ZodType<
|
|
314
|
+
GatesApiActionsRequestCancelResponse$Outbound,
|
|
315
|
+
z.ZodTypeDef,
|
|
316
|
+
GatesApiActionsRequestCancelResponse
|
|
317
|
+
> = z.object({
|
|
318
|
+
data: z.lazy(() => GatesApiActionsRequestCancelData$outboundSchema),
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
export function gatesApiActionsRequestCancelResponseToJSON(
|
|
322
|
+
gatesApiActionsRequestCancelResponse: GatesApiActionsRequestCancelResponse,
|
|
323
|
+
): string {
|
|
324
|
+
return JSON.stringify(
|
|
325
|
+
GatesApiActionsRequestCancelResponse$outboundSchema.parse(
|
|
326
|
+
gatesApiActionsRequestCancelResponse,
|
|
327
|
+
),
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
export function gatesApiActionsRequestCancelResponseFromJSON(
|
|
331
|
+
jsonString: string,
|
|
332
|
+
): SafeParseResult<GatesApiActionsRequestCancelResponse, SDKValidationError> {
|
|
333
|
+
return safeParse(
|
|
334
|
+
jsonString,
|
|
335
|
+
(x) =>
|
|
336
|
+
GatesApiActionsRequestCancelResponse$inboundSchema.parse(JSON.parse(x)),
|
|
337
|
+
`Failed to parse 'GatesApiActionsRequestCancelResponse' from JSON`,
|
|
338
|
+
);
|
|
339
|
+
}
|
|
@@ -18,6 +18,10 @@ export type GatesApiActionsRequestStatusSecurity = {
|
|
|
18
18
|
|
|
19
19
|
export type GatesApiActionsRequestStatusRequest = {
|
|
20
20
|
requestId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The agent you sent the request through. A request is keyed on (agent, request_id); name the agent so the answer is that request's.
|
|
23
|
+
*/
|
|
24
|
+
agent?: string | undefined;
|
|
21
25
|
waitSeconds?: number | undefined;
|
|
22
26
|
};
|
|
23
27
|
|
|
@@ -123,6 +127,7 @@ export const GatesApiActionsRequestStatusRequest$inboundSchema: z.ZodType<
|
|
|
123
127
|
unknown
|
|
124
128
|
> = z.object({
|
|
125
129
|
request_id: types.string(),
|
|
130
|
+
agent: types.optional(types.string()),
|
|
126
131
|
wait_seconds: types.optional(types.number()),
|
|
127
132
|
}).transform((v) => {
|
|
128
133
|
return remap$(v, {
|
|
@@ -133,6 +138,7 @@ export const GatesApiActionsRequestStatusRequest$inboundSchema: z.ZodType<
|
|
|
133
138
|
/** @internal */
|
|
134
139
|
export type GatesApiActionsRequestStatusRequest$Outbound = {
|
|
135
140
|
request_id: string;
|
|
141
|
+
agent?: string | undefined;
|
|
136
142
|
wait_seconds?: number | undefined;
|
|
137
143
|
};
|
|
138
144
|
|
|
@@ -143,6 +149,7 @@ export const GatesApiActionsRequestStatusRequest$outboundSchema: z.ZodType<
|
|
|
143
149
|
GatesApiActionsRequestStatusRequest
|
|
144
150
|
> = z.object({
|
|
145
151
|
requestId: z.string(),
|
|
152
|
+
agent: z.string().optional(),
|
|
146
153
|
waitSeconds: z.number().int().optional(),
|
|
147
154
|
}).transform((v) => {
|
|
148
155
|
return remap$(v, {
|