@microsoft/teamsfx 1.1.2-alpha.db971b797.0 → 1.1.2-alpha.ee0bcd930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1353,7 +1353,39 @@ var NotificationTargetType;
1353
1353
  * The notification will be sent to a personal chat.
1354
1354
  */
1355
1355
  NotificationTargetType["Person"] = "Person";
1356
- })(NotificationTargetType || (NotificationTargetType = {}));
1356
+ })(NotificationTargetType || (NotificationTargetType = {}));
1357
+ /**
1358
+ * Options used to control how the response card will be sent to users.
1359
+ */
1360
+ var AdaptiveCardResponse;
1361
+ (function (AdaptiveCardResponse) {
1362
+ /**
1363
+ * The response card will be replaced the current one for the interactor who trigger the action.
1364
+ */
1365
+ AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForInteractor"] = 0] = "ReplaceForInteractor";
1366
+ /**
1367
+ * The response card will be replaced the current one for all users in the chat.
1368
+ */
1369
+ AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForAll"] = 1] = "ReplaceForAll";
1370
+ /**
1371
+ * The response card will be sent as a new message for all users in the chat.
1372
+ */
1373
+ AdaptiveCardResponse[AdaptiveCardResponse["NewForAll"] = 2] = "NewForAll";
1374
+ })(AdaptiveCardResponse || (AdaptiveCardResponse = {}));
1375
+ /**
1376
+ * Status code for an `application/vnd.microsoft.error` invoke response.
1377
+ */
1378
+ var InvokeResponseErrorCode;
1379
+ (function (InvokeResponseErrorCode) {
1380
+ /**
1381
+ * Invalid request.
1382
+ */
1383
+ InvokeResponseErrorCode[InvokeResponseErrorCode["BadRequest"] = 400] = "BadRequest";
1384
+ /**
1385
+ * Internal server error.
1386
+ */
1387
+ InvokeResponseErrorCode[InvokeResponseErrorCode["InternalServerError"] = 500] = "InternalServerError";
1388
+ })(InvokeResponseErrorCode || (InvokeResponseErrorCode = {}));
1357
1389
 
1358
1390
  // Copyright (c) Microsoft Corporation.
1359
1391
  /**
@@ -1693,9 +1725,47 @@ class CommandBot {
1693
1725
  * Only work on server side.
1694
1726
  */
1695
1727
  registerCommands(commands) {
1696
- throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CommandnBot"), ErrorCode.RuntimeNotSupported);
1728
+ throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CommandBot"), ErrorCode.RuntimeNotSupported);
1729
+ }
1730
+ }
1731
+
1732
+ /**
1733
+ * A card action bot to respond to adaptive card universal actions.
1734
+ *
1735
+ * @remarks
1736
+ * Only work on server side.
1737
+ */
1738
+ class CardActionBot {
1739
+ /**
1740
+ * Creates a new instance of the `CardActionBot`.
1741
+ *
1742
+ * @param adapter The bound `BotFrameworkAdapter`.
1743
+ * @param options - initialize options
1744
+ */
1745
+ constructor(adapter, options) {
1746
+ throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
1747
+ }
1748
+ /**
1749
+ * Registers a card action handler to the bot.
1750
+ * @param actionHandler A card action handler to be registered.
1751
+ *
1752
+ * @remarks
1753
+ * Only work on server side.
1754
+ */
1755
+ registerHandler(actionHandler) {
1756
+ throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
1757
+ }
1758
+ /**
1759
+ * Registers card action handlers to the bot.
1760
+ * @param actionHandlers A set of card action handlers to be registered.
1761
+ *
1762
+ * @remarks
1763
+ * Only work on server side.
1764
+ */
1765
+ registerHandlers(actionHandlers) {
1766
+ throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
1697
1767
  }
1698
1768
  }
1699
1769
 
1700
- export { ApiKeyLocation, ApiKeyProvider, AppCredential, BasicAuthProvider, BearerTokenAuthProvider, CertificateAuthProvider, Channel, CommandBot, ConversationBot, ErrorCode, ErrorWithCode, IdentityType, LogLevel, Member, MsGraphAuthProvider, NotificationBot, NotificationTargetType, OnBehalfOfUserCredential, TeamsBotInstallation, TeamsBotSsoPrompt, TeamsFx, TeamsUserCredential, createApiClient, createMicrosoftGraphClient, createPemCertOption, createPfxCertOption, getLogLevel, getTediousConnectionConfig, sendAdaptiveCard, sendMessage, setLogFunction, setLogLevel, setLogger };
1770
+ export { AdaptiveCardResponse, ApiKeyLocation, ApiKeyProvider, AppCredential, BasicAuthProvider, BearerTokenAuthProvider, CardActionBot, CertificateAuthProvider, Channel, CommandBot, ConversationBot, ErrorCode, ErrorWithCode, IdentityType, InvokeResponseErrorCode, LogLevel, Member, MsGraphAuthProvider, NotificationBot, NotificationTargetType, OnBehalfOfUserCredential, TeamsBotInstallation, TeamsBotSsoPrompt, TeamsFx, TeamsUserCredential, createApiClient, createMicrosoftGraphClient, createPemCertOption, createPfxCertOption, getLogLevel, getTediousConnectionConfig, sendAdaptiveCard, sendMessage, setLogFunction, setLogLevel, setLogger };
1701
1771
  //# sourceMappingURL=index.esm2017.js.map