UNPKG

@lineai/bluebeam-api

Version:

Your unofficial library for Bluebeam API for human and AI developers. Provides TypeScript support, entity classes, and developer-friendly features. Perfect for AI coders, construction professionals, and document management tasks. Includes comprehensive JS

40 lines (39 loc) 1.2 kB
export type GrantType = 'authorization_code' | 'refresh_token'; export type AuthCodeParams = { readonly response_type: string; readonly client_id: string; readonly state: string; readonly scope: string; readonly redirect_uri: string; }; export type TokenRequest = { readonly client_id: string; readonly client_secret: string; readonly code?: string; readonly code_verifier?: string; readonly grant_type: GrantType; readonly redirect_uri: string; readonly refresh_token?: string; }; export type TokenResponse = { readonly access_token: string; readonly token_type?: string; readonly expires_in?: number; readonly refresh_token?: string; readonly scope?: string; }; export type AuthCodeResponse = { readonly code: string; }; export type OAuthConfig = { readonly client_id: string; readonly client_secret: string; readonly redirect_uri: string; readonly scope: string; readonly base_url?: string; }; export type TokenStorage = { readonly getTokens: () => Promise<TokenResponse | null>; readonly setTokens: (tokens: TokenResponse) => Promise<void>; readonly clearTokens: () => Promise<void>; };