botframework-schema
Advanced tools
Comparing version 4.21.0-dev.20230612.5ee34c0 to 4.21.0-dev.20230623.288cb8f
@@ -6,6 +6,24 @@ /** | ||
import { MessageActionsPayloadBody, O365ConnectorCardActionBase, O365ConnectorCardInputBase } from './extension'; | ||
import { Activity, Attachment, CardAction, ChannelAccount, ConversationAccount } from '../'; | ||
import { Activity, Attachment, CardAction, ChannelAccount, ConversationAccount, SuggestedActions } from '../'; | ||
export * from './extension'; | ||
/** | ||
* @interface | ||
* An interface the bot's authentication config for SuggestedActions | ||
*/ | ||
export interface BotConfigAuth { | ||
/** | ||
* @member {SuggestedActions} [suggestedActions] SuggestedActions for the Bot Config Auth | ||
*/ | ||
suggestedActions?: SuggestedActions; | ||
/** | ||
* @member {BotConfigAuthType} [type] Type of the Bot Config Auth | ||
*/ | ||
type: 'auth'; | ||
} | ||
export interface ConfigAuthResponse extends ConfigResponse<BotConfigAuth> { | ||
} | ||
export interface ConfigTaskResponse extends ConfigResponse<TaskModuleResponse> { | ||
} | ||
/** | ||
* @interface | ||
* An interface representing ChannelInfo. | ||
@@ -31,2 +49,21 @@ * A channel info object which decribes the channel. | ||
* @interface | ||
* An interface container for the Config response payload | ||
*/ | ||
export interface ConfigResponse<T> { | ||
/** | ||
* @member {CacheInfo} [cacheInfo] The data of the ConfigResponse cache, including cache type and cache duration. | ||
*/ | ||
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' | ||
*/ | ||
responseType: string; | ||
} | ||
/** | ||
* @interface | ||
* An interface representing ConversationList. | ||
@@ -1496,2 +1533,10 @@ * List of channels under a team | ||
/** | ||
* Defines possible values for BotConfigAuth type. | ||
* Possible values include: "auth" | ||
* | ||
* @readonly | ||
* @enum {string} | ||
*/ | ||
export type BotConfigAuthType = 'auth' | 'task'; | ||
/** | ||
* Defines values for Os. | ||
@@ -1498,0 +1543,0 @@ * Possible values include: 'default', 'iOS', 'android', 'windows' |
@@ -6,6 +6,24 @@ /** | ||
import { MessageActionsPayloadBody, O365ConnectorCardActionBase, O365ConnectorCardInputBase } from './extension'; | ||
import { Activity, Attachment, CardAction, ChannelAccount, ConversationAccount } from '../'; | ||
import { Activity, Attachment, CardAction, ChannelAccount, ConversationAccount, SuggestedActions } from '../'; | ||
export * from './extension'; | ||
/** | ||
* @interface | ||
* An interface the bot's authentication config for SuggestedActions | ||
*/ | ||
export interface BotConfigAuth { | ||
/** | ||
* @member {SuggestedActions} [suggestedActions] SuggestedActions for the Bot Config Auth | ||
*/ | ||
suggestedActions?: SuggestedActions; | ||
/** | ||
* @member {BotConfigAuthType} [type] Type of the Bot Config Auth | ||
*/ | ||
type: 'auth'; | ||
} | ||
export interface ConfigAuthResponse extends ConfigResponse<BotConfigAuth> { | ||
} | ||
export interface ConfigTaskResponse extends ConfigResponse<TaskModuleResponse> { | ||
} | ||
/** | ||
* @interface | ||
* An interface representing ChannelInfo. | ||
@@ -31,2 +49,21 @@ * A channel info object which decribes the channel. | ||
* @interface | ||
* An interface container for the Config response payload | ||
*/ | ||
export interface ConfigResponse<T> { | ||
/** | ||
* @member {CacheInfo} [cacheInfo] The data of the ConfigResponse cache, including cache type and cache duration. | ||
*/ | ||
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' | ||
*/ | ||
responseType: string; | ||
} | ||
/** | ||
* @interface | ||
* An interface representing ConversationList. | ||
@@ -1496,2 +1533,10 @@ * List of channels under a team | ||
/** | ||
* Defines possible values for BotConfigAuth type. | ||
* Possible values include: "auth" | ||
* | ||
* @readonly | ||
* @enum {string} | ||
*/ | ||
export type BotConfigAuthType = 'auth' | 'task'; | ||
/** | ||
* Defines values for Os. | ||
@@ -1498,0 +1543,0 @@ * Possible values include: 'default', 'iOS', 'android', 'windows' |
@@ -5,3 +5,3 @@ { | ||
"description": "Activity schema for the Microsoft Bot Framework.", | ||
"version": "4.21.0-dev.20230612.5ee34c0", | ||
"version": "4.21.0-dev.20230623.288cb8f", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -9,3 +9,3 @@ /** | ||
import { MessageActionsPayloadBody, O365ConnectorCardActionBase, O365ConnectorCardInputBase } from './extension'; | ||
import { Activity, Attachment, CardAction, ChannelAccount, ConversationAccount } from '../'; | ||
import { Activity, Attachment, CardAction, ChannelAccount, ConversationAccount, SuggestedActions } from '../'; | ||
export * from './extension'; | ||
@@ -15,2 +15,22 @@ | ||
* @interface | ||
* An interface the bot's authentication config for SuggestedActions | ||
*/ | ||
export interface BotConfigAuth { | ||
/** | ||
* @member {SuggestedActions} [suggestedActions] SuggestedActions for the Bot Config Auth | ||
*/ | ||
suggestedActions?: SuggestedActions; | ||
/** | ||
* @member {BotConfigAuthType} [type] Type of the Bot Config Auth | ||
*/ | ||
type: 'auth'; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface ConfigAuthResponse extends ConfigResponse<BotConfigAuth> {} | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface ConfigTaskResponse extends ConfigResponse<TaskModuleResponse> {} | ||
/** | ||
* @interface | ||
* An interface representing ChannelInfo. | ||
@@ -34,2 +54,21 @@ * A channel info object which decribes the channel. | ||
} | ||
/** | ||
* @interface | ||
* An interface container for the Config response payload | ||
*/ | ||
export interface ConfigResponse<T> { | ||
/** | ||
* @member {CacheInfo} [cacheInfo] The data of the ConfigResponse cache, including cache type and cache duration. | ||
*/ | ||
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' | ||
*/ | ||
responseType: string; | ||
} | ||
@@ -1572,2 +1611,12 @@ /** | ||
/** | ||
* Defines possible values for BotConfigAuth type. | ||
* Possible values include: "auth" | ||
* | ||
* @readonly | ||
* @enum {string} | ||
*/ | ||
export type BotConfigAuthType = 'auth' | 'task'; | ||
/** | ||
* Defines values for Os. | ||
@@ -1574,0 +1623,0 @@ * Possible values include: 'default', 'iOS', 'android', 'windows' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
539065
16132