@microsoft/teamsfx 2.2.3-alpha.2fdf2b99b.0 → 2.2.3-alpha.5925cbfed.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.
@@ -773,8 +773,10 @@ class TeamsUserCredential {
773
773
 
774
774
  // Copyright (c) Microsoft Corporation.
775
775
  const defaultScope = "https://graph.microsoft.com/.default";
776
+ // eslint-disable-next-line no-secrets/no-secrets
776
777
  /**
777
778
  * Microsoft Graph auth provider for Teams Framework
779
+ * @deprecated Use `TokenCredentialAuthenticationProvider` from `@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials` instead.
778
780
  */
779
781
  class MsGraphAuthProvider {
780
782
  constructor(credentialOrTeamsFx, scopes) {
@@ -831,6 +833,14 @@ class MsGraphAuthProvider {
831
833
  // Copyright (c) Microsoft Corporation.
832
834
  /**
833
835
  * Get Microsoft graph client.
836
+ * @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
837
+ * ```typescript
838
+ * const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
839
+ * const graph = Client.initWithMiddleware({
840
+ * authProvider: authProvider,
841
+ * });
842
+ * ```
843
+ *
834
844
  * @example
835
845
  * Get Microsoft graph client by TokenCredential
836
846
  * ```typescript
@@ -888,6 +898,14 @@ function createMicrosoftGraphClient(teamsfx, scopes) {
888
898
  // eslint-disable-next-line no-secrets/no-secrets
889
899
  /**
890
900
  * Get Microsoft graph client.
901
+ * @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
902
+ * ```typescript
903
+ * const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
904
+ * const graph = Client.initWithMiddleware({
905
+ * authProvider: authProvider,
906
+ * });
907
+ * ```
908
+ *
891
909
  * @example
892
910
  * Get Microsoft graph client by TokenCredential
893
911
  * ```typescript
@@ -1787,6 +1805,8 @@ const ReservedKey = new Set([
1787
1805
  ]);
1788
1806
  /**
1789
1807
  * A class providing credential and configuration.
1808
+ * @deprecated Please use {@link TeamsUserCredential}
1809
+ * in browser environment and {@link OnBehalfOfUserCredential} or {@link AppCredential} in NodeJS.
1790
1810
  */
1791
1811
  class TeamsFx {
1792
1812
  /**
@@ -4064,6 +4084,7 @@ function executionWithTokenAndConfig(context, authConfig, initiateLoginEndpoint,
4064
4084
  }
4065
4085
  /**
4066
4086
  * execution in message extension with SSO token.
4087
+ * @deprecated Use {@link executionWithTokenAndConfig} instead.
4067
4088
  *
4068
4089
  * @param {TurnContext} context - The context object for the current turn.
4069
4090
  * @param {AuthenticationConfiguration} config - User custom the message extension authentication configuration.
@@ -4114,7 +4135,7 @@ function executionWithToken(context, config, scopes, logic) {
4114
4135
  // eslint-disable-next-line no-secrets/no-secrets
4115
4136
  /**
4116
4137
  * Users execute query in message extension with SSO or access token.
4117
- *
4138
+ * @deprecated Use {@link handleMessageExtensionQueryWithSSO} instead.
4118
4139
  *
4119
4140
  * @param {TurnContext} context - The context object for the current turn.
4120
4141
  * @param {AuthenticationConfiguration} config - User custom the message extension authentication configuration.