@microsoft/teams.api 2.0.3 → 2.0.4

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.
@@ -7,7 +7,6 @@ type Credentials = ClientCredentials | TokenCredentials | UserManagedIdentityCre
7
7
  * of an app via `clientId` and `clientSecret`
8
8
  */
9
9
  type ClientCredentials = {
10
- type: 'clientSecret';
11
10
  readonly clientId: string;
12
11
  readonly clientSecret: string;
13
12
  readonly tenantId?: string;
@@ -17,7 +16,6 @@ type ClientCredentials = {
17
16
  * of an app via any external auth method
18
17
  */
19
18
  type TokenCredentials = {
20
- type: 'token';
21
19
  readonly clientId: string;
22
20
  readonly tenantId?: string;
23
21
  readonly token: (scope: string | string[], tenantId?: string) => string | Promise<string>;
@@ -26,7 +24,6 @@ type TokenCredentials = {
26
24
  * credentials for user managed identity
27
25
  */
28
26
  type UserManagedIdentityCredentials = {
29
- type: 'userManagedIdentity';
30
27
  readonly clientId: string;
31
28
  readonly tenantId?: string;
32
29
  };
@@ -34,13 +31,11 @@ type UserManagedIdentityCredentials = {
34
31
  * credentials for fedrated identity credentials
35
32
  */
36
33
  type SystemFederatedIdentityCredentials = {
37
- type: 'federatedIdentityCredentials';
38
34
  readonly clientId: string;
39
35
  readonly managedIdentityType: 'system';
40
36
  readonly tenantId?: string;
41
37
  };
42
38
  type UserFederatedIdentityCredentials = {
43
- type: 'federatedIdentityCredentials';
44
39
  readonly clientId: string;
45
40
  readonly managedIdentityClientId: string;
46
41
  readonly managedIdentityType: 'user';
@@ -7,7 +7,6 @@ type Credentials = ClientCredentials | TokenCredentials | UserManagedIdentityCre
7
7
  * of an app via `clientId` and `clientSecret`
8
8
  */
9
9
  type ClientCredentials = {
10
- type: 'clientSecret';
11
10
  readonly clientId: string;
12
11
  readonly clientSecret: string;
13
12
  readonly tenantId?: string;
@@ -17,7 +16,6 @@ type ClientCredentials = {
17
16
  * of an app via any external auth method
18
17
  */
19
18
  type TokenCredentials = {
20
- type: 'token';
21
19
  readonly clientId: string;
22
20
  readonly tenantId?: string;
23
21
  readonly token: (scope: string | string[], tenantId?: string) => string | Promise<string>;
@@ -26,7 +24,6 @@ type TokenCredentials = {
26
24
  * credentials for user managed identity
27
25
  */
28
26
  type UserManagedIdentityCredentials = {
29
- type: 'userManagedIdentity';
30
27
  readonly clientId: string;
31
28
  readonly tenantId?: string;
32
29
  };
@@ -34,13 +31,11 @@ type UserManagedIdentityCredentials = {
34
31
  * credentials for fedrated identity credentials
35
32
  */
36
33
  type SystemFederatedIdentityCredentials = {
37
- type: 'federatedIdentityCredentials';
38
34
  readonly clientId: string;
39
35
  readonly managedIdentityType: 'system';
40
36
  readonly tenantId?: string;
41
37
  };
42
38
  type UserFederatedIdentityCredentials = {
43
- type: 'federatedIdentityCredentials';
44
39
  readonly clientId: string;
45
40
  readonly managedIdentityClientId: string;
46
41
  readonly managedIdentityType: 'user';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teams.api",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -39,11 +39,11 @@
39
39
  "qs": "^6.13.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@microsoft/teams.cards": "2.0.3",
43
- "@microsoft/teams.common": "2.0.3"
42
+ "@microsoft/teams.cards": "2.0.4",
43
+ "@microsoft/teams.common": "2.0.4"
44
44
  },
45
45
  "devDependencies": {
46
- "@microsoft/teams.config": "2.0.3",
46
+ "@microsoft/teams.config": "2.0.4",
47
47
  "@types/jest": "^29.5.12",
48
48
  "@types/jsonwebtoken": "^9.0.7",
49
49
  "@types/qs": "^6.9.15",