@microsoft/agents-hosting-extensions-teams 0.5.1-g2e246ff274
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/src/activity-extensions/channelInfo.d.ts +38 -0
- package/dist/src/activity-extensions/channelInfo.js +17 -0
- package/dist/src/activity-extensions/channelInfo.js.map +1 -0
- package/dist/src/activity-extensions/index.d.ts +15 -0
- package/dist/src/activity-extensions/index.js +25 -0
- package/dist/src/activity-extensions/index.js.map +1 -0
- package/dist/src/activity-extensions/notificationInfo.d.ts +38 -0
- package/dist/src/activity-extensions/notificationInfo.js +17 -0
- package/dist/src/activity-extensions/notificationInfo.js.map +1 -0
- package/dist/src/activity-extensions/onBehalfOf.d.ts +45 -0
- package/dist/src/activity-extensions/onBehalfOf.js +18 -0
- package/dist/src/activity-extensions/onBehalfOf.js.map +1 -0
- package/dist/src/activity-extensions/teamInfo.d.ts +38 -0
- package/dist/src/activity-extensions/teamInfo.js +17 -0
- package/dist/src/activity-extensions/teamInfo.js.map +1 -0
- package/dist/src/activity-extensions/teamsChannelAccount.d.ts +34 -0
- package/dist/src/activity-extensions/teamsChannelAccount.js +7 -0
- package/dist/src/activity-extensions/teamsChannelAccount.js.map +1 -0
- package/dist/src/activity-extensions/teamsChannelData.d.ts +230 -0
- package/dist/src/activity-extensions/teamsChannelData.js +39 -0
- package/dist/src/activity-extensions/teamsChannelData.js.map +1 -0
- package/dist/src/activity-extensions/teamsChannelDataParser.d.ts +12 -0
- package/dist/src/activity-extensions/teamsChannelDataParser.js +19 -0
- package/dist/src/activity-extensions/teamsChannelDataParser.js.map +1 -0
- package/dist/src/activity-extensions/teamsChannelDataSettings.d.ts +49 -0
- package/dist/src/activity-extensions/teamsChannelDataSettings.js +16 -0
- package/dist/src/activity-extensions/teamsChannelDataSettings.js.map +1 -0
- package/dist/src/activity-extensions/teamsConversationUpdateEvents.d.ts +58 -0
- package/dist/src/activity-extensions/teamsConversationUpdateEvents.js +7 -0
- package/dist/src/activity-extensions/teamsConversationUpdateEvents.js.map +1 -0
- package/dist/src/activity-extensions/teamsMeetingInfo.d.ts +24 -0
- package/dist/src/activity-extensions/teamsMeetingInfo.js +15 -0
- package/dist/src/activity-extensions/teamsMeetingInfo.js.map +1 -0
- package/dist/src/activity-extensions/teamsMessageEvents.d.ts +5 -0
- package/dist/src/activity-extensions/teamsMessageEvents.js +7 -0
- package/dist/src/activity-extensions/teamsMessageEvents.js.map +1 -0
- package/dist/src/activity-extensions/tenantInfo.d.ts +24 -0
- package/dist/src/activity-extensions/tenantInfo.js +15 -0
- package/dist/src/activity-extensions/tenantInfo.js.map +1 -0
- package/dist/src/client/index.d.ts +6 -0
- package/dist/src/client/index.js +23 -0
- package/dist/src/client/index.js.map +1 -0
- package/dist/src/client/teamsConnectorClient.d.ts +146 -0
- package/dist/src/client/teamsConnectorClient.js +313 -0
- package/dist/src/client/teamsConnectorClient.js.map +1 -0
- package/dist/src/client/teamsConnectorClient.types.d.ts +157 -0
- package/dist/src/client/teamsConnectorClient.types.js +7 -0
- package/dist/src/client/teamsConnectorClient.types.js.map +1 -0
- package/dist/src/compat/readReceipInfo.d.ts +31 -0
- package/dist/src/compat/readReceipInfo.js +48 -0
- package/dist/src/compat/readReceipInfo.js.map +1 -0
- package/dist/src/compat/teamsActivityHandler.d.ts +423 -0
- package/dist/src/compat/teamsActivityHandler.js +911 -0
- package/dist/src/compat/teamsActivityHandler.js.map +1 -0
- package/dist/src/file/fileConsentCardResponse.d.ts +26 -0
- package/dist/src/file/fileConsentCardResponse.js +7 -0
- package/dist/src/file/fileConsentCardResponse.js.map +1 -0
- package/dist/src/file/fileUploadInfo.d.ts +29 -0
- package/dist/src/file/fileUploadInfo.js +7 -0
- package/dist/src/file/fileUploadInfo.js.map +1 -0
- package/dist/src/file/index.d.ts +6 -0
- package/dist/src/file/index.js +23 -0
- package/dist/src/file/index.js.map +1 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/index.js +27 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/meeting/index.d.ts +22 -0
- package/dist/src/meeting/index.js +39 -0
- package/dist/src/meeting/index.js.map +1 -0
- package/dist/src/meeting/meeting.d.ts +115 -0
- package/dist/src/meeting/meeting.js +257 -0
- package/dist/src/meeting/meeting.js.map +1 -0
- package/dist/src/meeting/meetingDetails.d.ts +18 -0
- package/dist/src/meeting/meetingDetails.js +7 -0
- package/dist/src/meeting/meetingDetails.js.map +1 -0
- package/dist/src/meeting/meetingDetailsBase.d.ts +15 -0
- package/dist/src/meeting/meetingDetailsBase.js +7 -0
- package/dist/src/meeting/meetingDetailsBase.js.map +1 -0
- package/dist/src/meeting/meetingEndEventDetails.d.ts +12 -0
- package/dist/src/meeting/meetingEndEventDetails.js +7 -0
- package/dist/src/meeting/meetingEndEventDetails.js.map +1 -0
- package/dist/src/meeting/meetingEventDetails.d.ts +12 -0
- package/dist/src/meeting/meetingEventDetails.js +7 -0
- package/dist/src/meeting/meetingEventDetails.js.map +1 -0
- package/dist/src/meeting/meetingInfo.d.ts +24 -0
- package/dist/src/meeting/meetingInfo.js +7 -0
- package/dist/src/meeting/meetingInfo.js.map +1 -0
- package/dist/src/meeting/meetingNotification.d.ts +9 -0
- package/dist/src/meeting/meetingNotification.js +7 -0
- package/dist/src/meeting/meetingNotification.js.map +1 -0
- package/dist/src/meeting/meetingNotificationBase.d.ts +14 -0
- package/dist/src/meeting/meetingNotificationBase.js +7 -0
- package/dist/src/meeting/meetingNotificationBase.js.map +1 -0
- package/dist/src/meeting/meetingNotificationChannelData.d.ts +12 -0
- package/dist/src/meeting/meetingNotificationChannelData.js +7 -0
- package/dist/src/meeting/meetingNotificationChannelData.js.map +1 -0
- package/dist/src/meeting/meetingNotificationRecipientFailureInfo.d.ts +15 -0
- package/dist/src/meeting/meetingNotificationRecipientFailureInfo.js +7 -0
- package/dist/src/meeting/meetingNotificationRecipientFailureInfo.js.map +1 -0
- package/dist/src/meeting/meetingNotificationResponse.d.ts +14 -0
- package/dist/src/meeting/meetingNotificationResponse.js +7 -0
- package/dist/src/meeting/meetingNotificationResponse.js.map +1 -0
- package/dist/src/meeting/meetingParticipantsEventDetails.d.ts +12 -0
- package/dist/src/meeting/meetingParticipantsEventDetails.js +7 -0
- package/dist/src/meeting/meetingParticipantsEventDetails.js.map +1 -0
- package/dist/src/meeting/meetingStageSurface.d.ts +16 -0
- package/dist/src/meeting/meetingStageSurface.js +7 -0
- package/dist/src/meeting/meetingStageSurface.js.map +1 -0
- package/dist/src/meeting/meetingStartEventDetails.d.ts +14 -0
- package/dist/src/meeting/meetingStartEventDetails.js +7 -0
- package/dist/src/meeting/meetingStartEventDetails.js.map +1 -0
- package/dist/src/meeting/meetingSurface.d.ts +10 -0
- package/dist/src/meeting/meetingSurface.js +7 -0
- package/dist/src/meeting/meetingSurface.js.map +1 -0
- package/dist/src/meeting/meetingTabIconSurface.d.ts +17 -0
- package/dist/src/meeting/meetingTabIconSurface.js +7 -0
- package/dist/src/meeting/meetingTabIconSurface.js.map +1 -0
- package/dist/src/meeting/targetedMeetingNotification.d.ts +20 -0
- package/dist/src/meeting/targetedMeetingNotification.js +7 -0
- package/dist/src/meeting/targetedMeetingNotification.js.map +1 -0
- package/dist/src/meeting/targetedMeetingNotificationValue.d.ts +18 -0
- package/dist/src/meeting/targetedMeetingNotificationValue.js +7 -0
- package/dist/src/meeting/targetedMeetingNotificationValue.js.map +1 -0
- package/dist/src/meeting/teamsMeetingMember.d.ts +19 -0
- package/dist/src/meeting/teamsMeetingMember.js +7 -0
- package/dist/src/meeting/teamsMeetingMember.js.map +1 -0
- package/dist/src/meeting/teamsMeetingParticipant.d.ts +25 -0
- package/dist/src/meeting/teamsMeetingParticipant.js +7 -0
- package/dist/src/meeting/teamsMeetingParticipant.js.map +1 -0
- package/dist/src/meeting/userMeetingDetails.d.ts +17 -0
- package/dist/src/meeting/userMeetingDetails.js +7 -0
- package/dist/src/meeting/userMeetingDetails.js.map +1 -0
- package/dist/src/message-actions-payload/index.d.ts +13 -0
- package/dist/src/message-actions-payload/index.js +30 -0
- package/dist/src/message-actions-payload/index.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayload.d.ts +90 -0
- package/dist/src/message-actions-payload/messageActionsPayload.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayload.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadApp.d.ts +25 -0
- package/dist/src/message-actions-payload/messageActionsPayloadApp.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadApp.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadAttachment.d.ts +33 -0
- package/dist/src/message-actions-payload/messageActionsPayloadAttachment.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadAttachment.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadBody.d.ts +25 -0
- package/dist/src/message-actions-payload/messageActionsPayloadBody.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadBody.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadConversation.d.ts +25 -0
- package/dist/src/message-actions-payload/messageActionsPayloadConversation.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadConversation.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadFrom.d.ts +24 -0
- package/dist/src/message-actions-payload/messageActionsPayloadFrom.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadFrom.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadMention.d.ts +22 -0
- package/dist/src/message-actions-payload/messageActionsPayloadMention.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadMention.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadReaction.d.ts +26 -0
- package/dist/src/message-actions-payload/messageActionsPayloadReaction.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadReaction.js.map +1 -0
- package/dist/src/message-actions-payload/messageActionsPayloadUser.d.ts +29 -0
- package/dist/src/message-actions-payload/messageActionsPayloadUser.js +7 -0
- package/dist/src/message-actions-payload/messageActionsPayloadUser.js.map +1 -0
- package/dist/src/messageExtension/appBasedLinkQuery.d.ts +19 -0
- package/dist/src/messageExtension/appBasedLinkQuery.js +7 -0
- package/dist/src/messageExtension/appBasedLinkQuery.js.map +1 -0
- package/dist/src/messageExtension/index.d.ts +14 -0
- package/dist/src/messageExtension/index.js +29 -0
- package/dist/src/messageExtension/index.js.map +1 -0
- package/dist/src/messageExtension/messageExtension.d.ts +88 -0
- package/dist/src/messageExtension/messageExtension.js +283 -0
- package/dist/src/messageExtension/messageExtension.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionAction.d.ts +40 -0
- package/dist/src/messageExtension/messagingExtensionAction.js +7 -0
- package/dist/src/messageExtension/messagingExtensionAction.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionActionResponse.d.ts +23 -0
- package/dist/src/messageExtension/messagingExtensionActionResponse.js +7 -0
- package/dist/src/messageExtension/messagingExtensionActionResponse.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionAttachment.d.ts +14 -0
- package/dist/src/messageExtension/messagingExtensionAttachment.js +7 -0
- package/dist/src/messageExtension/messagingExtensionAttachment.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionParameter.d.ts +31 -0
- package/dist/src/messageExtension/messagingExtensionParameter.js +16 -0
- package/dist/src/messageExtension/messagingExtensionParameter.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionQuery.d.ts +84 -0
- package/dist/src/messageExtension/messagingExtensionQuery.js +31 -0
- package/dist/src/messageExtension/messagingExtensionQuery.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionQueryOptions.d.ts +31 -0
- package/dist/src/messageExtension/messagingExtensionQueryOptions.js +16 -0
- package/dist/src/messageExtension/messagingExtensionQueryOptions.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionResponse.d.ts +18 -0
- package/dist/src/messageExtension/messagingExtensionResponse.js +7 -0
- package/dist/src/messageExtension/messagingExtensionResponse.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionResult.d.ts +50 -0
- package/dist/src/messageExtension/messagingExtensionResult.js +7 -0
- package/dist/src/messageExtension/messagingExtensionResult.js.map +1 -0
- package/dist/src/messageExtension/messagingExtensionSuggestedAction.d.ts +14 -0
- package/dist/src/messageExtension/messagingExtensionSuggestedAction.js +7 -0
- package/dist/src/messageExtension/messagingExtensionSuggestedAction.js.map +1 -0
- package/dist/src/messages/messages.d.ts +40 -0
- package/dist/src/messages/messages.js +82 -0
- package/dist/src/messages/messages.js.map +1 -0
- package/dist/src/taskModule/index.d.ts +11 -0
- package/dist/src/taskModule/index.js +28 -0
- package/dist/src/taskModule/index.js.map +1 -0
- package/dist/src/taskModule/taskModule.d.ts +72 -0
- package/dist/src/taskModule/taskModule.js +210 -0
- package/dist/src/taskModule/taskModule.js.map +1 -0
- package/dist/src/taskModule/taskModuleContinueResponse.d.ts +15 -0
- package/dist/src/taskModule/taskModuleContinueResponse.js +7 -0
- package/dist/src/taskModule/taskModuleContinueResponse.js.map +1 -0
- package/dist/src/taskModule/taskModuleMessageResponse.d.ts +14 -0
- package/dist/src/taskModule/taskModuleMessageResponse.js +7 -0
- package/dist/src/taskModule/taskModuleMessageResponse.js.map +1 -0
- package/dist/src/taskModule/taskModuleRequest.d.ts +22 -0
- package/dist/src/taskModule/taskModuleRequest.js +7 -0
- package/dist/src/taskModule/taskModuleRequest.js.map +1 -0
- package/dist/src/taskModule/taskModuleRequestContext.d.ts +13 -0
- package/dist/src/taskModule/taskModuleRequestContext.js +7 -0
- package/dist/src/taskModule/taskModuleRequestContext.js.map +1 -0
- package/dist/src/taskModule/taskModuleResponse.d.ts +19 -0
- package/dist/src/taskModule/taskModuleResponse.js +7 -0
- package/dist/src/taskModule/taskModuleResponse.js.map +1 -0
- package/dist/src/taskModule/taskModuleResponseBase.d.ts +17 -0
- package/dist/src/taskModule/taskModuleResponseBase.js +7 -0
- package/dist/src/taskModule/taskModuleResponseBase.js.map +1 -0
- package/dist/src/taskModule/taskModuleTaskInfo.d.ts +38 -0
- package/dist/src/taskModule/taskModuleTaskInfo.js +7 -0
- package/dist/src/taskModule/taskModuleTaskInfo.js.map +1 -0
- package/dist/src/teamsAgentExtension.d.ts +30 -0
- package/dist/src/teamsAgentExtension.js +184 -0
- package/dist/src/teamsAgentExtension.js.map +1 -0
- package/dist/src/teamsAttachmentDownloader.d.ts +27 -0
- package/dist/src/teamsAttachmentDownloader.js +80 -0
- package/dist/src/teamsAttachmentDownloader.js.map +1 -0
- package/dist/src/teamsInfo.d.ts +174 -0
- package/dist/src/teamsInfo.js +387 -0
- package/dist/src/teamsInfo.js.map +1 -0
- package/package.json +37 -0
- package/src/activity-extensions/channelInfo.ts +33 -0
- package/src/activity-extensions/index.ts +16 -0
- package/src/activity-extensions/notificationInfo.ts +33 -0
- package/src/activity-extensions/onBehalfOf.ts +38 -0
- package/src/activity-extensions/teamInfo.ts +33 -0
- package/src/activity-extensions/teamsChannelAccount.ts +36 -0
- package/src/activity-extensions/teamsChannelData.ts +75 -0
- package/src/activity-extensions/teamsChannelDataParser.ts +17 -0
- package/src/activity-extensions/teamsChannelDataSettings.ts +28 -0
- package/src/activity-extensions/teamsConversationUpdateEvents.ts +61 -0
- package/src/activity-extensions/teamsMeetingInfo.ts +23 -0
- package/src/activity-extensions/teamsMessageEvents.ts +6 -0
- package/src/activity-extensions/tenantInfo.ts +23 -0
- package/src/client/index.ts +7 -0
- package/src/client/teamsConnectorClient.ts +340 -0
- package/src/client/teamsConnectorClient.types.ts +168 -0
- package/src/compat/readReceipInfo.ts +54 -0
- package/src/compat/teamsActivityHandler.ts +1140 -0
- package/src/file/fileConsentCardResponse.ts +31 -0
- package/src/file/fileUploadInfo.ts +34 -0
- package/src/file/index.ts +7 -0
- package/src/index.ts +10 -0
- package/src/meeting/index.ts +23 -0
- package/src/meeting/meeting.ts +307 -0
- package/src/meeting/meetingDetails.ts +20 -0
- package/src/meeting/meetingDetailsBase.ts +16 -0
- package/src/meeting/meetingEndEventDetails.ts +14 -0
- package/src/meeting/meetingEventDetails.ts +14 -0
- package/src/meeting/meetingInfo.ts +26 -0
- package/src/meeting/meetingNotification.ts +11 -0
- package/src/meeting/meetingNotificationBase.ts +15 -0
- package/src/meeting/meetingNotificationChannelData.ts +14 -0
- package/src/meeting/meetingNotificationRecipientFailureInfo.ts +16 -0
- package/src/meeting/meetingNotificationResponse.ts +16 -0
- package/src/meeting/meetingParticipantsEventDetails.ts +14 -0
- package/src/meeting/meetingStageSurface.ts +17 -0
- package/src/meeting/meetingStartEventDetails.ts +16 -0
- package/src/meeting/meetingSurface.ts +12 -0
- package/src/meeting/meetingTabIconSurface.ts +19 -0
- package/src/meeting/targetedMeetingNotification.ts +23 -0
- package/src/meeting/targetedMeetingNotificationValue.ts +21 -0
- package/src/meeting/teamsMeetingMember.ts +22 -0
- package/src/meeting/teamsMeetingParticipant.ts +29 -0
- package/src/meeting/userMeetingDetails.ts +19 -0
- package/src/message-actions-payload/index.ts +14 -0
- package/src/message-actions-payload/messageActionsPayload.ts +93 -0
- package/src/message-actions-payload/messageActionsPayloadApp.ts +27 -0
- package/src/message-actions-payload/messageActionsPayloadAttachment.ts +34 -0
- package/src/message-actions-payload/messageActionsPayloadBody.ts +27 -0
- package/src/message-actions-payload/messageActionsPayloadConversation.ts +27 -0
- package/src/message-actions-payload/messageActionsPayloadFrom.ts +26 -0
- package/src/message-actions-payload/messageActionsPayloadMention.ts +24 -0
- package/src/message-actions-payload/messageActionsPayloadReaction.ts +29 -0
- package/src/message-actions-payload/messageActionsPayloadUser.ts +31 -0
- package/src/messageExtension/appBasedLinkQuery.ts +20 -0
- package/src/messageExtension/index.ts +15 -0
- package/src/messageExtension/messageExtension.ts +324 -0
- package/src/messageExtension/messagingExtensionAction.ts +44 -0
- package/src/messageExtension/messagingExtensionActionResponse.ts +25 -0
- package/src/messageExtension/messagingExtensionAttachment.ts +16 -0
- package/src/messageExtension/messagingExtensionParameter.ts +28 -0
- package/src/messageExtension/messagingExtensionQuery.ts +51 -0
- package/src/messageExtension/messagingExtensionQueryOptions.ts +28 -0
- package/src/messageExtension/messagingExtensionResponse.ts +21 -0
- package/src/messageExtension/messagingExtensionResult.ts +60 -0
- package/src/messageExtension/messagingExtensionSuggestedAction.ts +16 -0
- package/src/messages/messages.ts +91 -0
- package/src/taskModule/index.ts +12 -0
- package/src/taskModule/taskModule.ts +241 -0
- package/src/taskModule/taskModuleContinueResponse.ts +17 -0
- package/src/taskModule/taskModuleMessageResponse.ts +16 -0
- package/src/taskModule/taskModuleRequest.ts +24 -0
- package/src/taskModule/taskModuleRequestContext.ts +14 -0
- package/src/taskModule/taskModuleResponse.ts +21 -0
- package/src/taskModule/taskModuleResponseBase.ts +19 -0
- package/src/taskModule/taskModuleTaskInfo.ts +40 -0
- package/src/teamsAgentExtension.ts +201 -0
- package/src/teamsAttachmentDownloader.ts +78 -0
- package/src/teamsInfo.ts +430 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/**
|
|
7
|
+
* Represents information about a channel.
|
|
8
|
+
*/
|
|
9
|
+
export interface ChannelInfo {
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the channel.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of the channel.
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The type of the channel.
|
|
20
|
+
*/
|
|
21
|
+
type?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Zod schema for validating ChannelInfo objects.
|
|
25
|
+
*/
|
|
26
|
+
export declare const channelInfoZodSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
name: z.ZodOptional<z.ZodString>;
|
|
29
|
+
type: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
type?: string | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
type?: string | undefined;
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.channelInfoZodSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* Zod schema for validating ChannelInfo objects.
|
|
11
|
+
*/
|
|
12
|
+
exports.channelInfoZodSchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string().min(1).optional(),
|
|
14
|
+
name: zod_1.z.string().min(1).optional(),
|
|
15
|
+
type: zod_1.z.string().min(1).optional()
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=channelInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channelInfo.js","sourceRoot":"","sources":["../../../src/activity-extensions/channelInfo.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAoBvB;;GAEG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export { NotificationInfo } from './notificationInfo';
|
|
6
|
+
export { OnBehalfOf } from './onBehalfOf';
|
|
7
|
+
export { TeamInfo } from './teamInfo';
|
|
8
|
+
export * from './teamsChannelData';
|
|
9
|
+
export { TeamsChannelDataSettings } from './teamsChannelDataSettings';
|
|
10
|
+
export { TeamsMeetingInfo } from './teamsMeetingInfo';
|
|
11
|
+
export { TenantInfo } from './tenantInfo';
|
|
12
|
+
export * from './channelInfo';
|
|
13
|
+
export { TeamsChannelAccount } from './teamsChannelAccount';
|
|
14
|
+
export * from './teamsConversationUpdateEvents';
|
|
15
|
+
export * from './teamsMessageEvents';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./teamsChannelData"), exports);
|
|
22
|
+
__exportStar(require("./channelInfo"), exports);
|
|
23
|
+
__exportStar(require("./teamsConversationUpdateEvents"), exports);
|
|
24
|
+
__exportStar(require("./teamsMessageEvents"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/activity-extensions/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAKH,qDAAkC;AAIlC,gDAA6B;AAE7B,kEAA+C;AAC/C,uDAAoC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/**
|
|
7
|
+
* Represents information about a notification.
|
|
8
|
+
*/
|
|
9
|
+
export interface NotificationInfo {
|
|
10
|
+
/**
|
|
11
|
+
* Indicates whether the notification is an alert.
|
|
12
|
+
*/
|
|
13
|
+
alert?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether the alert is in a meeting.
|
|
16
|
+
*/
|
|
17
|
+
alertInMeeting?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The URL of the external resource.
|
|
20
|
+
*/
|
|
21
|
+
externalResourceUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Zod schema for validating NotificationInfo objects.
|
|
25
|
+
*/
|
|
26
|
+
export declare const notificationInfoZodSchema: z.ZodObject<{
|
|
27
|
+
alert: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
alertInMeeting: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
externalResourceUrl: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
alert?: boolean | undefined;
|
|
32
|
+
alertInMeeting?: boolean | undefined;
|
|
33
|
+
externalResourceUrl?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
alert?: boolean | undefined;
|
|
36
|
+
alertInMeeting?: boolean | undefined;
|
|
37
|
+
externalResourceUrl?: string | undefined;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.notificationInfoZodSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* Zod schema for validating NotificationInfo objects.
|
|
11
|
+
*/
|
|
12
|
+
exports.notificationInfoZodSchema = zod_1.z.object({
|
|
13
|
+
alert: zod_1.z.boolean().optional(),
|
|
14
|
+
alertInMeeting: zod_1.z.boolean().optional(),
|
|
15
|
+
externalResourceUrl: zod_1.z.string().min(1).optional()
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=notificationInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationInfo.js","sourceRoot":"","sources":["../../../src/activity-extensions/notificationInfo.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAoBvB;;GAEG;AACU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/**
|
|
7
|
+
* Represents information about a user on behalf of whom an action is performed.
|
|
8
|
+
*/
|
|
9
|
+
export interface OnBehalfOf {
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the item.
|
|
12
|
+
*/
|
|
13
|
+
itemid: 0 | number;
|
|
14
|
+
/**
|
|
15
|
+
* The type of mention.
|
|
16
|
+
*/
|
|
17
|
+
mentionType: 'person' | string;
|
|
18
|
+
/**
|
|
19
|
+
* The Microsoft Resource Identifier (MRI) of the user.
|
|
20
|
+
*/
|
|
21
|
+
mri: string;
|
|
22
|
+
/**
|
|
23
|
+
* The display name of the user.
|
|
24
|
+
*/
|
|
25
|
+
displayName?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Zod schema for validating OnBehalfOf objects.
|
|
29
|
+
*/
|
|
30
|
+
export declare const onBehalfOfZodSchema: z.ZodObject<{
|
|
31
|
+
itemid: z.ZodUnion<[z.ZodLiteral<0>, z.ZodNumber]>;
|
|
32
|
+
mentionType: z.ZodUnion<[z.ZodString, z.ZodLiteral<"person">]>;
|
|
33
|
+
mri: z.ZodString;
|
|
34
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
itemid: number;
|
|
37
|
+
mentionType: string;
|
|
38
|
+
mri: string;
|
|
39
|
+
displayName?: string | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
itemid: number;
|
|
42
|
+
mentionType: string;
|
|
43
|
+
mri: string;
|
|
44
|
+
displayName?: string | undefined;
|
|
45
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.onBehalfOfZodSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* Zod schema for validating OnBehalfOf objects.
|
|
11
|
+
*/
|
|
12
|
+
exports.onBehalfOfZodSchema = zod_1.z.object({
|
|
13
|
+
itemid: zod_1.z.union([zod_1.z.literal(0), zod_1.z.number()]),
|
|
14
|
+
mentionType: zod_1.z.union([zod_1.z.string().min(1), zod_1.z.literal('person')]),
|
|
15
|
+
mri: zod_1.z.string().min(1),
|
|
16
|
+
displayName: zod_1.z.string().min(1).optional()
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=onBehalfOf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onBehalfOf.js","sourceRoot":"","sources":["../../../src/activity-extensions/onBehalfOf.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAwBvB;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/**
|
|
7
|
+
* Represents information about a team.
|
|
8
|
+
*/
|
|
9
|
+
export interface TeamInfo {
|
|
10
|
+
/**
|
|
11
|
+
* The ID of the team.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of the team.
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The Azure Active Directory group ID of the team.
|
|
20
|
+
*/
|
|
21
|
+
aadGroupId?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Zod schema for validating TeamInfo objects.
|
|
25
|
+
*/
|
|
26
|
+
export declare const teamInfoZodSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
name: z.ZodOptional<z.ZodString>;
|
|
29
|
+
aadGroupId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
id?: string | undefined;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
aadGroupId?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
aadGroupId?: string | undefined;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.teamInfoZodSchema = void 0;
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
/**
|
|
10
|
+
* Zod schema for validating TeamInfo objects.
|
|
11
|
+
*/
|
|
12
|
+
exports.teamInfoZodSchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string().min(1).optional(),
|
|
14
|
+
name: zod_1.z.string().min(1).optional(),
|
|
15
|
+
aadGroupId: zod_1.z.string().min(1).optional()
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=teamInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamInfo.js","sourceRoot":"","sources":["../../../src/activity-extensions/teamInfo.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAAuB;AAoBvB;;GAEG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { ChannelAccount } from '@microsoft/agents-activity';
|
|
6
|
+
/**
|
|
7
|
+
* Represents a Teams channel account.
|
|
8
|
+
*/
|
|
9
|
+
export interface TeamsChannelAccount extends ChannelAccount {
|
|
10
|
+
/**
|
|
11
|
+
* Given name of the user.
|
|
12
|
+
*/
|
|
13
|
+
givenName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Surname of the user.
|
|
16
|
+
*/
|
|
17
|
+
surname?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Email address of the user.
|
|
20
|
+
*/
|
|
21
|
+
email?: string;
|
|
22
|
+
/**
|
|
23
|
+
* User principal name of the user.
|
|
24
|
+
*/
|
|
25
|
+
userPrincipalName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Tenant ID of the user.
|
|
28
|
+
*/
|
|
29
|
+
tenantId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Role of the user in the team.
|
|
32
|
+
*/
|
|
33
|
+
userRole?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamsChannelAccount.js","sourceRoot":"","sources":["../../../src/activity-extensions/teamsChannelAccount.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { ChannelInfo } from './channelInfo';
|
|
7
|
+
import { NotificationInfo } from './notificationInfo';
|
|
8
|
+
import { OnBehalfOf } from './onBehalfOf';
|
|
9
|
+
import { TeamsChannelDataSettings } from './teamsChannelDataSettings';
|
|
10
|
+
import { TeamsMeetingInfo } from './teamsMeetingInfo';
|
|
11
|
+
import { TenantInfo } from './tenantInfo';
|
|
12
|
+
import { TeamInfo } from './teamInfo';
|
|
13
|
+
/**
|
|
14
|
+
* Represents data for a Teams channel.
|
|
15
|
+
*/
|
|
16
|
+
export interface TeamsChannelData {
|
|
17
|
+
/**
|
|
18
|
+
* Information about the channel.
|
|
19
|
+
*/
|
|
20
|
+
channel?: ChannelInfo;
|
|
21
|
+
/**
|
|
22
|
+
* The type of event.
|
|
23
|
+
*/
|
|
24
|
+
eventType?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Information about the team.
|
|
27
|
+
*/
|
|
28
|
+
team?: TeamInfo;
|
|
29
|
+
/**
|
|
30
|
+
* Information about the notification.
|
|
31
|
+
*/
|
|
32
|
+
notification?: NotificationInfo;
|
|
33
|
+
/**
|
|
34
|
+
* Information about the tenant.
|
|
35
|
+
*/
|
|
36
|
+
tenant?: TenantInfo;
|
|
37
|
+
/**
|
|
38
|
+
* Information about the meeting.
|
|
39
|
+
*/
|
|
40
|
+
meeting?: TeamsMeetingInfo;
|
|
41
|
+
/**
|
|
42
|
+
* Settings for the Teams channel data.
|
|
43
|
+
*/
|
|
44
|
+
settings?: TeamsChannelDataSettings;
|
|
45
|
+
/**
|
|
46
|
+
* Information about the users on behalf of whom the action is performed.
|
|
47
|
+
*/
|
|
48
|
+
onBehalfOf?: OnBehalfOf[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Zod schema for validating TeamsChannelData objects.
|
|
52
|
+
*/
|
|
53
|
+
export declare const teamsChannelDataZodSchema: z.ZodObject<{
|
|
54
|
+
channel: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
id: z.ZodOptional<z.ZodString>;
|
|
56
|
+
name: z.ZodOptional<z.ZodString>;
|
|
57
|
+
type: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type?: string | undefined;
|
|
60
|
+
id?: string | undefined;
|
|
61
|
+
name?: string | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
type?: string | undefined;
|
|
64
|
+
id?: string | undefined;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
}>>;
|
|
67
|
+
eventType: z.ZodOptional<z.ZodString>;
|
|
68
|
+
team: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
id: z.ZodOptional<z.ZodString>;
|
|
70
|
+
name: z.ZodOptional<z.ZodString>;
|
|
71
|
+
aadGroupId: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
id?: string | undefined;
|
|
74
|
+
name?: string | undefined;
|
|
75
|
+
aadGroupId?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
id?: string | undefined;
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
aadGroupId?: string | undefined;
|
|
80
|
+
}>>;
|
|
81
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
alert: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
alertInMeeting: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
externalResourceUrl: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
alert?: boolean | undefined;
|
|
87
|
+
alertInMeeting?: boolean | undefined;
|
|
88
|
+
externalResourceUrl?: string | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
alert?: boolean | undefined;
|
|
91
|
+
alertInMeeting?: boolean | undefined;
|
|
92
|
+
externalResourceUrl?: string | undefined;
|
|
93
|
+
}>>;
|
|
94
|
+
tenant: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
id: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
id?: string | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
id?: string | undefined;
|
|
100
|
+
}>>;
|
|
101
|
+
meeting: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
id: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
id?: string | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
id?: string | undefined;
|
|
107
|
+
}>>;
|
|
108
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
selectedChannel: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
id: z.ZodOptional<z.ZodString>;
|
|
111
|
+
name: z.ZodOptional<z.ZodString>;
|
|
112
|
+
type: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
type?: string | undefined;
|
|
115
|
+
id?: string | undefined;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
type?: string | undefined;
|
|
119
|
+
id?: string | undefined;
|
|
120
|
+
name?: string | undefined;
|
|
121
|
+
}>>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
selectedChannel?: {
|
|
124
|
+
type?: string | undefined;
|
|
125
|
+
id?: string | undefined;
|
|
126
|
+
name?: string | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
selectedChannel?: {
|
|
130
|
+
type?: string | undefined;
|
|
131
|
+
id?: string | undefined;
|
|
132
|
+
name?: string | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
}>>;
|
|
135
|
+
onBehalfOf: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
136
|
+
itemid: z.ZodUnion<[z.ZodLiteral<0>, z.ZodNumber]>;
|
|
137
|
+
mentionType: z.ZodUnion<[z.ZodString, z.ZodLiteral<"person">]>;
|
|
138
|
+
mri: z.ZodString;
|
|
139
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
itemid: number;
|
|
142
|
+
mentionType: string;
|
|
143
|
+
mri: string;
|
|
144
|
+
displayName?: string | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
itemid: number;
|
|
147
|
+
mentionType: string;
|
|
148
|
+
mri: string;
|
|
149
|
+
displayName?: string | undefined;
|
|
150
|
+
}>, "many">>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
channel?: {
|
|
153
|
+
type?: string | undefined;
|
|
154
|
+
id?: string | undefined;
|
|
155
|
+
name?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
eventType?: string | undefined;
|
|
158
|
+
team?: {
|
|
159
|
+
id?: string | undefined;
|
|
160
|
+
name?: string | undefined;
|
|
161
|
+
aadGroupId?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
notification?: {
|
|
164
|
+
alert?: boolean | undefined;
|
|
165
|
+
alertInMeeting?: boolean | undefined;
|
|
166
|
+
externalResourceUrl?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
tenant?: {
|
|
169
|
+
id?: string | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
meeting?: {
|
|
172
|
+
id?: string | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
settings?: {
|
|
175
|
+
selectedChannel?: {
|
|
176
|
+
type?: string | undefined;
|
|
177
|
+
id?: string | undefined;
|
|
178
|
+
name?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
onBehalfOf?: {
|
|
182
|
+
itemid: number;
|
|
183
|
+
mentionType: string;
|
|
184
|
+
mri: string;
|
|
185
|
+
displayName?: string | undefined;
|
|
186
|
+
}[] | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
channel?: {
|
|
189
|
+
type?: string | undefined;
|
|
190
|
+
id?: string | undefined;
|
|
191
|
+
name?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
eventType?: string | undefined;
|
|
194
|
+
team?: {
|
|
195
|
+
id?: string | undefined;
|
|
196
|
+
name?: string | undefined;
|
|
197
|
+
aadGroupId?: string | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
notification?: {
|
|
200
|
+
alert?: boolean | undefined;
|
|
201
|
+
alertInMeeting?: boolean | undefined;
|
|
202
|
+
externalResourceUrl?: string | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
tenant?: {
|
|
205
|
+
id?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
meeting?: {
|
|
208
|
+
id?: string | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
settings?: {
|
|
211
|
+
selectedChannel?: {
|
|
212
|
+
type?: string | undefined;
|
|
213
|
+
id?: string | undefined;
|
|
214
|
+
name?: string | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
onBehalfOf?: {
|
|
218
|
+
itemid: number;
|
|
219
|
+
mentionType: string;
|
|
220
|
+
mri: string;
|
|
221
|
+
displayName?: string | undefined;
|
|
222
|
+
}[] | undefined;
|
|
223
|
+
}>;
|
|
224
|
+
/**
|
|
225
|
+
* Parses the given object as TeamsChannelData.
|
|
226
|
+
*
|
|
227
|
+
* @param {object} o - The object to parse.
|
|
228
|
+
* @returns {TeamsChannelData} - The parsed TeamsChannelData.
|
|
229
|
+
*/
|
|
230
|
+
export declare function parseTeamsChannelData(o: object): TeamsChannelData;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright(c) Microsoft Corporation.All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.teamsChannelDataZodSchema = void 0;
|
|
8
|
+
exports.parseTeamsChannelData = parseTeamsChannelData;
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
const channelInfo_1 = require("./channelInfo");
|
|
11
|
+
const notificationInfo_1 = require("./notificationInfo");
|
|
12
|
+
const onBehalfOf_1 = require("./onBehalfOf");
|
|
13
|
+
const teamsChannelDataSettings_1 = require("./teamsChannelDataSettings");
|
|
14
|
+
const teamsMeetingInfo_1 = require("./teamsMeetingInfo");
|
|
15
|
+
const tenantInfo_1 = require("./tenantInfo");
|
|
16
|
+
const teamInfo_1 = require("./teamInfo");
|
|
17
|
+
/**
|
|
18
|
+
* Zod schema for validating TeamsChannelData objects.
|
|
19
|
+
*/
|
|
20
|
+
exports.teamsChannelDataZodSchema = zod_1.z.object({
|
|
21
|
+
channel: channelInfo_1.channelInfoZodSchema.optional(),
|
|
22
|
+
eventType: zod_1.z.string().min(1).optional(),
|
|
23
|
+
team: teamInfo_1.teamInfoZodSchema.optional(),
|
|
24
|
+
notification: notificationInfo_1.notificationInfoZodSchema.optional(),
|
|
25
|
+
tenant: tenantInfo_1.tenantInfoZodSchema.optional(),
|
|
26
|
+
meeting: teamsMeetingInfo_1.teamsMeetingInfoZodSchema.optional(),
|
|
27
|
+
settings: teamsChannelDataSettings_1.teamsChannelDataSettingsZodSchema.optional(),
|
|
28
|
+
onBehalfOf: zod_1.z.array(onBehalfOf_1.onBehalfOfZodSchema).optional()
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Parses the given object as TeamsChannelData.
|
|
32
|
+
*
|
|
33
|
+
* @param {object} o - The object to parse.
|
|
34
|
+
* @returns {TeamsChannelData} - The parsed TeamsChannelData.
|
|
35
|
+
*/
|
|
36
|
+
function parseTeamsChannelData(o) {
|
|
37
|
+
return exports.teamsChannelDataZodSchema.passthrough().parse(o);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=teamsChannelData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamsChannelData.js","sourceRoot":"","sources":["../../../src/activity-extensions/teamsChannelData.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAqEH,sDAEC;AArED,6BAAuB;AACvB,+CAAiE;AACjE,yDAAgF;AAChF,6CAA8D;AAC9D,yEAAwG;AACxG,yDAAgF;AAChF,6CAA8D;AAC9D,yCAAwD;AAwCxD;;GAEG;AACU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,kCAAoB,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,4BAAiB,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,4CAAyB,CAAC,QAAQ,EAAE;IAClD,MAAM,EAAE,gCAAmB,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,4CAAyB,CAAC,QAAQ,EAAE;IAC7C,QAAQ,EAAE,4DAAiC,CAAC,QAAQ,EAAE;IACtD,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAmB,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAA;AAEF;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAE,CAAS;IAC9C,OAAO,iCAAyB,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACzD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { TeamsChannelData } from './teamsChannelData';
|
|
6
|
+
/**
|
|
7
|
+
* Parses the given object as TeamsChannelData.
|
|
8
|
+
*
|
|
9
|
+
* @param {object} o - The object to parse.
|
|
10
|
+
* @returns {TeamsChannelData} - The parsed TeamsChannelData.
|
|
11
|
+
*/
|
|
12
|
+
export declare function parseTeamsChannelData(o: object): TeamsChannelData;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.parseTeamsChannelData = parseTeamsChannelData;
|
|
8
|
+
const teamsChannelData_1 = require("./teamsChannelData");
|
|
9
|
+
/**
|
|
10
|
+
* Parses the given object as TeamsChannelData.
|
|
11
|
+
*
|
|
12
|
+
* @param {object} o - The object to parse.
|
|
13
|
+
* @returns {TeamsChannelData} - The parsed TeamsChannelData.
|
|
14
|
+
*/
|
|
15
|
+
function parseTeamsChannelData(o) {
|
|
16
|
+
teamsChannelData_1.teamsChannelDataZodSchema.passthrough().parse(o);
|
|
17
|
+
return o;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=teamsChannelDataParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamsChannelDataParser.js","sourceRoot":"","sources":["../../../src/activity-extensions/teamsChannelDataParser.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAUH,sDAGC;AAXD,yDAAgF;AAEhF;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAE,CAAS;IAC9C,4CAAyB,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAChD,OAAO,CAAC,CAAA;AACV,CAAC"}
|