import { APIResource } from "../../core/resource.js"; import * as AuthAPI from "./auth.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Token extends APIResource { /** * Validate a stored bearer token without raising on failure */ validate(params?: TokenValidateParams | null | undefined, options?: RequestOptions): APIPromise; } /** * Response for GET /auth/token/validate. */ export interface TokenValidateResponse { valid: boolean; /** * Tenant model. */ selected_tenant?: AuthAPI.Tenant | null; /** * Minimal user info returned by the token-validate endpoint. */ user?: TokenValidateResponse.User | null; } export declare namespace TokenValidateResponse { /** * Minimal user info returned by the token-validate endpoint. */ interface User { id: string; display_name?: string | null; email?: string | null; picture?: string | null; } } export interface TokenValidateParams { 'Accept-Language'?: string; /** * Set to `structured` to receive errors in the structured envelope. Omit it to * keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace Token { export { type TokenValidateResponse as TokenValidateResponse, type TokenValidateParams as TokenValidateParams, }; } //# sourceMappingURL=token.d.ts.map