@microsoft/teams.api
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.api" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.api/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.api?activeTab=code" t
32 lines (29 loc) • 810 B
text/typescript
import { CardAction } from '../card/card-action.mjs';
import { TokenPostResource } from '../token/token-post-resource.mjs';
import { TokenExchangeResource } from '../token-exchange/token-exchange-resource.mjs';
/**
* A card representing a request to perform a sign in via OAuth
*/
type OAuthCard = {
/**
* Text for signin request
*/
text: string;
/**
* The name of the registered connection
*/
connectionName: string;
/**
* The token exchange resource for single sign on
*/
tokenExchangeResource?: TokenExchangeResource;
/**
* The token for directly post a token to token service
*/
tokenPostResource?: TokenPostResource;
/**
* Action to use to perform signin
*/
buttons: CardAction[];
};
export type { OAuthCard };