@microsoft/teamsfx 2.3.1-alpha.da822cd72.0 → 2.3.1-alpha.df8521401.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/dist/index.esm2017.js +2 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +89 -24
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +4 -8
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +91 -43
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +10 -10
- package/types/teamsfx.d.ts +20 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@microsoft/teamsfx",
|
3
|
-
"version": "2.3.1-alpha.
|
3
|
+
"version": "2.3.1-alpha.df8521401.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",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"lint": "eslint \"**/*.ts\"",
|
19
19
|
"test": "npm run test:unit && npm run test:e2e",
|
20
20
|
"test:unit:browser": "karma start --single-run --unit",
|
21
|
-
"test:unit:node": "nyc --no-clean -- mocha
|
21
|
+
"test:unit:node": "nyc --no-clean -- mocha \"test/unit/{,!(browser)/**/}*.spec.ts\" --file src/index.ts -r config/mocha.env.ts --config config/mocharc.node.js",
|
22
22
|
"test:unit": "npm run test:unit:node && npm run test:unit:browser ",
|
23
23
|
"test:e2e:browser": "karma start --single-run --integration",
|
24
24
|
"test:e2e:node": "mocha --reporter mocha-multi-reporters 'test/e2e/node/*.spec.ts' --file src/index.ts -r config/mocha.env.ts --config config/mocharc.node.js --reporter-options configFile=config/mocha-multi-reporter.json",
|
@@ -49,13 +49,13 @@
|
|
49
49
|
"@azure/identity": "^2.0.1",
|
50
50
|
"@azure/msal-browser": "^3.0.2",
|
51
51
|
"@azure/msal-node": "^1.14.6",
|
52
|
-
"@microsoft/adaptivecards-tools": "1.3.3-alpha.
|
52
|
+
"@microsoft/adaptivecards-tools": "1.3.3-alpha.df8521401.0",
|
53
53
|
"@microsoft/microsoft-graph-client": "^3.0.7",
|
54
|
-
"axios": "^
|
55
|
-
"botbuilder": "
|
56
|
-
"botbuilder-dialogs": "
|
57
|
-
"botframework-connector": "^4.
|
58
|
-
"botframework-schema": "
|
54
|
+
"axios": "^1.6.2",
|
55
|
+
"botbuilder": "^4.21.2",
|
56
|
+
"botbuilder-dialogs": "^4.21.2",
|
57
|
+
"botframework-connector": "^4.21.2",
|
58
|
+
"botframework-schema": "^4.21.2",
|
59
59
|
"jwt-decode": "^3.1.2",
|
60
60
|
"tedious": "^14.3.0",
|
61
61
|
"uuid": "^8.3.2"
|
@@ -88,7 +88,7 @@
|
|
88
88
|
"adm-zip": "^0.5.9",
|
89
89
|
"assertion-error": "^2.0.0",
|
90
90
|
"axios-mock-adapter": "^1.20.0",
|
91
|
-
"botbuilder-core": "
|
91
|
+
"botbuilder-core": "^4.21.2",
|
92
92
|
"chai": "^4.3.4",
|
93
93
|
"chai-as-promised": "^7.1.1",
|
94
94
|
"check-error": "^2.0.0",
|
@@ -141,7 +141,7 @@
|
|
141
141
|
"webpack": "^5.62.1",
|
142
142
|
"yargs": "^17.2.1"
|
143
143
|
},
|
144
|
-
"gitHead": "
|
144
|
+
"gitHead": "cf6702810a0ec2a9aae2c6b34e1e6b340842f14b",
|
145
145
|
"publishConfig": {
|
146
146
|
"access": "public"
|
147
147
|
},
|
package/types/teamsfx.d.ts
CHANGED
@@ -1484,6 +1484,26 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
|
|
1484
1484
|
*/
|
1485
1485
|
export declare function getTediousConnectionConfig(teamsfx: TeamsFx, databaseName?: string): Promise<ConnectionConfig>;
|
1486
1486
|
|
1487
|
+
/**
|
1488
|
+
* Users execute link query in message extension with SSO or access token.
|
1489
|
+
*
|
1490
|
+
* @param {TurnContext} context - The context object for the current turn.
|
1491
|
+
* @param {OnBehalfOfCredentialAuthConfig} config - User custom the message extension authentication configuration.
|
1492
|
+
* @param {initiateLoginEndpoint} initiateLoginEndpoint - Login page for Teams to redirect to.
|
1493
|
+
* @param {string| string[]} scopes - The list of scopes for which the token will have access.
|
1494
|
+
* @param {function} logic - Business logic when executing the link query in message extension with SSO or access token.
|
1495
|
+
*
|
1496
|
+
* @throws {@link ErrorCode|InternalError} when User invoke not response to message extension link query.
|
1497
|
+
* @throws {@link ErrorCode|InternalError} when failed to get access token with unknown error.
|
1498
|
+
* @throws {@link ErrorCode|TokenExpiredError} when SSO token has already expired.
|
1499
|
+
* @throws {@link ErrorCode|ServiceError} when failed to get access token from simple auth server.
|
1500
|
+
* @throws {@link ErrorCode|InvalidParameter} when scopes is not a valid string or string array.
|
1501
|
+
* @throws {@link ErrorCode|RuntimeNotSupported} when runtime is nodeJS.
|
1502
|
+
*
|
1503
|
+
* @returns A MessageExtension Response for the activity. If the logic not return any, return void instead.
|
1504
|
+
*/
|
1505
|
+
export declare function handleMessageExtensionLinkQueryWithSSO(context: TurnContext, config: OnBehalfOfCredentialAuthConfig, initiateLoginEndpoint: string, scopes: string | string[], logic: (token: MessageExtensionTokenResponse) => Promise<any>): Promise<void | MessagingExtensionResponse>;
|
1506
|
+
|
1487
1507
|
/**
|
1488
1508
|
* Users execute query in message extension with SSO or access token.
|
1489
1509
|
*
|