@microsoft/m365agentstoolkit-cli 1.0.5-alpha.2df64786b.0 → 1.0.5-alpha.4ac681117.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/m365agentstoolkit-cli",
3
- "version": "1.0.5-alpha.2df64786b.0",
3
+ "version": "1.0.5-alpha.4ac681117.0",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "Microsoft 365 Agents Toolkit CLI",
6
6
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@inquirer/testing": "^2.1.2",
53
53
  "@istanbuljs/nyc-config-typescript": "^1.0.1",
54
- "@microsoft/metrics-ts": "0.0.8-alpha.2df64786b.0",
54
+ "@microsoft/metrics-ts": "0.0.8-alpha.4ac681117.0",
55
55
  "@types/chai": "^4.2.14",
56
56
  "@types/chai-as-promised": "^7.1.3",
57
57
  "@types/express": "^4.17.21",
@@ -107,8 +107,8 @@
107
107
  "@inquirer/core": "^5.1.2",
108
108
  "@inquirer/prompts": "^6.0.0",
109
109
  "@inquirer/type": "^1.1.5",
110
- "@microsoft/teamsfx-api": "0.23.9-alpha.2df64786b.0",
111
- "@microsoft/teamsfx-core": "3.0.5-alpha.2df64786b.0",
110
+ "@microsoft/teamsfx-api": "0.23.9-alpha.4ac681117.0",
111
+ "@microsoft/teamsfx-core": "3.0.5-alpha.4ac681117.0",
112
112
  "ansi-escapes": "^4.3.2",
113
113
  "applicationinsights": "^1.8.10",
114
114
  "async-mutex": "^0.3.1",
@@ -136,7 +136,7 @@
136
136
  "cli.js",
137
137
  "cli_teamsapp.js"
138
138
  ],
139
- "gitHead": "22f747ed9efafd6634a1e6fa7ed902284abee34b",
139
+ "gitHead": "619a978e3c92a7a4bdca8585346aa763ba594215",
140
140
  "publishConfig": {
141
141
  "access": "public"
142
142
  },
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- using bowsong080401botsso.Configuration;
1
+ using {{YOUR_NAMESPACE}}.Configuration;
2
2
  using Json.More;
3
3
  using Microsoft.Agents.Builder;
4
4
  using Microsoft.Agents.Builder.Dialogs;
@@ -1,4 +1,4 @@
1
- using bowsong080401botsso.Configuration;
1
+ using {{YOUR_NAMESPACE}}.Configuration;
2
2
  using Microsoft.Agents.Builder;
3
3
  using Microsoft.Graph;
4
4
  using Microsoft.Kiota.Abstractions.Authentication;
@@ -9,12 +9,11 @@ using Microsoft.Agents.Builder.Dialogs.Prompts;
9
9
  using Microsoft.Agents.Core.Models;
10
10
  using Microsoft.Agents.Extensions.Teams.Models;
11
11
  using Microsoft.Identity.Client;
12
- using Newtonsoft.Json.Linq;
13
12
  using System.Net;
14
13
  using System.Text.RegularExpressions;
15
14
  using System.IdentityModel.Tokens.Jwt;
16
- using bowsong080401botsso.Configuration;
17
- using bowsong080401botsso.SSO;
15
+ using {{YOUR_NAMESPACE}}.Configuration;
16
+ using {{YOUR_NAMESPACE}}.SSO;
18
17
  using System.Text.Json;
19
18
  using Json.More;
20
19
 
@@ -0,0 +1,41 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ using {{YOUR_NAMESPACE}}.Configuration;
5
+
6
+ namespace {{YOUR_NAMESPACE}}.SSO;
7
+
8
+ /// <summary>
9
+ /// Contains settings for an <see cref="TeamsBotSsoPrompt"/>.
10
+ /// </summary>
11
+ public class TeamsBotSsoPromptSettings
12
+ {
13
+
14
+ /// <summary>
15
+ /// Constructor of TeamsBotSsoPromptSettings
16
+ /// </summary>
17
+ public TeamsBotSsoPromptSettings(BotAuthenticationOptions botAuthOptions, string[] scopes, int timeout = 900000)
18
+ {
19
+ BotAuthOptions = botAuthOptions;
20
+ Scopes = scopes;
21
+ Timeout = timeout;
22
+ }
23
+
24
+ /// <summary>
25
+ /// Gets or sets the array of strings that declare the desired permissions and the resources requested.
26
+ /// </summary>
27
+ /// <value>The array of strings that declare the desired permissions and the resources requested.</value>
28
+ public string[] Scopes { get; set; }
29
+
30
+ /// <summary>
31
+ /// Gets or sets the number of milliseconds the prompt waits for the user to authenticate.
32
+ /// Default is 900,000 (15 minutes).
33
+ /// </summary>
34
+ /// <value>The number of milliseconds the prompt waits for the user to authenticate.</value>
35
+ public int Timeout { get; set; }
36
+
37
+ /// <summary>
38
+ /// Gets or sets bot related authentication options.
39
+ /// </summary>
40
+ public BotAuthenticationOptions BotAuthOptions { get; set; }
41
+ }