diff --git a/compat/baseline/agents-hosting-extensions-teams.api.md b/compat/baseline/agents-hosting-extensions-teams.api.md new file mode 100644 index 00000000..6881e8e4 --- /dev/null +++ b/compat/baseline/agents-hosting-extensions-teams.api.md @@ -0,0 +1,854 @@ +## API Report File for "@microsoft/agents-hosting-extensions-teams" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { Activity } from '@microsoft/agents-activity'; +import { ActivityHandler } from '@microsoft/agents-hosting'; +import { AgentApplication } from '@microsoft/agents-hosting'; +import { AgentExtension } from '@microsoft/agents-hosting'; +import { Attachment } from '@microsoft/agents-activity'; +import { CardAction } from '@microsoft/agents-activity'; +import { ChannelAccount } from '@microsoft/agents-activity'; +import { ConversationAccount } from '@microsoft/agents-activity'; +import { ConversationReference } from '@microsoft/agents-activity'; +import { ConversationUpdateEvents } from '@microsoft/agents-hosting'; +import { InputFile } from '@microsoft/agents-hosting'; +import { InputFileDownloader } from '@microsoft/agents-hosting'; +import { InvokeResponse } from '@microsoft/agents-hosting'; +import { RouteHandler } from '@microsoft/agents-hosting'; +import { RouteSelector } from '@microsoft/agents-hosting'; +import { TurnContext } from '@microsoft/agents-hosting'; +import { TurnState } from '@microsoft/agents-hosting'; +import { z } from 'zod'; + +// @public +export interface AppBasedLinkQuery { + state?: string; + url?: string; +} + +// @public +export type AttachmentLayout = 'list' | 'grid'; + +// @public +export interface BatchFailedEntriesResponse { + continuationToken: string; + failedEntryResponses: BatchFailedEntry[]; +} + +// @public +export interface BatchFailedEntry { + error: string; + id: string; +} + +// @public +export interface BatchOperationResponse { + operationId: string; +} + +// @public +export interface BatchOperationStateResponse { + retryAfter?: Date; + state: string; + statusMap: Record; + totalEntriesCount: number; +} + +// @public +export type CancelOperationResponse = { + _response: Response & { + bodyAsText: string; + parsedBody: {}; + }; +}; + +// @public +export interface ChannelInfo { + id?: string; + name?: string; + type?: string; +} + +// @public +export const channelInfoZodSchema: z.ZodObject<{ + id: z.ZodOptional; + name: z.ZodOptional; + type: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; +}, { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; +}>; + +// @public +export type CommandContext = 'message' | 'compose' | 'commandbox'; + +// @public +export interface FeedbackLoopData { + actionName: 'feedback'; + actionValue: { + reaction: 'like' | 'dislike'; + feedback: string | Record; + }; + replyToId: string; +} + +// @public +export class Meeting { + constructor(app: AgentApplication); + onAppsInstalled(handler: RouteHandler): this; + onAppsUninstalled(handler: RouteHandler): this; + onFocusChange(handler: RouteHandler): this; + onMeetingEnd(handler: RouteHandler): this; + onMeetingStart(handler: RouteHandler): this; + onParticipantsJoin(handler: RouteHandler): this; + onParticipantsLeave(handler: RouteHandler): this; + onPollResponse(handler: RouteHandler): this; + onReaction(handler: RouteHandler): this; + onRecordingStarted(handler: RouteHandler): this; + onRecordingStopped(handler: RouteHandler): this; + onRoomJoin(handler: RouteHandler): this; + onRoomLeave(handler: RouteHandler): this; + onScreenShareStart(handler: RouteHandler): this; + onScreenShareStop(handler: RouteHandler): this; + onSmartReply(handler: RouteHandler): this; + onStageView(handler: RouteHandler): this; +} + +// @public +export interface MeetingDetails extends MeetingDetailsBase { + msGraphResourceId: string; + scheduledEndTime?: Date; + scheduledStartTime?: Date; + type: string; +} + +// @public +export interface MeetingDetailsBase { + id: string; + joinUrl: string; + title: string; +} + +// @public +export interface MeetingEndEventDetails extends MeetingEventDetails { + endTime: Date; +} + +// @public +export interface MeetingEventDetails extends MeetingDetailsBase { + meetingType: string; +} + +// @public +export type MeetingNotification = TargetedMeetingNotification; + +// @public +export interface MeetingNotificationChannelData { + onBehalfOf?: OnBehalfOf[]; +} + +// @public +export interface MeetingNotificationRecipientFailureInfo { + errorCode: string; + failureReason: string; + recipientMri: string; +} + +// @public +export interface MeetingParticipantsEventDetails { + members: TeamsMeetingMember[]; +} + +// @public +export interface MeetingStageSurface { + content: T; + contentType: 'task'; + surface: 'meetingStage'; +} + +// @public +export interface MeetingStartEventDetails extends MeetingEventDetails { + startTime: Date; +} + +// @public +export type MeetingSurface = MeetingStageSurface | MeetingTabIconSurface; + +// @public +export interface MeetingTabIconSurface { + surface: 'meetingTabIcon'; + tabEntityId?: string; +} + +// @public +export type MessagePreviewActionType = 'edit' | 'send'; + +// @public +export type MessagePreviewType = 'message' | 'continue'; + +// @public +export interface MessagingExtensionAction extends TaskModuleRequest { + activityPreview?: Activity[]; + commandContext?: CommandContext; + commandId?: string; + messagePayload?: MessageActionsPayload; + messagePreviewAction?: MessagePreviewActionType; +} + +// @public +export interface MessagingExtensionActionResponse { + cacheInfo?: unknown; + composeExtension?: MessagingExtensionResult; + task?: TaskModuleContinueResponse | TaskModuleMessageResponse; +} + +// @public +export interface MessagingExtensionAttachment extends Attachment { + preview?: Attachment; +} + +// @public +export interface MessagingExtensionParameter { + name?: string; + value?: any; +} + +// @public +export interface MessagingExtensionQuery { + commandId?: string; + parameters?: MessagingExtensionParameter[]; + queryOptions?: MessagingExtensionQueryOptions; + state?: string; +} + +// @public +export interface MessagingExtensionQueryOptions { + count?: number; + skip?: number; +} + +// @public +export const messagingExtensionQueryZodSchema: z.ZodObject<{ + commandId: z.ZodOptional; + parameters: z.ZodOptional; + value: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + value?: any; + name?: string | undefined; + }, { + value?: any; + name?: string | undefined; + }>, "many">>; + queryOptions: z.ZodOptional; + count: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + skip?: number | undefined; + count?: number | undefined; + }, { + skip?: number | undefined; + count?: number | undefined; + }>>; + state: z.ZodOptional; +}, "strip", z.ZodTypeAny, { + commandId?: string | undefined; + parameters?: { + value?: any; + name?: string | undefined; + }[] | undefined; + queryOptions?: { + skip?: number | undefined; + count?: number | undefined; + } | undefined; + state?: string | undefined; +}, { + commandId?: string | undefined; + parameters?: { + value?: any; + name?: string | undefined; + }[] | undefined; + queryOptions?: { + skip?: number | undefined; + count?: number | undefined; + } | undefined; + state?: string | undefined; +}>; + +// @public +export interface MessagingExtensionResponse { + cacheInfo?: unknown; + composeExtension?: MessagingExtensionResult; +} + +// @public +export interface MessagingExtensionResult { + activityPreview?: Activity; + attachmentLayout?: AttachmentLayout; + attachments?: MessagingExtensionAttachment[]; + suggestedActions?: MessagingExtensionSuggestedAction; + text?: string; + type?: MessagingExtensionResultType; +} + +// @public +export type MessagingExtensionResultType = 'result' | 'auth' | 'config' | 'message' | 'botMessagePreview' | 'silentAuth'; + +// @public +export interface MessagingExtensionSuggestedAction { + actions?: CardAction[]; +} + +// @public +export interface NotificationInfo { + alert?: boolean; + alertInMeeting?: boolean; + externalResourceUrl?: string; +} + +// @public +export interface OnBehalfOf { + displayName?: string; + itemid: 0 | number; + mentionType: 'person' | string; + mri: string; +} + +// @public +export function parseTeamsChannelData(o: object): TeamsChannelData; + +// @public +export function parseValueMessagingExtensionQuery(value: unknown): MessagingExtensionQuery; + +// @public +export interface ResourceResponse { + id: string; +} + +// @public +export interface TargetedMeetingNotification extends MeetingNotificationBase { + channelData?: MeetingNotificationChannelData; + type: 'targetedMeetingNotification'; +} + +// @public +export interface TargetedMeetingNotificationValue { + recipients: string[]; + surfaces: MeetingSurface[]; +} + +// @public +export interface TaskModuleContinueResponse extends TaskModuleResponseBase { + value?: TaskModuleTaskInfo; +} + +// @public +export interface TaskModuleMessageResponse extends TaskModuleResponseBase { + value?: string; +} + +// @public +export interface TaskModuleRequest { + context?: TaskModuleRequestContext; + data?: any; + tabContext?: any; +} + +// @public +export interface TaskModuleRequestContext { + theme?: string; +} + +// @public +export interface TaskModuleResponse { + cacheInfo?: any; + task?: TaskModuleContinueResponse | TaskModuleMessageResponse; +} + +// @public +export interface TaskModuleResponseBase { + type?: MessagePreviewType; +} + +// @public +export interface TaskModuleTaskInfo { + card?: Attachment; + completionAgentId?: string; + fallbackUrl?: string; + height?: number | 'small' | 'medium' | 'large'; + title?: string; + url?: string; + width?: number | 'small' | 'medium' | 'large'; +} + +// @public +export interface TeamDetails { + aadGroupId?: string; + channelCount?: number; + id?: string; + memberCount?: number; + name?: string; + type?: string; +} + +// @public +export interface TeamInfo { + aadGroupId?: string; + id?: string; + name?: string; +} + +// @public +export class TeamsActivityHandler extends ActivityHandler { + protected dispatchConversationUpdateActivity(context: TurnContext): Promise; + protected dispatchEventActivity(context: TurnContext): Promise; + protected dispatchMessageDeleteActivity(context: TurnContext): Promise; + protected dispatchMessageUpdateActivity(context: TurnContext): Promise; + protected handleTeamsAnonymousAppBasedLinkQuery(_context: TurnContext, _query: AppBasedLinkQuery): Promise; + protected handleTeamsAppBasedLinkQuery(_context: TurnContext, _query: AppBasedLinkQuery): Promise; + protected handleTeamsCardActionInvoke(_context: TurnContext): Promise; + protected handleTeamsConfigFetch(_context: TurnContext, _configData: any): Promise; + protected handleTeamsConfigSubmit(_context: TurnContext, _configData: any): Promise; + protected handleTeamsFileConsent(context: TurnContext, fileConsentCardResponse: FileConsentCardResponse): Promise; + protected handleTeamsFileConsentAccept(_context: TurnContext, _fileConsentCardResponse: FileConsentCardResponse): Promise; + protected handleTeamsFileConsentDecline(_context: TurnContext, _fileConsentCardResponse: FileConsentCardResponse): Promise; + protected handleTeamsMessagingExtensionCardButtonClicked(_context: TurnContext, _cardData: any): Promise; + protected handleTeamsMessagingExtensionConfigurationQuerySettingUrl(_context: TurnContext, _query: MessagingExtensionQuery): Promise; + protected handleTeamsMessagingExtensionConfigurationSetting(_context: TurnContext, _settings: any): Promise; + protected handleTeamsMessagingExtensionFetchTask(_context: TurnContext, _action: MessagingExtensionAction): Promise; + protected handleTeamsMessagingExtensionMessagePreviewEdit(_context: TurnContext, _action: MessagingExtensionAction): Promise; + protected handleTeamsMessagingExtensionMessagePreviewSend(_context: TurnContext, _action: MessagingExtensionAction): Promise; + protected handleTeamsMessagingExtensionQuery(_context: TurnContext, _query: MessagingExtensionQuery): Promise; + protected handleTeamsMessagingExtensionSelectItem(_context: TurnContext, _query: any): Promise; + protected handleTeamsMessagingExtensionSubmitAction(_context: TurnContext, _action: MessagingExtensionAction): Promise; + protected handleTeamsMessagingExtensionSubmitActionDispatch(context: TurnContext, action: MessagingExtensionAction): Promise; + protected handleTeamsTaskModuleFetch(_context: TurnContext, _taskModuleRequest: TaskModuleRequest): Promise; + protected handleTeamsTaskModuleSubmit(_context: TurnContext, _taskModuleRequest: TaskModuleRequest): Promise; + protected onInvokeActivity(context: TurnContext): Promise; + protected onTeamsChannelCreated(context: TurnContext): Promise; + onTeamsChannelCreatedEvent(handler: (channelInfo: ChannelInfo, teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsChannelDeleted(context: TurnContext): Promise; + onTeamsChannelDeletedEvent(handler: (channelInfo: ChannelInfo, teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsChannelRenamed(context: TurnContext): Promise; + onTeamsChannelRenamedEvent(handler: (channelInfo: ChannelInfo, teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsChannelRestored(context: TurnContext): Promise; + onTeamsChannelRestoredEvent(handler: (channelInfo: ChannelInfo, teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMeetingEnd(context: TurnContext): Promise; + onTeamsMeetingEndEvent(handler: (meeting: MeetingEndEventDetails, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMeetingParticipantsJoin(context: TurnContext): Promise; + onTeamsMeetingParticipantsJoinEvent(handler: (meeting: MeetingParticipantsEventDetails, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMeetingParticipantsLeave(context: TurnContext): Promise; + onTeamsMeetingParticipantsLeaveEvent(handler: (meeting: MeetingParticipantsEventDetails, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMeetingStart(context: TurnContext): Promise; + onTeamsMeetingStartEvent(handler: (meeting: MeetingStartEventDetails, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMembersAdded(context: TurnContext): Promise; + onTeamsMembersAddedEvent(handler: (membersAdded: TeamsChannelAccount[], teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMembersRemoved(context: TurnContext): Promise; + onTeamsMembersRemovedEvent(handler: (membersRemoved: TeamsChannelAccount[], teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMessageEdit(context: TurnContext): Promise; + onTeamsMessageEditEvent(handler: (context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMessageSoftDelete(context: TurnContext): Promise; + onTeamsMessageSoftDeleteEvent(handler: (context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsMessageUndelete(context: TurnContext): Promise; + onTeamsMessageUndeleteEvent(handler: (context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsReadReceipt(context: TurnContext): Promise; + onTeamsReadReceiptEvent(handler: (receiptInfo: ReadReceiptInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsTeamArchived(context: TurnContext): Promise; + onTeamsTeamArchivedEvent(handler: (teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsTeamDeleted(context: TurnContext): Promise; + onTeamsTeamDeletedEvent(handler: (teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsTeamHardDeleted(context: TurnContext): Promise; + onTeamsTeamHardDeletedEvent(handler: (teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsTeamRenamed(context: TurnContext): Promise; + onTeamsTeamRenamedEvent(handler: (teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsTeamRestored(context: TurnContext): Promise; + onTeamsTeamRestoredEvent(handler: (teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; + protected onTeamsTeamUnarchived(context: TurnContext): Promise; + onTeamsTeamUnarchivedEvent(handler: (teamInfo: TeamInfo, context: TurnContext, next: () => Promise) => Promise): this; +} + +// @public (undocumented) +export class TeamsAgentExtension extends AgentExtension { + constructor(app: AgentApplication); + // (undocumented) + get meeting(): Meeting; + // (undocumented) + get messageExtension(): MessageExtension; + // (undocumented) + onFeedback(handler: RouteHandler): this; + // (undocumented) + onMessageDelete(handler: RouteHandler): this; + // (undocumented) + onMessageEdit(handler: RouteHandler): this; + // (undocumented) + onMessageUndelete(handler: RouteHandler): this; + // (undocumented) + onTeamsChannelCreated(handler: RouteHandler): this; + // (undocumented) + onTeamsChannelDeleted(handler: RouteHandler): this; + // (undocumented) + onTeamsChannelRenamed(handler: RouteHandler): this; + // (undocumented) + onTeamsChannelRestored(handler: RouteHandler): this; + // (undocumented) + onTeamsMembersAdded(handler: RouteHandler): this; + // (undocumented) + onTeamsMembersRemoved(handler: RouteHandler): this; + // (undocumented) + onTeamsTeamArchived(handler: RouteHandler): this; + // (undocumented) + onTeamsTeamDeleted(handler: RouteHandler): this; + // (undocumented) + onTeamsTeamHardDeleted(handler: RouteHandler): this; + // (undocumented) + onTeamsTeamRenamed(handler: RouteHandler): this; + // (undocumented) + onTeamsTeamRestored(handler: RouteHandler): this; + // (undocumented) + onTeamsTeamUnarchived(handler: RouteHandler): this; + // (undocumented) + get taskModule(): TaskModule; +} + +// @public +export class TeamsAttachmentDownloader implements InputFileDownloader { + constructor(stateKey?: string); + downloadAndStoreFiles(context: TurnContext, state: TState): Promise; + downloadFiles(context: TurnContext): Promise; +} + +// @public +export type TeamsBatchOperationResponse = BatchOperationResponse & { + _response: Response & { + bodyAsText: string; + parsedBody: BatchOperationResponse | {}; + }; +}; + +// @public +export interface TeamsChannelAccount extends ChannelAccount { + email?: string; + givenName?: string; + surname?: string; + tenantId?: string; + userPrincipalName?: string; + userRole?: string; +} + +// @public +export interface TeamsChannelData { + channel?: ChannelInfo; + eventType?: string; + meeting?: TeamsMeetingInfo; + notification?: NotificationInfo; + onBehalfOf?: OnBehalfOf[]; + settings?: TeamsChannelDataSettings; + team?: TeamInfo; + tenant?: TenantInfo; +} + +// @public +export interface TeamsChannelDataSettings { + [properties: string]: unknown; + selectedChannel?: ChannelInfo; +} + +// @public +export const teamsChannelDataZodSchema: z.ZodObject<{ + channel: z.ZodOptional; + name: z.ZodOptional; + type: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + }, { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + }>>; + eventType: z.ZodOptional; + team: z.ZodOptional; + name: z.ZodOptional; + aadGroupId: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + id?: string | undefined; + name?: string | undefined; + aadGroupId?: string | undefined; + }, { + id?: string | undefined; + name?: string | undefined; + aadGroupId?: string | undefined; + }>>; + notification: z.ZodOptional; + alertInMeeting: z.ZodOptional; + externalResourceUrl: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + alert?: boolean | undefined; + alertInMeeting?: boolean | undefined; + externalResourceUrl?: string | undefined; + }, { + alert?: boolean | undefined; + alertInMeeting?: boolean | undefined; + externalResourceUrl?: string | undefined; + }>>; + tenant: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + id?: string | undefined; + }, { + id?: string | undefined; + }>>; + meeting: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + id?: string | undefined; + }, { + id?: string | undefined; + }>>; + settings: z.ZodOptional; + name: z.ZodOptional; + type: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + }, { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + }>>; + }, "strip", z.ZodTypeAny, { + selectedChannel?: { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + } | undefined; + }, { + selectedChannel?: { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + } | undefined; + }>>; + onBehalfOf: z.ZodOptional, z.ZodNumber]>; + mentionType: z.ZodUnion<[z.ZodString, z.ZodLiteral<"person">]>; + mri: z.ZodString; + displayName: z.ZodOptional; + }, "strip", z.ZodTypeAny, { + itemid: number; + mentionType: string; + mri: string; + displayName?: string | undefined; + }, { + itemid: number; + mentionType: string; + mri: string; + displayName?: string | undefined; + }>, "many">>; +}, "strip", z.ZodTypeAny, { + channel?: { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + } | undefined; + eventType?: string | undefined; + team?: { + id?: string | undefined; + name?: string | undefined; + aadGroupId?: string | undefined; + } | undefined; + notification?: { + alert?: boolean | undefined; + alertInMeeting?: boolean | undefined; + externalResourceUrl?: string | undefined; + } | undefined; + tenant?: { + id?: string | undefined; + } | undefined; + meeting?: { + id?: string | undefined; + } | undefined; + settings?: { + selectedChannel?: { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + } | undefined; + } | undefined; + onBehalfOf?: { + itemid: number; + mentionType: string; + mri: string; + displayName?: string | undefined; + }[] | undefined; +}, { + channel?: { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + } | undefined; + eventType?: string | undefined; + team?: { + id?: string | undefined; + name?: string | undefined; + aadGroupId?: string | undefined; + } | undefined; + notification?: { + alert?: boolean | undefined; + alertInMeeting?: boolean | undefined; + externalResourceUrl?: string | undefined; + } | undefined; + tenant?: { + id?: string | undefined; + } | undefined; + meeting?: { + id?: string | undefined; + } | undefined; + settings?: { + selectedChannel?: { + type?: string | undefined; + id?: string | undefined; + name?: string | undefined; + } | undefined; + } | undefined; + onBehalfOf?: { + itemid: number; + mentionType: string; + mri: string; + displayName?: string | undefined; + }[] | undefined; +}>; + +// @public +export type TeamsConversationUpdateEvents = ConversationUpdateEvents | +/** +* Event triggered when a new channel is created. +*/ +'channelCreated' +/** +* Event triggered when a channel is renamed. +*/ +| 'channelRenamed' +/** +* Event triggered when a channel is deleted. +*/ +| 'channelDeleted' +/** +* Event triggered when a deleted channel is restored. +*/ +| 'channelRestored' +/** +* Event triggered when a team is renamed. +*/ +| 'teamRenamed' +/** +* Event triggered when a team is deleted. +*/ +| 'teamDeleted' +/** +* Event triggered when a team is permanently deleted. +*/ +| 'teamHardDeleted' +/** +* Event triggered when a team is archived. +*/ +| 'teamArchived' +/** +* Event triggered when an archived team is unarchived. +*/ +| 'teamUnarchived' +/** +* Event triggered when a deleted team is restored. +*/ +| 'teamRestored' +/** +* Event triggered when the topic name is updated. +*/ +| 'topicName' +/** +* Event triggered when the conversation history is disclosed. +*/ +| 'historyDisclosed'; + +// @public +export class TeamsInfo { + static cancelOperation(context: TurnContext, operationId: string): Promise; + static getFailedEntries(context: TurnContext, operationId: string): Promise; + static getMeetingInfo(context: TurnContext, meetingId?: string): Promise; + static getMeetingParticipant(context: TurnContext, meetingId?: string, participantId?: string, tenantId?: string): Promise>; + static getMember(context: TurnContext, userId: string): Promise; + static getOperationState(context: TurnContext, operationId: string): Promise; + static getPagedMembers(context: TurnContext, pageSize?: number, continuationToken?: string): Promise; + static getPagedTeamMembers(context: TurnContext, teamId?: string, pageSize?: number, continuationToken?: string): Promise; + static getTeamChannels(context: TurnContext, teamId?: string): Promise; + static getTeamDetails(context: TurnContext, teamId?: string): Promise; + static getTeamMember(context: TurnContext, teamId: string, userId: string): Promise; + static sendMeetingNotification(context: TurnContext, notification: MeetingNotification, meetingId?: string): Promise; + static sendMessageToAllUsersInTeam(context: TurnContext, activity: Activity, tenantId: string, teamId: string): Promise; + static sendMessageToAllUsersInTenant(context: TurnContext, activity: Activity, tenantId: string): Promise; + static sendMessageToListOfChannels(context: TurnContext, activity: Activity, tenantId: string, members: TeamsMember[]): Promise; + static sendMessageToListOfUsers(context: TurnContext, activity: Activity, tenantId: string, members: TeamsMember[]): Promise; + static sendMessageToTeamsChannel(context: TurnContext, activity: Activity, teamsChannelId: string, appId?: string): Promise<[ConversationReference, string]>; +} + +// @public +export interface TeamsMeetingInfo { + id?: string; +} + +// @public +export interface TeamsMeetingMember { + meeting: UserMeetingDetails; + user: TeamsChannelAccount; +} + +// @public +export interface TeamsMeetingParticipant { + conversation?: ConversationAccount; + meeting?: Meeting; + user?: TeamsChannelAccount; +} + +// @public +export type TeamsMember = { + id: string; +}; + +// @public +export type TeamsMessageEvents = 'undeleteMessage' | 'softDeleteMessage' | 'editMessage'; + +// @public +export interface TeamsPagedMembersResult { + continuationToken: string; + members: TeamsChannelAccount[]; +} + +// @public +export interface TenantInfo { + id?: string; +} + +// @public +export interface UserMeetingDetails { + inMeeting: boolean; + role: string; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/agents-hosting-extensions-teams/src/client/index.ts b/packages/agents-hosting-extensions-teams/src/client/index.ts index 1b3f542d..42bab317 100644 --- a/packages/agents-hosting-extensions-teams/src/client/index.ts +++ b/packages/agents-hosting-extensions-teams/src/client/index.ts @@ -3,5 +3,4 @@ * Licensed under the MIT License. */ -export * from './teamsConnectorClient' export * from './teamsConnectorClient.types'