126 lines
No EOL
5 KiB
TypeScript
126 lines
No EOL
5 KiB
TypeScript
/**
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
import { ServiceCallback, RequestOptionsBase } from '@azure/core-http';
|
|
import * as Models from '../models';
|
|
import { TokenApiClientContext } from '../tokenApiClientContext';
|
|
import { TokenExchangeRequest, TokenResponse, TokenStatus } from 'botframework-schema';
|
|
/** Class representing a UserToken. */
|
|
export declare class UserToken {
|
|
private readonly client;
|
|
/**
|
|
* Create a UserToken.
|
|
*
|
|
* @param {TokenApiClientContext} client Reference to the service client.
|
|
*/
|
|
constructor(client: TokenApiClientContext);
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param [options] The optional parameters
|
|
* @returns Promise<Models.UserTokenGetTokenResponse>
|
|
*/
|
|
getToken(userId: string, connectionName: string, options?: Models.UserTokenGetTokenOptionalParams): Promise<Models.UserTokenGetTokenResponse>;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param callback The callback
|
|
*/
|
|
getToken(userId: string, connectionName: string, callback: ServiceCallback<TokenResponse>): void;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param options The optional parameters
|
|
* @param callback The callback
|
|
*/
|
|
getToken(userId: string, connectionName: string, options: Models.UserTokenGetTokenOptionalParams, callback: ServiceCallback<TokenResponse>): void;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param aadResourceUrls
|
|
* @param [options] The optional parameters
|
|
* @returns Promise<Models.UserTokenGetAadTokensResponse>
|
|
*/
|
|
getAadTokens(userId: string, connectionName: string, aadResourceUrls: Models.AadResourceUrls, options?: Models.UserTokenGetAadTokensOptionalParams): Promise<Models.UserTokenGetAadTokensResponse>;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param aadResourceUrls
|
|
* @param callback The callback
|
|
*/
|
|
getAadTokens(userId: string, connectionName: string, aadResourceUrls: Models.AadResourceUrls, callback: ServiceCallback<{
|
|
[propertyName: string]: TokenResponse;
|
|
}>): void;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param aadResourceUrls
|
|
* @param options The optional parameters
|
|
* @param callback The callback
|
|
*/
|
|
getAadTokens(userId: string, connectionName: string, aadResourceUrls: Models.AadResourceUrls, options: Models.UserTokenGetAadTokensOptionalParams, callback: ServiceCallback<{
|
|
[propertyName: string]: TokenResponse;
|
|
}>): void;
|
|
/**
|
|
* @param userId
|
|
* @param [options] The optional parameters
|
|
* @returns Promise<Models.UserTokenSignOutResponse>
|
|
*/
|
|
signOut(userId: string, options?: Models.UserTokenSignOutOptionalParams): Promise<Models.UserTokenSignOutResponse>;
|
|
/**
|
|
* @param userId
|
|
* @param callback The callback
|
|
*/
|
|
signOut(userId: string, callback: ServiceCallback<any>): void;
|
|
/**
|
|
* @param userId
|
|
* @param options The optional parameters
|
|
* @param callback The callback
|
|
*/
|
|
signOut(userId: string, options: Models.UserTokenSignOutOptionalParams, callback: ServiceCallback<any>): void;
|
|
/**
|
|
* @param userId
|
|
* @param [options] The optional parameters
|
|
* @returns Promise<Models.UserTokenGetTokenStatusResponse>
|
|
*/
|
|
getTokenStatus(userId: string, options?: Models.UserTokenGetTokenStatusOptionalParams): Promise<Models.UserTokenGetTokenStatusResponse>;
|
|
/**
|
|
* @param userId
|
|
* @param callback The callback
|
|
*/
|
|
getTokenStatus(userId: string, callback: ServiceCallback<TokenStatus[]>): void;
|
|
/**
|
|
* @param userId
|
|
* @param options The optional parameters
|
|
* @param callback The callback
|
|
*/
|
|
getTokenStatus(userId: string, options: Models.UserTokenGetTokenStatusOptionalParams, callback: ServiceCallback<TokenStatus[]>): void;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param channelId
|
|
* @param exchangeRequest
|
|
* @param [options] The optional parameters
|
|
* @returns Promise<Models.UserTokenExchangeAsyncResponse>
|
|
*/
|
|
exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, options?: RequestOptionsBase): Promise<Models.UserTokenExchangeAsyncResponse>;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param channelId
|
|
* @param exchangeRequest
|
|
* @param callback The callback
|
|
*/
|
|
exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, callback: ServiceCallback<any>): void;
|
|
/**
|
|
* @param userId
|
|
* @param connectionName
|
|
* @param channelId
|
|
* @param exchangeRequest
|
|
* @param options The optional parameters
|
|
* @param callback The callback
|
|
*/
|
|
exchangeAsync(userId: string, connectionName: string, channelId: string, exchangeRequest: TokenExchangeRequest, options: RequestOptionsBase, callback: ServiceCallback<any>): void;
|
|
}
|
|
//# sourceMappingURL=userToken.d.ts.map
|