UNPKG

emailengine-client

Version:

A TypeScript client for the EmailEngine API

59 lines (58 loc) 1.48 kB
import { Options } from "../../../../misc/Options"; export declare class CreateAccessTokenOptions extends Options { /** * Override the EENGINE_TIMEOUT environment variable for a single API request (in milliseconds) */ 'x-ee-timeout'?: number | undefined; /** * Token Details */ 'body': { /** * Account ID */ 'account': string; /** * Token description */ 'description': string; /** * Scopes of the token */ 'scopes': string[]; /** * Related metadata in JSON format */ 'metadata'?: string; /** * Access restrictions */ 'restrictions'?: { /** * HTTP referrer allowlist for API requests */ 'referrers'?: string[]; /** * IP address allowlist */ 'addresses'?: string[]; /** * Rate limiting settings */ 'rateLimit'?: { /** * Allowed count of requests in the rate limit time window */ 'maxRequests'?: number; /** * Rate limit time window in seconds */ 'timeWindow'?: number; }; }; /** * IP address of the requestor */ 'ip'?: string; }; }