monzolib
Version:
Fully Featured JS/Node Monzo Library
18 lines (17 loc) • 611 B
TypeScript
import { Json } from './helpers';
export declare type HttpMethods = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS';
export declare type QueryString = Record<string, string | number | boolean | undefined>;
export interface MonzoRequest {
body?: QueryString;
headers?: Record<string, Json>;
method?: HttpMethods;
path: string;
qs?: QueryString;
}
export declare const monzoAuthRoot = "https://auth.monzo.com";
export declare const monzoApiRoot = "https://api.monzo.com";
export interface MonzoWhoAmIResponse {
authenticated: boolean;
client_id: string;
user_id: string;
}