botshield-sdk 2.2.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 +30 -0
- package/bin/mcp-server.js +1230 -42
- package/bin/mcp-server.js.map +31 -13
- package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +1 -1
- package/dist/commonjs/funcs/gates-actions-create.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-create.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-create.js +123 -0
- package/dist/commonjs/funcs/gates-actions-create.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-list.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-list.js +113 -0
- package/dist/commonjs/funcs/gates-actions-list.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request-status.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-request-status.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request-status.js +127 -0
- package/dist/commonjs/funcs/gates-actions-request-status.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-request.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-request.js +123 -0
- package/dist/commonjs/funcs/gates-actions-request.js.map +1 -0
- package/dist/commonjs/funcs/gates-actions-set-state.d.ts +18 -0
- package/dist/commonjs/funcs/gates-actions-set-state.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-actions-set-state.js +123 -0
- package/dist/commonjs/funcs/gates-actions-set-state.js.map +1 -0
- package/dist/commonjs/funcs/gates-activate.d.ts +18 -0
- package/dist/commonjs/funcs/gates-activate.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-activate.js +123 -0
- package/dist/commonjs/funcs/gates-activate.js.map +1 -0
- package/dist/commonjs/funcs/gates-cancel.d.ts +18 -0
- package/dist/commonjs/funcs/gates-cancel.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-cancel.js +123 -0
- package/dist/commonjs/funcs/gates-cancel.js.map +1 -0
- package/dist/commonjs/funcs/gates-close.d.ts +18 -0
- package/dist/commonjs/funcs/gates-close.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-close.js +123 -0
- package/dist/commonjs/funcs/gates-close.js.map +1 -0
- package/dist/commonjs/funcs/gates-create.d.ts +18 -0
- package/dist/commonjs/funcs/gates-create.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-create.js +123 -0
- package/dist/commonjs/funcs/gates-create.js.map +1 -0
- package/dist/commonjs/funcs/gates-extend.d.ts +18 -0
- package/dist/commonjs/funcs/gates-extend.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-extend.js +123 -0
- package/dist/commonjs/funcs/gates-extend.js.map +1 -0
- package/dist/commonjs/funcs/gates-get.d.ts +18 -0
- package/dist/commonjs/funcs/gates-get.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-get.js +126 -0
- package/dist/commonjs/funcs/gates-get.js.map +1 -0
- package/dist/commonjs/funcs/gates-list.d.ts +18 -0
- package/dist/commonjs/funcs/gates-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/gates-list.js +126 -0
- package/dist/commonjs/funcs/gates-list.js.map +1 -0
- package/dist/commonjs/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 +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 +12 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +12 -0
- package/dist/commonjs/models/operations/index.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-verify-token.d.ts +6 -6
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +2 -4
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts +5 -5
- package/dist/commonjs/models/operations/secured-accounts-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/secured-accounts-status.js +6 -6
- package/dist/commonjs/models/operations/secured-accounts-status.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +141 -0
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +127 -1
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/passes-per-person.d.ts +34 -0
- package/dist/commonjs/models/passes-per-person.d.ts.map +1 -0
- package/dist/commonjs/models/passes-per-person.js +72 -0
- package/dist/commonjs/models/passes-per-person.js.map +1 -0
- package/dist/commonjs/sdk/census.d.ts +1 -1
- package/dist/commonjs/sdk/census.js +1 -1
- package/dist/commonjs/sdk/gates-actions.d.ts +40 -0
- package/dist/commonjs/sdk/gates-actions.d.ts.map +1 -0
- package/dist/commonjs/sdk/gates-actions.js +62 -0
- package/dist/commonjs/sdk/gates-actions.js.map +1 -0
- package/dist/commonjs/sdk/gates.d.ts +57 -0
- package/dist/commonjs/sdk/gates.d.ts.map +1 -0
- package/dist/commonjs/sdk/gates.js +87 -0
- package/dist/commonjs/sdk/gates.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +5 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/census-verify-token.d.ts +1 -1
- package/dist/esm/funcs/census-verify-token.js +1 -1
- package/dist/esm/funcs/gates-actions-create.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-create.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-create.js +87 -0
- package/dist/esm/funcs/gates-actions-create.js.map +1 -0
- package/dist/esm/funcs/gates-actions-list.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-list.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-list.js +77 -0
- package/dist/esm/funcs/gates-actions-list.js.map +1 -0
- package/dist/esm/funcs/gates-actions-request-status.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-request-status.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-request-status.js +91 -0
- package/dist/esm/funcs/gates-actions-request-status.js.map +1 -0
- package/dist/esm/funcs/gates-actions-request.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-request.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-request.js +87 -0
- package/dist/esm/funcs/gates-actions-request.js.map +1 -0
- package/dist/esm/funcs/gates-actions-set-state.d.ts +18 -0
- package/dist/esm/funcs/gates-actions-set-state.d.ts.map +1 -0
- package/dist/esm/funcs/gates-actions-set-state.js +87 -0
- package/dist/esm/funcs/gates-actions-set-state.js.map +1 -0
- package/dist/esm/funcs/gates-activate.d.ts +18 -0
- package/dist/esm/funcs/gates-activate.d.ts.map +1 -0
- package/dist/esm/funcs/gates-activate.js +87 -0
- package/dist/esm/funcs/gates-activate.js.map +1 -0
- package/dist/esm/funcs/gates-cancel.d.ts +18 -0
- package/dist/esm/funcs/gates-cancel.d.ts.map +1 -0
- package/dist/esm/funcs/gates-cancel.js +87 -0
- package/dist/esm/funcs/gates-cancel.js.map +1 -0
- package/dist/esm/funcs/gates-close.d.ts +18 -0
- package/dist/esm/funcs/gates-close.d.ts.map +1 -0
- package/dist/esm/funcs/gates-close.js +87 -0
- package/dist/esm/funcs/gates-close.js.map +1 -0
- package/dist/esm/funcs/gates-create.d.ts +18 -0
- package/dist/esm/funcs/gates-create.d.ts.map +1 -0
- package/dist/esm/funcs/gates-create.js +87 -0
- package/dist/esm/funcs/gates-create.js.map +1 -0
- package/dist/esm/funcs/gates-extend.d.ts +18 -0
- package/dist/esm/funcs/gates-extend.d.ts.map +1 -0
- package/dist/esm/funcs/gates-extend.js +87 -0
- package/dist/esm/funcs/gates-extend.js.map +1 -0
- package/dist/esm/funcs/gates-get.d.ts +18 -0
- package/dist/esm/funcs/gates-get.d.ts.map +1 -0
- package/dist/esm/funcs/gates-get.js +90 -0
- package/dist/esm/funcs/gates-get.js.map +1 -0
- package/dist/esm/funcs/gates-list.d.ts +18 -0
- package/dist/esm/funcs/gates-list.d.ts.map +1 -0
- package/dist/esm/funcs/gates-list.js +90 -0
- package/dist/esm/funcs/gates-list.js.map +1 -0
- package/dist/esm/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 +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 +12 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +12 -0
- package/dist/esm/models/operations/index.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-verify-token.d.ts +6 -6
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +2 -4
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/secured-accounts-status.d.ts +5 -5
- package/dist/esm/models/operations/secured-accounts-status.d.ts.map +1 -1
- package/dist/esm/models/operations/secured-accounts-status.js +5 -5
- package/dist/esm/models/operations/secured-accounts-status.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +141 -0
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +122 -0
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/passes-per-person.d.ts +34 -0
- package/dist/esm/models/passes-per-person.d.ts.map +1 -0
- package/dist/esm/models/passes-per-person.js +34 -0
- package/dist/esm/models/passes-per-person.js.map +1 -0
- package/dist/esm/sdk/census.d.ts +1 -1
- package/dist/esm/sdk/census.js +1 -1
- package/dist/esm/sdk/gates-actions.d.ts +40 -0
- package/dist/esm/sdk/gates-actions.d.ts.map +1 -0
- package/dist/esm/sdk/gates-actions.js +58 -0
- package/dist/esm/sdk/gates-actions.js.map +1 -0
- package/dist/esm/sdk/gates.d.ts +57 -0
- package/dist/esm/sdk/gates.d.ts.map +1 -0
- package/dist/esm/sdk/gates.js +83 -0
- package/dist/esm/sdk/gates.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +5 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/census-verify-token.ts +1 -1
- package/src/funcs/gates-actions-create.ts +185 -0
- package/src/funcs/gates-actions-list.ts +166 -0
- package/src/funcs/gates-actions-request-status.ts +192 -0
- package/src/funcs/gates-actions-request.ts +185 -0
- package/src/funcs/gates-actions-set-state.ts +185 -0
- package/src/funcs/gates-activate.ts +184 -0
- package/src/funcs/gates-cancel.ts +184 -0
- package/src/funcs/gates-close.ts +184 -0
- package/src/funcs/gates-create.ts +184 -0
- package/src/funcs/gates-extend.ts +184 -0
- package/src/funcs/gates-get.ts +188 -0
- package/src/funcs/gates-list.ts +189 -0
- package/src/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 +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 +12 -0
- package/src/models/operations/sdk-create-verification-link.ts +46 -24
- package/src/models/operations/sdk-verify-token.ts +8 -10
- package/src/models/operations/secured-accounts-status.ts +17 -9
- package/src/models/operations/verification-get-status.ts +281 -0
- package/src/models/passes-per-person.ts +74 -0
- package/src/sdk/census.ts +1 -1
- package/src/sdk/gates-actions.ts +107 -0
- package/src/sdk/gates.ts +155 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export type GatesApiGetSecurity = {
|
|
14
|
+
gatesKeyAuth: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type GatesApiGetRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* The gate key.
|
|
20
|
+
*/
|
|
21
|
+
key: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type GatesApiGetDataData = {
|
|
25
|
+
/**
|
|
26
|
+
* A gate as the Gates API returns it — your own facts about the gate, never anything about people.
|
|
27
|
+
*/
|
|
28
|
+
gate: models.Gate;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type GatesApiGetData = {
|
|
32
|
+
data?: GatesApiGetDataData | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Gates API handler error. Arrives inside `data.error` with HTTP 200 — check for it before reading the result.
|
|
35
|
+
*/
|
|
36
|
+
error?: models.GatesApiError | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The gate. 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), `gate_not_found` (404).
|
|
41
|
+
*/
|
|
42
|
+
export type GatesApiGetResponse = {
|
|
43
|
+
data: GatesApiGetData;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const GatesApiGetSecurity$inboundSchema: z.ZodType<
|
|
48
|
+
GatesApiGetSecurity,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({
|
|
52
|
+
GatesKeyAuth: types.string(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
"GatesKeyAuth": "gatesKeyAuth",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type GatesApiGetSecurity$Outbound = {
|
|
60
|
+
GatesKeyAuth: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const GatesApiGetSecurity$outboundSchema: z.ZodType<
|
|
65
|
+
GatesApiGetSecurity$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
GatesApiGetSecurity
|
|
68
|
+
> = z.object({
|
|
69
|
+
gatesKeyAuth: z.string(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
gatesKeyAuth: "GatesKeyAuth",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function gatesApiGetSecurityToJSON(
|
|
77
|
+
gatesApiGetSecurity: GatesApiGetSecurity,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
GatesApiGetSecurity$outboundSchema.parse(gatesApiGetSecurity),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
export function gatesApiGetSecurityFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<GatesApiGetSecurity, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => GatesApiGetSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'GatesApiGetSecurity' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const GatesApiGetRequest$inboundSchema: z.ZodType<
|
|
95
|
+
GatesApiGetRequest,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
unknown
|
|
98
|
+
> = z.object({
|
|
99
|
+
key: types.string(),
|
|
100
|
+
});
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type GatesApiGetRequest$Outbound = {
|
|
103
|
+
key: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const GatesApiGetRequest$outboundSchema: z.ZodType<
|
|
108
|
+
GatesApiGetRequest$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
GatesApiGetRequest
|
|
111
|
+
> = z.object({
|
|
112
|
+
key: z.string(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function gatesApiGetRequestToJSON(
|
|
116
|
+
gatesApiGetRequest: GatesApiGetRequest,
|
|
117
|
+
): string {
|
|
118
|
+
return JSON.stringify(
|
|
119
|
+
GatesApiGetRequest$outboundSchema.parse(gatesApiGetRequest),
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
export function gatesApiGetRequestFromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<GatesApiGetRequest, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => GatesApiGetRequest$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'GatesApiGetRequest' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export const GatesApiGetDataData$inboundSchema: z.ZodType<
|
|
134
|
+
GatesApiGetDataData,
|
|
135
|
+
z.ZodTypeDef,
|
|
136
|
+
unknown
|
|
137
|
+
> = z.object({
|
|
138
|
+
gate: models.Gate$inboundSchema,
|
|
139
|
+
});
|
|
140
|
+
/** @internal */
|
|
141
|
+
export type GatesApiGetDataData$Outbound = {
|
|
142
|
+
gate: models.Gate$Outbound;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const GatesApiGetDataData$outboundSchema: z.ZodType<
|
|
147
|
+
GatesApiGetDataData$Outbound,
|
|
148
|
+
z.ZodTypeDef,
|
|
149
|
+
GatesApiGetDataData
|
|
150
|
+
> = z.object({
|
|
151
|
+
gate: models.Gate$outboundSchema,
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export function gatesApiGetDataDataToJSON(
|
|
155
|
+
gatesApiGetDataData: GatesApiGetDataData,
|
|
156
|
+
): string {
|
|
157
|
+
return JSON.stringify(
|
|
158
|
+
GatesApiGetDataData$outboundSchema.parse(gatesApiGetDataData),
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
export function gatesApiGetDataDataFromJSON(
|
|
162
|
+
jsonString: string,
|
|
163
|
+
): SafeParseResult<GatesApiGetDataData, SDKValidationError> {
|
|
164
|
+
return safeParse(
|
|
165
|
+
jsonString,
|
|
166
|
+
(x) => GatesApiGetDataData$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
+
`Failed to parse 'GatesApiGetDataData' from JSON`,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const GatesApiGetData$inboundSchema: z.ZodType<
|
|
173
|
+
GatesApiGetData,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
unknown
|
|
176
|
+
> = z.object({
|
|
177
|
+
data: types.optional(z.lazy(() => GatesApiGetDataData$inboundSchema)),
|
|
178
|
+
error: types.optional(models.GatesApiError$inboundSchema),
|
|
179
|
+
});
|
|
180
|
+
/** @internal */
|
|
181
|
+
export type GatesApiGetData$Outbound = {
|
|
182
|
+
data?: GatesApiGetDataData$Outbound | undefined;
|
|
183
|
+
error?: models.GatesApiError$Outbound | undefined;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/** @internal */
|
|
187
|
+
export const GatesApiGetData$outboundSchema: z.ZodType<
|
|
188
|
+
GatesApiGetData$Outbound,
|
|
189
|
+
z.ZodTypeDef,
|
|
190
|
+
GatesApiGetData
|
|
191
|
+
> = z.object({
|
|
192
|
+
data: z.lazy(() => GatesApiGetDataData$outboundSchema).optional(),
|
|
193
|
+
error: models.GatesApiError$outboundSchema.optional(),
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
export function gatesApiGetDataToJSON(
|
|
197
|
+
gatesApiGetData: GatesApiGetData,
|
|
198
|
+
): string {
|
|
199
|
+
return JSON.stringify(GatesApiGetData$outboundSchema.parse(gatesApiGetData));
|
|
200
|
+
}
|
|
201
|
+
export function gatesApiGetDataFromJSON(
|
|
202
|
+
jsonString: string,
|
|
203
|
+
): SafeParseResult<GatesApiGetData, SDKValidationError> {
|
|
204
|
+
return safeParse(
|
|
205
|
+
jsonString,
|
|
206
|
+
(x) => GatesApiGetData$inboundSchema.parse(JSON.parse(x)),
|
|
207
|
+
`Failed to parse 'GatesApiGetData' from JSON`,
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const GatesApiGetResponse$inboundSchema: z.ZodType<
|
|
213
|
+
GatesApiGetResponse,
|
|
214
|
+
z.ZodTypeDef,
|
|
215
|
+
unknown
|
|
216
|
+
> = z.object({
|
|
217
|
+
data: z.lazy(() => GatesApiGetData$inboundSchema),
|
|
218
|
+
});
|
|
219
|
+
/** @internal */
|
|
220
|
+
export type GatesApiGetResponse$Outbound = {
|
|
221
|
+
data: GatesApiGetData$Outbound;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export const GatesApiGetResponse$outboundSchema: z.ZodType<
|
|
226
|
+
GatesApiGetResponse$Outbound,
|
|
227
|
+
z.ZodTypeDef,
|
|
228
|
+
GatesApiGetResponse
|
|
229
|
+
> = z.object({
|
|
230
|
+
data: z.lazy(() => GatesApiGetData$outboundSchema),
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
export function gatesApiGetResponseToJSON(
|
|
234
|
+
gatesApiGetResponse: GatesApiGetResponse,
|
|
235
|
+
): string {
|
|
236
|
+
return JSON.stringify(
|
|
237
|
+
GatesApiGetResponse$outboundSchema.parse(gatesApiGetResponse),
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
export function gatesApiGetResponseFromJSON(
|
|
241
|
+
jsonString: string,
|
|
242
|
+
): SafeParseResult<GatesApiGetResponse, SDKValidationError> {
|
|
243
|
+
return safeParse(
|
|
244
|
+
jsonString,
|
|
245
|
+
(x) => GatesApiGetResponse$inboundSchema.parse(JSON.parse(x)),
|
|
246
|
+
`Failed to parse 'GatesApiGetResponse' from JSON`,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export type GatesApiListSecurity = {
|
|
14
|
+
gatesKeyAuth: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type GatesApiListRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Maximum gates to return. Default 50, max 200.
|
|
20
|
+
*/
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type GatesApiListDataData = {
|
|
25
|
+
gates: Array<models.Gate>;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type GatesApiListData = {
|
|
29
|
+
data?: GatesApiListDataData | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Gates API handler error. Arrives inside `data.error` with HTTP 200 — check for it before reading the result.
|
|
32
|
+
*/
|
|
33
|
+
error?: models.GatesApiError | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gates. 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).
|
|
38
|
+
*/
|
|
39
|
+
export type GatesApiListResponse = {
|
|
40
|
+
data: GatesApiListData;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const GatesApiListSecurity$inboundSchema: z.ZodType<
|
|
45
|
+
GatesApiListSecurity,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
GatesKeyAuth: types.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"GatesKeyAuth": "gatesKeyAuth",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type GatesApiListSecurity$Outbound = {
|
|
57
|
+
GatesKeyAuth: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const GatesApiListSecurity$outboundSchema: z.ZodType<
|
|
62
|
+
GatesApiListSecurity$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
GatesApiListSecurity
|
|
65
|
+
> = z.object({
|
|
66
|
+
gatesKeyAuth: z.string(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
gatesKeyAuth: "GatesKeyAuth",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export function gatesApiListSecurityToJSON(
|
|
74
|
+
gatesApiListSecurity: GatesApiListSecurity,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
GatesApiListSecurity$outboundSchema.parse(gatesApiListSecurity),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
export function gatesApiListSecurityFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<GatesApiListSecurity, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => GatesApiListSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'GatesApiListSecurity' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** @internal */
|
|
91
|
+
export const GatesApiListRequest$inboundSchema: z.ZodType<
|
|
92
|
+
GatesApiListRequest,
|
|
93
|
+
z.ZodTypeDef,
|
|
94
|
+
unknown
|
|
95
|
+
> = z.object({
|
|
96
|
+
limit: types.number().default(50),
|
|
97
|
+
});
|
|
98
|
+
/** @internal */
|
|
99
|
+
export type GatesApiListRequest$Outbound = {
|
|
100
|
+
limit: number;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const GatesApiListRequest$outboundSchema: z.ZodType<
|
|
105
|
+
GatesApiListRequest$Outbound,
|
|
106
|
+
z.ZodTypeDef,
|
|
107
|
+
GatesApiListRequest
|
|
108
|
+
> = z.object({
|
|
109
|
+
limit: z.number().int().default(50),
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export function gatesApiListRequestToJSON(
|
|
113
|
+
gatesApiListRequest: GatesApiListRequest,
|
|
114
|
+
): string {
|
|
115
|
+
return JSON.stringify(
|
|
116
|
+
GatesApiListRequest$outboundSchema.parse(gatesApiListRequest),
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
export function gatesApiListRequestFromJSON(
|
|
120
|
+
jsonString: string,
|
|
121
|
+
): SafeParseResult<GatesApiListRequest, SDKValidationError> {
|
|
122
|
+
return safeParse(
|
|
123
|
+
jsonString,
|
|
124
|
+
(x) => GatesApiListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'GatesApiListRequest' from JSON`,
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const GatesApiListDataData$inboundSchema: z.ZodType<
|
|
131
|
+
GatesApiListDataData,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
unknown
|
|
134
|
+
> = z.object({
|
|
135
|
+
gates: z.array(models.Gate$inboundSchema),
|
|
136
|
+
});
|
|
137
|
+
/** @internal */
|
|
138
|
+
export type GatesApiListDataData$Outbound = {
|
|
139
|
+
gates: Array<models.Gate$Outbound>;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const GatesApiListDataData$outboundSchema: z.ZodType<
|
|
144
|
+
GatesApiListDataData$Outbound,
|
|
145
|
+
z.ZodTypeDef,
|
|
146
|
+
GatesApiListDataData
|
|
147
|
+
> = z.object({
|
|
148
|
+
gates: z.array(models.Gate$outboundSchema),
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
export function gatesApiListDataDataToJSON(
|
|
152
|
+
gatesApiListDataData: GatesApiListDataData,
|
|
153
|
+
): string {
|
|
154
|
+
return JSON.stringify(
|
|
155
|
+
GatesApiListDataData$outboundSchema.parse(gatesApiListDataData),
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
export function gatesApiListDataDataFromJSON(
|
|
159
|
+
jsonString: string,
|
|
160
|
+
): SafeParseResult<GatesApiListDataData, SDKValidationError> {
|
|
161
|
+
return safeParse(
|
|
162
|
+
jsonString,
|
|
163
|
+
(x) => GatesApiListDataData$inboundSchema.parse(JSON.parse(x)),
|
|
164
|
+
`Failed to parse 'GatesApiListDataData' from JSON`,
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const GatesApiListData$inboundSchema: z.ZodType<
|
|
170
|
+
GatesApiListData,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
unknown
|
|
173
|
+
> = z.object({
|
|
174
|
+
data: types.optional(z.lazy(() => GatesApiListDataData$inboundSchema)),
|
|
175
|
+
error: types.optional(models.GatesApiError$inboundSchema),
|
|
176
|
+
});
|
|
177
|
+
/** @internal */
|
|
178
|
+
export type GatesApiListData$Outbound = {
|
|
179
|
+
data?: GatesApiListDataData$Outbound | undefined;
|
|
180
|
+
error?: models.GatesApiError$Outbound | undefined;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const GatesApiListData$outboundSchema: z.ZodType<
|
|
185
|
+
GatesApiListData$Outbound,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
GatesApiListData
|
|
188
|
+
> = z.object({
|
|
189
|
+
data: z.lazy(() => GatesApiListDataData$outboundSchema).optional(),
|
|
190
|
+
error: models.GatesApiError$outboundSchema.optional(),
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export function gatesApiListDataToJSON(
|
|
194
|
+
gatesApiListData: GatesApiListData,
|
|
195
|
+
): string {
|
|
196
|
+
return JSON.stringify(
|
|
197
|
+
GatesApiListData$outboundSchema.parse(gatesApiListData),
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
export function gatesApiListDataFromJSON(
|
|
201
|
+
jsonString: string,
|
|
202
|
+
): SafeParseResult<GatesApiListData, SDKValidationError> {
|
|
203
|
+
return safeParse(
|
|
204
|
+
jsonString,
|
|
205
|
+
(x) => GatesApiListData$inboundSchema.parse(JSON.parse(x)),
|
|
206
|
+
`Failed to parse 'GatesApiListData' from JSON`,
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/** @internal */
|
|
211
|
+
export const GatesApiListResponse$inboundSchema: z.ZodType<
|
|
212
|
+
GatesApiListResponse,
|
|
213
|
+
z.ZodTypeDef,
|
|
214
|
+
unknown
|
|
215
|
+
> = z.object({
|
|
216
|
+
data: z.lazy(() => GatesApiListData$inboundSchema),
|
|
217
|
+
});
|
|
218
|
+
/** @internal */
|
|
219
|
+
export type GatesApiListResponse$Outbound = {
|
|
220
|
+
data: GatesApiListData$Outbound;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/** @internal */
|
|
224
|
+
export const GatesApiListResponse$outboundSchema: z.ZodType<
|
|
225
|
+
GatesApiListResponse$Outbound,
|
|
226
|
+
z.ZodTypeDef,
|
|
227
|
+
GatesApiListResponse
|
|
228
|
+
> = z.object({
|
|
229
|
+
data: z.lazy(() => GatesApiListData$outboundSchema),
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
export function gatesApiListResponseToJSON(
|
|
233
|
+
gatesApiListResponse: GatesApiListResponse,
|
|
234
|
+
): string {
|
|
235
|
+
return JSON.stringify(
|
|
236
|
+
GatesApiListResponse$outboundSchema.parse(gatesApiListResponse),
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
export function gatesApiListResponseFromJSON(
|
|
240
|
+
jsonString: string,
|
|
241
|
+
): SafeParseResult<GatesApiListResponse, SDKValidationError> {
|
|
242
|
+
return safeParse(
|
|
243
|
+
jsonString,
|
|
244
|
+
(x) => GatesApiListResponse$inboundSchema.parse(JSON.parse(x)),
|
|
245
|
+
`Failed to parse 'GatesApiListResponse' from JSON`,
|
|
246
|
+
);
|
|
247
|
+
}
|
|
@@ -5,6 +5,18 @@
|
|
|
5
5
|
export * from "./actions-cancel.js";
|
|
6
6
|
export * from "./actions-check-status.js";
|
|
7
7
|
export * from "./actions-propose.js";
|
|
8
|
+
export * from "./gates-api-actions-create.js";
|
|
9
|
+
export * from "./gates-api-actions-list.js";
|
|
10
|
+
export * from "./gates-api-actions-request-status.js";
|
|
11
|
+
export * from "./gates-api-actions-request.js";
|
|
12
|
+
export * from "./gates-api-actions-set-state.js";
|
|
13
|
+
export * from "./gates-api-activate.js";
|
|
14
|
+
export * from "./gates-api-cancel.js";
|
|
15
|
+
export * from "./gates-api-close.js";
|
|
16
|
+
export * from "./gates-api-create.js";
|
|
17
|
+
export * from "./gates-api-extend.js";
|
|
18
|
+
export * from "./gates-api-get.js";
|
|
19
|
+
export * from "./gates-api-list.js";
|
|
8
20
|
export * from "./sdk-create-session.js";
|
|
9
21
|
export * from "./sdk-create-verification-link.js";
|
|
10
22
|
export * from "./sdk-get-partner-config.js";
|
|
@@ -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:
|