@microsoft/teamsfx 0.6.3-alpha.81c48cbfc.0 → 0.6.3-alpha.85a816c65.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": "0.6.3-alpha.81c48cbfc.0",
3
+ "version": "0.6.3-alpha.85a816c65.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.81c48cbfc.0",
52
+ "@microsoft/adaptivecards-tools": "0.1.6-alpha.85a816c65.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": "beaf1554f569dfa1ab220f6f89066200c2e0dc6e",
131
+ "gitHead": "f4a4b3e23eb647a3ad203c6a65ecb1c3421830dd",
132
132
  "publishConfig": {
133
133
  "access": "public"
134
134
  },
@@ -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
  /**