@microsoft/teams.api 0.2.13 → 2.0.0-preview.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/README.md +37 -37
- package/dist/activities/activity.js +1 -1
- package/dist/activities/activity.js.map +1 -1
- package/dist/activities/activity.mjs +1 -1
- package/dist/activities/activity.mjs.map +1 -1
- package/dist/activities/index.d.mts +1 -1
- package/dist/activities/index.d.ts +1 -1
- package/dist/activities/invoke/index.d.mts +1 -1
- package/dist/activities/invoke/index.d.ts +1 -1
- package/dist/activities/invoke/message-extension/fetch-task.d.mts +1 -1
- package/dist/activities/invoke/message-extension/fetch-task.d.ts +1 -1
- package/dist/activities/invoke/message-extension/index.d.mts +1 -1
- package/dist/activities/invoke/message-extension/index.d.ts +1 -1
- package/dist/activities/invoke/message-extension/submit-action.d.mts +1 -1
- package/dist/activities/invoke/message-extension/submit-action.d.ts +1 -1
- package/dist/activities/message/message.js.map +1 -1
- package/dist/activities/message/message.mjs.map +1 -1
- package/dist/activities/utils/index.d.mts +1 -1
- package/dist/activities/utils/index.d.ts +1 -1
- package/dist/activities/utils/to-activity-params.d.mts +1 -1
- package/dist/activities/utils/to-activity-params.d.ts +1 -1
- package/dist/activities/utils/to-activity-params.js +1 -1
- package/dist/activities/utils/to-activity-params.js.map +1 -1
- package/dist/activities/utils/to-activity-params.mjs +2 -2
- package/dist/activities/utils/to-activity-params.mjs.map +1 -1
- package/dist/{activity-BBGVkx41.d.ts → activity-CTQ0yu7i.d.ts} +2 -2
- package/dist/{activity-CszVnh5f.d.mts → activity-PjVFY4cx.d.mts} +2 -2
- package/dist/clients/bot/sign-in.js.map +1 -1
- package/dist/clients/bot/sign-in.mjs.map +1 -1
- package/dist/clients/bot/token.js.map +1 -1
- package/dist/clients/bot/token.mjs.map +1 -1
- package/dist/clients/conversation/activity.d.mts +1 -1
- package/dist/clients/conversation/activity.d.ts +1 -1
- package/dist/clients/conversation/activity.js.map +1 -1
- package/dist/clients/conversation/activity.mjs.map +1 -1
- package/dist/clients/conversation/index.d.mts +1 -1
- package/dist/clients/conversation/index.d.ts +1 -1
- package/dist/clients/conversation/index.js.map +1 -1
- package/dist/clients/conversation/index.mjs.map +1 -1
- package/dist/clients/index.d.mts +1 -1
- package/dist/clients/index.d.ts +1 -1
- package/dist/clients/index.js.map +1 -1
- package/dist/clients/index.mjs.map +1 -1
- package/dist/clients/user/token.js.map +1 -1
- package/dist/clients/user/token.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/models/activity-like.d.mts +1 -1
- package/dist/models/activity-like.d.ts +1 -1
- package/dist/models/adaptive-card/adaptive-card-action-response.d.mts +2 -2
- package/dist/models/adaptive-card/adaptive-card-action-response.d.ts +2 -2
- package/dist/models/attachment/card-attachment.d.mts +2 -2
- package/dist/models/attachment/card-attachment.d.ts +2 -2
- package/dist/models/attachment/card-attachment.js.map +1 -1
- package/dist/models/attachment/card-attachment.mjs.map +1 -1
- package/dist/models/index.d.mts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/invoke-response.d.mts +1 -1
- package/dist/models/invoke-response.d.ts +1 -1
- package/dist/models/messaging-extension/index.d.mts +1 -1
- package/dist/models/messaging-extension/index.d.ts +1 -1
- package/dist/models/messaging-extension/messaging-extension-action-response.d.mts +1 -1
- package/dist/models/messaging-extension/messaging-extension-action-response.d.ts +1 -1
- package/dist/models/messaging-extension/messaging-extension-action.d.mts +1 -1
- package/dist/models/messaging-extension/messaging-extension-action.d.ts +1 -1
- package/dist/models/messaging-extension/messaging-extension-response.d.mts +1 -1
- package/dist/models/messaging-extension/messaging-extension-response.d.ts +1 -1
- package/dist/models/messaging-extension/messaging-extension-result.d.mts +1 -1
- package/dist/models/messaging-extension/messaging-extension-result.d.ts +1 -1
- package/dist/models/task-module/index.d.mts +1 -1
- package/dist/models/task-module/index.d.ts +1 -1
- package/dist/models/task-module/task-module-task-info.d.mts +34 -14
- package/dist/models/task-module/task-module-task-info.d.ts +34 -14
- package/package.json +5 -6
|
@@ -4,7 +4,7 @@ export { MessagingExtensionResult, MessagingExtensionResultType } from './messag
|
|
|
4
4
|
export { MessagingExtensionSuggestedAction } from './messaging-extension-suggested-action.mjs';
|
|
5
5
|
export { MessagingExtensionParameter } from './messaging-extension-parameter.mjs';
|
|
6
6
|
export { MessagingExtensionQuery, MessagingExtensionQueryOptions } from './messaging-extension-query.mjs';
|
|
7
|
-
export { M as MessagingExtensionAction } from '../../activity-
|
|
7
|
+
export { M as MessagingExtensionAction } from '../../activity-PjVFY4cx.mjs';
|
|
8
8
|
export { MessagingExtensionActionResponse } from './messaging-extension-action-response.mjs';
|
|
9
9
|
import '../attachment/attachment.mjs';
|
|
10
10
|
import '../cache-info.mjs';
|
|
@@ -4,7 +4,7 @@ export { MessagingExtensionResult, MessagingExtensionResultType } from './messag
|
|
|
4
4
|
export { MessagingExtensionSuggestedAction } from './messaging-extension-suggested-action.js';
|
|
5
5
|
export { MessagingExtensionParameter } from './messaging-extension-parameter.js';
|
|
6
6
|
export { MessagingExtensionQuery, MessagingExtensionQueryOptions } from './messaging-extension-query.js';
|
|
7
|
-
export { M as MessagingExtensionAction } from '../../activity-
|
|
7
|
+
export { M as MessagingExtensionAction } from '../../activity-CTQ0yu7i.js';
|
|
8
8
|
export { MessagingExtensionActionResponse } from './messaging-extension-action-response.js';
|
|
9
9
|
import '../attachment/attachment.js';
|
|
10
10
|
import '../cache-info.js';
|
|
@@ -5,7 +5,7 @@ import { MessagingExtensionResult } from './messaging-extension-result.mjs';
|
|
|
5
5
|
import '../task-module/task-module-response-base.mjs';
|
|
6
6
|
import '../task-module/task-module-task-info.mjs';
|
|
7
7
|
import '../attachment/attachment.mjs';
|
|
8
|
-
import '../../activity-
|
|
8
|
+
import '../../activity-PjVFY4cx.mjs';
|
|
9
9
|
import '../../message-BM7D0_tg.mjs';
|
|
10
10
|
import '../account.mjs';
|
|
11
11
|
import '../role.mjs';
|
|
@@ -5,7 +5,7 @@ import { MessagingExtensionResult } from './messaging-extension-result.js';
|
|
|
5
5
|
import '../task-module/task-module-response-base.js';
|
|
6
6
|
import '../task-module/task-module-task-info.js';
|
|
7
7
|
import '../attachment/attachment.js';
|
|
8
|
-
import '../../activity-
|
|
8
|
+
import '../../activity-CTQ0yu7i.js';
|
|
9
9
|
import '../../message-BKfEV_tV.js';
|
|
10
10
|
import '../account.js';
|
|
11
11
|
import '../role.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as MessagingExtensionAction } from '../../activity-
|
|
1
|
+
export { M as MessagingExtensionAction } from '../../activity-PjVFY4cx.mjs';
|
|
2
2
|
import '../message/message.mjs';
|
|
3
3
|
import '../task-module/task-module-request.mjs';
|
|
4
4
|
import '../../message-BM7D0_tg.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as MessagingExtensionAction } from '../../activity-
|
|
1
|
+
export { M as MessagingExtensionAction } from '../../activity-CTQ0yu7i.js';
|
|
2
2
|
import '../message/message.js';
|
|
3
3
|
import '../task-module/task-module-request.js';
|
|
4
4
|
import '../../message-BKfEV_tV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CacheInfo } from '../cache-info.mjs';
|
|
2
2
|
import { MessagingExtensionResult } from './messaging-extension-result.mjs';
|
|
3
|
-
import '../../activity-
|
|
3
|
+
import '../../activity-PjVFY4cx.mjs';
|
|
4
4
|
import '../../message-BM7D0_tg.mjs';
|
|
5
5
|
import '../account.mjs';
|
|
6
6
|
import '../role.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CacheInfo } from '../cache-info.js';
|
|
2
2
|
import { MessagingExtensionResult } from './messaging-extension-result.js';
|
|
3
|
-
import '../../activity-
|
|
3
|
+
import '../../activity-CTQ0yu7i.js';
|
|
4
4
|
import '../../message-BKfEV_tV.js';
|
|
5
5
|
import '../account.js';
|
|
6
6
|
import '../role.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Activity } from '../../activity-
|
|
1
|
+
import { b as Activity } from '../../activity-PjVFY4cx.mjs';
|
|
2
2
|
import { AttachmentLayout } from '../attachment/attachment-layout.mjs';
|
|
3
3
|
import { MessagingExtensionAttachment } from './messaging-extension-attachment.mjs';
|
|
4
4
|
import { MessagingExtensionSuggestedAction } from './messaging-extension-suggested-action.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as Activity } from '../../activity-
|
|
1
|
+
import { b as Activity } from '../../activity-CTQ0yu7i.js';
|
|
2
2
|
import { AttachmentLayout } from '../attachment/attachment-layout.js';
|
|
3
3
|
import { MessagingExtensionAttachment } from './messaging-extension-attachment.js';
|
|
4
4
|
import { MessagingExtensionSuggestedAction } from './messaging-extension-suggested-action.js';
|
|
@@ -2,7 +2,7 @@ export { TaskModuleCardResponse } from './task-module-card-response.mjs';
|
|
|
2
2
|
export { TaskModuleContinueResponse } from './task-module-continue-response.mjs';
|
|
3
3
|
export { TaskModuleMessageResponse } from './task-module-message-response.mjs';
|
|
4
4
|
export { TaskModuleResponse } from './task-module-response.mjs';
|
|
5
|
-
export { TaskModuleTaskInfo } from './task-module-task-info.mjs';
|
|
5
|
+
export { BaseTaskModuleTaskInfo, CardTaskModuleTaskInfo, TaskModuleTaskInfo, UrlTaskModuleTaskInfo } from './task-module-task-info.mjs';
|
|
6
6
|
export { TaskModuleRequest, TaskModuleRequestContext } from './task-module-request.mjs';
|
|
7
7
|
import './task-module-response-base.mjs';
|
|
8
8
|
import '../cache-info.mjs';
|
|
@@ -2,7 +2,7 @@ export { TaskModuleCardResponse } from './task-module-card-response.js';
|
|
|
2
2
|
export { TaskModuleContinueResponse } from './task-module-continue-response.js';
|
|
3
3
|
export { TaskModuleMessageResponse } from './task-module-message-response.js';
|
|
4
4
|
export { TaskModuleResponse } from './task-module-response.js';
|
|
5
|
-
export { TaskModuleTaskInfo } from './task-module-task-info.js';
|
|
5
|
+
export { BaseTaskModuleTaskInfo, CardTaskModuleTaskInfo, TaskModuleTaskInfo, UrlTaskModuleTaskInfo } from './task-module-task-info.js';
|
|
6
6
|
export { TaskModuleRequest, TaskModuleRequestContext } from './task-module-request.js';
|
|
7
7
|
import './task-module-response-base.js';
|
|
8
8
|
import '../cache-info.js';
|
|
@@ -2,11 +2,10 @@ import { Attachment } from '../attachment/attachment.mjs';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* An interface representing
|
|
6
|
-
* Metadata for a Task Module.
|
|
5
|
+
* An interface representing BaseTaskModuleTaskInfo.
|
|
7
6
|
*
|
|
8
7
|
*/
|
|
9
|
-
type
|
|
8
|
+
type BaseTaskModuleTaskInfo = {
|
|
10
9
|
/**
|
|
11
10
|
* @member {string} [title] Appears below the app name and to the right of
|
|
12
11
|
* the app icon.
|
|
@@ -22,16 +21,6 @@ type TaskModuleTaskInfo = {
|
|
|
22
21
|
* width in pixels, or a string, one of: small, medium, large.
|
|
23
22
|
*/
|
|
24
23
|
width?: number | 'small' | 'medium' | 'large';
|
|
25
|
-
/**
|
|
26
|
-
* @member {string} [url] The URL of what is loaded as an iframe inside the
|
|
27
|
-
* task module. One of url or card is required.
|
|
28
|
-
*/
|
|
29
|
-
url?: string;
|
|
30
|
-
/**
|
|
31
|
-
* @member {Attachment} [card] The JSON for the Adaptive card to appear in
|
|
32
|
-
* the task module.
|
|
33
|
-
*/
|
|
34
|
-
card?: Attachment;
|
|
35
24
|
/**
|
|
36
25
|
* @member {string} [fallbackUrl] If a client does not support the task
|
|
37
26
|
* module feature, this URL is opened in a browser tab.
|
|
@@ -43,5 +32,36 @@ type TaskModuleTaskInfo = {
|
|
|
43
32
|
*/
|
|
44
33
|
completionBotId?: string;
|
|
45
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* An interface representing CardTaskModuleTaskInfo.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
type CardTaskModuleTaskInfo = BaseTaskModuleTaskInfo & {
|
|
41
|
+
/**
|
|
42
|
+
* @member {Attachment} [card] The JSON for the Adaptive card to appear in
|
|
43
|
+
* the task module.
|
|
44
|
+
*/
|
|
45
|
+
card: Attachment;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* An interface representing UrlTaskModuleTaskInfo.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
type UrlTaskModuleTaskInfo = BaseTaskModuleTaskInfo & {
|
|
53
|
+
/**
|
|
54
|
+
* @member {string} [url] The URL of what is loaded as an iframe inside the
|
|
55
|
+
* task module.
|
|
56
|
+
*/
|
|
57
|
+
url: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* An interface representing TaskModuleTaskInfo.
|
|
62
|
+
* Metadata for a Task Module.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
type TaskModuleTaskInfo = CardTaskModuleTaskInfo | UrlTaskModuleTaskInfo;
|
|
46
66
|
|
|
47
|
-
export type { TaskModuleTaskInfo };
|
|
67
|
+
export type { BaseTaskModuleTaskInfo, CardTaskModuleTaskInfo, TaskModuleTaskInfo, UrlTaskModuleTaskInfo };
|
|
@@ -2,11 +2,10 @@ import { Attachment } from '../attachment/attachment.js';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* An interface representing
|
|
6
|
-
* Metadata for a Task Module.
|
|
5
|
+
* An interface representing BaseTaskModuleTaskInfo.
|
|
7
6
|
*
|
|
8
7
|
*/
|
|
9
|
-
type
|
|
8
|
+
type BaseTaskModuleTaskInfo = {
|
|
10
9
|
/**
|
|
11
10
|
* @member {string} [title] Appears below the app name and to the right of
|
|
12
11
|
* the app icon.
|
|
@@ -22,16 +21,6 @@ type TaskModuleTaskInfo = {
|
|
|
22
21
|
* width in pixels, or a string, one of: small, medium, large.
|
|
23
22
|
*/
|
|
24
23
|
width?: number | 'small' | 'medium' | 'large';
|
|
25
|
-
/**
|
|
26
|
-
* @member {string} [url] The URL of what is loaded as an iframe inside the
|
|
27
|
-
* task module. One of url or card is required.
|
|
28
|
-
*/
|
|
29
|
-
url?: string;
|
|
30
|
-
/**
|
|
31
|
-
* @member {Attachment} [card] The JSON for the Adaptive card to appear in
|
|
32
|
-
* the task module.
|
|
33
|
-
*/
|
|
34
|
-
card?: Attachment;
|
|
35
24
|
/**
|
|
36
25
|
* @member {string} [fallbackUrl] If a client does not support the task
|
|
37
26
|
* module feature, this URL is opened in a browser tab.
|
|
@@ -43,5 +32,36 @@ type TaskModuleTaskInfo = {
|
|
|
43
32
|
*/
|
|
44
33
|
completionBotId?: string;
|
|
45
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* An interface representing CardTaskModuleTaskInfo.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
type CardTaskModuleTaskInfo = BaseTaskModuleTaskInfo & {
|
|
41
|
+
/**
|
|
42
|
+
* @member {Attachment} [card] The JSON for the Adaptive card to appear in
|
|
43
|
+
* the task module.
|
|
44
|
+
*/
|
|
45
|
+
card: Attachment;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* An interface representing UrlTaskModuleTaskInfo.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
type UrlTaskModuleTaskInfo = BaseTaskModuleTaskInfo & {
|
|
53
|
+
/**
|
|
54
|
+
* @member {string} [url] The URL of what is loaded as an iframe inside the
|
|
55
|
+
* task module.
|
|
56
|
+
*/
|
|
57
|
+
url: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* An interface representing TaskModuleTaskInfo.
|
|
62
|
+
* Metadata for a Task Module.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
type TaskModuleTaskInfo = CardTaskModuleTaskInfo | UrlTaskModuleTaskInfo;
|
|
46
66
|
|
|
47
|
-
export type { TaskModuleTaskInfo };
|
|
67
|
+
export type { BaseTaskModuleTaskInfo, CardTaskModuleTaskInfo, TaskModuleTaskInfo, UrlTaskModuleTaskInfo };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teams.api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0-preview.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -32,19 +32,18 @@
|
|
|
32
32
|
"lint": "npx eslint",
|
|
33
33
|
"lint:fix": "npx eslint --fix",
|
|
34
34
|
"build": "npx tsup",
|
|
35
|
-
"test": "npx jest"
|
|
36
|
-
"fmt": "npx prettier --write \"**/*.{js,ts,tsx,md,json}\""
|
|
35
|
+
"test": "npx jest"
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"jwt-decode": "^4.0.0",
|
|
40
39
|
"qs": "^6.13.0"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
|
-
"@microsoft/teams.cards": "
|
|
44
|
-
"@microsoft/teams.common": "
|
|
42
|
+
"@microsoft/teams.cards": "2.0.0-preview.0",
|
|
43
|
+
"@microsoft/teams.common": "2.0.0-preview.0"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@microsoft/teams.config": "
|
|
46
|
+
"@microsoft/teams.config": "2.0.0-preview.0",
|
|
48
47
|
"@types/jest": "^29.5.12",
|
|
49
48
|
"@types/jsonwebtoken": "^9.0.7",
|
|
50
49
|
"@types/qs": "^6.9.15",
|