@microsoft/teams-js 2.30.0-beta.0 → 2.31.0-beta.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.
Files changed (136) hide show
  1. package/README.md +4 -4
  2. package/dist/esm/_virtual/__polyfill-node.os.js +1 -0
  3. package/dist/esm/_virtual/_polyfill-node.os.js +1 -0
  4. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js +1 -1
  5. package/dist/esm/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js +1 -0
  6. package/dist/esm/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js +1 -0
  7. package/dist/esm/packages/teams-js/dts/index.d.ts +2 -0
  8. package/dist/esm/packages/teams-js/dts/internal/VideoFrameTypes.d.ts +78 -0
  9. package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +8 -0
  10. package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +16 -0
  11. package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +162 -0
  12. package/dist/esm/packages/teams-js/dts/internal/constants.d.ts +146 -0
  13. package/dist/esm/packages/teams-js/dts/internal/deepLinkConstants.d.ts +26 -0
  14. package/dist/esm/packages/teams-js/dts/internal/deepLinkUtilities.d.ts +4 -0
  15. package/dist/esm/packages/teams-js/dts/internal/emailAddressValidation.d.ts +1 -0
  16. package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +12 -0
  17. package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +80 -0
  18. package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +47 -0
  19. package/dist/esm/packages/teams-js/dts/internal/internalAPIs.d.ts +61 -0
  20. package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +94 -0
  21. package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +95 -0
  22. package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +73 -0
  23. package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +105 -0
  24. package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +11 -0
  25. package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +30 -0
  26. package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +344 -0
  27. package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
  28. package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +200 -0
  29. package/dist/esm/packages/teams-js/dts/internal/uuidObject.d.ts +11 -0
  30. package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +6 -0
  31. package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +31 -0
  32. package/dist/esm/packages/teams-js/dts/internal/videoFrameTick.d.ts +10 -0
  33. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceMonitor.d.ts +54 -0
  34. package/dist/esm/packages/teams-js/dts/internal/videoPerformanceStatistics.d.ts +49 -0
  35. package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +89 -0
  36. package/dist/esm/packages/teams-js/dts/private/constants.d.ts +9 -0
  37. package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +152 -0
  38. package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +39 -0
  39. package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +378 -0
  40. package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +75 -0
  41. package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +112 -0
  42. package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +49 -0
  43. package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +123 -0
  44. package/dist/esm/packages/teams-js/dts/private/files.d.ts +758 -0
  45. package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +176 -0
  46. package/dist/esm/packages/teams-js/dts/private/index.d.ts +20 -0
  47. package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +250 -0
  48. package/dist/esm/packages/teams-js/dts/private/logs.d.ts +25 -0
  49. package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +203 -0
  50. package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +107 -0
  51. package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +26 -0
  52. package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +81 -0
  53. package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +60 -0
  54. package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +298 -0
  55. package/dist/esm/packages/teams-js/dts/private/teams.d.ts +116 -0
  56. package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +244 -0
  57. package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
  58. package/dist/esm/packages/teams-js/dts/public/app.d.ts +592 -0
  59. package/dist/esm/packages/teams-js/dts/public/appId.d.ts +33 -0
  60. package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +57 -0
  61. package/dist/esm/packages/teams-js/dts/public/appInstallDialog.d.ts +18 -0
  62. package/dist/esm/packages/teams-js/dts/public/appWindow.d.ts +66 -0
  63. package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +409 -0
  64. package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +53 -0
  65. package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +40 -0
  66. package/dist/esm/packages/teams-js/dts/public/call.d.ts +53 -0
  67. package/dist/esm/packages/teams-js/dts/public/chat.d.ts +66 -0
  68. package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +34 -0
  69. package/dist/esm/packages/teams-js/dts/public/constants.d.ts +179 -0
  70. package/dist/esm/packages/teams-js/dts/public/dialog.d.ts +286 -0
  71. package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
  72. package/dist/esm/packages/teams-js/dts/public/geoLocation.d.ts +100 -0
  73. package/dist/esm/packages/teams-js/dts/public/index.d.ts +44 -0
  74. package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1133 -0
  75. package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +221 -0
  76. package/dist/esm/packages/teams-js/dts/public/location.d.ts +86 -0
  77. package/dist/esm/packages/teams-js/dts/public/mail.d.ts +95 -0
  78. package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +321 -0
  79. package/dist/esm/packages/teams-js/dts/public/media.d.ts +440 -0
  80. package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +906 -0
  81. package/dist/esm/packages/teams-js/dts/public/menus.d.ts +188 -0
  82. package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +58 -0
  83. package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +45 -0
  84. package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +15 -0
  85. package/dist/esm/packages/teams-js/dts/public/pages.d.ts +574 -0
  86. package/dist/esm/packages/teams-js/dts/public/people.d.ts +75 -0
  87. package/dist/esm/packages/teams-js/dts/public/profile.d.ts +127 -0
  88. package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +218 -0
  89. package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +207 -0
  90. package/dist/esm/packages/teams-js/dts/public/search.d.ts +91 -0
  91. package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +32 -0
  92. package/dist/esm/packages/teams-js/dts/public/serializable.interface.d.ts +17 -0
  93. package/dist/esm/packages/teams-js/dts/public/settings.d.ts +101 -0
  94. package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +124 -0
  95. package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +104 -0
  96. package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +62 -0
  97. package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +77 -0
  98. package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +119 -0
  99. package/dist/esm/packages/teams-js/dts/public/version.d.ts +5 -0
  100. package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +213 -0
  101. package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +192 -0
  102. package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +27 -0
  103. package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -1
  104. package/dist/esm/packages/teams-js/src/index.js +1 -1
  105. package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
  106. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
  107. package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -1
  108. package/dist/esm/packages/teams-js/src/internal/responseHandler.js +1 -0
  109. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
  110. package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
  111. package/dist/esm/packages/teams-js/src/private/hostEntity.js +1 -1
  112. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
  113. package/dist/esm/packages/teams-js/src/public/app.js +1 -1
  114. package/dist/esm/packages/teams-js/src/public/appId.js +1 -1
  115. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
  116. package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -1
  117. package/dist/esm/packages/teams-js/src/public/authentication.js +1 -1
  118. package/dist/esm/packages/teams-js/src/public/barCode.js +1 -1
  119. package/dist/esm/packages/teams-js/src/public/calendar.js +1 -1
  120. package/dist/esm/packages/teams-js/src/public/call.js +1 -1
  121. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
  122. package/dist/esm/packages/teams-js/src/public/constants.js +1 -1
  123. package/dist/esm/packages/teams-js/src/public/pages.js +1 -1
  124. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
  125. package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
  126. package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
  127. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
  128. package/dist/esm/packages/teams-js/src/public/version.js +1 -1
  129. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
  130. package/dist/umd/MicrosoftTeams.d.ts +10740 -10768
  131. package/dist/umd/MicrosoftTeams.js +1572 -1360
  132. package/dist/umd/MicrosoftTeams.js.map +1 -1
  133. package/dist/umd/MicrosoftTeams.min.js +1 -1
  134. package/dist/umd/MicrosoftTeams.min.js.map +1 -1
  135. package/package.json +1 -1
  136. package/dist/esm/node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js +0 -1
@@ -0,0 +1,54 @@
1
+ /**
2
+ * This class is used to monitor the performance of video processing, and report performance events.
3
+ */
4
+ export declare class VideoPerformanceMonitor {
5
+ private reportPerformanceEvent;
6
+ private static readonly distributionBinSize;
7
+ private static readonly calculateFPSInterval;
8
+ private isFirstFrameProcessed;
9
+ private applyingEffect?;
10
+ private appliedEffect?;
11
+ private frameProcessTimeLimit;
12
+ private gettingTextureStreamStartedAt;
13
+ private currentStreamId;
14
+ private frameProcessingStartedAt;
15
+ private frameProcessingTimeCost;
16
+ private processedFrameCount;
17
+ private performanceStatistics;
18
+ constructor(reportPerformanceEvent: (apiVersionTag: string, actionName: string, args: unknown[]) => void);
19
+ /**
20
+ * Start to check frame processing time intervally
21
+ * and report performance event if the average frame processing time is too long.
22
+ */
23
+ startMonitorSlowFrameProcessing(): void;
24
+ /**
25
+ * Define the time limit of frame processing.
26
+ * When the average frame processing time is longer than the time limit, a "video.performance.frameProcessingSlow" event will be reported.
27
+ * @param timeLimit
28
+ */
29
+ setFrameProcessTimeLimit(timeLimit: number): void;
30
+ /**
31
+ * Call this function when the app starts to switch to the new video effect
32
+ */
33
+ reportApplyingVideoEffect(effectId: string, effectParam?: string): void;
34
+ /**
35
+ * Call this function when the new video effect is ready
36
+ */
37
+ reportVideoEffectChanged(effectId: string, effectParam?: string): void;
38
+ /**
39
+ * Call this function when the app starts to process a video frame
40
+ */
41
+ reportStartFrameProcessing(frameWidth: number, frameHeight: number): void;
42
+ /**
43
+ * Call this function when the app finishes successfully processing a video frame
44
+ */
45
+ reportFrameProcessed(): void;
46
+ /**
47
+ * Call this function when the app starts to get the texture stream
48
+ */
49
+ reportGettingTextureStream(streamId: string): void;
50
+ /**
51
+ * Call this function when the app finishes successfully getting the texture stream
52
+ */
53
+ reportTextureStreamAcquired(): void;
54
+ }
@@ -0,0 +1,49 @@
1
+ export type VideoPerformanceStatisticsResult = {
2
+ effectId: string;
3
+ effectParam?: string;
4
+ frameWidth: number;
5
+ frameHeight: number;
6
+ /**
7
+ * The duration in milliseconds that the data were collected
8
+ */
9
+ duration: number;
10
+ /**
11
+ * The number of frames that were processed in the duration
12
+ */
13
+ sampleCount: number;
14
+ /**
15
+ * An array that presents counts of frames that were finished in n milliseconds:
16
+ * distributionBins[frameProcessingDurationInMs]=frameCount.
17
+ * For example, distributionBins[10] = 5 means that 5 frames were processed in 10 milliseconds.
18
+ */
19
+ distributionBins: Uint32Array;
20
+ };
21
+ export declare class VideoPerformanceStatistics {
22
+ /**
23
+ * Function to report the statistics result
24
+ */
25
+ private reportStatisticsResult;
26
+ private static readonly initialSessionTimeoutInMs;
27
+ private static readonly maxSessionTimeoutInMs;
28
+ private currentSession;
29
+ private frameProcessingStartedAt;
30
+ private distributionBins;
31
+ private sampleCount;
32
+ private timeoutId;
33
+ constructor(distributionBinSize: number,
34
+ /**
35
+ * Function to report the statistics result
36
+ */
37
+ reportStatisticsResult: (result: VideoPerformanceStatisticsResult) => void);
38
+ /**
39
+ * Call this function before processing every frame
40
+ */
41
+ processStarts(effectId: string, frameWidth: number, frameHeight: number, effectParam?: string): void;
42
+ processEnds(): void;
43
+ private getStatistics;
44
+ private start;
45
+ private suitableForThisSession;
46
+ private reportAndResetSession;
47
+ private resetCurrentSession;
48
+ private getNextTimeout;
49
+ }
@@ -0,0 +1,89 @@
1
+ import { SdkError } from '../public/interfaces';
2
+ /**
3
+ * @hidden
4
+ * Namespace to interact with the application entities specific part of the SDK.
5
+ *
6
+ * @internal
7
+ * Limited to Microsoft-internal use
8
+ */
9
+ export declare namespace appEntity {
10
+ /**
11
+ * @hidden
12
+ *
13
+ * Information on an app entity
14
+ *
15
+ * @internal
16
+ * Limited to Microsoft-internal use
17
+ */
18
+ interface AppEntity {
19
+ /**
20
+ * @hidden
21
+ * ID of the application
22
+ *
23
+ * @internal
24
+ * Limited to Microsoft-internal use
25
+ */
26
+ appId: string;
27
+ /**
28
+ * @hidden
29
+ * URL for the application's icon
30
+ *
31
+ * @internal
32
+ * Limited to Microsoft-internal use
33
+ */
34
+ appIconUrl: string;
35
+ /**
36
+ * @hidden
37
+ * Content URL for the app entity
38
+ *
39
+ * @internal
40
+ * Limited to Microsoft-internal use
41
+ */
42
+ contentUrl: string;
43
+ /**
44
+ * @hidden
45
+ * The display name for the app entity
46
+ *
47
+ * @internal
48
+ * Limited to Microsoft-internal use
49
+ */
50
+ displayName: string;
51
+ /**
52
+ * @hidden
53
+ * Website URL for the app entity. It is meant to be opened by the user in a browser.
54
+ *
55
+ * @internal
56
+ * Limited to Microsoft-internal use
57
+ */
58
+ websiteUrl: string;
59
+ }
60
+ /**
61
+ * @hidden
62
+ * Hide from docs
63
+ * --------
64
+ * Open the Tab Gallery and retrieve the app entity
65
+ * @param threadId ID of the thread where the app entity will be created
66
+ * @param categories A list of application categories that will be displayed in the opened tab gallery
67
+ * @param subEntityId An object that will be made available to the application being configured
68
+ * through the Context's subEntityId field.
69
+ * @param callback Callback that will be triggered once the app entity information is available.
70
+ * The callback takes two arguments: an SdkError in case something happened (i.e.
71
+ * no permissions to execute the API) and the app entity configuration, if available
72
+ *
73
+ * @internal
74
+ * Limited to Microsoft-internal use
75
+ */
76
+ function selectAppEntity(threadId: string, categories: string[], subEntityId: string, callback: (sdkError?: SdkError, appEntity?: AppEntity) => void): void;
77
+ /**
78
+ * @hidden
79
+ *
80
+ * Checks if the appEntity capability is supported by the host
81
+ * @returns boolean to represent whether the appEntity capability is supported
82
+ *
83
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
84
+ *
85
+ * @internal
86
+ * Limited to Microsoft-internal use
87
+ */
88
+ function isSupported(): boolean;
89
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @hidden
3
+ * Error codes that can be thrown from externalAppCommands and externalAppCardCommands Action Submit specifically
4
+ * @internal
5
+ * Limited to Microsoft-internal use
6
+ */
7
+ export declare enum ExternalAppErrorCode {
8
+ INTERNAL_ERROR = "INTERNAL_ERROR"
9
+ }
@@ -0,0 +1,152 @@
1
+ import { ChatMembersInformation } from './interfaces';
2
+ export interface OpenConversationRequest {
3
+ /**
4
+ * @hidden
5
+ * The Id of the subEntity where the conversation is taking place
6
+ *
7
+ * @internal
8
+ * Limited to Microsoft-internal use
9
+ */
10
+ subEntityId: string;
11
+ /**
12
+ * @hidden
13
+ * The title of the conversation
14
+ *
15
+ * @internal
16
+ * Limited to Microsoft-internal use
17
+ */
18
+ title: string;
19
+ /**
20
+ * @hidden
21
+ * The Id of the conversation. This is optional and should be specified whenever a previous conversation about a specific sub-entity has already been started before
22
+ *
23
+ * @internal
24
+ * Limited to Microsoft-internal use
25
+ */
26
+ conversationId?: string;
27
+ /**
28
+ * @hidden
29
+ * The Id of the channel. This is optional and should be specified whenever a conversation is started or opened in a personal app scope
30
+ *
31
+ * @internal
32
+ * Limited to Microsoft-internal use
33
+ */
34
+ channelId?: string;
35
+ /**
36
+ * @hidden
37
+ * The entity Id of the tab
38
+ *
39
+ * @internal
40
+ * Limited to Microsoft-internal use
41
+ */
42
+ entityId: string;
43
+ /**
44
+ * @hidden
45
+ * A function that is called once the conversation Id has been created
46
+ *
47
+ * @internal
48
+ * Limited to Microsoft-internal use
49
+ */
50
+ onStartConversation?: (conversationResponse: ConversationResponse) => void;
51
+ /**
52
+ * @hidden
53
+ * A function that is called if the pane is closed
54
+ *
55
+ * @internal
56
+ * Limited to Microsoft-internal use
57
+ */
58
+ onCloseConversation?: (conversationResponse: ConversationResponse) => void;
59
+ }
60
+ /**
61
+ * @hidden
62
+ *
63
+ * @internal
64
+ * Limited to Microsoft-internal use
65
+ */
66
+ export interface ConversationResponse {
67
+ /**
68
+ * @hidden
69
+ *
70
+ * Limited to Microsoft-internal use
71
+ * The Id of the subEntity where the conversation is taking place
72
+ */
73
+ subEntityId: string;
74
+ /**
75
+ * @hidden
76
+ * The Id of the conversation. This is optional and should be specified whenever a previous conversation about a specific sub-entity has already been started before
77
+ *
78
+ * @internal
79
+ * Limited to Microsoft-internal use
80
+ */
81
+ conversationId?: string;
82
+ /**
83
+ * @hidden
84
+ * The Id of the channel. This is optional and should be specified whenever a conversation is started or opened in a personal app scope
85
+ *
86
+ * @internal
87
+ * Limited to Microsoft-internal use
88
+ */
89
+ channelId?: string;
90
+ /**
91
+ * @hidden
92
+ * The entity Id of the tab
93
+ *
94
+ * @internal
95
+ * Limited to Microsoft-internal use
96
+ */
97
+ entityId?: string;
98
+ }
99
+ /**
100
+ * @hidden
101
+ * Namespace to interact with the conversational subEntities inside the tab
102
+ *
103
+ * @internal
104
+ * Limited to Microsoft-internal use
105
+ */
106
+ export declare namespace conversations {
107
+ /**
108
+ * @hidden
109
+ * Hide from docs
110
+ * --------------
111
+ * Allows the user to start or continue a conversation with each subentity inside the tab
112
+ *
113
+ * @returns Promise resolved upon completion
114
+ *
115
+ * @internal
116
+ * Limited to Microsoft-internal use
117
+ */
118
+ function openConversation(openConversationRequest: OpenConversationRequest): Promise<void>;
119
+ /**
120
+ * @hidden
121
+ *
122
+ * Allows the user to close the conversation in the right pane
123
+ *
124
+ * @internal
125
+ * Limited to Microsoft-internal use
126
+ */
127
+ function closeConversation(): void;
128
+ /**
129
+ * @hidden
130
+ * Hide from docs
131
+ * ------
132
+ * Allows retrieval of information for all chat members.
133
+ * NOTE: This value should be used only as a hint as to who the members are
134
+ * and never as proof of membership in case your app is being hosted by a malicious party.
135
+ *
136
+ * @returns Promise resolved with information on all chat members
137
+ *
138
+ * @internal
139
+ * Limited to Microsoft-internal use
140
+ */
141
+ function getChatMembers(): Promise<ChatMembersInformation>;
142
+ /**
143
+ * Checks if the conversations capability is supported by the host
144
+ * @returns boolean to represent whether conversations capability is supported
145
+ *
146
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
147
+ *
148
+ * @internal
149
+ * Limited to Microsoft-internal use
150
+ */
151
+ function isSupported(): boolean;
152
+ }
@@ -0,0 +1,39 @@
1
+ import { AppEligibilityInformation } from '../public/interfaces';
2
+ /**
3
+ * @beta
4
+ * @hidden
5
+ * Namespace to delegate copilot app specific APIs
6
+ * @internal
7
+ * Limited to Microsoft-internal use
8
+ */
9
+ export declare namespace copilot {
10
+ /**
11
+ * @beta
12
+ * @hidden
13
+ * User information required by specific apps
14
+ * @internal
15
+ * Limited to Microsoft-internal use
16
+ */
17
+ namespace eligibility {
18
+ /**
19
+ * @hidden
20
+ * @internal
21
+ * Limited to Microsoft-internal use
22
+ * @beta
23
+ * @returns boolean to represent whether copilot.eligibility capability is supported
24
+ *
25
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
26
+ */
27
+ function isSupported(): boolean;
28
+ /**
29
+ * @hidden
30
+ * @internal
31
+ * Limited to Microsoft-internal use
32
+ * @beta
33
+ * @returns the copilot eligibility information about the user
34
+ *
35
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
36
+ */
37
+ function getEligibilityInfo(): Promise<AppEligibilityInformation>;
38
+ }
39
+ }