@redocly/theme
Version:
Shared UI components lib
36 lines (35 loc) • 876 B
TypeScript
import { UserClaims } from '../index.js';
export type SecurityDetails = {
password?: string;
username?: string;
token?: {
token_type?: string;
access_token: string;
};
client_id?: string;
client_secret?: string;
scopes?: string[];
};
export type ConfigureRequestValues = {
headers?: Record<string, string>;
body?: Record<string, any>;
query?: Record<string, string>;
path?: Record<string, string>;
cookie?: Record<string, string>;
security?: SecurityDetails;
};
type Configure = {
requestValues?: ConfigureRequestValues;
};
type ContextProps = {
userClaims?: UserClaims;
operation: {
name: string;
path: string;
operationId?: string;
href?: string;
method: string;
};
};
export declare function configure(_context: ContextProps): Configure;
export {};