@microsoft/teamsfx 2.2.3-alpha.952007dba.0 → 2.2.3-alpha.a99162fe0.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/README.md +162 -113
- package/dist/index.esm2017.js +24 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +23 -3
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +24 -6
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +23 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +3 -4
- package/types/teamsfx.d.ts +24 -1
package/dist/index.esm2017.mjs
CHANGED
@@ -740,8 +740,10 @@ class TeamsUserCredential {
|
|
740
740
|
|
741
741
|
// Copyright (c) Microsoft Corporation.
|
742
742
|
const defaultScope = "https://graph.microsoft.com/.default";
|
743
|
+
// eslint-disable-next-line no-secrets/no-secrets
|
743
744
|
/**
|
744
745
|
* Microsoft Graph auth provider for Teams Framework
|
746
|
+
* @deprecated Use `TokenCredentialAuthenticationProvider` from `@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials` instead.
|
745
747
|
*/
|
746
748
|
class MsGraphAuthProvider {
|
747
749
|
constructor(credentialOrTeamsFx, scopes) {
|
@@ -796,6 +798,14 @@ class MsGraphAuthProvider {
|
|
796
798
|
// Copyright (c) Microsoft Corporation.
|
797
799
|
/**
|
798
800
|
* Get Microsoft graph client.
|
801
|
+
* @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
|
802
|
+
* ```typescript
|
803
|
+
* const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
|
804
|
+
* const graph = Client.initWithMiddleware({
|
805
|
+
* authProvider: authProvider,
|
806
|
+
* });
|
807
|
+
* ```
|
808
|
+
*
|
799
809
|
* @example
|
800
810
|
* Get Microsoft graph client by TokenCredential
|
801
811
|
* ```typescript
|
@@ -853,6 +863,14 @@ function createMicrosoftGraphClient(teamsfx, scopes) {
|
|
853
863
|
// eslint-disable-next-line no-secrets/no-secrets
|
854
864
|
/**
|
855
865
|
* Get Microsoft graph client.
|
866
|
+
* @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
|
867
|
+
* ```typescript
|
868
|
+
* const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
|
869
|
+
* const graph = Client.initWithMiddleware({
|
870
|
+
* authProvider: authProvider,
|
871
|
+
* });
|
872
|
+
* ```
|
873
|
+
*
|
856
874
|
* @example
|
857
875
|
* Get Microsoft graph client by TokenCredential
|
858
876
|
* ```typescript
|
@@ -1736,6 +1754,8 @@ const ReservedKey = new Set([
|
|
1736
1754
|
]);
|
1737
1755
|
/**
|
1738
1756
|
* A class providing credential and configuration.
|
1757
|
+
* @deprecated Please use {@link TeamsUserCredential}
|
1758
|
+
* in browser environment and {@link OnBehalfOfUserCredential} or {@link AppCredential} in NodeJS.
|
1739
1759
|
*/
|
1740
1760
|
class TeamsFx {
|
1741
1761
|
/**
|
@@ -3483,8 +3503,7 @@ class DefaultBotSsoExecutionActivityHandler extends TeamsActivityHandler {
|
|
3483
3503
|
timeout: (_h = (_g = ssoConfig.dialog) === null || _g === void 0 ? void 0 : _g.ssoPromptConfig) === null || _h === void 0 ? void 0 : _h.timeout,
|
3484
3504
|
endOnInvalidMessage: (_k = (_j = ssoConfig.dialog) === null || _j === void 0 ? void 0 : _j.ssoPromptConfig) === null || _k === void 0 ? void 0 : _k.endOnInvalidMessage,
|
3485
3505
|
};
|
3486
|
-
|
3487
|
-
this.ssoExecutionDialog = new BotSsoExecutionDialog(dedupStorage, settings, teamsfx);
|
3506
|
+
this.ssoExecutionDialog = new BotSsoExecutionDialog(dedupStorage, settings, customConfig, customConfig.initiateLoginEndpoint);
|
3488
3507
|
this.conversationState = conversationState;
|
3489
3508
|
this.dialogState = conversationState.createProperty("DialogState");
|
3490
3509
|
this.userState = userState;
|
@@ -3926,6 +3945,7 @@ async function executionWithTokenAndConfig(context, authConfig, initiateLoginEnd
|
|
3926
3945
|
}
|
3927
3946
|
/**
|
3928
3947
|
* execution in message extension with SSO token.
|
3948
|
+
* @deprecated Use {@link executionWithTokenAndConfig} instead.
|
3929
3949
|
*
|
3930
3950
|
* @param {TurnContext} context - The context object for the current turn.
|
3931
3951
|
* @param {AuthenticationConfiguration} config - User custom the message extension authentication configuration.
|
@@ -3974,7 +3994,7 @@ async function executionWithToken(context, config, scopes, logic) {
|
|
3974
3994
|
// eslint-disable-next-line no-secrets/no-secrets
|
3975
3995
|
/**
|
3976
3996
|
* Users execute query in message extension with SSO or access token.
|
3977
|
-
*
|
3997
|
+
* @deprecated Use {@link handleMessageExtensionQueryWithSSO} instead.
|
3978
3998
|
*
|
3979
3999
|
* @param {TurnContext} context - The context object for the current turn.
|
3980
4000
|
* @param {AuthenticationConfiguration} config - User custom the message extension authentication configuration.
|