@microsoft/teamsfx 3.0.3-alpha.ef180c1c1.0 → 4.0.0-alpha.38bb5b8fc.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 +1 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +2 -2
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +1 -1
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/types/teamsfx.d.ts +66 -55
- package/package.json +9 -9
package/dist/types/teamsfx.d.ts
CHANGED
@@ -1,40 +1,39 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
|
3
3
|
import { AccessToken } from '@azure/identity';
|
4
|
-
import { Activity } from '
|
5
|
-
import {
|
4
|
+
import { Activity } from '@microsoft/agents-activity';
|
5
|
+
import { AgentStatePropertyAccessor } from '@microsoft/agents-hosting';
|
6
|
+
import { Attachment } from '@microsoft/agents-activity';
|
7
|
+
import { AuthConfiguration } from '@microsoft/agents-hosting';
|
6
8
|
import { AxiosInstance } from 'axios';
|
7
9
|
import { AxiosRequestConfig } from 'axios';
|
8
|
-
import { CardAction } from '
|
9
|
-
import { CardImage } from '
|
10
|
-
import { ChannelInfo } from '
|
11
|
-
import { CloudAdapter } from '
|
12
|
-
import { ComponentDialog } from '
|
13
|
-
import { ConversationReference } from '
|
14
|
-
import { ConversationState } from '
|
15
|
-
import { Dialog } from '
|
16
|
-
import { DialogContext } from '
|
17
|
-
import { DialogTurnResult } from '
|
10
|
+
import { CardAction } from '@microsoft/agents-activity';
|
11
|
+
import { CardImage } from '@microsoft/agents-hosting';
|
12
|
+
import { ChannelInfo } from '@microsoft/agents-hosting-teams';
|
13
|
+
import { CloudAdapter } from '@microsoft/agents-hosting';
|
14
|
+
import { ComponentDialog } from '@microsoft/agents-hosting-dialogs';
|
15
|
+
import { ConversationReference } from '@microsoft/agents-activity';
|
16
|
+
import { ConversationState } from '@microsoft/agents-hosting';
|
17
|
+
import { Dialog } from '@microsoft/agents-hosting-dialogs';
|
18
|
+
import { DialogContext } from '@microsoft/agents-hosting-dialogs';
|
19
|
+
import { DialogTurnResult } from '@microsoft/agents-hosting-dialogs';
|
18
20
|
import { GetTokenOptions } from '@azure/identity';
|
19
|
-
import { HeroCard } from '
|
20
|
-
import { InvokeResponse } from '
|
21
|
-
import { MessagingExtensionResponse } from '
|
22
|
-
import { O365ConnectorCard } from '
|
23
|
-
import { ReceiptCard } from '
|
24
|
-
import { Request as Request_2 } from '
|
25
|
-
import { Response as Response_2 } from 'botbuilder';
|
21
|
+
import { HeroCard } from '@microsoft/agents-hosting';
|
22
|
+
import { InvokeResponse } from '@microsoft/agents-hosting';
|
23
|
+
import { MessagingExtensionResponse } from '@microsoft/agents-hosting-teams';
|
24
|
+
import { O365ConnectorCard } from '@microsoft/agents-hosting';
|
25
|
+
import { ReceiptCard } from '@microsoft/agents-hosting';
|
26
|
+
import { Request as Request_2 } from '@microsoft/agents-hosting';
|
26
27
|
import { SecureContextOptions } from 'tls';
|
27
|
-
import { SigninStateVerificationQuery } from '
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
32
|
-
import {
|
33
|
-
import { ThumbnailCard } from 'botbuilder';
|
28
|
+
import { SigninStateVerificationQuery } from '@microsoft/agents-hosting-teams';
|
29
|
+
import { StatusCodes } from '@microsoft/agents-hosting';
|
30
|
+
import { Storage as Storage_2 } from '@microsoft/agents-hosting';
|
31
|
+
import { TeamDetails } from '@microsoft/agents-hosting-teams';
|
32
|
+
import { TeamsChannelAccount } from '@microsoft/agents-hosting-teams';
|
33
|
+
import { ThumbnailCard } from '@microsoft/agents-hosting';
|
34
34
|
import { TokenCredential } from '@azure/identity';
|
35
|
-
import {
|
36
|
-
import {
|
37
|
-
import { UserState } from 'botbuilder';
|
35
|
+
import { TurnContext } from '@microsoft/agents-hosting';
|
36
|
+
import { UserState } from '@microsoft/agents-hosting';
|
38
37
|
|
39
38
|
/**
|
40
39
|
* Options used to control how the response card will be sent to users.
|
@@ -54,6 +53,25 @@ export declare enum AdaptiveCardResponse {
|
|
54
53
|
NewForAll = 2
|
55
54
|
}
|
56
55
|
|
56
|
+
declare namespace AgentBuilderCloudAdapter {
|
57
|
+
export {
|
58
|
+
ConversationOptions,
|
59
|
+
NotificationOptions_2 as NotificationOptions,
|
60
|
+
ConversationBot,
|
61
|
+
BotSsoExecutionDialog,
|
62
|
+
Channel,
|
63
|
+
Member,
|
64
|
+
NotificationBot,
|
65
|
+
sendAdaptiveCard,
|
66
|
+
sendMessage,
|
67
|
+
TeamsBotInstallation,
|
68
|
+
SearchScope,
|
69
|
+
CommandBot,
|
70
|
+
CardActionBot
|
71
|
+
}
|
72
|
+
}
|
73
|
+
export { AgentBuilderCloudAdapter }
|
74
|
+
|
57
75
|
/**
|
58
76
|
* Define available location for API Key location
|
59
77
|
*/
|
@@ -231,25 +249,6 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
231
249
|
AddAuthenticationInfo(config: AxiosRequestConfig): Promise<AxiosRequestConfig>;
|
232
250
|
}
|
233
251
|
|
234
|
-
declare namespace BotBuilderCloudAdapter {
|
235
|
-
export {
|
236
|
-
ConversationOptions,
|
237
|
-
NotificationOptions_2 as NotificationOptions,
|
238
|
-
ConversationBot,
|
239
|
-
BotSsoExecutionDialog,
|
240
|
-
Channel,
|
241
|
-
Member,
|
242
|
-
NotificationBot,
|
243
|
-
sendAdaptiveCard,
|
244
|
-
sendMessage,
|
245
|
-
TeamsBotInstallation,
|
246
|
-
SearchScope,
|
247
|
-
CommandBot,
|
248
|
-
CardActionBot
|
249
|
-
}
|
250
|
-
}
|
251
|
-
export { BotBuilderCloudAdapter }
|
252
|
-
|
253
252
|
/**
|
254
253
|
* Interface for SSO configuration for Bot SSO
|
255
254
|
*/
|
@@ -389,7 +388,7 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
389
388
|
* @param context The context object for the current turn.
|
390
389
|
* @param accessor The instance of StatePropertyAccessor for dialog system.
|
391
390
|
*/
|
392
|
-
run(context: TurnContext, accessor:
|
391
|
+
run(context: TurnContext, accessor: AgentStatePropertyAccessor): Promise<void>;
|
393
392
|
private getActivityText;
|
394
393
|
private commandRouteStep;
|
395
394
|
private ssoStep;
|
@@ -724,7 +723,7 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
724
723
|
* });
|
725
724
|
* ```
|
726
725
|
*/
|
727
|
-
requestHandler(req: Request_2, res:
|
726
|
+
requestHandler(req: Request_2, res: any, logic?: (context: TurnContext) => Promise<any>): Promise<void>;
|
728
727
|
}
|
729
728
|
|
730
729
|
/**
|
@@ -746,9 +745,7 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
746
745
|
* @remarks
|
747
746
|
* If neither `adapter` nor `adapterConfig` is provided, will use BOT_ID and BOT_PASSWORD from environment variables.
|
748
747
|
*/
|
749
|
-
adapterConfig?:
|
750
|
-
[key: string]: unknown;
|
751
|
-
};
|
748
|
+
adapterConfig?: AuthConfiguration;
|
752
749
|
/**
|
753
750
|
* Configurations for sso command bot
|
754
751
|
*/
|
@@ -1334,7 +1331,7 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
1334
1331
|
/**
|
1335
1332
|
* Token response provided by Teams Bot SSO prompt
|
1336
1333
|
*/
|
1337
|
-
export declare interface MessageExtensionTokenResponse
|
1334
|
+
export declare interface MessageExtensionTokenResponse {
|
1338
1335
|
/**
|
1339
1336
|
* SSO token for user
|
1340
1337
|
*/
|
@@ -1343,6 +1340,13 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
1343
1340
|
* Expire time of SSO token
|
1344
1341
|
*/
|
1345
1342
|
ssoTokenExpiration: string;
|
1343
|
+
channelId?: string;
|
1344
|
+
connectionName: string;
|
1345
|
+
expiration: string;
|
1346
|
+
properties?: {
|
1347
|
+
[propertyName: string]: any;
|
1348
|
+
};
|
1349
|
+
token: string;
|
1346
1350
|
}
|
1347
1351
|
|
1348
1352
|
/**
|
@@ -1999,7 +2003,7 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
1999
2003
|
/**
|
2000
2004
|
* Token response provided by Teams Bot SSO prompt
|
2001
2005
|
*/
|
2002
|
-
export declare interface TeamsBotSsoPromptTokenResponse
|
2006
|
+
export declare interface TeamsBotSsoPromptTokenResponse {
|
2003
2007
|
/**
|
2004
2008
|
* SSO token for user
|
2005
2009
|
*/
|
@@ -2008,6 +2012,13 @@ export declare class ApiKeyProvider implements AuthProvider {
|
|
2008
2012
|
* Expire time of SSO token
|
2009
2013
|
*/
|
2010
2014
|
ssoTokenExpiration: string;
|
2015
|
+
channelId?: string;
|
2016
|
+
connectionName: string;
|
2017
|
+
expiration: string;
|
2018
|
+
properties?: {
|
2019
|
+
[propertyName: string]: any;
|
2020
|
+
};
|
2021
|
+
token: string;
|
2011
2022
|
}
|
2012
2023
|
|
2013
2024
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@microsoft/teamsfx",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0-alpha.38bb5b8fc.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,6 +18,7 @@
|
|
18
18
|
"test": "npm run test:unit && npm run test:e2e",
|
19
19
|
"test:unit:browser": "karma start --single-run --unit",
|
20
20
|
"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",
|
21
|
+
"test:unit:node2": "nyc --no-clean -- mocha \"test/unit/node/bot/teamsBotSsoPrompt.spec.ts\" --file src/index.ts -r config/mocha.env.ts --config config/mocharc.node.js",
|
21
22
|
"test:unit": "npm run test:unit:node && npm run test:unit:browser ",
|
22
23
|
"test:e2e:browser": "karma start --single-run --integration",
|
23
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",
|
@@ -48,19 +49,19 @@
|
|
48
49
|
"@azure/identity": "^4.4.1",
|
49
50
|
"@azure/msal-browser": "^3.24.0",
|
50
51
|
"@azure/msal-node": "^2.14.0",
|
52
|
+
"@microsoft/agents-activity": "0.2.14",
|
53
|
+
"@microsoft/agents-hosting": "0.2.14",
|
54
|
+
"@microsoft/agents-hosting-dialogs": "0.2.14",
|
55
|
+
"@microsoft/agents-hosting-teams": "0.2.14",
|
51
56
|
"adaptive-expressions": "^4.23.1",
|
52
57
|
"adaptivecards-templating": "^2.3.1",
|
53
58
|
"axios": "^1.8.3",
|
54
|
-
"botbuilder": "^4.23.2",
|
55
|
-
"botbuilder-dialogs": "^4.23.2",
|
56
|
-
"botframework-connector": "^4.23.2",
|
57
|
-
"botframework-schema": "^4.23.2",
|
58
59
|
"jwt-decode": "^4.0.0",
|
59
60
|
"uuid": "^10.0.0"
|
60
61
|
},
|
61
62
|
"peerDependencies": {
|
62
|
-
"@microsoft/
|
63
|
-
"
|
63
|
+
"@microsoft/agents-activity": "0.2.14",
|
64
|
+
"@microsoft/teams-js": "^2.31.1"
|
64
65
|
},
|
65
66
|
"devDependencies": {
|
66
67
|
"@azure/core-auth": "^1.8.0",
|
@@ -87,7 +88,6 @@
|
|
87
88
|
"adm-zip": "^0.5.9",
|
88
89
|
"assertion-error": "^2.0.0",
|
89
90
|
"axios-mock-adapter": "^1.20.0",
|
90
|
-
"botbuilder-core": "^4.23.2",
|
91
91
|
"chai": "^4.3.4",
|
92
92
|
"chai-as-promised": "^7.1.1",
|
93
93
|
"check-error": "^2.0.0",
|
@@ -140,7 +140,7 @@
|
|
140
140
|
"webpack": "^5.62.1",
|
141
141
|
"yargs": "^17.2.1"
|
142
142
|
},
|
143
|
-
"gitHead": "
|
143
|
+
"gitHead": "1640c7580b4a0ddb5113305d82a79e700e5c830f",
|
144
144
|
"publishConfig": {
|
145
145
|
"access": "public"
|
146
146
|
},
|