@@ -22,67 +22,45 @@ export const microsoftTeamsWebhookTrigger: TriggerConfig = {
2222 } ,
2323
2424 outputs : {
25- // Expose the raw Teams message payload at the root for direct access
26- id : { type : 'string' , description : 'Raw message ID' } ,
27- code : { type : 'string' , description : 'Code (nullable)' } ,
25+ // Top-level valid payloads only
2826 from : {
2927 id : { type : 'string' , description : 'Sender ID' } ,
3028 name : { type : 'string' , description : 'Sender name' } ,
31- role : { type : 'string' , description : 'Sender role (nullable)' } ,
3229 aadObjectId : { type : 'string' , description : 'AAD Object ID' } ,
3330 } ,
34- name : { type : 'string' , description : 'Top-level name (nullable)' } ,
35- text : { type : 'string' , description : 'Message HTML content' } ,
36- label : { type : 'string' , description : 'Label (nullable)' } ,
37- speak : { type : 'string' , description : 'Speak (nullable)' } ,
38- value : { type : 'string' , description : 'Value (nullable)' } ,
39- action : { type : 'string' , description : 'Action (nullable)' } ,
40- locale : { type : 'string' , description : 'Locale (e.g., en-US)' } ,
41- summary : { type : 'string' , description : 'Summary (nullable)' } ,
42- callerId : { type : 'string' , description : 'Caller ID' } ,
43- entities : { type : 'array' , description : 'Array of entities (clientInfo, ...)' } ,
44- channelId : { type : 'string' , description : 'Channel ID (msteams)' } ,
45- inputHint : { type : 'string' , description : 'Input hint (nullable)' } ,
46- listenFor : { type : 'string' , description : 'Listen for (nullable)' } ,
47- recipient : { type : 'string' , description : 'Recipient (nullable)' } ,
48- relatesTo : { type : 'string' , description : 'RelatesTo (nullable)' } ,
49- replyToId : { type : 'string' , description : 'Reply to ID (nullable)' } ,
50- timestamp : { type : 'string' , description : 'Timestamp' } ,
51- topicName : { type : 'string' , description : 'Topic name (nullable)' } ,
52- valueType : { type : 'string' , description : 'Value type (nullable)' } ,
53- expiration : { type : 'string' , description : 'Expiration (nullable)' } ,
54- importance : { type : 'string' , description : 'Importance (nullable)' } ,
55- serviceUrl : { type : 'string' , description : 'Service URL' } ,
56- textFormat : { type : 'string' , description : 'Text format (plain)' } ,
57- attachments : { type : 'array' , description : 'Array of attachments' } ,
58- channelData : {
59- team : { id : { type : 'string' , description : 'Team ID' } } ,
60- tenant : { id : { type : 'string' , description : 'Tenant ID' } } ,
61- channel : { id : { type : 'string' , description : 'Channel ID' } } ,
62- teamsTeamId : { type : 'string' , description : 'Teams team ID' } ,
63- teamsChannelId : { type : 'string' , description : 'Teams channel ID' } ,
31+ message : {
32+ raw : {
33+ attachments : { type : 'array' , description : 'Array of attachments' } ,
34+ channelData : {
35+ team : { id : { type : 'string' , description : 'Team ID' } } ,
36+ tenant : { id : { type : 'string' , description : 'Tenant ID' } } ,
37+ channel : { id : { type : 'string' , description : 'Channel ID' } } ,
38+ teamsTeamId : { type : 'string' , description : 'Teams team ID' } ,
39+ teamsChannelId : { type : 'string' , description : 'Teams channel ID' } ,
40+ } ,
41+ conversation : {
42+ id : { type : 'string' , description : 'Composite conversation ID' } ,
43+ name : { type : 'string' , description : 'Conversation name (nullable)' } ,
44+ isGroup : { type : 'boolean' , description : 'Is group conversation' } ,
45+ tenantId : { type : 'string' , description : 'Tenant ID' } ,
46+ aadObjectId : { type : 'string' , description : 'AAD Object ID (nullable)' } ,
47+ conversationType : { type : 'string' , description : 'Conversation type (channel)' } ,
48+ } ,
49+ text : { type : 'string' , description : 'Message text content' } ,
50+ messageType : { type : 'string' , description : 'Message type' } ,
51+ channelId : { type : 'string' , description : 'Channel ID (msteams)' } ,
52+ timestamp : { type : 'string' , description : 'Timestamp' } ,
53+ } ,
6454 } ,
55+ activity : { type : 'object' , description : 'Activity payload' } ,
6556 conversation : {
6657 id : { type : 'string' , description : 'Composite conversation ID' } ,
6758 name : { type : 'string' , description : 'Conversation name (nullable)' } ,
68- role : { type : 'string' , description : 'Conversation role (nullable)' } ,
6959 isGroup : { type : 'boolean' , description : 'Is group conversation' } ,
7060 tenantId : { type : 'string' , description : 'Tenant ID' } ,
7161 aadObjectId : { type : 'string' , description : 'AAD Object ID (nullable)' } ,
7262 conversationType : { type : 'string' , description : 'Conversation type (channel)' } ,
7363 } ,
74- deliveryMode : { type : 'string' , description : 'Delivery mode (nullable)' } ,
75- membersAdded : { type : 'array' , description : 'Members added (nullable)' } ,
76- localTimezone : { type : 'string' , description : 'Local timezone' } ,
77- localTimestamp : { type : 'string' , description : 'Local timestamp' } ,
78- membersRemoved : { type : 'array' , description : 'Members removed (nullable)' } ,
79- reactionsAdded : { type : 'array' , description : 'Reactions added (nullable)' } ,
80- semanticAction : { type : 'string' , description : 'Semantic action (nullable)' } ,
81- textHighlights : { type : 'string' , description : 'Text highlights (nullable)' } ,
82- attachmentLayout : { type : 'string' , description : 'Attachment layout (nullable)' } ,
83- historyDisclosed : { type : 'boolean' , description : 'History disclosed (nullable)' } ,
84- reactionsRemoved : { type : 'array' , description : 'Reactions removed (nullable)' } ,
85- suggestedActions : { type : 'string' , description : 'Suggested actions (nullable)' } ,
8664 } ,
8765
8866 instructions : [
0 commit comments