#[allow(clippy::module_inception)]
pub mod auth;
pub mod scopes;
pub mod types;
pub use types::{
is_valid_token_set, token_set_is_expired, ClientRegistration, ServerMetadata, TokenResponse,
TokenSet,
};
pub use auth::{
code_challenge,
complete_web_authorization_request,
create_web_authorization_request,
discover,
discover_web_oauth_metadata,
discover_with_profile,
exchange_code,
exchange_code_with_expiry,
generate_code_verifier,
generate_state,
is_invalid_grant_error,
is_ssl_error,
new_token_set,
refresh_token,
register,
register_web_oauth_client,
resolve_success_redirect,
revoke_token,
AuthorizeResult,
CreateWebAuthorizationRequestOptions,
LoginEvent,
LoginOptions,
OAuthTokenEndpointError,
RegisterWebOAuthClientOptions,
WebAuthorizationCallbackParams,
WebAuthorizationPending,
WebAuthorizationRequest,
ERR_AUTH_DENIED,
ERR_BROWSER_OPEN,
ERR_DISCOVERY,
ERR_REGISTRATION,
ERR_SSL_PROXY,
ERR_STATE_MISMATCH,
ERR_TIMEOUT,
ERR_TOKEN_EXCHANGE,
EVENT_AUTH_URL,
EVENT_COMPLETE,
EVENT_ERROR,
};
#[cfg(feature = "desktop-loopback")]
pub use auth::authorize;
pub use scopes::{
all_scopes, chat_bridge_scopes, commerce_scopes, model_scopes, remote_control_scopes,
skill_scopes, SCOPE_ACCOUNT, SCOPE_AI, SCOPE_CHAT_BRIDGE, SCOPE_CHAT_BRIDGE_READ,
SCOPE_CHAT_BRIDGE_ROTATE, SCOPE_CHAT_BRIDGE_WRITE, SCOPE_REMOTE_CONTROL,
SCOPE_REMOTE_CONTROL_AGENT_RUN, SCOPE_REMOTE_CONTROL_PERMISSION_RESPONSE,
SCOPE_REMOTE_CONTROL_SESSION_CONTROL, SCOPE_SKILLS,
};