import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config'; interface Blob {} declare class OauthClientsAdmin extends Service { /** * Constructs a service object. This object has one method for each API operation. */ constructor(options?: OauthClientsAdmin.Types.ClientConfiguration) config: Config & OauthClientsAdmin.Types.ClientConfiguration; /** * Get full list of OAuth clients. */ listClients(callback?: (err: AWSError, data: OauthClientsAdmin.Types.ClientsList) => void): Request; /** * Create new OAuth client. */ create(params: OauthClientsAdmin.Types.CreateRequest, callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request; /** * Create new OAuth client. */ create(callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request; /** * Update OAuth client by id. */ update(params: OauthClientsAdmin.Types.UpdateRequest, callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request; /** * Update OAuth client by id. */ update(callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request; /** * Remove OAuth client by id. */ remove(params: OauthClientsAdmin.Types.RemoveRequest, callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request; /** * Remove OAuth client by id. */ remove(callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request; } declare namespace OauthClientsAdmin { export type Id = string; export type Command = string; export type Stream = string; export interface Client { id: Id; aco?: ACO; channelKey?: undefined; clientId: undefined; pkce?: undefined; redirectUri?: undefined; refresh?: undefined; responseType?: undefined; scope: undefined; secret?: undefined; } export type ClientsList = Client[]; export interface ACO { commandSet?: CommandSet; streamSet?: StreamSet; appConfig?: AppConfig; keepAliveTimeout?: undefined; recoveryTimeout?: undefined; } export type CommandSet = Command[]; export type StreamSet = Stream[]; export interface AppConfig { speechConfig?: SpeechConfig; } export interface SpeechConfig { maxNoSpeechTimeout?: undefined; } export interface CreateRequest { aco?: ACO; channelKey?: undefined; clientId: undefined; pkce?: undefined; redirectUri: undefined; refresh?: undefined; responseType: undefined; scope: undefined; secret: undefined; } export interface UpdateRequest { aco?: ACO; channelKey?: undefined; clientId?: undefined; pkce?: undefined; redirectUri?: undefined; refresh?: undefined; responseType?: undefined; scope?: undefined; secret?: undefined; } export interface RemoveRequest { id: Id; } /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. */ export type apiVersion = "2017-11-08"|"latest"|string; export interface ClientApiVersions { /** * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. */ apiVersion?: apiVersion; } export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions; /** * Contains interfaces for use with the OauthClientsAdmin client. */ export import Types = OauthClientsAdmin; } export = OauthClientsAdmin;