@microsoft/teams-js 2.31.0-beta.1 → 2.31.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/_virtual/_polyfill-node.os.js +1 -1
- package/dist/esm/_virtual/_polyfill-node.process.js +1 -1
- package/dist/esm/_virtual/_polyfill-node.util.js +1 -1
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +11 -1
- package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +10 -0
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +11 -1
- package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +24 -0
- package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +23 -1
- package/dist/esm/packages/teams-js/dts/internal/uint8array-extras/uint8array-extras.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +20 -1
- package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +2 -2
- package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
- package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +61 -61
- package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +48 -48
- package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +2 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +29 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +355 -349
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +70 -68
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +104 -105
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +41 -42
- package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +113 -114
- package/dist/esm/packages/teams-js/dts/private/files.d.ts +590 -582
- package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +42 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
- package/dist/esm/packages/teams-js/dts/private/index.d.ts +19 -18
- package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -25
- package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +147 -142
- package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +31 -25
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +69 -70
- package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +219 -214
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
- package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +192 -186
- package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +21 -2
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +1 -1
- package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/call.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +0 -4
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +0 -13
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +3 -2
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +9 -9
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +11 -0
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +4 -3
- package/dist/esm/packages/teams-js/dts/public/mail.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +0 -3
- package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +8 -0
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
- package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
- package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/public/profile.d.ts +81 -103
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +3 -0
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +9 -0
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/settings.d.ts +4 -3
- package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
- package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +76 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +0 -8
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +2 -1
- package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +209 -210
- package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
- package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +20 -22
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/appIdValidation.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/communication.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/uint8array-extras/uint8array-extras.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/utils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -1
- package/dist/esm/packages/teams-js/src/private/conversations.js +1 -1
- package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -1
- package/dist/esm/packages/teams-js/src/private/files.js +1 -1
- package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
- package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
- package/dist/esm/packages/teams-js/src/private/logs.js +1 -1
- package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -1
- package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/private/notifications.js +1 -1
- package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -1
- package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -1
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -1
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
- package/dist/esm/packages/teams-js/src/public/navigation.js +1 -1
- package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/profile.js +1 -1
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -1
- package/dist/esm/packages/teams-js/src/public/runtime.js +1 -1
- package/dist/esm/packages/teams-js/src/public/settings.js +1 -1
- package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
- package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
- package/dist/esm/packages/teams-js/src/public/tasks.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -1
- package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
- package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
- package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -1
- package/dist/umd/MicrosoftTeams.js +6259 -6439
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/_virtual/_polyfill-node.buffer.js +0 -1
- package/dist/esm/_virtual/_polyfill-node.global.js +0 -1
- package/dist/esm/packages/teams-js/dts/private/copilot.d.ts +0 -39
- package/dist/esm/packages/teams-js/dts/private/hostEntity.d.ts +0 -176
- package/dist/esm/packages/teams-js/dts/private/messageChannels.d.ts +0 -107
- package/dist/esm/packages/teams-js/dts/private/teams.d.ts +0 -116
- package/dist/esm/packages/teams-js/dts/public/meeting.d.ts +0 -906
- package/dist/esm/packages/teams-js/dts/public/pages.d.ts +0 -574
- package/dist/esm/packages/teams-js/dts/public/sharing.d.ts +0 -124
- package/dist/esm/packages/teams-js/dts/public/stageView.d.ts +0 -104
- package/dist/esm/packages/teams-js/dts/public/visualMedia.d.ts +0 -192
- package/dist/esm/packages/teams-js/src/private/copilot.js +0 -1
- package/dist/esm/packages/teams-js/src/private/hostEntity.js +0 -1
- package/dist/esm/packages/teams-js/src/private/messageChannels.js +0 -1
- package/dist/esm/packages/teams-js/src/private/teams.js +0 -1
- package/dist/esm/packages/teams-js/src/public/meeting.js +0 -1
- package/dist/esm/packages/teams-js/src/public/pages.js +0 -1
- package/dist/esm/packages/teams-js/src/public/sharing.js +0 -1
- package/dist/esm/packages/teams-js/src/public/stageView.js +0 -1
- package/dist/esm/packages/teams-js/src/public/visualMedia.js +0 -1
- package/dist/umd/MicrosoftTeams.d.ts +0 -11263
- /package/dist/esm/node_modules/.pnpm/{@rollup_plugin-typescript@11.1.6_rollup@4.24.0_tslib@2.6.3_typescript@4.9.5 → @rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5}/node_modules/tslib/tslib.es6.js +0 -0
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
var n;function r(){if(void 0===n){var r=new ArrayBuffer(2),t=new Uint8Array(r),e=new Uint16Array(r);if(t[0]=1,t[1]=2,258===e[0])n="BE";else{if(513!==e[0])throw new Error("unable to figure out endianess");n="LE"}}return n}function t(){return void 0!==global.location?global.location.hostname:""}function e(){return[]}function o(){return 0}function u(){return Number.MAX_VALUE}function i(){return Number.MAX_VALUE}function a(){return[]}function f(){return"Browser"}function c(){return void 0!==global.navigator?global.navigator.appVersion:""}function l(){return{}}function s(){return{}}function m(){return"javascript"}function p(){return"browser"}function v(){return"/tmp"}var d=v,g="\n";function w(){return"$HOME"}var b={homedir:w,EOL:"\n",arch:m,platform:p,tmpdir:d,tmpDir:v,networkInterfaces:l,getNetworkInterfaces:s,release:c,type:f,cpus:a,totalmem:i,freemem:u,uptime:o,loadavg:e,hostname:t,endianness:r};export{g as EOL,m as arch,a as cpus,b as default,r as endianness,u as freemem,s as getNetworkInterfaces,w as homedir,t as hostname,e as loadavg,l as networkInterfaces,p as platform,c as release,v as tmpDir,d as tmpdir,i as totalmem,f as type,o as uptime};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function e(){throw new Error("setTimeout has not been defined")}function t(){throw new Error("clearTimeout has not been defined")}var r=e,n=t;function o(t){if(r===setTimeout)return setTimeout(t,0);if((r===e||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}"function"==typeof global.setTimeout&&(r=setTimeout),"function"==typeof global.clearTimeout&&(n=clearTimeout);var i,u=[],a=!1,c=-1;function l(){a&&i&&(a=!1,i.length?u=i.concat(u):c=-1,u.length&&f())}function f(){if(!a){var e=o(l);a=!0;for(var r=u.length;r;){for(i=u,u=[];++c<r;)i&&i[c].run();c=-1,r=u.length}i=null,a=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===t||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function s(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||a||o(f)}function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)};var m="browser",w="browser",v=!0,T={},p=[],g="",d={},b={},y={};function E(){}var N=E,k=E,D=E,L=E,x=E,A=E,M=E;function z(e){throw new Error("process.binding is not supported")}function j(){return"/"}function q(e){throw new Error("process.chdir is not supported")}function B(){return 0}var C=global.performance||{},F=C.now||C.mozNow||C.msNow||C.oNow||C.webkitNow||function(){return(new Date).getTime()};function G(e){var t=.001*F.call(C),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]}var H=new Date;function I(){return(new Date-H)/1e3}var J={nextTick:s,title:m,browser:v,env:T,argv:p,version:"",versions:d,on:N,addListener:k,once:D,off:L,removeListener:x,removeAllListeners:A,emit:M,binding:z,cwd:j,chdir:q,umask:B,hrtime:G,platform:w,release:b,config:y,uptime:I};export{k as addListener,p as argv,z as binding,v as browser,q as chdir,y as config,j as cwd,J as default,M as emit,T as env,G as hrtime,s as nextTick,L as off,N as on,D as once,w as platform,b as release,A as removeAllListeners,x as removeListener,m as title,B as umask,I as uptime,g as version,d as versions};
|
@@ -1 +1 @@
|
|
1
|
-
import e from"./_polyfill-node.
|
1
|
+
import e from"./_polyfill-node.process.js";import t from"./_polyfill-node._inherits.js";var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},r=/%[sdj%]/g;function o(e){if(!O(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,i=o.length,u=String(e).replace(r,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}})),c=o[n];n<i;c=o[++n])h(c)||!z(c)?u+=" "+c:u+=" "+s(c);return u}function i(t,n){if(w(global.process))return function(){return i(t,n).apply(this,arguments)};if(!0===e.noDeprecation)return t;var r=!1;return function(){if(!r){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}}var u,c={};function l(t){if(w(u)&&(u=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!c[t])if(new RegExp("\\b"+t+"\\b","i").test(u)){c[t]=function(){var e=o.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else c[t]=function(){};return c[t]}function s(e,t){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(t)?n.showHidden=t:t&&_(n,t),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),p(n,e,n.depth)}function f(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function a(e,t){return e}function p(e,t,n){if(e.customInspect&&t&&P(t.inspect)&&t.inspect!==s&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return O(r)||(r=p(e,r,n)),r}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(O(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(h(t))return e.stylize("null","null")}(e,t);if(o)return o;var i=Object.keys(t),u=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),x(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return y(t);if(0===i.length){if(P(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return y(t)}var l,f="",a=!1,m=["{","}"];(b(t)&&(a=!0,m=["[","]"]),P(t))&&(f=" [Function"+(t.name?": "+t.name:"")+"]");return S(t)&&(f=" "+RegExp.prototype.toString.call(t)),E(t)&&(f=" "+Date.prototype.toUTCString.call(t)),x(t)&&(f=" "+y(t)),0!==i.length||a&&0!=t.length?n<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=a?function(e,t,n,r,o){for(var i=[],u=0,c=t.length;u<c;++u)J(t,String(u))?i.push(g(e,t,n,r,String(u),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(g(e,t,n,r,o,!0))})),i}(e,t,n,u,i):i.map((function(r){return g(e,t,n,u,r,a)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,f,m)):m[0]+f+m[1]}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,o,i){var u,c,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),J(r,o)||(u="["+o+"]"),c||(e.seen.indexOf(l.value)<0?(c=h(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),w(u)){if(i&&o.match(/^\d+$/))return c;(u=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+c}function b(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function h(e){return null===e}function m(e){return null==e}function v(e){return"number"==typeof e}function O(e){return"string"==typeof e}function j(e){return"symbol"==typeof e}function w(e){return void 0===e}function S(e){return z(e)&&"[object RegExp]"===N(e)}function z(e){return"object"==typeof e&&null!==e}function E(e){return z(e)&&"[object Date]"===N(e)}function x(e){return z(e)&&("[object Error]"===N(e)||e instanceof Error)}function P(e){return"function"==typeof e}function D(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Buffer.isBuffer(e)}function N(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e,t;console.log("%s - %s",(e=new Date,t=[F(e.getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":"),[e.getDate(),k[e.getMonth()],t].join(" ")),o.apply(null,arguments))}function _(e,t){if(!t||!z(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function J(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))}function H(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function U(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,u=function(){return o.apply(i,arguments)};t.apply(this,n).then((function(t){e.nextTick(u.bind(null,null,t))}),(function(t){e.nextTick(H.bind(null,t,u))}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,n(t)),r}B.custom=R;var $={inherits:t,_extend:_,log:A,isBuffer:T,isPrimitive:D,isFunction:P,isError:x,isDate:E,isObject:z,isRegExp:S,isUndefined:w,isSymbol:j,isString:O,isNumber:v,isNullOrUndefined:m,isNull:h,isBoolean:d,isArray:b,inspect:s,deprecate:i,format:o,debuglog:l,promisify:B,callbackify:U};export{_ as _extend,U as callbackify,l as debuglog,$ as default,i as deprecate,o as format,t as inherits,s as inspect,b as isArray,d as isBoolean,T as isBuffer,E as isDate,x as isError,P as isFunction,h as isNull,m as isNullOrUndefined,v as isNumber,z as isObject,D as isPrimitive,S as isRegExp,O as isString,j as isSymbol,w as isUndefined,A as log,B as promisify};
|
@@ -1,8 +1,18 @@
|
|
1
1
|
import * as app from '../public/app/app';
|
2
|
+
/**
|
3
|
+
* The response of the notify success callback.
|
4
|
+
*/
|
5
|
+
export interface NotifySuccessResponse {
|
6
|
+
/**
|
7
|
+
* It shows if the callback resolved successfully in the host. If the host does not support answering back to the callback, the result is unknown.
|
8
|
+
*/
|
9
|
+
hasFinishedSuccessfully: true | 'unknown';
|
10
|
+
}
|
2
11
|
export declare function appInitializeHelper(apiVersionTag: string, validMessageOrigins?: string[]): Promise<void>;
|
3
12
|
export declare function notifyAppLoadedHelper(apiVersionTag: string): void;
|
4
13
|
export declare function notifyExpectedFailureHelper(apiVersionTag: string, expectedFailureRequest: app.IExpectedFailureRequest): void;
|
5
14
|
export declare function notifyFailureHelper(apiVersiontag: string, appInitializationFailedRequest: app.IFailedRequest): void;
|
6
|
-
export declare function notifySuccessHelper(apiVersionTag: string):
|
15
|
+
export declare function notifySuccessHelper(apiVersionTag: string): Promise<NotifySuccessResponse>;
|
16
|
+
export declare function callNotifySuccessInHost(apiVersionTag: string): Promise<NotifySuccessResponse>;
|
7
17
|
export declare function registerOnThemeChangeHandlerHelper(apiVersionTag: string, handler: app.themeHandler): void;
|
8
18
|
export declare function openLinkHelper(apiVersionTag: string, deepLink: string): Promise<void>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AppId } from '../public/appId';
|
1
2
|
/**
|
2
3
|
* This function can be used to validate if a string is a "valid" app id.
|
3
4
|
* Valid is a relative term, in this case. Truly valid app ids are UUIDs as documented in the schema:
|
@@ -14,3 +15,12 @@ export declare const minimumValidAppIdLength = 4;
|
|
14
15
|
export declare const maximumValidAppIdLength = 256;
|
15
16
|
export declare function isStringWithinAppIdLengthLimits(potentialAppId: string): boolean;
|
16
17
|
export declare function doesStringContainNonPrintableCharacters(str: string): boolean;
|
18
|
+
/**
|
19
|
+
* @hidden
|
20
|
+
* Checks if the incoming app id is an instance of AppId
|
21
|
+
* @param potentialAppId An object to check if it's an instance of AppId
|
22
|
+
* @throws Error with a message describing the violation
|
23
|
+
* @internal
|
24
|
+
* Limited to Microsoft-internal use
|
25
|
+
*/
|
26
|
+
export declare function validateAppIdInstance(potentialAppId: AppId): void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FrameContexts } from '../public/constants';
|
2
|
-
import { LoadContext, ResumeContext } from '../public/interfaces';
|
2
|
+
import { HostToAppPerformanceMetrics, LoadContext, ResumeContext } from '../public/interfaces';
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
* Limited to Microsoft-internal use
|
@@ -54,6 +54,16 @@ export declare function registerOnThemeChangeHandler(apiVersionTag: string, hand
|
|
54
54
|
* Limited to Microsoft-internal use
|
55
55
|
*/
|
56
56
|
export declare function handleThemeChange(theme: string): void;
|
57
|
+
/**
|
58
|
+
* @internal
|
59
|
+
* Limited to Microsoft-internal use
|
60
|
+
*/
|
61
|
+
export declare function registerHostToAppPerformanceMetricsHandler(handler: (metrics: HostToAppPerformanceMetrics) => void): void;
|
62
|
+
/**
|
63
|
+
* @internal
|
64
|
+
* Limited to Microsoft-internal use
|
65
|
+
*/
|
66
|
+
export declare function handleHostToAppPerformanceMetrics(metrics: HostToAppPerformanceMetrics): void;
|
57
67
|
/**
|
58
68
|
* @internal
|
59
69
|
* Limited to Microsoft-internal use
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { Debugger } from 'debug';
|
2
|
+
import { CallbackInformation } from './interfaces';
|
3
|
+
import { MessageRequest, MessageResponse } from './messageObjects';
|
4
|
+
import { UUID as MessageUUID } from './uuidObject';
|
5
|
+
/**
|
6
|
+
* @internal
|
7
|
+
* Limited to Microsoft-internal use
|
8
|
+
*/
|
9
|
+
export default class HostToAppMessageDelayTelemetry {
|
10
|
+
private static callbackInformation;
|
11
|
+
/**
|
12
|
+
* @internal
|
13
|
+
* Limited to Microsoft-internal use
|
14
|
+
*
|
15
|
+
* Store information about a particular message.
|
16
|
+
* @param messageUUID The message id for the request.
|
17
|
+
* @param callbackInformation The information of the callback.
|
18
|
+
*/
|
19
|
+
static storeCallbackInformation(messageUUID: MessageUUID, callbackInformation: CallbackInformation): void;
|
20
|
+
/**
|
21
|
+
* @internal
|
22
|
+
* Limited to Microsoft-internal use
|
23
|
+
*/
|
24
|
+
static clearMessages(): void;
|
25
|
+
/**
|
26
|
+
* @internal
|
27
|
+
* Limited to Microsoft-internal use
|
28
|
+
*/
|
29
|
+
static deleteMessageInformation(callbackId: MessageUUID): void;
|
30
|
+
/**
|
31
|
+
* @internal
|
32
|
+
* Limited to Microsoft-internal use
|
33
|
+
*
|
34
|
+
* Executes telemetry actions related to host to app performance metrics where event is raised in the host.
|
35
|
+
* @param message The request from the host.
|
36
|
+
* @param logger The logger in case an error occurs.
|
37
|
+
* @param endTime The ending time for calculating the elapsed time
|
38
|
+
*/
|
39
|
+
static handleOneWayPerformanceMetrics(message: MessageRequest, logger: Debugger, endTime?: number): void;
|
40
|
+
/**
|
41
|
+
* @internal
|
42
|
+
* Limited to Microsoft-internal use
|
43
|
+
*
|
44
|
+
* Executes telemetry actions related to host to app performance metrics.
|
45
|
+
* @param callbackId The message id for the request.
|
46
|
+
* @param message The response from the host.
|
47
|
+
* @param logger The logger in case an error occurs.
|
48
|
+
* @param endTime The ending time for calculating the elapsed time
|
49
|
+
*/
|
50
|
+
static handlePerformanceMetrics(callbackID: MessageUUID, message: MessageResponse, logger: Debugger, endTime?: number): void;
|
51
|
+
}
|
@@ -45,3 +45,14 @@ export interface DOMMessageEvent {
|
|
45
45
|
func: string;
|
46
46
|
args?: any[];
|
47
47
|
}
|
48
|
+
/**
|
49
|
+
* @hidden
|
50
|
+
* Meant for providing information related to certain callback context.
|
51
|
+
*
|
52
|
+
* @internal
|
53
|
+
* Limited to Microsoft-internal use
|
54
|
+
*/
|
55
|
+
export interface CallbackInformation {
|
56
|
+
name: string;
|
57
|
+
calledAt: number;
|
58
|
+
}
|
@@ -15,6 +15,7 @@ export interface MessageRequest {
|
|
15
15
|
uuid?: MessageUUID;
|
16
16
|
func: string;
|
17
17
|
timestamp?: number;
|
18
|
+
monotonicTimestamp?: number;
|
18
19
|
args?: any[];
|
19
20
|
apiVersionTag?: string;
|
20
21
|
isPartialResponse?: boolean;
|
@@ -28,6 +29,7 @@ export interface SerializedMessageRequest {
|
|
28
29
|
uuidAsString?: string;
|
29
30
|
func: string;
|
30
31
|
timestamp?: number;
|
32
|
+
monotonicTimestamp?: number;
|
31
33
|
args?: any[];
|
32
34
|
apiVersionTag?: string;
|
33
35
|
}
|
@@ -39,6 +41,7 @@ export interface SerializedMessageResponse {
|
|
39
41
|
id: MessageID;
|
40
42
|
uuidAsString?: string;
|
41
43
|
args?: any[];
|
44
|
+
monotonicTimestamp?: number;
|
42
45
|
isPartialResponse?: boolean;
|
43
46
|
}
|
44
47
|
/**
|
@@ -49,6 +52,7 @@ export interface MessageResponse {
|
|
49
52
|
id: MessageID;
|
50
53
|
uuid?: MessageUUID;
|
51
54
|
args?: any[];
|
55
|
+
monotonicTimestamp?: number;
|
52
56
|
isPartialResponse?: boolean;
|
53
57
|
}
|
54
58
|
/**
|
@@ -65,6 +69,7 @@ export interface MessageResponse {
|
|
65
69
|
export interface MessageRequestWithRequiredProperties extends MessageRequest {
|
66
70
|
id: MessageID;
|
67
71
|
uuid: MessageUUID;
|
72
|
+
/** Deprecated field, is still here for backwards compatibility */
|
68
73
|
timestamp: number;
|
69
74
|
}
|
70
75
|
export declare const serializeMessageRequest: (message: MessageRequest) => SerializedMessageRequest;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FrameInfo, ShareDeepLinkParameters, TabInformation, TabInstance, TabInstanceParameters } from '../public/interfaces';
|
2
|
+
import * as pages from '../public/pages/pages';
|
3
|
+
import { ApiVersionNumber } from './telemetry';
|
4
|
+
/**
|
5
|
+
* v2 APIs telemetry file: All of APIs in this capability file should send out API version v2 ONLY
|
6
|
+
*/
|
7
|
+
export declare const pagesTelemetryVersionNumber: ApiVersionNumber;
|
8
|
+
export declare function navigateCrossDomainHelper(apiVersionTag: string, url: string): Promise<void>;
|
9
|
+
export declare function backStackNavigateBackHelper(apiVersionTag: string): Promise<void>;
|
10
|
+
export declare function tabsNavigateToTabHelper(apiVersionTag: string, tabInstance: TabInstance): Promise<void>;
|
11
|
+
/**
|
12
|
+
* @hidden
|
13
|
+
*/
|
14
|
+
export declare function returnFocusHelper(apiVersionTag: string, navigateForward?: boolean): void;
|
15
|
+
export declare function getTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
16
|
+
export declare function getMruTabInstancesHelper(apiVersionTag: string, tabInstanceParameters?: TabInstanceParameters): Promise<TabInformation>;
|
17
|
+
export declare function shareDeepLinkHelper(apiVersionTag: string, deepLinkParameters: ShareDeepLinkParameters): void;
|
18
|
+
export declare function setCurrentFrameHelper(apiVersionTag: string, frameInfo: FrameInfo): void;
|
19
|
+
export declare function configSetValidityStateHelper(apiVersionTag: string, validityState: boolean): void;
|
20
|
+
export declare function getConfigHelper(apiVersionTag: string): Promise<pages.InstanceConfig>;
|
21
|
+
export declare function configSetConfigHelper(apiVersionTag: string, instanceConfig: pages.InstanceConfig): Promise<void>;
|
22
|
+
export declare function isAppNavigationParametersObject(obj: pages.AppNavigationParameters | pages.NavigateToAppParams): obj is pages.AppNavigationParameters;
|
23
|
+
export declare function convertNavigateToAppParamsToAppNavigationParameters(params: pages.NavigateToAppParams): pages.AppNavigationParameters;
|
24
|
+
export declare function convertAppNavigationParametersToNavigateToAppParams(params: pages.AppNavigationParameters): pages.NavigateToAppParams;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import * as profile from '../public/profile';
|
2
2
|
/**
|
3
3
|
* @hidden
|
4
4
|
* Validates the request parameters
|
@@ -9,3 +9,25 @@ import { profile } from '../public/profile';
|
|
9
9
|
* Limited to Microsoft-internal use
|
10
10
|
*/
|
11
11
|
export declare function validateShowProfileRequest(showProfileRequest: profile.ShowProfileRequest): [boolean, string | undefined];
|
12
|
+
/**
|
13
|
+
* Internal representation of a DOMRect suitable for sending via postMessage.
|
14
|
+
*/
|
15
|
+
type Rectangle = {
|
16
|
+
x: number;
|
17
|
+
y: number;
|
18
|
+
width: number;
|
19
|
+
height: number;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* @beta
|
23
|
+
* @hidden
|
24
|
+
* An internal representation of the showProfile parameters suitable for sending via postMessage.
|
25
|
+
* The hub expects to receive an object of this type.
|
26
|
+
*/
|
27
|
+
export interface ShowProfileRequestInternal {
|
28
|
+
modality?: profile.Modality;
|
29
|
+
persona: profile.Persona;
|
30
|
+
targetRectangle: Rectangle;
|
31
|
+
triggerType: profile.TriggerType;
|
32
|
+
}
|
33
|
+
export {};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
2
|
+
export declare function isUint8Array(value: unknown): value is Uint8Array;
|
3
|
+
export declare function base64ToUint8Array(base64String: string): Uint8Array;
|
4
|
+
export declare function uint8ArrayToString(array: Uint8Array | ArrayBuffer, encoding?: string): string;
|
5
|
+
export declare function base64ToString(base64String: string): string;
|
6
|
+
export declare function assertUint8ArrayOrArrayBuffer(value: any): void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AdaptiveCardVersion, SdkError } from '../public/interfaces';
|
2
|
-
import
|
2
|
+
import * as pages from '../public/pages/pages';
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
* Limited to Microsoft-internal use
|
@@ -198,3 +198,22 @@ export declare function hasScriptTags(input: string): boolean;
|
|
198
198
|
* Limited to Microsoft-internal use
|
199
199
|
*/
|
200
200
|
export declare function validateUuid(id: string | undefined | null): void;
|
201
|
+
/**
|
202
|
+
* @internal
|
203
|
+
* Limited to Microsoft-internal use
|
204
|
+
* @returns current timestamp in milliseconds
|
205
|
+
*/
|
206
|
+
export declare function getCurrentTimestamp(): number | undefined;
|
207
|
+
/**
|
208
|
+
* @hidden
|
209
|
+
* @internal
|
210
|
+
* Limited to Microsoft-internal use
|
211
|
+
*
|
212
|
+
* Function to check whether the data is a primitive type or a plain object.
|
213
|
+
* Recursion is limited to a maximum depth of 1000 to prevent excessive nesting and potential stack overflow.
|
214
|
+
*
|
215
|
+
* @param value The value to check
|
216
|
+
* @returns true if the value is a primitive type or a plain object, false otherwise
|
217
|
+
*
|
218
|
+
*/
|
219
|
+
export declare function isPrimitiveOrPlainObject(value: unknown, depth?: number): boolean;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import * as videoEffectsEx from '../private/videoEffectsEx';
|
2
|
+
import * as videoEffects from '../public/videoEffects';
|
3
3
|
import { VideoPerformanceMonitor } from './videoPerformanceMonitor';
|
4
4
|
/**
|
5
5
|
* @hidden
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* @hidden
|
3
|
+
* All properties common to Image and Video Props
|
4
|
+
*
|
5
|
+
* @beta
|
6
|
+
*/
|
7
|
+
export interface VisualMediaProps {
|
8
|
+
/**
|
9
|
+
* @hidden
|
10
|
+
* The maximum number of media items that can be selected at once is limited to values that are less than or equal to the maximum visual media selection limit.
|
11
|
+
*/
|
12
|
+
maxVisualMediaCount: number;
|
13
|
+
}
|
14
|
+
export declare const maxVisualMediaSelectionLimit = 10;
|
@@ -1,89 +1,89 @@
|
|
1
|
+
/**
|
2
|
+
* @hidden
|
3
|
+
* Module to interact with the application entities specific part of the SDK.
|
4
|
+
*
|
5
|
+
* @internal
|
6
|
+
* Limited to Microsoft-internal use
|
7
|
+
*
|
8
|
+
* @module
|
9
|
+
*/
|
1
10
|
import { SdkError } from '../public/interfaces';
|
2
11
|
/**
|
3
12
|
* @hidden
|
4
|
-
*
|
13
|
+
*
|
14
|
+
* Information on an app entity
|
5
15
|
*
|
6
16
|
* @internal
|
7
17
|
* Limited to Microsoft-internal use
|
8
18
|
*/
|
9
|
-
export
|
19
|
+
export interface AppEntity {
|
10
20
|
/**
|
11
21
|
* @hidden
|
12
|
-
*
|
13
|
-
* Information on an app entity
|
22
|
+
* ID of the application
|
14
23
|
*
|
15
24
|
* @internal
|
16
25
|
* Limited to Microsoft-internal use
|
17
26
|
*/
|
18
|
-
|
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
|
-
}
|
27
|
+
appId: string;
|
60
28
|
/**
|
61
29
|
* @hidden
|
62
|
-
*
|
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
|
30
|
+
* URL for the application's icon
|
72
31
|
*
|
73
32
|
* @internal
|
74
33
|
* Limited to Microsoft-internal use
|
75
34
|
*/
|
76
|
-
|
35
|
+
appIconUrl: string;
|
77
36
|
/**
|
78
37
|
* @hidden
|
38
|
+
* Content URL for the app entity
|
79
39
|
*
|
80
|
-
*
|
81
|
-
*
|
40
|
+
* @internal
|
41
|
+
* Limited to Microsoft-internal use
|
42
|
+
*/
|
43
|
+
contentUrl: string;
|
44
|
+
/**
|
45
|
+
* @hidden
|
46
|
+
* The display name for the app entity
|
82
47
|
*
|
83
|
-
* @
|
48
|
+
* @internal
|
49
|
+
* Limited to Microsoft-internal use
|
50
|
+
*/
|
51
|
+
displayName: string;
|
52
|
+
/**
|
53
|
+
* @hidden
|
54
|
+
* Website URL for the app entity. It is meant to be opened by the user in a browser.
|
84
55
|
*
|
85
56
|
* @internal
|
86
57
|
* Limited to Microsoft-internal use
|
87
58
|
*/
|
88
|
-
|
59
|
+
websiteUrl: string;
|
89
60
|
}
|
61
|
+
/**
|
62
|
+
* @hidden
|
63
|
+
* Hide from docs
|
64
|
+
* --------
|
65
|
+
* Open the Tab Gallery and retrieve the app entity
|
66
|
+
* @param threadId ID of the thread where the app entity will be created
|
67
|
+
* @param categories A list of application categories that will be displayed in the opened tab gallery
|
68
|
+
* @param subEntityId An object that will be made available to the application being configured
|
69
|
+
* through the Context's subEntityId field.
|
70
|
+
* @param callback Callback that will be triggered once the app entity information is available.
|
71
|
+
* The callback takes two arguments: an SdkError in case something happened (i.e.
|
72
|
+
* no permissions to execute the API) and the app entity configuration, if available
|
73
|
+
*
|
74
|
+
* @internal
|
75
|
+
* Limited to Microsoft-internal use
|
76
|
+
*/
|
77
|
+
export declare function selectAppEntity(threadId: string, categories: string[], subEntityId: string, callback: (sdkError?: SdkError, appEntity?: AppEntity) => void): void;
|
78
|
+
/**
|
79
|
+
* @hidden
|
80
|
+
*
|
81
|
+
* Checks if the appEntity capability is supported by the host
|
82
|
+
* @returns boolean to represent whether the appEntity capability is supported
|
83
|
+
*
|
84
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
85
|
+
*
|
86
|
+
* @internal
|
87
|
+
* Limited to Microsoft-internal use
|
88
|
+
*/
|
89
|
+
export declare function isSupported(): boolean;
|
@@ -1,3 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* @hidden
|
3
|
+
* Module to interact with the conversational subEntities inside the tab
|
4
|
+
*
|
5
|
+
* @internal
|
6
|
+
* Limited to Microsoft-internal use
|
7
|
+
*
|
8
|
+
* @module
|
9
|
+
*/
|
1
10
|
import { ChatMembersInformation } from './interfaces';
|
2
11
|
export interface OpenConversationRequest {
|
3
12
|
/**
|
@@ -98,55 +107,46 @@ export interface ConversationResponse {
|
|
98
107
|
}
|
99
108
|
/**
|
100
109
|
* @hidden
|
101
|
-
*
|
110
|
+
* Hide from docs
|
111
|
+
* --------------
|
112
|
+
* Allows the user to start or continue a conversation with each subentity inside the tab
|
113
|
+
*
|
114
|
+
* @returns Promise resolved upon completion
|
102
115
|
*
|
103
116
|
* @internal
|
104
117
|
* Limited to Microsoft-internal use
|
105
118
|
*/
|
106
|
-
export declare
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
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
|
-
}
|
119
|
+
export declare function openConversation(openConversationRequest: OpenConversationRequest): Promise<void>;
|
120
|
+
/**
|
121
|
+
* @hidden
|
122
|
+
*
|
123
|
+
* Allows the user to close the conversation in the right pane
|
124
|
+
*
|
125
|
+
* @internal
|
126
|
+
* Limited to Microsoft-internal use
|
127
|
+
*/
|
128
|
+
export declare function closeConversation(): void;
|
129
|
+
/**
|
130
|
+
* @hidden
|
131
|
+
* Hide from docs
|
132
|
+
* ------
|
133
|
+
* Allows retrieval of information for all chat members.
|
134
|
+
* NOTE: This value should be used only as a hint as to who the members are
|
135
|
+
* and never as proof of membership in case your app is being hosted by a malicious party.
|
136
|
+
*
|
137
|
+
* @returns Promise resolved with information on all chat members
|
138
|
+
*
|
139
|
+
* @internal
|
140
|
+
* Limited to Microsoft-internal use
|
141
|
+
*/
|
142
|
+
export declare function getChatMembers(): Promise<ChatMembersInformation>;
|
143
|
+
/**
|
144
|
+
* Checks if the conversations capability is supported by the host
|
145
|
+
* @returns boolean to represent whether conversations capability is supported
|
146
|
+
*
|
147
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
148
|
+
*
|
149
|
+
* @internal
|
150
|
+
* Limited to Microsoft-internal use
|
151
|
+
*/
|
152
|
+
export declare function isSupported(): boolean;
|