@microsoft/teamsfx 0.6.3-alpha.81c48cbfc.0 → 0.6.3-alpha.f018de6e6.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 +64 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +72 -12
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +66 -2
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +74 -10
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +3 -3
- package/types/teamsfx.d.ts +49 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx",
|
|
3
|
-
"version": "0.6.3-alpha.
|
|
3
|
+
"version": "0.6.3-alpha.f018de6e6.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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@azure/identity": "^2.0.1",
|
|
50
50
|
"@azure/msal-browser": "^2.21.0",
|
|
51
51
|
"@azure/msal-node": "~1.1.0",
|
|
52
|
-
"@microsoft/adaptivecards-tools": "0.1.6-alpha.
|
|
52
|
+
"@microsoft/adaptivecards-tools": "0.1.6-alpha.f018de6e6.0",
|
|
53
53
|
"@microsoft/microsoft-graph-client": "^3.0.1",
|
|
54
54
|
"axios": "^0.24.0",
|
|
55
55
|
"botbuilder": ">=4.15.0 <5.0.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"webpack": "^5.62.1",
|
|
129
129
|
"yargs": "^17.2.1"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "cc81b1df06bbd41ac18552573c1dfe374b7bed93",
|
|
132
132
|
"publishConfig": {
|
|
133
133
|
"access": "public"
|
|
134
134
|
},
|
package/types/teamsfx.d.ts
CHANGED
|
@@ -162,6 +162,39 @@ export declare interface AuthProvider {
|
|
|
162
162
|
AddAuthenticationInfo: (config: AxiosRequestConfig) => Promise<AxiosRequestConfig>;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
export { AxiosInstance }
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Provider that handles Basic authentication
|
|
169
|
+
*
|
|
170
|
+
* @beta
|
|
171
|
+
*/
|
|
172
|
+
export declare class BasicAuthProvider implements AuthProvider {
|
|
173
|
+
private userName;
|
|
174
|
+
private password;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @param userName - Username used in basic auth
|
|
178
|
+
* @param password - Password used in basic auth
|
|
179
|
+
*
|
|
180
|
+
* @beta
|
|
181
|
+
*/
|
|
182
|
+
constructor(userName: string, password: string);
|
|
183
|
+
/**
|
|
184
|
+
* Adds authentication info to http requests
|
|
185
|
+
*
|
|
186
|
+
* @param config - Contains all the request information and can be updated to include extra authentication info.
|
|
187
|
+
* Refer https://axios-http.com/docs/req_config for detailed document.
|
|
188
|
+
*
|
|
189
|
+
* @returns Updated axios request config.
|
|
190
|
+
*
|
|
191
|
+
* @throws {@link ErrorCode|AuthorizationInfoAlreadyExists} - when Authorization header or auth property already exists in request configuration.
|
|
192
|
+
*
|
|
193
|
+
* @beta
|
|
194
|
+
*/
|
|
195
|
+
AddAuthenticationInfo(config: AxiosRequestConfig): Promise<AxiosRequestConfig>;
|
|
196
|
+
}
|
|
197
|
+
|
|
165
198
|
/**
|
|
166
199
|
* Provider that handles Bearer Token authentication
|
|
167
200
|
*
|
|
@@ -181,6 +214,10 @@ export declare class BearerTokenAuthProvider implements AuthProvider {
|
|
|
181
214
|
* @param config - Contains all the request information and can be updated to include extra authentication info.
|
|
182
215
|
* Refer https://axios-http.com/docs/req_config for detailed document.
|
|
183
216
|
*
|
|
217
|
+
* @returns Updated axios request config.
|
|
218
|
+
*
|
|
219
|
+
* @throws {@link ErrorCode|AuthorizationInfoAlreadyExists} - when Authorization header already exists in request configuration.
|
|
220
|
+
*
|
|
184
221
|
* @beta
|
|
185
222
|
*/
|
|
186
223
|
AddAuthenticationInfo(config: AxiosRequestConfig): Promise<AxiosRequestConfig>;
|
|
@@ -663,7 +700,11 @@ export declare function createMicrosoftGraphClient(teamsfx: TeamsFxConfiguration
|
|
|
663
700
|
/**
|
|
664
701
|
* Identity type error.
|
|
665
702
|
*/
|
|
666
|
-
IdentityTypeNotSupported = "IdentityTypeNotSupported"
|
|
703
|
+
IdentityTypeNotSupported = "IdentityTypeNotSupported",
|
|
704
|
+
/**
|
|
705
|
+
* Authentication info already exists error.
|
|
706
|
+
*/
|
|
707
|
+
AuthorizationInfoAlreadyExists = "AuthorizationInfoAlreadyExists"
|
|
667
708
|
}
|
|
668
709
|
|
|
669
710
|
/**
|
|
@@ -854,8 +895,8 @@ export declare function createMicrosoftGraphClient(teamsfx: TeamsFxConfiguration
|
|
|
854
895
|
/**
|
|
855
896
|
* Build a bot message activity attached with adaptive card.
|
|
856
897
|
*
|
|
857
|
-
* @param getCardData Function to prepare your card data.
|
|
858
898
|
* @param cardTemplate The adaptive card template.
|
|
899
|
+
* @param data card data used to render the template.
|
|
859
900
|
* @returns A bot message activity attached with an adaptive card.
|
|
860
901
|
*
|
|
861
902
|
* @example
|
|
@@ -880,16 +921,16 @@ export declare function createMicrosoftGraphClient(teamsfx: TeamsFxConfiguration
|
|
|
880
921
|
* title: string,
|
|
881
922
|
* description: string
|
|
882
923
|
* };
|
|
883
|
-
* const card = MessageBuilder.attachAdaptiveCard<CardData>(
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
924
|
+
* const card = MessageBuilder.attachAdaptiveCard<CardData>(
|
|
925
|
+
* cardTemplate, {
|
|
926
|
+
* title: "sample card title",
|
|
927
|
+
* description: "sample card description"
|
|
928
|
+
* });
|
|
888
929
|
* ```
|
|
889
930
|
*
|
|
890
931
|
* @beta
|
|
891
932
|
*/
|
|
892
|
-
static attachAdaptiveCard<TData>(
|
|
933
|
+
static attachAdaptiveCard<TData>(cardTemplate: any, data: TData): Partial<Activity_2>;
|
|
893
934
|
/**
|
|
894
935
|
* Build a bot message activity attached with an adaptive card.
|
|
895
936
|
*
|