Function: botProtectionMiddleware()
botProtectionMiddleware(
options):Middleware
Creates bot protection middleware for the SDK pipeline.
Only intercepts mutations whose operationName is in protectedOperations. Token is fetched fresh on every call (single-use tokens, retry-safe).
Pipeline position: AFTER auth/currency, BEFORE retry/timeout/errors. Retry middleware re-executes the full chain, so each attempt gets a fresh token.
Parameters
options
BotProtectionMiddlewareOptions