Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #4566 Teams config fetch typings #4567

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export interface BotConfigAuth {
}

// @public
export type BotConfigAuthType = 'auth' | 'task';
export type BotConfigAuthType = 'auth';

// @public
export type BotMessagePreviewActionType = 'edit' | 'send';
Expand Down Expand Up @@ -658,9 +658,9 @@ export interface ConfigAuthResponse extends ConfigResponse<BotConfigAuth> {

// @public
export interface ConfigResponse<T> {
cacheInfo: CacheInfo;
cacheInfo?: CacheInfo;
config: T;
responseType: string;
responseType: 'config';
}

// @public (undocumented)
Expand Down
8 changes: 4 additions & 4 deletions libraries/botframework-schema/src/teams/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ export interface ConfigResponse<T> {
/**
* @member {CacheInfo} [cacheInfo] The data of the ConfigResponse cache, including cache type and cache duration.
*/
cacheInfo: CacheInfo;
cacheInfo?: CacheInfo;
/**
* @template T
* @member {T} [config] The response to a configuration message.
*/
config: T;
/**
* @member {string} [responseType] The type of config response. Possible values are 'auth' and 'continue'
* @member {string} [responseType] The type of response 'config'.
*/
responseType: string;
responseType: 'config';
}

/**
Expand Down Expand Up @@ -1612,7 +1612,7 @@ export type ActivityImageType = 'avatar' | 'article';
* @enum {string}
*/

export type BotConfigAuthType = 'auth' | 'task';
export type BotConfigAuthType = 'auth';

/**
* Defines values for Os.
Expand Down
Loading