@microsoft/teamsfx 2.2.3-alpha.9b38c38b5.0 → 2.2.3-alpha.a0d5ed36e.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 +165 -115
- package/dist/index.esm2017.js +84 -62
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +120 -48
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +95 -108
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +281 -211
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +26 -10
- package/types/teamsfx.d.ts +35 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@microsoft/teamsfx",
|
3
|
-
"version": "2.2.3-alpha.
|
3
|
+
"version": "2.2.3-alpha.a0d5ed36e.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",
|
@@ -47,31 +47,35 @@
|
|
47
47
|
"sideEffects": false,
|
48
48
|
"dependencies": {
|
49
49
|
"@azure/identity": "^2.0.1",
|
50
|
-
"@azure/msal-browser": "^
|
50
|
+
"@azure/msal-browser": "^3.0.2",
|
51
51
|
"@azure/msal-node": "^1.14.6",
|
52
|
-
"@microsoft/adaptivecards-tools": "1.3.3-alpha.
|
53
|
-
"@microsoft/microsoft-graph-client": "^3.0.
|
52
|
+
"@microsoft/adaptivecards-tools": "1.3.3-alpha.a0d5ed36e.0",
|
53
|
+
"@microsoft/microsoft-graph-client": "^3.0.6",
|
54
54
|
"axios": "^0.27.2",
|
55
55
|
"botbuilder": ">=4.18.0 <5.0.0",
|
56
56
|
"botbuilder-dialogs": ">=4.18.0 <5.0.0",
|
57
|
+
"botframework-connector": "^4.20.0",
|
57
58
|
"botframework-schema": ">=4.18.0 <5.0.0",
|
58
59
|
"jwt-decode": "^3.1.2",
|
59
60
|
"tedious": "^14.3.0",
|
60
|
-
"tslib": "^2.3.1",
|
61
61
|
"uuid": "^8.3.2"
|
62
62
|
},
|
63
63
|
"peerDependencies": {
|
64
64
|
"@microsoft/teams-js": "^2.13.0"
|
65
65
|
},
|
66
66
|
"devDependencies": {
|
67
|
+
"@azure/core-auth": "^1.4.0",
|
68
|
+
"@azure/msal-common": "^14.0.2",
|
67
69
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
68
70
|
"@microsoft/api-documenter": "^7.14.1",
|
69
71
|
"@microsoft/api-extractor": "^7.19.4",
|
70
|
-
"@microsoft/eslint-plugin-teamsfx": "0.0.5-alpha.9b38c38b5.0",
|
71
|
-
"@microsoft/teams-js": "^2.13.0",
|
72
72
|
"@rollup/plugin-json": "^4.1.0",
|
73
|
+
"@sinonjs/commons": "^3.0.0",
|
74
|
+
"@sinonjs/fake-timers": "^11.1.0",
|
75
|
+
"@sinonjs/samsam": "^8.0.0",
|
73
76
|
"@types/chai": "^4.2.22",
|
74
77
|
"@types/chai-as-promised": "^7.1.4",
|
78
|
+
"@types/jsonwebtoken": "^9.0.2",
|
75
79
|
"@types/mocha": "^9.0.0",
|
76
80
|
"@types/mochawesome": "^6.2.1",
|
77
81
|
"@types/node": "^16.11.7",
|
@@ -82,16 +86,21 @@
|
|
82
86
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
83
87
|
"@typescript-eslint/parser": "^4.13.0",
|
84
88
|
"adm-zip": "^0.5.9",
|
89
|
+
"assertion-error": "^2.0.0",
|
85
90
|
"axios-mock-adapter": "^1.20.0",
|
86
91
|
"botbuilder-core": ">=4.18.0 <5.0.0",
|
87
92
|
"chai": "^4.3.4",
|
88
93
|
"chai-as-promised": "^7.1.1",
|
94
|
+
"check-error": "^2.0.0",
|
95
|
+
"deep-eql": "^4.1.3",
|
96
|
+
"diff": "^5.1.0",
|
89
97
|
"dotenv": "^10.0.0",
|
90
98
|
"eslint": "^8.1.0",
|
91
99
|
"eslint-plugin-header": "^3.1.1",
|
92
100
|
"eslint-plugin-import": "^2.25.2",
|
93
101
|
"eslint-plugin-no-secrets": "^0.8.9",
|
94
102
|
"eslint-plugin-prettier": "^4.0.0",
|
103
|
+
"get-func-name": "^2.0.0",
|
95
104
|
"got": "^11.8.2",
|
96
105
|
"isomorphic-fetch": "^3.0.0",
|
97
106
|
"jwt-builder": "^1.1.0",
|
@@ -106,26 +115,33 @@
|
|
106
115
|
"karma-sourcemap-loader": "^0.3.8",
|
107
116
|
"karma-webpack": "^5.0.0",
|
108
117
|
"lint-staged": "^11.2.6",
|
118
|
+
"lodash.get": "^4.4.2",
|
109
119
|
"mocha": "^9.2.0",
|
110
120
|
"mocha-multi-reporters": "^1.5.1",
|
111
121
|
"mochawesome": "^7.0.1",
|
112
122
|
"mocked-env": "^1.3.5",
|
123
|
+
"nise": "^5.1.4",
|
113
124
|
"nyc": "^15.1.0",
|
125
|
+
"pathval": "^2.0.0",
|
114
126
|
"prettier": "^2.4.1",
|
115
127
|
"puppeteer": "^13.1.3",
|
116
128
|
"rimraf": "^3.0.2",
|
117
|
-
"rollup": "^2.
|
118
|
-
"rollup-plugin-typescript2": "
|
129
|
+
"rollup": "^2.41.0",
|
130
|
+
"rollup-plugin-typescript2": "0.31.1",
|
119
131
|
"sinon": "^12.0.1",
|
120
132
|
"source-map-loader": "^3.0.0",
|
133
|
+
"supports-color": "^9.4.0",
|
134
|
+
"timers": "^0.1.1",
|
121
135
|
"ts-loader": "^9.2.6",
|
122
136
|
"ts-node": "^10.4.0",
|
137
|
+
"tslib": "^2.3.1",
|
138
|
+
"type-detect": "^4.0.8",
|
123
139
|
"typescript": "^4.4.4",
|
124
140
|
"url-join": "^4.0.1",
|
125
141
|
"webpack": "^5.62.1",
|
126
142
|
"yargs": "^17.2.1"
|
127
143
|
},
|
128
|
-
"gitHead": "
|
144
|
+
"gitHead": "d05e9dac7fbc0a0154ee13de39c1f27c11ddbb45",
|
129
145
|
"publishConfig": {
|
130
146
|
"access": "public"
|
131
147
|
},
|
package/types/teamsfx.d.ts
CHANGED
@@ -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
|
/**
|
@@ -418,7 +420,7 @@ export declare interface BotSsoExecutionActivityHandler {
|
|
418
420
|
* @param query Signin state (part of signin action auth flow) verification invoke query
|
419
421
|
* @returns A promise that represents the work queued.
|
420
422
|
*
|
421
|
-
* @
|
423
|
+
* @remarks
|
422
424
|
* It should trigger {@link BotSsoExecutionDialog} instance to handle signin process
|
423
425
|
*/
|
424
426
|
handleTeamsSigninTokenExchange(context: TurnContext, query: SigninStateVerificationQuery): Promise<void>;
|
@@ -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.
|
@@ -1538,7 +1556,7 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
|
|
1538
1556
|
* Provides methods for formatting various invoke responses a bot can send to respond to an invoke request.
|
1539
1557
|
*
|
1540
1558
|
* @remarks
|
1541
|
-
* All of these functions return an
|
1559
|
+
* All of these functions return an `InvokeResponse` object, which can be
|
1542
1560
|
* passed as input to generate a new `invokeResponse` activity.
|
1543
1561
|
*
|
1544
1562
|
* This example sends an invoke response that contains an adaptive card.
|
@@ -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;
|
@@ -3025,7 +3053,7 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
|
|
3025
3053
|
* return InvokeResponseFactory.errorResponse(InvokeResponseErrorCode.BadRequest, "Invalid request");
|
3026
3054
|
* ```
|
3027
3055
|
*
|
3028
|
-
* @
|
3056
|
+
* @remarks For more details about the invoke response format, refer to https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model#response-format.
|
3029
3057
|
*/
|
3030
3058
|
handleActionInvoked(context: TurnContext, actionData: any): Promise<InvokeResponse>;
|
3031
3059
|
}
|
@@ -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
|
/**
|