Skip to content
reaatech

@reaatech/agent-auth-proxy-core

npm v2.0.0

Shared Zod schemas, error classes, and TypeScript types for OAuth2 proxy request validation, scope management, and error handling, exported as framework-agnostic primitives that only depend on `zod`.

@reaatech/agent-auth-proxy-core

Shared types, zod schemas, and error classes used by the agent-auth-proxy server and client SDK.

This package is framework-agnostic — it has no dependencies on Fastify, Drizzle, or any HTTP client. It only depends on zod for runtime schema validation.

Install

terminal
pnpm add @reaatech/agent-auth-proxy-core

What’s exported

  • ErrorsAppError, AuthError, ScopeError, ValidationError, UpstreamError
  • Request schemasproxyParamsSchema, proxyRequestSchema, oauthInitiateSchema
  • OAuth typesOAuthProviderConfig, OAuth2IntegrationInputs, OAuth2TokenResponse, OAuth2UserInfo
  • Scope typesScopeValidationResult

License

MIT