@microsoft/teamsfx 2.2.3-alpha.9b38c38b5.0 → 2.2.3-beta.2023080907.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx",
3
- "version": "2.2.3-alpha.9b38c38b5.0",
3
+ "version": "2.2.3-beta.2023080907.0",
4
4
  "description": "Microsoft Teams Framework for Node.js and browser.",
5
5
  "main": "dist/index.node.cjs.js",
6
6
  "browser": "dist/index.esm2017.js",
@@ -49,7 +49,7 @@
49
49
  "@azure/identity": "^2.0.1",
50
50
  "@azure/msal-browser": "^2.21.0",
51
51
  "@azure/msal-node": "^1.14.6",
52
- "@microsoft/adaptivecards-tools": "1.3.3-alpha.9b38c38b5.0",
52
+ "@microsoft/adaptivecards-tools": "1.3.3-beta.2023080907.0",
53
53
  "@microsoft/microsoft-graph-client": "^3.0.5",
54
54
  "axios": "^0.27.2",
55
55
  "botbuilder": ">=4.18.0 <5.0.0",
@@ -67,7 +67,6 @@
67
67
  "@istanbuljs/nyc-config-typescript": "^1.0.1",
68
68
  "@microsoft/api-documenter": "^7.14.1",
69
69
  "@microsoft/api-extractor": "^7.19.4",
70
- "@microsoft/eslint-plugin-teamsfx": "0.0.5-alpha.9b38c38b5.0",
71
70
  "@microsoft/teams-js": "^2.13.0",
72
71
  "@rollup/plugin-json": "^4.1.0",
73
72
  "@types/chai": "^4.2.22",
@@ -125,7 +124,7 @@
125
124
  "webpack": "^5.62.1",
126
125
  "yargs": "^17.2.1"
127
126
  },
128
- "gitHead": "6716290ed4807698e9ee1cb76071bc77ed090b81",
127
+ "gitHead": "e422f180f363a10983aa0416e0a389c44e2b752e",
129
128
  "publishConfig": {
130
129
  "access": "public"
131
130
  },
@@ -185,6 +185,8 @@ export declare type AppCredentialAuthConfig = OnBehalfOfCredentialAuthConfig;
185
185
 
186
186
  /**
187
187
  * Authentication related configuration.
188
+ * @deprecated Please use {@link TeamsUserCredentialAuthConfig}
189
+ * or {@link OnBehalfOfCredentialAuthConfig} or {@link AppCredentialAuthConfig} instead.
188
190
  */
189
191
  export declare interface AuthenticationConfiguration {
190
192
  /**
@@ -1201,6 +1203,14 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
1201
1203
 
1202
1204
  /**
1203
1205
  * Get Microsoft graph client.
1206
+ * @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
1207
+ * ```typescript
1208
+ * const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
1209
+ * const graph = Client.initWithMiddleware({
1210
+ * authProvider: authProvider,
1211
+ * });
1212
+ * ```
1213
+ *
1204
1214
  * @example
1205
1215
  * Get Microsoft graph client by TokenCredential
1206
1216
  * ```typescript
@@ -1251,6 +1261,14 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
1251
1261
 
1252
1262
  /**
1253
1263
  * Get Microsoft graph client.
1264
+ * @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
1265
+ * ```typescript
1266
+ * const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
1267
+ * const graph = Client.initWithMiddleware({
1268
+ * authProvider: authProvider,
1269
+ * });
1270
+ * ```
1271
+ *
1254
1272
  * @example
1255
1273
  * Get Microsoft graph client by TokenCredential
1256
1274
  * ```typescript
@@ -1488,7 +1506,7 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
1488
1506
 
1489
1507
  /**
1490
1508
  * Users execute query in message extension with SSO or access token.
1491
- *
1509
+ * @deprecated Use {@link handleMessageExtensionQueryWithSSO} instead.
1492
1510
  *
1493
1511
  * @param {TurnContext} context - The context object for the current turn.
1494
1512
  * @param {AuthenticationConfiguration} config - User custom the message extension authentication configuration.
@@ -1906,6 +1924,7 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
1906
1924
 
1907
1925
  /**
1908
1926
  * Microsoft Graph auth provider for Teams Framework
1927
+ * @deprecated Use `TokenCredentialAuthenticationProvider` from `@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials` instead.
1909
1928
  */
1910
1929
  export declare class MsGraphAuthProvider implements AuthenticationProvider {
1911
1930
  private credentialOrTeamsFx;
@@ -2040,6 +2059,13 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
2040
2059
  * @returns - The {@link TeamsBotInstallation} instance or null.
2041
2060
  */
2042
2061
  buildTeamsBotInstallation(conversationReference: Partial<ConversationReference>): TeamsBotInstallation_2 | null;
2062
+ /**
2063
+ * Validate the installation by getting paged memebers.
2064
+ *
2065
+ * @param conversationReference The bound `ConversationReference`.
2066
+ * @returns Returns false if recieves `BotNotInConversationRoster` error, otherwise returns true.
2067
+ */
2068
+ validateInstallation(conversationReference: Partial<ConversationReference>): Promise<boolean>;
2043
2069
  /**
2044
2070
  * Gets a pagined list of targets where the bot is installed.
2045
2071
  *
@@ -2051,7 +2077,7 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
2051
2077
  *
2052
2078
  * @returns An array of {@link TeamsBotInstallation} with paged data and continuation token.
2053
2079
  */
2054
- getPagedInstallations(pageSize?: number, continuationToken?: string): Promise<PagedData<TeamsBotInstallation_2>>;
2080
+ getPagedInstallations(pageSize?: number, continuationToken?: string, validationEnabled?: boolean): Promise<PagedData<TeamsBotInstallation_2>>;
2055
2081
  /**
2056
2082
  * Get all targets where the bot is installed.
2057
2083
  *
@@ -2901,6 +2927,8 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
2901
2927
 
2902
2928
  /**
2903
2929
  * A class providing credential and configuration.
2930
+ * @deprecated Please use {@link TeamsUserCredential}
2931
+ * in browser environment and {@link OnBehalfOfUserCredential} or {@link AppCredential} in NodeJS.
2904
2932
  */
2905
2933
  export declare class TeamsFx implements TeamsFxConfiguration {
2906
2934
  private configuration;
@@ -3071,6 +3099,8 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
3071
3099
 
3072
3100
  /**
3073
3101
  * TeamsFx interface that provides credential and configuration.
3102
+ * @deprecated Please use {@link TeamsUserCredential}
3103
+ * in browser environment and {@link OnBehalfOfUserCredential} or {@link AppCredential} in NodeJS.
3074
3104
  */
3075
3105
  declare interface TeamsFxConfiguration {
3076
3106
  /**