@microsoft/teamsfx 2.2.3-alpha.dea6b9e8a.0 → 2.2.3-alpha.fddc9cadc.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.
@@ -799,8 +799,10 @@ class TeamsUserCredential {
799
799
 
800
800
  // Copyright (c) Microsoft Corporation.
801
801
  const defaultScope = "https://graph.microsoft.com/.default";
802
+ // eslint-disable-next-line no-secrets/no-secrets
802
803
  /**
803
804
  * Microsoft Graph auth provider for Teams Framework
805
+ * @deprecated Use `TokenCredentialAuthenticationProvider` from `@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials` instead.
804
806
  */
805
807
  class MsGraphAuthProvider {
806
808
  constructor(credentialOrTeamsFx, scopes) {
@@ -857,6 +859,14 @@ class MsGraphAuthProvider {
857
859
  // Copyright (c) Microsoft Corporation.
858
860
  /**
859
861
  * Get Microsoft graph client.
862
+ * @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
863
+ * ```typescript
864
+ * const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
865
+ * const graph = Client.initWithMiddleware({
866
+ * authProvider: authProvider,
867
+ * });
868
+ * ```
869
+ *
860
870
  * @example
861
871
  * Get Microsoft graph client by TokenCredential
862
872
  * ```typescript
@@ -914,6 +924,14 @@ function createMicrosoftGraphClient(teamsfx, scopes) {
914
924
  // eslint-disable-next-line no-secrets/no-secrets
915
925
  /**
916
926
  * Get Microsoft graph client.
927
+ * @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
928
+ * ```typescript
929
+ * const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
930
+ * const graph = Client.initWithMiddleware({
931
+ * authProvider: authProvider,
932
+ * });
933
+ * ```
934
+ *
917
935
  * @example
918
936
  * Get Microsoft graph client by TokenCredential
919
937
  * ```typescript
@@ -1307,6 +1325,8 @@ var IdentityType;
1307
1325
  // Copyright (c) Microsoft Corporation.
1308
1326
  /**
1309
1327
  * A class providing credential and configuration.
1328
+ * @deprecated Please use {@link TeamsUserCredential}
1329
+ * in browser environment and {@link OnBehalfOfUserCredential} or {@link AppCredential} in NodeJS.
1310
1330
  */
1311
1331
  class TeamsFx {
1312
1332
  constructor(identityType, customConfig) {
@@ -2012,8 +2032,10 @@ class CardActionBot$1 {
2012
2032
  }
2013
2033
  }
2014
2034
 
2035
+ // eslint-disable-next-line no-secrets/no-secrets
2015
2036
  /**
2016
2037
  * Users execute query with SSO or Access Token.
2038
+ * @deprecated
2017
2039
  * @remarks
2018
2040
  * Only works in in server side.
2019
2041
  */