botshield-sdk 2.1.0 → 2.2.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 +44 -9
- package/bin/mcp-server.js +1680 -127
- package/bin/mcp-server.js.map +43 -21
- 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/census-get-partner-config.d.ts +18 -0
- package/dist/commonjs/funcs/census-get-partner-config.d.ts.map +1 -0
- package/dist/commonjs/funcs/census-get-partner-config.js +134 -0
- package/dist/commonjs/funcs/census-get-partner-config.js.map +1 -0
- package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +1 -13
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/gates-actions-create.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-create.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-create.js +123 -0
- package/dist/commonjs/funcs/gates-actions-create.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-list.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-list.js +113 -0
- package/dist/commonjs/funcs/gates-actions-list.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request-status.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-request-status.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request-status.js +127 -0
- package/dist/commonjs/funcs/gates-actions-request-status.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-request.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request.js +123 -0
- package/dist/commonjs/funcs/gates-actions-request.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-set-state.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-set-state.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-set-state.js +123 -0
- package/dist/commonjs/funcs/gates-actions-set-state.js.map +1 -0
- package/dist/commonjs/funcs/gates-activate.d.ts +18 -0
- package/dist/commonjs/funcs/gates-activate.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-activate.js +123 -0
- package/dist/commonjs/funcs/gates-activate.js.map +1 -0
- package/dist/commonjs/funcs/gates-cancel.d.ts +18 -0
- package/dist/commonjs/funcs/gates-cancel.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-cancel.js +123 -0
- package/dist/commonjs/funcs/gates-cancel.js.map +1 -0
- package/dist/commonjs/funcs/gates-close.d.ts +18 -0
- package/dist/commonjs/funcs/gates-close.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-close.js +123 -0
- package/dist/commonjs/funcs/gates-close.js.map +1 -0
- package/dist/commonjs/funcs/gates-create.d.ts +18 -0
- package/dist/commonjs/funcs/gates-create.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-create.js +123 -0
- package/dist/commonjs/funcs/gates-create.js.map +1 -0
- package/dist/commonjs/funcs/gates-extend.d.ts +18 -0
- package/dist/commonjs/funcs/gates-extend.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-extend.js +123 -0
- package/dist/commonjs/funcs/gates-extend.js.map +1 -0
- package/dist/commonjs/funcs/gates-get.d.ts +18 -0
- package/dist/commonjs/funcs/gates-get.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-get.js +126 -0
- package/dist/commonjs/funcs/gates-get.js.map +1 -0
- package/dist/commonjs/funcs/gates-list.d.ts +18 -0
- package/dist/commonjs/funcs/gates-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-list.js +126 -0
- package/dist/commonjs/funcs/gates-list.js.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.js +126 -0
- package/dist/commonjs/funcs/secured-accounts-get-status.js.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-list.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-list.js +129 -0
- package/dist/commonjs/funcs/secured-accounts-list.js.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.d.ts +18 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.js +123 -0
- package/dist/commonjs/funcs/secured-accounts-revoke.js.map +1 -0
- package/dist/commonjs/funcs/verification-get-status.js +0 -12
- 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/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +0 -14
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +0 -16
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +0 -4
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/commonjs/models/bot-shield-action.d.ts +71 -0
- package/dist/commonjs/models/bot-shield-action.d.ts.map +1 -0
- package/dist/commonjs/models/bot-shield-action.js +108 -0
- package/dist/commonjs/models/bot-shield-action.js.map +1 -0
- package/dist/commonjs/models/gate-policy-doc.d.ts +126 -0
- package/dist/commonjs/models/gate-policy-doc.d.ts.map +1 -0
- package/dist/commonjs/models/gate-policy-doc.js +125 -0
- package/dist/commonjs/models/gate-policy-doc.js.map +1 -0
- package/dist/commonjs/models/gate-schedule.d.ts +28 -0
- package/dist/commonjs/models/gate-schedule.d.ts.map +1 -0
- package/dist/commonjs/models/gate-schedule.js +61 -0
- package/dist/commonjs/models/gate-schedule.js.map +1 -0
- package/dist/commonjs/models/gate.d.ts +215 -0
- package/dist/commonjs/models/gate.d.ts.map +1 -0
- package/dist/commonjs/models/gate.js +236 -0
- package/dist/commonjs/models/gate.js.map +1 -0
- package/dist/commonjs/models/gates-api-error.d.ts +24 -0
- package/dist/commonjs/models/gates-api-error.d.ts.map +1 -0
- package/dist/commonjs/models/gates-api-error.js +63 -0
- package/dist/commonjs/models/gates-api-error.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +6 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/actions-propose.d.ts +8 -8
- package/dist/commonjs/models/operations/actions-propose.d.ts.map +1 -1
- package/dist/commonjs/models/operations/actions-propose.js +11 -12
- package/dist/commonjs/models/operations/actions-propose.js.map +1 -1
- package/dist/commonjs/models/operations/gates-api-actions-create.d.ts +94 -0
- package/dist/commonjs/models/operations/gates-api-actions-create.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-create.js +139 -0
- package/dist/commonjs/models/operations/gates-api-actions-create.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-list.d.ts +65 -0
- package/dist/commonjs/models/operations/gates-api-actions-list.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-list.js +119 -0
- package/dist/commonjs/models/operations/gates-api-actions-list.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts +108 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-status.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-status.js +186 -0
- package/dist/commonjs/models/operations/gates-api-actions-request-status.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-request.d.ts +128 -0
- package/dist/commonjs/models/operations/gates-api-actions-request.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-request.js +189 -0
- package/dist/commonjs/models/operations/gates-api-actions-request.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-set-state.d.ts +96 -0
- package/dist/commonjs/models/operations/gates-api-actions-set-state.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-actions-set-state.js +145 -0
- package/dist/commonjs/models/operations/gates-api-actions-set-state.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-activate.d.ts +84 -0
- package/dist/commonjs/models/operations/gates-api-activate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-activate.js +135 -0
- package/dist/commonjs/models/operations/gates-api-activate.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-cancel.d.ts +84 -0
- package/dist/commonjs/models/operations/gates-api-cancel.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-cancel.js +135 -0
- package/dist/commonjs/models/operations/gates-api-cancel.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-close.d.ts +89 -0
- package/dist/commonjs/models/operations/gates-api-close.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-close.js +145 -0
- package/dist/commonjs/models/operations/gates-api-close.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-create.d.ts +173 -0
- package/dist/commonjs/models/operations/gates-api-create.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-create.js +198 -0
- package/dist/commonjs/models/operations/gates-api-create.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-extend.d.ts +99 -0
- package/dist/commonjs/models/operations/gates-api-extend.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-extend.js +141 -0
- package/dist/commonjs/models/operations/gates-api-extend.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-get.d.ts +84 -0
- package/dist/commonjs/models/operations/gates-api-get.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-get.js +135 -0
- package/dist/commonjs/models/operations/gates-api-get.js.map +1 -0
- package/dist/commonjs/models/operations/gates-api-list.d.ts +81 -0
- package/dist/commonjs/models/operations/gates-api-list.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gates-api-list.js +135 -0
- package/dist/commonjs/models/operations/gates-api-list.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +16 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +16 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.d.ts +5 -5
- package/dist/commonjs/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.js +6 -6
- package/dist/commonjs/models/operations/sdk-create-session.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +22 -12
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js +17 -11
- package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +148 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +1 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +197 -0
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +1 -0
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +6 -10
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +2 -8
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts +212 -0
- package/dist/commonjs/models/operations/secured-accounts-list.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-list.js +254 -0
- package/dist/commonjs/models/operations/secured-accounts-list.js.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts +130 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.js +185 -0
- package/dist/commonjs/models/operations/secured-accounts-revoke.js.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts +97 -0
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts.map +1 -0
- package/dist/commonjs/models/operations/secured-accounts-status.js +163 -0
- package/dist/commonjs/models/operations/secured-accounts-status.js.map +1 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts +141 -4
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +127 -5
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/passes-per-person.d.ts +34 -0
- package/dist/commonjs/models/passes-per-person.d.ts.map +1 -0
- package/dist/commonjs/models/passes-per-person.js +72 -0
- package/dist/commonjs/models/passes-per-person.js.map +1 -0
- package/dist/commonjs/models/security.d.ts +0 -4
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +0 -4
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/sdk/actions.d.ts +1 -1
- package/dist/commonjs/sdk/actions.js +1 -1
- package/dist/commonjs/sdk/census.d.ts +8 -1
- package/dist/commonjs/sdk/census.d.ts.map +1 -1
- package/dist/commonjs/sdk/census.js +11 -1
- package/dist/commonjs/sdk/census.js.map +1 -1
- package/dist/commonjs/sdk/gates-actions.d.ts +40 -0
- package/dist/commonjs/sdk/gates-actions.d.ts.map +1 -0
- package/dist/commonjs/sdk/gates-actions.js +62 -0
- package/dist/commonjs/sdk/gates-actions.js.map +1 -0
- package/dist/commonjs/sdk/gates.d.ts +57 -0
- package/dist/commonjs/sdk/gates.d.ts.map +1 -0
- package/dist/commonjs/sdk/gates.js +87 -0
- package/dist/commonjs/sdk/gates.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +10 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/secured-accounts.d.ts +26 -0
- package/dist/commonjs/sdk/secured-accounts.d.ts.map +1 -0
- package/dist/commonjs/sdk/secured-accounts.js +42 -0
- package/dist/commonjs/sdk/secured-accounts.js.map +1 -0
- 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/census-get-partner-config.d.ts +18 -0
- package/dist/esm/funcs/census-get-partner-config.d.ts.map +1 -0
- package/dist/esm/funcs/census-get-partner-config.js +98 -0
- package/dist/esm/funcs/census-get-partner-config.js.map +1 -0
- package/dist/esm/funcs/census-verify-token.d.ts +1 -1
- package/dist/esm/funcs/census-verify-token.js +1 -13
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/gates-actions-create.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-create.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-create.js +87 -0
- package/dist/esm/funcs/gates-actions-create.js.map +1 -0
- package/dist/esm/funcs/gates-actions-list.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-list.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-list.js +77 -0
- package/dist/esm/funcs/gates-actions-list.js.map +1 -0
- package/dist/esm/funcs/gates-actions-request-status.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-request-status.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-request-status.js +91 -0
- package/dist/esm/funcs/gates-actions-request-status.js.map +1 -0
- package/dist/esm/funcs/gates-actions-request.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-request.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-request.js +87 -0
- package/dist/esm/funcs/gates-actions-request.js.map +1 -0
- package/dist/esm/funcs/gates-actions-set-state.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-set-state.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-set-state.js +87 -0
- package/dist/esm/funcs/gates-actions-set-state.js.map +1 -0
- package/dist/esm/funcs/gates-activate.d.ts +18 -0
- package/dist/esm/funcs/gates-activate.d.ts.map +1 -0
- package/dist/esm/funcs/gates-activate.js +87 -0
- package/dist/esm/funcs/gates-activate.js.map +1 -0
- package/dist/esm/funcs/gates-cancel.d.ts +18 -0
- package/dist/esm/funcs/gates-cancel.d.ts.map +1 -0
- package/dist/esm/funcs/gates-cancel.js +87 -0
- package/dist/esm/funcs/gates-cancel.js.map +1 -0
- package/dist/esm/funcs/gates-close.d.ts +18 -0
- package/dist/esm/funcs/gates-close.d.ts.map +1 -0
- package/dist/esm/funcs/gates-close.js +87 -0
- package/dist/esm/funcs/gates-close.js.map +1 -0
- package/dist/esm/funcs/gates-create.d.ts +18 -0
- package/dist/esm/funcs/gates-create.d.ts.map +1 -0
- package/dist/esm/funcs/gates-create.js +87 -0
- package/dist/esm/funcs/gates-create.js.map +1 -0
- package/dist/esm/funcs/gates-extend.d.ts +18 -0
- package/dist/esm/funcs/gates-extend.d.ts.map +1 -0
- package/dist/esm/funcs/gates-extend.js +87 -0
- package/dist/esm/funcs/gates-extend.js.map +1 -0
- package/dist/esm/funcs/gates-get.d.ts +18 -0
- package/dist/esm/funcs/gates-get.d.ts.map +1 -0
- package/dist/esm/funcs/gates-get.js +90 -0
- package/dist/esm/funcs/gates-get.js.map +1 -0
- package/dist/esm/funcs/gates-list.d.ts +18 -0
- package/dist/esm/funcs/gates-list.d.ts.map +1 -0
- package/dist/esm/funcs/gates-list.js +90 -0
- package/dist/esm/funcs/gates-list.js.map +1 -0
- package/dist/esm/funcs/secured-accounts-get-status.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-get-status.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-get-status.js +90 -0
- package/dist/esm/funcs/secured-accounts-get-status.js.map +1 -0
- package/dist/esm/funcs/secured-accounts-list.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-list.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-list.js +93 -0
- package/dist/esm/funcs/secured-accounts-list.js.map +1 -0
- package/dist/esm/funcs/secured-accounts-revoke.d.ts +18 -0
- package/dist/esm/funcs/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/esm/funcs/secured-accounts-revoke.js +87 -0
- package/dist/esm/funcs/secured-accounts-revoke.js.map +1 -0
- package/dist/esm/funcs/verification-get-status.js +0 -12
- 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/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +0 -14
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +0 -16
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +0 -2
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +0 -4
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/esm/models/bot-shield-action.d.ts +71 -0
- package/dist/esm/models/bot-shield-action.d.ts.map +1 -0
- package/dist/esm/models/bot-shield-action.js +70 -0
- package/dist/esm/models/bot-shield-action.js.map +1 -0
- package/dist/esm/models/gate-policy-doc.d.ts +126 -0
- package/dist/esm/models/gate-policy-doc.d.ts.map +1 -0
- package/dist/esm/models/gate-policy-doc.js +87 -0
- package/dist/esm/models/gate-policy-doc.js.map +1 -0
- package/dist/esm/models/gate-schedule.d.ts +28 -0
- package/dist/esm/models/gate-schedule.d.ts.map +1 -0
- package/dist/esm/models/gate-schedule.js +23 -0
- package/dist/esm/models/gate-schedule.js.map +1 -0
- package/dist/esm/models/gate.d.ts +215 -0
- package/dist/esm/models/gate.d.ts.map +1 -0
- package/dist/esm/models/gate.js +194 -0
- package/dist/esm/models/gate.js.map +1 -0
- package/dist/esm/models/gates-api-error.d.ts +24 -0
- package/dist/esm/models/gates-api-error.d.ts.map +1 -0
- package/dist/esm/models/gates-api-error.js +25 -0
- package/dist/esm/models/gates-api-error.js.map +1 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/actions-propose.d.ts +8 -8
- package/dist/esm/models/operations/actions-propose.d.ts.map +1 -1
- package/dist/esm/models/operations/actions-propose.js +8 -9
- package/dist/esm/models/operations/actions-propose.js.map +1 -1
- package/dist/esm/models/operations/gates-api-actions-create.d.ts +94 -0
- package/dist/esm/models/operations/gates-api-actions-create.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-create.js +93 -0
- package/dist/esm/models/operations/gates-api-actions-create.js.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-list.d.ts +65 -0
- package/dist/esm/models/operations/gates-api-actions-list.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-list.js +75 -0
- package/dist/esm/models/operations/gates-api-actions-list.js.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-request-status.d.ts +108 -0
- package/dist/esm/models/operations/gates-api-actions-request-status.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-request-status.js +140 -0
- package/dist/esm/models/operations/gates-api-actions-request-status.js.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-request.d.ts +128 -0
- package/dist/esm/models/operations/gates-api-actions-request.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-request.js +143 -0
- package/dist/esm/models/operations/gates-api-actions-request.js.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-set-state.d.ts +96 -0
- package/dist/esm/models/operations/gates-api-actions-set-state.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-actions-set-state.js +99 -0
- package/dist/esm/models/operations/gates-api-actions-set-state.js.map +1 -0
- package/dist/esm/models/operations/gates-api-activate.d.ts +84 -0
- package/dist/esm/models/operations/gates-api-activate.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-activate.js +89 -0
- package/dist/esm/models/operations/gates-api-activate.js.map +1 -0
- package/dist/esm/models/operations/gates-api-cancel.d.ts +84 -0
- package/dist/esm/models/operations/gates-api-cancel.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-cancel.js +89 -0
- package/dist/esm/models/operations/gates-api-cancel.js.map +1 -0
- package/dist/esm/models/operations/gates-api-close.d.ts +89 -0
- package/dist/esm/models/operations/gates-api-close.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-close.js +99 -0
- package/dist/esm/models/operations/gates-api-close.js.map +1 -0
- package/dist/esm/models/operations/gates-api-create.d.ts +173 -0
- package/dist/esm/models/operations/gates-api-create.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-create.js +152 -0
- package/dist/esm/models/operations/gates-api-create.js.map +1 -0
- package/dist/esm/models/operations/gates-api-extend.d.ts +99 -0
- package/dist/esm/models/operations/gates-api-extend.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-extend.js +95 -0
- package/dist/esm/models/operations/gates-api-extend.js.map +1 -0
- package/dist/esm/models/operations/gates-api-get.d.ts +84 -0
- package/dist/esm/models/operations/gates-api-get.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-get.js +89 -0
- package/dist/esm/models/operations/gates-api-get.js.map +1 -0
- package/dist/esm/models/operations/gates-api-list.d.ts +81 -0
- package/dist/esm/models/operations/gates-api-list.d.ts.map +1 -0
- package/dist/esm/models/operations/gates-api-list.js +89 -0
- package/dist/esm/models/operations/gates-api-list.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +16 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +16 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.d.ts +5 -5
- package/dist/esm/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.js +5 -5
- package/dist/esm/models/operations/sdk-create-session.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts +22 -12
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.js +16 -10
- package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +148 -0
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +1 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js +149 -0
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +1 -0
- package/dist/esm/models/operations/sdk-verify-token.d.ts +6 -10
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +2 -8
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/secured-accounts-list.d.ts +212 -0
- package/dist/esm/models/operations/secured-accounts-list.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-list.js +206 -0
- package/dist/esm/models/operations/secured-accounts-list.js.map +1 -0
- package/dist/esm/models/operations/secured-accounts-revoke.d.ts +130 -0
- package/dist/esm/models/operations/secured-accounts-revoke.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-revoke.js +139 -0
- package/dist/esm/models/operations/secured-accounts-revoke.js.map +1 -0
- package/dist/esm/models/operations/secured-accounts-status.d.ts +97 -0
- package/dist/esm/models/operations/secured-accounts-status.d.ts.map +1 -0
- package/dist/esm/models/operations/secured-accounts-status.js +117 -0
- package/dist/esm/models/operations/secured-accounts-status.js.map +1 -0
- package/dist/esm/models/operations/verification-get-status.d.ts +141 -4
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +122 -4
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/passes-per-person.d.ts +34 -0
- package/dist/esm/models/passes-per-person.d.ts.map +1 -0
- package/dist/esm/models/passes-per-person.js +34 -0
- package/dist/esm/models/passes-per-person.js.map +1 -0
- package/dist/esm/models/security.d.ts +0 -4
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +0 -4
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/sdk/actions.d.ts +1 -1
- package/dist/esm/sdk/actions.js +1 -1
- package/dist/esm/sdk/census.d.ts +8 -1
- package/dist/esm/sdk/census.d.ts.map +1 -1
- package/dist/esm/sdk/census.js +11 -1
- package/dist/esm/sdk/census.js.map +1 -1
- package/dist/esm/sdk/gates-actions.d.ts +40 -0
- package/dist/esm/sdk/gates-actions.d.ts.map +1 -0
- package/dist/esm/sdk/gates-actions.js +58 -0
- package/dist/esm/sdk/gates-actions.js.map +1 -0
- package/dist/esm/sdk/gates.d.ts +57 -0
- package/dist/esm/sdk/gates.d.ts.map +1 -0
- package/dist/esm/sdk/gates.js +83 -0
- package/dist/esm/sdk/gates.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +10 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/secured-accounts.d.ts +26 -0
- package/dist/esm/sdk/secured-accounts.d.ts.map +1 -0
- package/dist/esm/sdk/secured-accounts.js +38 -0
- package/dist/esm/sdk/secured-accounts.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/actions-propose-action.ts +1 -1
- package/src/funcs/census-get-partner-config.ts +198 -0
- package/src/funcs/census-verify-token.ts +1 -15
- package/src/funcs/gates-actions-create.ts +185 -0
- package/src/funcs/gates-actions-list.ts +166 -0
- package/src/funcs/gates-actions-request-status.ts +192 -0
- package/src/funcs/gates-actions-request.ts +185 -0
- package/src/funcs/gates-actions-set-state.ts +185 -0
- package/src/funcs/gates-activate.ts +184 -0
- package/src/funcs/gates-cancel.ts +184 -0
- package/src/funcs/gates-close.ts +184 -0
- package/src/funcs/gates-create.ts +184 -0
- package/src/funcs/gates-extend.ts +184 -0
- package/src/funcs/gates-get.ts +188 -0
- package/src/funcs/gates-list.ts +189 -0
- package/src/funcs/secured-accounts-get-status.ts +189 -0
- package/src/funcs/secured-accounts-list.ts +194 -0
- package/src/funcs/secured-accounts-revoke.ts +185 -0
- package/src/funcs/verification-get-status.ts +0 -14
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +0 -14
- package/src/mcp-server/cli/start/command.ts +0 -16
- package/src/mcp-server/cli/start/impl.ts +0 -6
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/actions-cancel-action.ts +1 -1
- package/src/mcp-server/tools/actions-check-action-status.ts +1 -1
- package/src/mcp-server/tools/actions-propose-action.ts +1 -1
- package/src/models/bot-shield-action.ts +156 -0
- package/src/models/gate-policy-doc.ts +202 -0
- package/src/models/gate-schedule.ts +61 -0
- package/src/models/gate.ts +424 -0
- package/src/models/gates-api-error.ts +59 -0
- package/src/models/index.ts +6 -0
- package/src/models/operations/actions-propose.ts +34 -27
- package/src/models/operations/gates-api-actions-create.ts +274 -0
- package/src/models/operations/gates-api-actions-list.ts +207 -0
- package/src/models/operations/gates-api-actions-request-status.ts +342 -0
- package/src/models/operations/gates-api-actions-request.ts +359 -0
- package/src/models/operations/gates-api-actions-set-state.ts +284 -0
- package/src/models/operations/gates-api-activate.ts +250 -0
- package/src/models/operations/gates-api-cancel.ts +250 -0
- package/src/models/operations/gates-api-close.ts +265 -0
- package/src/models/operations/gates-api-create.ts +387 -0
- package/src/models/operations/gates-api-extend.ts +271 -0
- package/src/models/operations/gates-api-get.ts +248 -0
- package/src/models/operations/gates-api-list.ts +247 -0
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/sdk-create-session.ts +13 -11
- package/src/models/operations/sdk-create-verification-link.ts +46 -24
- package/src/models/operations/sdk-get-partner-config.ts +385 -0
- package/src/models/operations/sdk-verify-token.ts +8 -18
- package/src/models/operations/secured-accounts-list.ts +507 -0
- package/src/models/operations/secured-accounts-revoke.ts +359 -0
- package/src/models/operations/secured-accounts-status.ts +304 -0
- package/src/models/operations/verification-get-status.ts +281 -8
- package/src/models/passes-per-person.ts +74 -0
- package/src/models/security.ts +0 -8
- package/src/sdk/actions.ts +1 -1
- package/src/sdk/census.ts +21 -1
- package/src/sdk/gates-actions.ts +107 -0
- package/src/sdk/gates.ts +155 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/secured-accounts.ts +69 -0
|
@@ -72,7 +72,7 @@ export type SDKCreateVerificationLinkRequest = {
|
|
|
72
72
|
*/
|
|
73
73
|
botshieldUserId?: string | undefined;
|
|
74
74
|
/**
|
|
75
|
-
* Your own reference for this user (hashed at rest, never returned). Enables BotShield ID continuity: on later visits a returning human evaluates as human_verified without a ceremony.
|
|
75
|
+
* Your own reference for this user (hashed at rest, never returned). Enables BotShield ID continuity: on later visits a returning human evaluates as human_verified without a ceremony. Required on a gate whose policy is `link: required` (`link_requires_user_ref`) and with `act` (`action_requires_user_ref`).
|
|
76
76
|
*/
|
|
77
77
|
partnerUserRef?: string | undefined;
|
|
78
78
|
/**
|
|
@@ -92,6 +92,14 @@ export type SDKCreateVerificationLinkRequest = {
|
|
|
92
92
|
* The gate this request runs (the gate's action name, as listed in the Console under BotShield Gate).
|
|
93
93
|
*/
|
|
94
94
|
gate?: string | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* BotShield Actions: the act this tap is for — e.g. `watch` or `dibs:listing_4417`. The part before the first ':' must name a placed, live BotShield Action (Console → Verified Accounts › BotShield Actions, or the Gates API); the rest is yours and is never read — it rides the signed token as the `act` claim (verify-token echoes it verbatim), so your own check can tell one tap from another. Never together with `gate`/`scope` (`action_not_a_gate`). An action always stands on a verified account: `partner_user_ref` is required (`action_requires_user_ref`) and the tap runs the linking ceremony.
|
|
97
|
+
*/
|
|
98
|
+
act?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* What the person is confirming, shown verbatim on their card (e.g. "Trade with sam_k — 2 GA for $180"). Only with `act` (`act_label_without_act`). Display only — it is NOT in the token; bind terms through `act` (e.g. a hash of them), which the token carries.
|
|
101
|
+
*/
|
|
102
|
+
actLabel?: string | undefined;
|
|
95
103
|
};
|
|
96
104
|
|
|
97
105
|
export const SDKCreateVerificationLinkSDKTypeResponse = {
|
|
@@ -115,19 +123,21 @@ export type SDKCreateVerificationLinkOrganization = {
|
|
|
115
123
|
/**
|
|
116
124
|
* The gate's type. An Age Gate never notarizes (widget suppresses the chip).
|
|
117
125
|
*/
|
|
118
|
-
export const
|
|
126
|
+
export const SDKCreateVerificationLinkGateType = {
|
|
119
127
|
Human: "human",
|
|
120
128
|
Age: "age",
|
|
121
129
|
} as const;
|
|
122
130
|
/**
|
|
123
131
|
* The gate's type. An Age Gate never notarizes (widget suppresses the chip).
|
|
124
132
|
*/
|
|
125
|
-
export type
|
|
133
|
+
export type SDKCreateVerificationLinkGateType = OpenEnum<
|
|
134
|
+
typeof SDKCreateVerificationLinkGateType
|
|
135
|
+
>;
|
|
126
136
|
|
|
127
137
|
/**
|
|
128
138
|
* Age Gate only.
|
|
129
139
|
*/
|
|
130
|
-
export const
|
|
140
|
+
export const SDKCreateVerificationLinkAgeThreshold = {
|
|
131
141
|
Thirteen: 13,
|
|
132
142
|
Eighteen: 18,
|
|
133
143
|
TwentyOne: 21,
|
|
@@ -135,7 +145,9 @@ export const AgeThreshold = {
|
|
|
135
145
|
/**
|
|
136
146
|
* Age Gate only.
|
|
137
147
|
*/
|
|
138
|
-
export type
|
|
148
|
+
export type SDKCreateVerificationLinkAgeThreshold = OpenEnum<
|
|
149
|
+
typeof SDKCreateVerificationLinkAgeThreshold
|
|
150
|
+
>;
|
|
139
151
|
|
|
140
152
|
/**
|
|
141
153
|
* GA 3.0: present when notarize was requested but could not be applied. notarize_not_enabled = the gate's Console switch is off; the switch is the authority and the request field cannot turn the offer on.
|
|
@@ -179,11 +191,11 @@ export type SDKCreateVerificationLinkDataData = {
|
|
|
179
191
|
/**
|
|
180
192
|
* The gate's type. An Age Gate never notarizes (widget suppresses the chip).
|
|
181
193
|
*/
|
|
182
|
-
gateType?:
|
|
194
|
+
gateType?: SDKCreateVerificationLinkGateType | undefined;
|
|
183
195
|
/**
|
|
184
196
|
* Age Gate only.
|
|
185
197
|
*/
|
|
186
|
-
ageThreshold?:
|
|
198
|
+
ageThreshold?: SDKCreateVerificationLinkAgeThreshold | undefined;
|
|
187
199
|
/**
|
|
188
200
|
* GA 3.0 Secured Accounts: true when an active Secured Account binding exists for (your platform, platform-user-ref). The widget skips the "Link BotShield ID" chip when true.
|
|
189
201
|
*/
|
|
@@ -213,7 +225,7 @@ export type SDKCreateVerificationLinkData = {
|
|
|
213
225
|
};
|
|
214
226
|
|
|
215
227
|
/**
|
|
216
|
-
* Verification link created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 400 (partner not found / gate not active), 401, 403 (gate not in the token allowlist), 409 (pending request already exists — call revoke-verification).
|
|
228
|
+
* Verification link created. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: 400 (partner not found / gate not active), 401, 403 (gate not in the token allowlist), 409 (pending request already exists — call revoke-verification). BotShield Actions and linking codes (`data.error.code`): `act_label_without_act` (400), `action_not_a_gate` (400), `action_invalid` (400 — act malformed), `action_not_found` (400 — no action with that key here), `action_off` (409), `action_requires_user_ref` (400), `link_requires_user_ref` (400 — the gate's policy is `link: required` and no partner_user_ref was sent).
|
|
217
229
|
*/
|
|
218
230
|
export type SDKCreateVerificationLinkResponse = {
|
|
219
231
|
data: SDKCreateVerificationLinkData;
|
|
@@ -304,6 +316,8 @@ export const SDKCreateVerificationLinkRequest$inboundSchema: z.ZodType<
|
|
|
304
316
|
metadata: types.optional(z.record(z.any())),
|
|
305
317
|
notarize: types.optional(types.boolean()),
|
|
306
318
|
gate: types.optional(types.string()),
|
|
319
|
+
act: types.optional(types.string()),
|
|
320
|
+
act_label: types.optional(types.string()),
|
|
307
321
|
}).transform((v) => {
|
|
308
322
|
return remap$(v, {
|
|
309
323
|
"user_email": "userEmail",
|
|
@@ -314,6 +328,7 @@ export const SDKCreateVerificationLinkRequest$inboundSchema: z.ZodType<
|
|
|
314
328
|
"partner_user_ref": "partnerUserRef",
|
|
315
329
|
"link_on_verify": "linkOnVerify",
|
|
316
330
|
"parent_request_id": "parentRequestId",
|
|
331
|
+
"act_label": "actLabel",
|
|
317
332
|
});
|
|
318
333
|
});
|
|
319
334
|
/** @internal */
|
|
@@ -331,6 +346,8 @@ export type SDKCreateVerificationLinkRequest$Outbound = {
|
|
|
331
346
|
metadata?: { [k: string]: any } | undefined;
|
|
332
347
|
notarize?: boolean | undefined;
|
|
333
348
|
gate?: string | undefined;
|
|
349
|
+
act?: string | undefined;
|
|
350
|
+
act_label?: string | undefined;
|
|
334
351
|
};
|
|
335
352
|
|
|
336
353
|
/** @internal */
|
|
@@ -352,6 +369,8 @@ export const SDKCreateVerificationLinkRequest$outboundSchema: z.ZodType<
|
|
|
352
369
|
metadata: z.record(z.any()).optional(),
|
|
353
370
|
notarize: z.boolean().optional(),
|
|
354
371
|
gate: z.string().optional(),
|
|
372
|
+
act: z.string().optional(),
|
|
373
|
+
actLabel: z.string().optional(),
|
|
355
374
|
}).transform((v) => {
|
|
356
375
|
return remap$(v, {
|
|
357
376
|
userEmail: "user_email",
|
|
@@ -362,6 +381,7 @@ export const SDKCreateVerificationLinkRequest$outboundSchema: z.ZodType<
|
|
|
362
381
|
partnerUserRef: "partner_user_ref",
|
|
363
382
|
linkOnVerify: "link_on_verify",
|
|
364
383
|
parentRequestId: "parent_request_id",
|
|
384
|
+
actLabel: "act_label",
|
|
365
385
|
});
|
|
366
386
|
});
|
|
367
387
|
|
|
@@ -453,30 +473,30 @@ export function sdkCreateVerificationLinkOrganizationFromJSON(
|
|
|
453
473
|
}
|
|
454
474
|
|
|
455
475
|
/** @internal */
|
|
456
|
-
export const
|
|
457
|
-
|
|
476
|
+
export const SDKCreateVerificationLinkGateType$inboundSchema: z.ZodType<
|
|
477
|
+
SDKCreateVerificationLinkGateType,
|
|
458
478
|
z.ZodTypeDef,
|
|
459
479
|
unknown
|
|
460
|
-
> = openEnums.inboundSchema(
|
|
480
|
+
> = openEnums.inboundSchema(SDKCreateVerificationLinkGateType);
|
|
461
481
|
/** @internal */
|
|
462
|
-
export const
|
|
482
|
+
export const SDKCreateVerificationLinkGateType$outboundSchema: z.ZodType<
|
|
463
483
|
string,
|
|
464
484
|
z.ZodTypeDef,
|
|
465
|
-
|
|
466
|
-
> = openEnums.outboundSchema(
|
|
485
|
+
SDKCreateVerificationLinkGateType
|
|
486
|
+
> = openEnums.outboundSchema(SDKCreateVerificationLinkGateType);
|
|
467
487
|
|
|
468
488
|
/** @internal */
|
|
469
|
-
export const
|
|
470
|
-
|
|
489
|
+
export const SDKCreateVerificationLinkAgeThreshold$inboundSchema: z.ZodType<
|
|
490
|
+
SDKCreateVerificationLinkAgeThreshold,
|
|
471
491
|
z.ZodTypeDef,
|
|
472
492
|
unknown
|
|
473
|
-
> = openEnums.inboundSchemaInt(
|
|
493
|
+
> = openEnums.inboundSchemaInt(SDKCreateVerificationLinkAgeThreshold);
|
|
474
494
|
/** @internal */
|
|
475
|
-
export const
|
|
495
|
+
export const SDKCreateVerificationLinkAgeThreshold$outboundSchema: z.ZodType<
|
|
476
496
|
number,
|
|
477
497
|
z.ZodTypeDef,
|
|
478
|
-
|
|
479
|
-
> = openEnums.outboundSchemaInt(
|
|
498
|
+
SDKCreateVerificationLinkAgeThreshold
|
|
499
|
+
> = openEnums.outboundSchemaInt(SDKCreateVerificationLinkAgeThreshold);
|
|
480
500
|
|
|
481
501
|
/** @internal */
|
|
482
502
|
export const SDKCreateVerificationLinkNotarizeFallbackReason$inboundSchema:
|
|
@@ -513,8 +533,10 @@ export const SDKCreateVerificationLinkDataData$inboundSchema: z.ZodType<
|
|
|
513
533
|
z.lazy(() => SDKCreateVerificationLinkOrganization$inboundSchema),
|
|
514
534
|
),
|
|
515
535
|
pushed_to_devices: types.number(),
|
|
516
|
-
gate_type: types.optional(
|
|
517
|
-
age_threshold: types.optional(
|
|
536
|
+
gate_type: types.optional(SDKCreateVerificationLinkGateType$inboundSchema),
|
|
537
|
+
age_threshold: types.optional(
|
|
538
|
+
SDKCreateVerificationLinkAgeThreshold$inboundSchema,
|
|
539
|
+
),
|
|
518
540
|
trusted: types.optional(types.boolean()),
|
|
519
541
|
notarize: types.optional(types.boolean()),
|
|
520
542
|
notarize_fallback_reason: types.optional(
|
|
@@ -574,8 +596,8 @@ export const SDKCreateVerificationLinkDataData$outboundSchema: z.ZodType<
|
|
|
574
596
|
SDKCreateVerificationLinkOrganization$outboundSchema
|
|
575
597
|
).optional(),
|
|
576
598
|
pushedToDevices: z.number().int(),
|
|
577
|
-
gateType:
|
|
578
|
-
ageThreshold:
|
|
599
|
+
gateType: SDKCreateVerificationLinkGateType$outboundSchema.optional(),
|
|
600
|
+
ageThreshold: SDKCreateVerificationLinkAgeThreshold$outboundSchema.optional(),
|
|
579
601
|
trusted: z.boolean().optional(),
|
|
580
602
|
notarize: z.boolean().optional(),
|
|
581
603
|
notarizeFallbackReason:
|
|
@@ -0,0 +1,385 @@
|
|
|
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 SDKGetPartnerConfigSecurity = {
|
|
16
|
+
apiKeyAuth?: string | undefined;
|
|
17
|
+
apiKeyAuth1?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type SDKGetPartnerConfigRequest = {
|
|
21
|
+
siteKey: string;
|
|
22
|
+
/**
|
|
23
|
+
* GA 3.0: the gate (action_name) the widget is placed on; resolves notarize_enabled for it in the site key's environment. **Deprecated (alias window, sunset 2027-01-15):** use `gate`. Accepted through the window; responses carry both. https://docs.botshield.ai/changelog/alias-window
|
|
24
|
+
*
|
|
25
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
|
+
*/
|
|
27
|
+
scope?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* GA 3.0: the gate (action_name) the widget is placed on; resolves notarize_enabled for it in the site key's environment.
|
|
30
|
+
*/
|
|
31
|
+
gate?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type Integrations = {
|
|
35
|
+
enabled?: boolean | undefined;
|
|
36
|
+
siteKey?: string | undefined;
|
|
37
|
+
config?: { [k: string]: any } | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Site key environment. Omitted when the site key is unknown or has no enabled integrations.
|
|
42
|
+
*/
|
|
43
|
+
export const SDKGetPartnerConfigEnvironment = {
|
|
44
|
+
Test: "test",
|
|
45
|
+
Live: "live",
|
|
46
|
+
} as const;
|
|
47
|
+
/**
|
|
48
|
+
* Site key environment. Omitted when the site key is unknown or has no enabled integrations.
|
|
49
|
+
*/
|
|
50
|
+
export type SDKGetPartnerConfigEnvironment = OpenEnum<
|
|
51
|
+
typeof SDKGetPartnerConfigEnvironment
|
|
52
|
+
>;
|
|
53
|
+
|
|
54
|
+
export type SDKGetPartnerConfigDataData = {
|
|
55
|
+
integrations: { [k: string]: Integrations };
|
|
56
|
+
/**
|
|
57
|
+
* Site key environment. Omitted when the site key is unknown or has no enabled integrations.
|
|
58
|
+
*/
|
|
59
|
+
environment?: SDKGetPartnerConfigEnvironment | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* GA 3.0: the gate's "Notarize account with BotShield" switch. The switch is the authority for the offer: the widget shows "Secure your account with BotShield" only when this is true. false when no gate is given or the gate is unknown / an Age Gate.
|
|
62
|
+
*/
|
|
63
|
+
notarizeEnabled?: boolean | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* GA 3.0: the gate name that notarize_enabled is about, echoed from the request. Absent when no gate was asked; a response without it says nothing about the switch.
|
|
66
|
+
*/
|
|
67
|
+
notarizeGate?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type SDKGetPartnerConfigData = {
|
|
71
|
+
data?: SDKGetPartnerConfigDataData | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Handler error. Arrives inside `data.error` with HTTP 200. Check for it before reading the result.
|
|
74
|
+
*/
|
|
75
|
+
error?: models.ErrorBody | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Partner configuration. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes for this operation: none — unknown site key returns empty integrations.
|
|
80
|
+
*/
|
|
81
|
+
export type SDKGetPartnerConfigResponse = {
|
|
82
|
+
data: SDKGetPartnerConfigData;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const SDKGetPartnerConfigSecurity$inboundSchema: z.ZodType<
|
|
87
|
+
SDKGetPartnerConfigSecurity,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
unknown
|
|
90
|
+
> = z.object({
|
|
91
|
+
apiKeyAuth: types.optional(types.string()),
|
|
92
|
+
apiKeyAuth1: types.optional(types.string()),
|
|
93
|
+
});
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type SDKGetPartnerConfigSecurity$Outbound = {
|
|
96
|
+
apiKeyAuth?: string | undefined;
|
|
97
|
+
apiKeyAuth1?: string | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const SDKGetPartnerConfigSecurity$outboundSchema: z.ZodType<
|
|
102
|
+
SDKGetPartnerConfigSecurity$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
SDKGetPartnerConfigSecurity
|
|
105
|
+
> = z.object({
|
|
106
|
+
apiKeyAuth: z.string().optional(),
|
|
107
|
+
apiKeyAuth1: z.string().optional(),
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function sdkGetPartnerConfigSecurityToJSON(
|
|
111
|
+
sdkGetPartnerConfigSecurity: SDKGetPartnerConfigSecurity,
|
|
112
|
+
): string {
|
|
113
|
+
return JSON.stringify(
|
|
114
|
+
SDKGetPartnerConfigSecurity$outboundSchema.parse(
|
|
115
|
+
sdkGetPartnerConfigSecurity,
|
|
116
|
+
),
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export function sdkGetPartnerConfigSecurityFromJSON(
|
|
120
|
+
jsonString: string,
|
|
121
|
+
): SafeParseResult<SDKGetPartnerConfigSecurity, SDKValidationError> {
|
|
122
|
+
return safeParse(
|
|
123
|
+
jsonString,
|
|
124
|
+
(x) => SDKGetPartnerConfigSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'SDKGetPartnerConfigSecurity' from JSON`,
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const SDKGetPartnerConfigRequest$inboundSchema: z.ZodType<
|
|
131
|
+
SDKGetPartnerConfigRequest,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
unknown
|
|
134
|
+
> = z.object({
|
|
135
|
+
site_key: types.string(),
|
|
136
|
+
scope: types.optional(types.string()),
|
|
137
|
+
gate: types.optional(types.string()),
|
|
138
|
+
}).transform((v) => {
|
|
139
|
+
return remap$(v, {
|
|
140
|
+
"site_key": "siteKey",
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
/** @internal */
|
|
144
|
+
export type SDKGetPartnerConfigRequest$Outbound = {
|
|
145
|
+
site_key: string;
|
|
146
|
+
scope?: string | undefined;
|
|
147
|
+
gate?: string | undefined;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const SDKGetPartnerConfigRequest$outboundSchema: z.ZodType<
|
|
152
|
+
SDKGetPartnerConfigRequest$Outbound,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
SDKGetPartnerConfigRequest
|
|
155
|
+
> = z.object({
|
|
156
|
+
siteKey: z.string(),
|
|
157
|
+
scope: z.string().optional(),
|
|
158
|
+
gate: z.string().optional(),
|
|
159
|
+
}).transform((v) => {
|
|
160
|
+
return remap$(v, {
|
|
161
|
+
siteKey: "site_key",
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
export function sdkGetPartnerConfigRequestToJSON(
|
|
166
|
+
sdkGetPartnerConfigRequest: SDKGetPartnerConfigRequest,
|
|
167
|
+
): string {
|
|
168
|
+
return JSON.stringify(
|
|
169
|
+
SDKGetPartnerConfigRequest$outboundSchema.parse(sdkGetPartnerConfigRequest),
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
export function sdkGetPartnerConfigRequestFromJSON(
|
|
173
|
+
jsonString: string,
|
|
174
|
+
): SafeParseResult<SDKGetPartnerConfigRequest, SDKValidationError> {
|
|
175
|
+
return safeParse(
|
|
176
|
+
jsonString,
|
|
177
|
+
(x) => SDKGetPartnerConfigRequest$inboundSchema.parse(JSON.parse(x)),
|
|
178
|
+
`Failed to parse 'SDKGetPartnerConfigRequest' from JSON`,
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const Integrations$inboundSchema: z.ZodType<
|
|
184
|
+
Integrations,
|
|
185
|
+
z.ZodTypeDef,
|
|
186
|
+
unknown
|
|
187
|
+
> = z.object({
|
|
188
|
+
enabled: types.optional(types.boolean()),
|
|
189
|
+
site_key: types.optional(types.string()),
|
|
190
|
+
config: types.optional(z.record(z.any())),
|
|
191
|
+
}).transform((v) => {
|
|
192
|
+
return remap$(v, {
|
|
193
|
+
"site_key": "siteKey",
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
/** @internal */
|
|
197
|
+
export type Integrations$Outbound = {
|
|
198
|
+
enabled?: boolean | undefined;
|
|
199
|
+
site_key?: string | undefined;
|
|
200
|
+
config?: { [k: string]: any } | undefined;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export const Integrations$outboundSchema: z.ZodType<
|
|
205
|
+
Integrations$Outbound,
|
|
206
|
+
z.ZodTypeDef,
|
|
207
|
+
Integrations
|
|
208
|
+
> = z.object({
|
|
209
|
+
enabled: z.boolean().optional(),
|
|
210
|
+
siteKey: z.string().optional(),
|
|
211
|
+
config: z.record(z.any()).optional(),
|
|
212
|
+
}).transform((v) => {
|
|
213
|
+
return remap$(v, {
|
|
214
|
+
siteKey: "site_key",
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
export function integrationsToJSON(integrations: Integrations): string {
|
|
219
|
+
return JSON.stringify(Integrations$outboundSchema.parse(integrations));
|
|
220
|
+
}
|
|
221
|
+
export function integrationsFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<Integrations, SDKValidationError> {
|
|
224
|
+
return safeParse(
|
|
225
|
+
jsonString,
|
|
226
|
+
(x) => Integrations$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
+
`Failed to parse 'Integrations' from JSON`,
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export const SDKGetPartnerConfigEnvironment$inboundSchema: z.ZodType<
|
|
233
|
+
SDKGetPartnerConfigEnvironment,
|
|
234
|
+
z.ZodTypeDef,
|
|
235
|
+
unknown
|
|
236
|
+
> = openEnums.inboundSchema(SDKGetPartnerConfigEnvironment);
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const SDKGetPartnerConfigEnvironment$outboundSchema: z.ZodType<
|
|
239
|
+
string,
|
|
240
|
+
z.ZodTypeDef,
|
|
241
|
+
SDKGetPartnerConfigEnvironment
|
|
242
|
+
> = openEnums.outboundSchema(SDKGetPartnerConfigEnvironment);
|
|
243
|
+
|
|
244
|
+
/** @internal */
|
|
245
|
+
export const SDKGetPartnerConfigDataData$inboundSchema: z.ZodType<
|
|
246
|
+
SDKGetPartnerConfigDataData,
|
|
247
|
+
z.ZodTypeDef,
|
|
248
|
+
unknown
|
|
249
|
+
> = z.object({
|
|
250
|
+
integrations: z.record(z.lazy(() => Integrations$inboundSchema)),
|
|
251
|
+
environment: types.optional(SDKGetPartnerConfigEnvironment$inboundSchema),
|
|
252
|
+
notarize_enabled: types.optional(types.boolean()),
|
|
253
|
+
notarize_gate: types.optional(types.string()),
|
|
254
|
+
}).transform((v) => {
|
|
255
|
+
return remap$(v, {
|
|
256
|
+
"notarize_enabled": "notarizeEnabled",
|
|
257
|
+
"notarize_gate": "notarizeGate",
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
/** @internal */
|
|
261
|
+
export type SDKGetPartnerConfigDataData$Outbound = {
|
|
262
|
+
integrations: { [k: string]: Integrations$Outbound };
|
|
263
|
+
environment?: string | undefined;
|
|
264
|
+
notarize_enabled?: boolean | undefined;
|
|
265
|
+
notarize_gate?: string | undefined;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
/** @internal */
|
|
269
|
+
export const SDKGetPartnerConfigDataData$outboundSchema: z.ZodType<
|
|
270
|
+
SDKGetPartnerConfigDataData$Outbound,
|
|
271
|
+
z.ZodTypeDef,
|
|
272
|
+
SDKGetPartnerConfigDataData
|
|
273
|
+
> = z.object({
|
|
274
|
+
integrations: z.record(z.lazy(() => Integrations$outboundSchema)),
|
|
275
|
+
environment: SDKGetPartnerConfigEnvironment$outboundSchema.optional(),
|
|
276
|
+
notarizeEnabled: z.boolean().optional(),
|
|
277
|
+
notarizeGate: z.string().optional(),
|
|
278
|
+
}).transform((v) => {
|
|
279
|
+
return remap$(v, {
|
|
280
|
+
notarizeEnabled: "notarize_enabled",
|
|
281
|
+
notarizeGate: "notarize_gate",
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
export function sdkGetPartnerConfigDataDataToJSON(
|
|
286
|
+
sdkGetPartnerConfigDataData: SDKGetPartnerConfigDataData,
|
|
287
|
+
): string {
|
|
288
|
+
return JSON.stringify(
|
|
289
|
+
SDKGetPartnerConfigDataData$outboundSchema.parse(
|
|
290
|
+
sdkGetPartnerConfigDataData,
|
|
291
|
+
),
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
export function sdkGetPartnerConfigDataDataFromJSON(
|
|
295
|
+
jsonString: string,
|
|
296
|
+
): SafeParseResult<SDKGetPartnerConfigDataData, SDKValidationError> {
|
|
297
|
+
return safeParse(
|
|
298
|
+
jsonString,
|
|
299
|
+
(x) => SDKGetPartnerConfigDataData$inboundSchema.parse(JSON.parse(x)),
|
|
300
|
+
`Failed to parse 'SDKGetPartnerConfigDataData' from JSON`,
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/** @internal */
|
|
305
|
+
export const SDKGetPartnerConfigData$inboundSchema: z.ZodType<
|
|
306
|
+
SDKGetPartnerConfigData,
|
|
307
|
+
z.ZodTypeDef,
|
|
308
|
+
unknown
|
|
309
|
+
> = z.object({
|
|
310
|
+
data: types.optional(z.lazy(() => SDKGetPartnerConfigDataData$inboundSchema)),
|
|
311
|
+
error: types.optional(models.ErrorBody$inboundSchema),
|
|
312
|
+
});
|
|
313
|
+
/** @internal */
|
|
314
|
+
export type SDKGetPartnerConfigData$Outbound = {
|
|
315
|
+
data?: SDKGetPartnerConfigDataData$Outbound | undefined;
|
|
316
|
+
error?: models.ErrorBody$Outbound | undefined;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const SDKGetPartnerConfigData$outboundSchema: z.ZodType<
|
|
321
|
+
SDKGetPartnerConfigData$Outbound,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
SDKGetPartnerConfigData
|
|
324
|
+
> = z.object({
|
|
325
|
+
data: z.lazy(() => SDKGetPartnerConfigDataData$outboundSchema).optional(),
|
|
326
|
+
error: models.ErrorBody$outboundSchema.optional(),
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
export function sdkGetPartnerConfigDataToJSON(
|
|
330
|
+
sdkGetPartnerConfigData: SDKGetPartnerConfigData,
|
|
331
|
+
): string {
|
|
332
|
+
return JSON.stringify(
|
|
333
|
+
SDKGetPartnerConfigData$outboundSchema.parse(sdkGetPartnerConfigData),
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
export function sdkGetPartnerConfigDataFromJSON(
|
|
337
|
+
jsonString: string,
|
|
338
|
+
): SafeParseResult<SDKGetPartnerConfigData, SDKValidationError> {
|
|
339
|
+
return safeParse(
|
|
340
|
+
jsonString,
|
|
341
|
+
(x) => SDKGetPartnerConfigData$inboundSchema.parse(JSON.parse(x)),
|
|
342
|
+
`Failed to parse 'SDKGetPartnerConfigData' from JSON`,
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** @internal */
|
|
347
|
+
export const SDKGetPartnerConfigResponse$inboundSchema: z.ZodType<
|
|
348
|
+
SDKGetPartnerConfigResponse,
|
|
349
|
+
z.ZodTypeDef,
|
|
350
|
+
unknown
|
|
351
|
+
> = z.object({
|
|
352
|
+
data: z.lazy(() => SDKGetPartnerConfigData$inboundSchema),
|
|
353
|
+
});
|
|
354
|
+
/** @internal */
|
|
355
|
+
export type SDKGetPartnerConfigResponse$Outbound = {
|
|
356
|
+
data: SDKGetPartnerConfigData$Outbound;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
/** @internal */
|
|
360
|
+
export const SDKGetPartnerConfigResponse$outboundSchema: z.ZodType<
|
|
361
|
+
SDKGetPartnerConfigResponse$Outbound,
|
|
362
|
+
z.ZodTypeDef,
|
|
363
|
+
SDKGetPartnerConfigResponse
|
|
364
|
+
> = z.object({
|
|
365
|
+
data: z.lazy(() => SDKGetPartnerConfigData$outboundSchema),
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
export function sdkGetPartnerConfigResponseToJSON(
|
|
369
|
+
sdkGetPartnerConfigResponse: SDKGetPartnerConfigResponse,
|
|
370
|
+
): string {
|
|
371
|
+
return JSON.stringify(
|
|
372
|
+
SDKGetPartnerConfigResponse$outboundSchema.parse(
|
|
373
|
+
sdkGetPartnerConfigResponse,
|
|
374
|
+
),
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
export function sdkGetPartnerConfigResponseFromJSON(
|
|
378
|
+
jsonString: string,
|
|
379
|
+
): SafeParseResult<SDKGetPartnerConfigResponse, SDKValidationError> {
|
|
380
|
+
return safeParse(
|
|
381
|
+
jsonString,
|
|
382
|
+
(x) => SDKGetPartnerConfigResponse$inboundSchema.parse(JSON.parse(x)),
|
|
383
|
+
`Failed to parse 'SDKGetPartnerConfigResponse' from JSON`,
|
|
384
|
+
);
|
|
385
|
+
}
|
|
@@ -15,8 +15,6 @@ import * as models from "../index.js";
|
|
|
15
15
|
export type SDKVerifyTokenSecurity = {
|
|
16
16
|
apiKeyAuth?: string | undefined;
|
|
17
17
|
apiKeyAuth1?: string | undefined;
|
|
18
|
-
apiKeyAuth2?: string | undefined;
|
|
19
|
-
apiKeyAuth3?: string | undefined;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
20
|
export type SDKVerifyTokenRequest = {
|
|
@@ -71,6 +69,10 @@ export type Claims = {
|
|
|
71
69
|
* The organization the token was issued for (the JWT aud claim).
|
|
72
70
|
*/
|
|
73
71
|
audience?: string | null | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* BotShield Actions: the `act` this tap was for, echoed verbatim (your own string, e.g. `dibs:listing_4417`). Present only on tokens minted for an action.
|
|
74
|
+
*/
|
|
75
|
+
act?: string | undefined;
|
|
74
76
|
};
|
|
75
77
|
|
|
76
78
|
/**
|
|
@@ -97,13 +99,9 @@ export type SDKVerifyTokenDataData = {
|
|
|
97
99
|
expiredAt?: Date | null | undefined;
|
|
98
100
|
claims?: Claims | null | undefined;
|
|
99
101
|
/**
|
|
100
|
-
* true when this token was already checked once
|
|
102
|
+
* true when this token was already checked once — the check is refused (valid: false). Each token is valid for one check.
|
|
101
103
|
*/
|
|
102
104
|
replayed?: boolean | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* When repeat checks start failing (present when replayed is true).
|
|
105
|
-
*/
|
|
106
|
-
strictSingleUseFrom?: Date | undefined;
|
|
107
105
|
/**
|
|
108
106
|
* Present when `valid` is true. `pass` when the token records a verified human.
|
|
109
107
|
*/
|
|
@@ -133,15 +131,11 @@ export const SDKVerifyTokenSecurity$inboundSchema: z.ZodType<
|
|
|
133
131
|
> = z.object({
|
|
134
132
|
apiKeyAuth: types.optional(types.string()),
|
|
135
133
|
apiKeyAuth1: types.optional(types.string()),
|
|
136
|
-
apiKeyAuth2: types.optional(types.string()),
|
|
137
|
-
apiKeyAuth3: types.optional(types.string()),
|
|
138
134
|
});
|
|
139
135
|
/** @internal */
|
|
140
136
|
export type SDKVerifyTokenSecurity$Outbound = {
|
|
141
137
|
apiKeyAuth?: string | undefined;
|
|
142
138
|
apiKeyAuth1?: string | undefined;
|
|
143
|
-
apiKeyAuth2?: string | undefined;
|
|
144
|
-
apiKeyAuth3?: string | undefined;
|
|
145
139
|
};
|
|
146
140
|
|
|
147
141
|
/** @internal */
|
|
@@ -152,8 +146,6 @@ export const SDKVerifyTokenSecurity$outboundSchema: z.ZodType<
|
|
|
152
146
|
> = z.object({
|
|
153
147
|
apiKeyAuth: z.string().optional(),
|
|
154
148
|
apiKeyAuth1: z.string().optional(),
|
|
155
|
-
apiKeyAuth2: z.string().optional(),
|
|
156
|
-
apiKeyAuth3: z.string().optional(),
|
|
157
149
|
});
|
|
158
150
|
|
|
159
151
|
export function sdkVerifyTokenSecurityToJSON(
|
|
@@ -237,6 +229,7 @@ export const Claims$inboundSchema: z.ZodType<Claims, z.ZodTypeDef, unknown> = z
|
|
|
237
229
|
trusted_since: types.optional(types.date()),
|
|
238
230
|
last_pass_at: types.optional(types.date()),
|
|
239
231
|
audience: z.nullable(types.string()).optional(),
|
|
232
|
+
act: types.optional(types.string()),
|
|
240
233
|
}).transform((v) => {
|
|
241
234
|
return remap$(v, {
|
|
242
235
|
"request_id": "requestId",
|
|
@@ -262,6 +255,7 @@ export type Claims$Outbound = {
|
|
|
262
255
|
trusted_since?: string | undefined;
|
|
263
256
|
last_pass_at?: string | undefined;
|
|
264
257
|
audience?: string | null | undefined;
|
|
258
|
+
act?: string | undefined;
|
|
265
259
|
};
|
|
266
260
|
|
|
267
261
|
/** @internal */
|
|
@@ -282,6 +276,7 @@ export const Claims$outboundSchema: z.ZodType<
|
|
|
282
276
|
trustedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
283
277
|
lastPassAt: z.date().transform(v => v.toISOString()).optional(),
|
|
284
278
|
audience: z.nullable(z.string()).optional(),
|
|
279
|
+
act: z.string().optional(),
|
|
285
280
|
}).transform((v) => {
|
|
286
281
|
return remap$(v, {
|
|
287
282
|
requestId: "request_id",
|
|
@@ -331,12 +326,10 @@ export const SDKVerifyTokenDataData$inboundSchema: z.ZodType<
|
|
|
331
326
|
expired_at: z.nullable(types.date()).optional(),
|
|
332
327
|
claims: z.nullable(z.lazy(() => Claims$inboundSchema)).optional(),
|
|
333
328
|
replayed: types.optional(types.boolean()),
|
|
334
|
-
strict_single_use_from: types.optional(types.date()),
|
|
335
329
|
verdict: types.optional(SDKVerifyTokenVerdict$inboundSchema),
|
|
336
330
|
}).transform((v) => {
|
|
337
331
|
return remap$(v, {
|
|
338
332
|
"expired_at": "expiredAt",
|
|
339
|
-
"strict_single_use_from": "strictSingleUseFrom",
|
|
340
333
|
});
|
|
341
334
|
});
|
|
342
335
|
/** @internal */
|
|
@@ -346,7 +339,6 @@ export type SDKVerifyTokenDataData$Outbound = {
|
|
|
346
339
|
expired_at?: string | null | undefined;
|
|
347
340
|
claims?: Claims$Outbound | null | undefined;
|
|
348
341
|
replayed?: boolean | undefined;
|
|
349
|
-
strict_single_use_from?: string | undefined;
|
|
350
342
|
verdict?: string | undefined;
|
|
351
343
|
};
|
|
352
344
|
|
|
@@ -361,12 +353,10 @@ export const SDKVerifyTokenDataData$outboundSchema: z.ZodType<
|
|
|
361
353
|
expiredAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
362
354
|
claims: z.nullable(z.lazy(() => Claims$outboundSchema)).optional(),
|
|
363
355
|
replayed: z.boolean().optional(),
|
|
364
|
-
strictSingleUseFrom: z.date().transform(v => v.toISOString()).optional(),
|
|
365
356
|
verdict: SDKVerifyTokenVerdict$outboundSchema.optional(),
|
|
366
357
|
}).transform((v) => {
|
|
367
358
|
return remap$(v, {
|
|
368
359
|
expiredAt: "expired_at",
|
|
369
|
-
strictSingleUseFrom: "strict_single_use_from",
|
|
370
360
|
});
|
|
371
361
|
});
|
|
372
362
|
|