@microsoft/teamsfx 2.3.0-rc-hotfix.0 → 2.3.1-alpha.041c93f76.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx",
3
- "version": "2.3.0-rc-hotfix.0",
3
+ "version": "2.3.1-alpha.041c93f76.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,30 +47,35 @@
47
47
  "sideEffects": false,
48
48
  "dependencies": {
49
49
  "@azure/identity": "^2.0.1",
50
- "@azure/msal-browser": "^2.21.0",
50
+ "@azure/msal-browser": "^3.0.2",
51
51
  "@azure/msal-node": "^1.14.6",
52
- "@microsoft/adaptivecards-tools": "^1.3.2",
53
- "@microsoft/microsoft-graph-client": "^3.0.5",
52
+ "@microsoft/adaptivecards-tools": "1.3.3-alpha.041c93f76.0",
53
+ "@microsoft/microsoft-graph-client": "^3.0.7",
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/teams-js": "^2.13.0",
71
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",
72
76
  "@types/chai": "^4.2.22",
73
77
  "@types/chai-as-promised": "^7.1.4",
78
+ "@types/jsonwebtoken": "^9.0.2",
74
79
  "@types/mocha": "^9.0.0",
75
80
  "@types/mochawesome": "^6.2.1",
76
81
  "@types/node": "^16.11.7",
@@ -81,16 +86,21 @@
81
86
  "@typescript-eslint/eslint-plugin": "^5.0.0",
82
87
  "@typescript-eslint/parser": "^4.13.0",
83
88
  "adm-zip": "^0.5.9",
89
+ "assertion-error": "^2.0.0",
84
90
  "axios-mock-adapter": "^1.20.0",
85
91
  "botbuilder-core": ">=4.18.0 <5.0.0",
86
92
  "chai": "^4.3.4",
87
93
  "chai-as-promised": "^7.1.1",
94
+ "check-error": "^2.0.0",
95
+ "deep-eql": "^4.1.3",
96
+ "diff": "^5.1.0",
88
97
  "dotenv": "^10.0.0",
89
98
  "eslint": "^8.1.0",
90
99
  "eslint-plugin-header": "^3.1.1",
91
100
  "eslint-plugin-import": "^2.25.2",
92
101
  "eslint-plugin-no-secrets": "^0.8.9",
93
102
  "eslint-plugin-prettier": "^4.0.0",
103
+ "get-func-name": "^2.0.0",
94
104
  "got": "^11.8.2",
95
105
  "isomorphic-fetch": "^3.0.0",
96
106
  "jwt-builder": "^1.1.0",
@@ -105,26 +115,33 @@
105
115
  "karma-sourcemap-loader": "^0.3.8",
106
116
  "karma-webpack": "^5.0.0",
107
117
  "lint-staged": "^11.2.6",
118
+ "lodash.get": "^4.4.2",
108
119
  "mocha": "^9.2.0",
109
120
  "mocha-multi-reporters": "^1.5.1",
110
121
  "mochawesome": "^7.0.1",
111
122
  "mocked-env": "^1.3.5",
123
+ "nise": "^5.1.4",
112
124
  "nyc": "^15.1.0",
125
+ "pathval": "^2.0.0",
113
126
  "prettier": "^2.4.1",
114
127
  "puppeteer": "^13.1.3",
115
128
  "rimraf": "^3.0.2",
116
- "rollup": "^2.59.0",
117
- "rollup-plugin-typescript2": "^0.30.0",
129
+ "rollup": "^2.41.0",
130
+ "rollup-plugin-typescript2": "0.31.1",
118
131
  "sinon": "^12.0.1",
119
132
  "source-map-loader": "^3.0.0",
133
+ "supports-color": "^9.4.0",
134
+ "timers": "^0.1.1",
120
135
  "ts-loader": "^9.2.6",
121
136
  "ts-node": "^10.4.0",
137
+ "tslib": "^2.3.1",
138
+ "type-detect": "^4.0.8",
122
139
  "typescript": "^4.4.4",
123
140
  "url-join": "^4.0.1",
124
141
  "webpack": "^5.62.1",
125
142
  "yargs": "^17.2.1"
126
143
  },
127
- "gitHead": "8ff7b7f113be5f4b86c26c8680355d2d10bc4dca",
144
+ "gitHead": "97dd5f4bb61c848182c2b166b6ab1bee2152da29",
128
145
  "publishConfig": {
129
146
  "access": "public"
130
147
  },
@@ -420,7 +420,7 @@ export declare interface BotSsoExecutionActivityHandler {
420
420
  * @param query Signin state (part of signin action auth flow) verification invoke query
421
421
  * @returns A promise that represents the work queued.
422
422
  *
423
- * @remark
423
+ * @remarks
424
424
  * It should trigger {@link BotSsoExecutionDialog} instance to handle signin process
425
425
  */
426
426
  handleTeamsSigninTokenExchange(context: TurnContext, query: SigninStateVerificationQuery): Promise<void>;
@@ -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
  *
@@ -1556,7 +1576,7 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
1556
1576
  * Provides methods for formatting various invoke responses a bot can send to respond to an invoke request.
1557
1577
  *
1558
1578
  * @remarks
1559
- * All of these functions return an {@link InvokeResponse} object, which can be
1579
+ * All of these functions return an `InvokeResponse` object, which can be
1560
1580
  * passed as input to generate a new `invokeResponse` activity.
1561
1581
  *
1562
1582
  * This example sends an invoke response that contains an adaptive card.
@@ -3053,7 +3073,7 @@ export declare class BotSsoExecutionDialog extends ComponentDialog {
3053
3073
  * return InvokeResponseFactory.errorResponse(InvokeResponseErrorCode.BadRequest, "Invalid request");
3054
3074
  * ```
3055
3075
  *
3056
- * @remark 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.
3076
+ * @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.
3057
3077
  */
3058
3078
  handleActionInvoked(context: TurnContext, actionData: any): Promise<InvokeResponse>;
3059
3079
  }