@microsoft/teams-js 2.31.0-beta.2 → 2.31.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.
- package/README.md +4 -4
- package/dist/esm/packages/teams-js/dts/internal/appIdValidation.d.ts +10 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +11 -8
- package/dist/esm/packages/teams-js/src/internal/appIdValidation.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -1
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/umd/MicrosoftTeams.d.ts +14 -11
- package/dist/umd/MicrosoftTeams.js +46 -16
- 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 +50 -1
package/README.md
CHANGED
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
|
|
24
24
|
|
25
25
|
### Production
|
26
26
|
|
27
|
-
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.31.0/js/MicrosoftTeams.min.js) or point your package manager at them.
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
@@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
|
|
45
45
|
```html
|
46
46
|
<!-- Microsoft Teams JavaScript API (via CDN) -->
|
47
47
|
<script
|
48
|
-
src="https://res.cdn.office.net/teams-js/2.
|
49
|
-
integrity="sha384-
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.31.0/js/MicrosoftTeams.min.js"
|
49
|
+
integrity="sha384-A2y7iMKbK0AQrgKq1YKcLB8XgtyowB2MPzC40KFfA58nQObf6xU3C5NE0cTcis0V"
|
50
50
|
crossorigin="anonymous"
|
51
51
|
></script>
|
52
52
|
|
53
53
|
<!-- Microsoft Teams JavaScript API (via npm) -->
|
54
|
-
<script src="node_modules/@microsoft/teams-js@2.
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.31.0/dist/MicrosoftTeams.min.js"></script>
|
55
55
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
@@ -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,11 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* @hidden
|
3
|
-
* Module to delegate authentication requests to the host for custom engine agents
|
4
|
-
* @internal
|
5
|
-
* Limited to Microsoft-internal use
|
6
|
-
* @beta
|
7
|
-
* @module
|
8
|
-
*/
|
9
1
|
import { AppId } from '../public';
|
10
2
|
import * as externalAppAuthentication from './externalAppAuthentication';
|
11
3
|
/**
|
@@ -72,3 +64,14 @@ export declare function authenticateWithSSOAndResendRequest(appId: AppId, conver
|
|
72
64
|
* Limited to Microsoft-internal use
|
73
65
|
*/
|
74
66
|
export declare function isSupported(): boolean;
|
67
|
+
/**
|
68
|
+
* @hidden
|
69
|
+
* Checks if the input is valid
|
70
|
+
* @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
|
71
|
+
* @param conversationId ConversationId To tell the bot what conversation the calls are coming from
|
72
|
+
|
73
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
74
|
+
* @internal
|
75
|
+
* Limited to Microsoft-internal use
|
76
|
+
*/
|
77
|
+
export declare function validateInput(appId: AppId, conversationId: string): void;
|
@@ -1 +1 @@
|
|
1
|
-
import{hasScriptTags as t}from"./utils.js";function
|
1
|
+
import{AppId as i}from"../public/appId.js";import{hasScriptTags as t}from"./utils.js";function n(i){if(t(i))throw new Error(`Potential app id (${i}) is invalid; it contains script tags.`);if(!a(i))throw new Error(`Potential app id (${i}) is invalid; its length ${i.length} is not within the length limits (${o}-${r}).`);if(e(i))throw new Error(`Potential app id (${i}) is invalid; it contains non-printable characters.`)}const o=4,r=256;function a(i){return i.length<r&&i.length>o}function e(i){return[...i].some((i=>{const t=i.charCodeAt(0);return t<32||t>126}))}function s(t){if(!(t instanceof i))throw new Error(`Potential app id (${t}) is invalid; it is not an instance of AppId class.`)}export{e as doesStringContainNonPrintableCharacters,a as isStringWithinAppIdLengthLimits,r as maximumValidAppIdLength,o as minimumValidAppIdLength,s as validateAppIdInstance,n as validateStringAsAppId};
|
@@ -1 +1 @@
|
|
1
|
-
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{callFunctionInHost as
|
1
|
+
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{validateAppIdInstance as n}from"../internal/appIdValidation.js";import{callFunctionInHost as e,callFunctionInHostAndHandleResponse as i}from"../internal/communication.js";import{ensureInitialized as r}from"../internal/internalAPIs.js";import{getApiVersionTag as o}from"../internal/telemetry.js";import{validateId as u}from"../internal/utils.js";import{FrameContexts as a,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";import{validateActionExecuteInvokeRequest as c,ActionExecuteResponseHandler as h,SerializableActionExecuteInvokeRequest as l,isInvokeError as A}from"./externalAppAuthentication.js";const m="v2";function d(n,i,u){return t(this,void 0,void 0,(function*(){if(r(s,a.content),!v())throw p;return w(n,i),e("externalAppAuthenticationForCEA.authenticateWithSSO",[n,i,u.claims,u.silent],o(m,"externalAppAuthenticationForCEA.authenticateWithSSO"),A)}))}function f(n,i,u){return t(this,void 0,void 0,(function*(){if(r(s,a.content),!v())throw p;return w(n,i),e("externalAppAuthenticationForCEA.authenticateWithOauth",[n,i,u.url.href,u.width,u.height,u.isExternal],o(m,"externalAppAuthenticationForCEA.authenticateWithOauth"),A)}))}function x(n,e,u,d){return t(this,void 0,void 0,(function*(){if(r(s,a.content),!v())throw p;return w(n,e),c(d),i("externalAppAuthenticationForCEA.authenticateAndResendRequest",[n,e,new l(d),u.url.href,u.width,u.height,u.isExternal],new h,o(m,"externalAppAuthenticationForCEA.authenticateAndResendRequest"),A)}))}function E(n,e,u,d){return t(this,void 0,void 0,(function*(){if(r(s,a.content),!v())throw p;return w(n,e),c(d),i("externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest",[n,e,new l(d),u.claims,u.silent],new h,o(m,"externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest"),A)}))}function v(){return!(!r(s)||!s.supports.externalAppAuthenticationForCEA)}function w(t,e){u(e,new Error("conversation id is not valid.")),n(t)}export{x as authenticateAndResendRequest,f as authenticateWithOauth,d as authenticateWithSSO,E as authenticateWithSSOAndResendRequest,v as isSupported,w as validateInput};
|
@@ -1 +1 @@
|
|
1
|
-
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParentAsync as
|
1
|
+
import{__awaiter as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.24.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js";import{sendMessageToParentAsync as o,sendAndUnwrap as r}from"../internal/communication.js";import{ensureInitialized as n}from"../internal/internalAPIs.js";import{getApiVersionTag as i}from"../internal/telemetry.js";import{FrameContexts as e,errorNotSupportedOnPlatform as p}from"../public/constants.js";import{runtime as s}from"../public/runtime.js";import{validateInput as c}from"./externalAppAuthenticationForCEA.js";function l(r,l,m){return t(this,void 0,void 0,(function*(){if(n(s,e.content),!A())throw p;c(r,l);const[t,u]=yield o(i("v2","externalAppCardActionsForCEA.processActionOpenUrl"),"externalAppCardActionsForCEA.processActionOpenUrl",[r.toString(),l,m.href]);if(t)throw t;return u}))}function m(o,l,m){return t(this,void 0,void 0,(function*(){if(n(s,e.content),!A())throw p;c(o,l);const t=yield r(i("v2","externalAppCardActionsForCEA.processActionSubmit"),"externalAppCardActionsForCEA.processActionSubmit",o.toString(),l,m);if(t)throw t}))}function A(){return!(!n(s)||!s.supports.externalAppCardActionsForCEA)}export{A as isSupported,l as processActionOpenUrl,m as processActionSubmit};
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const o="2.31.0";export{o as version};
|
@@ -9124,15 +9124,6 @@ declare namespace marketplace_d {
|
|
9124
9124
|
export { type marketplace_d_AddOrUpdateCartItemsParams as AddOrUpdateCartItemsParams, type marketplace_d_Cart as Cart, type marketplace_d_CartItem as CartItem, marketplace_d_CartStatus as CartStatus, marketplace_d_Intent as Intent, type marketplace_d_Item as Item, type marketplace_d_RemoveCartItemsParams as RemoveCartItemsParams, type marketplace_d_UpdateCartStatusParams as UpdateCartStatusParams, marketplace_d_addOrUpdateCartItems as addOrUpdateCartItems, marketplace_d_cartVersion as cartVersion, marketplace_d_getCart as getCart, isSupported$i as isSupported, marketplace_d_removeCartItems as removeCartItems, marketplace_d_updateCartStatus as updateCartStatus };
|
9125
9125
|
}
|
9126
9126
|
|
9127
|
-
/**
|
9128
|
-
* @hidden
|
9129
|
-
* Module to delegate authentication requests to the host for custom engine agents
|
9130
|
-
* @internal
|
9131
|
-
* Limited to Microsoft-internal use
|
9132
|
-
* @beta
|
9133
|
-
* @module
|
9134
|
-
*/
|
9135
|
-
|
9136
9127
|
/**
|
9137
9128
|
* @beta
|
9138
9129
|
* @hidden
|
@@ -9196,14 +9187,26 @@ declare function authenticateWithSSOAndResendRequest(appId: AppId, conversationI
|
|
9196
9187
|
* @internal
|
9197
9188
|
* Limited to Microsoft-internal use
|
9198
9189
|
*/
|
9199
|
-
declare function isSupported$h(): boolean;
|
9190
|
+
declare function isSupported$h(): boolean;
|
9191
|
+
/**
|
9192
|
+
* @hidden
|
9193
|
+
* Checks if the input is valid
|
9194
|
+
* @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
|
9195
|
+
* @param conversationId ConversationId To tell the bot what conversation the calls are coming from
|
9196
|
+
|
9197
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
9198
|
+
* @internal
|
9199
|
+
* Limited to Microsoft-internal use
|
9200
|
+
*/
|
9201
|
+
declare function validateInput(appId: AppId, conversationId: string): void;
|
9200
9202
|
|
9201
9203
|
declare const externalAppAuthenticationForCEA_d_authenticateAndResendRequest: typeof authenticateAndResendRequest;
|
9202
9204
|
declare const externalAppAuthenticationForCEA_d_authenticateWithOauth: typeof authenticateWithOauth;
|
9203
9205
|
declare const externalAppAuthenticationForCEA_d_authenticateWithSSO: typeof authenticateWithSSO;
|
9204
9206
|
declare const externalAppAuthenticationForCEA_d_authenticateWithSSOAndResendRequest: typeof authenticateWithSSOAndResendRequest;
|
9207
|
+
declare const externalAppAuthenticationForCEA_d_validateInput: typeof validateInput;
|
9205
9208
|
declare namespace externalAppAuthenticationForCEA_d {
|
9206
|
-
export { externalAppAuthenticationForCEA_d_authenticateAndResendRequest as authenticateAndResendRequest, externalAppAuthenticationForCEA_d_authenticateWithOauth as authenticateWithOauth, externalAppAuthenticationForCEA_d_authenticateWithSSO as authenticateWithSSO, externalAppAuthenticationForCEA_d_authenticateWithSSOAndResendRequest as authenticateWithSSOAndResendRequest, isSupported$h as isSupported };
|
9209
|
+
export { externalAppAuthenticationForCEA_d_authenticateAndResendRequest as authenticateAndResendRequest, externalAppAuthenticationForCEA_d_authenticateWithOauth as authenticateWithOauth, externalAppAuthenticationForCEA_d_authenticateWithSSO as authenticateWithSSO, externalAppAuthenticationForCEA_d_authenticateWithSSOAndResendRequest as authenticateWithSSOAndResendRequest, isSupported$h as isSupported, externalAppAuthenticationForCEA_d_validateInput as validateInput };
|
9207
9210
|
}
|
9208
9211
|
|
9209
9212
|
/**
|
@@ -1232,7 +1232,8 @@ __webpack_require__.d(externalAppAuthenticationForCEA_namespaceObject, {
|
|
1232
1232
|
authenticateWithOauth: () => (authenticateWithOauth),
|
1233
1233
|
authenticateWithSSO: () => (externalAppAuthenticationForCEA_authenticateWithSSO),
|
1234
1234
|
authenticateWithSSOAndResendRequest: () => (externalAppAuthenticationForCEA_authenticateWithSSOAndResendRequest),
|
1235
|
-
isSupported: () => (externalAppAuthenticationForCEA_isSupported)
|
1235
|
+
isSupported: () => (externalAppAuthenticationForCEA_isSupported),
|
1236
|
+
validateInput: () => (validateInput)
|
1236
1237
|
});
|
1237
1238
|
|
1238
1239
|
// NAMESPACE OBJECT: ./src/private/externalAppCardActions.ts
|
@@ -3453,7 +3454,7 @@ function isSerializable(arg) {
|
|
3453
3454
|
* @hidden
|
3454
3455
|
* Package version.
|
3455
3456
|
*/
|
3456
|
-
const version = "2.31.0
|
3457
|
+
const version = "2.31.0";
|
3457
3458
|
|
3458
3459
|
;// ./src/internal/internalAPIs.ts
|
3459
3460
|
|
@@ -3586,6 +3587,7 @@ function processAdditionalValidOrigins(validMessageOrigins) {
|
|
3586
3587
|
|
3587
3588
|
;// ./src/internal/appIdValidation.ts
|
3588
3589
|
|
3590
|
+
|
3589
3591
|
/**
|
3590
3592
|
* This function can be used to validate if a string is a "valid" app id.
|
3591
3593
|
* Valid is a relative term, in this case. Truly valid app ids are UUIDs as documented in the schema:
|
@@ -3619,6 +3621,19 @@ function doesStringContainNonPrintableCharacters(str) {
|
|
3619
3621
|
return charCode < 32 || charCode > 126;
|
3620
3622
|
});
|
3621
3623
|
}
|
3624
|
+
/**
|
3625
|
+
* @hidden
|
3626
|
+
* Checks if the incoming app id is an instance of AppId
|
3627
|
+
* @param potentialAppId An object to check if it's an instance of AppId
|
3628
|
+
* @throws Error with a message describing the violation
|
3629
|
+
* @internal
|
3630
|
+
* Limited to Microsoft-internal use
|
3631
|
+
*/
|
3632
|
+
function validateAppIdInstance(potentialAppId) {
|
3633
|
+
if (!(potentialAppId instanceof AppId)) {
|
3634
|
+
throw new Error(`Potential app id (${potentialAppId}) is invalid; it is not an instance of AppId class.`);
|
3635
|
+
}
|
3636
|
+
}
|
3622
3637
|
|
3623
3638
|
;// ./src/public/appId.ts
|
3624
3639
|
|
@@ -8707,14 +8722,6 @@ function externalAppAuthentication_isSupported() {
|
|
8707
8722
|
}
|
8708
8723
|
|
8709
8724
|
;// ./src/private/externalAppAuthenticationForCEA.ts
|
8710
|
-
/**
|
8711
|
-
* @hidden
|
8712
|
-
* Module to delegate authentication requests to the host for custom engine agents
|
8713
|
-
* @internal
|
8714
|
-
* Limited to Microsoft-internal use
|
8715
|
-
* @beta
|
8716
|
-
* @module
|
8717
|
-
*/
|
8718
8725
|
var externalAppAuthenticationForCEA_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8719
8726
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
8720
8727
|
return new (P || (P = Promise))(function (resolve, reject) {
|
@@ -8724,6 +8731,15 @@ var externalAppAuthenticationForCEA_awaiter = (undefined && undefined.__awaiter)
|
|
8724
8731
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8725
8732
|
});
|
8726
8733
|
};
|
8734
|
+
/**
|
8735
|
+
* @hidden
|
8736
|
+
* Module to delegate authentication requests to the host for custom engine agents
|
8737
|
+
* @internal
|
8738
|
+
* Limited to Microsoft-internal use
|
8739
|
+
* @beta
|
8740
|
+
* @module
|
8741
|
+
*/
|
8742
|
+
|
8727
8743
|
|
8728
8744
|
|
8729
8745
|
|
@@ -8750,7 +8766,7 @@ function externalAppAuthenticationForCEA_authenticateWithSSO(appId, conversation
|
|
8750
8766
|
if (!externalAppAuthenticationForCEA_isSupported()) {
|
8751
8767
|
throw errorNotSupportedOnPlatform;
|
8752
8768
|
}
|
8753
|
-
|
8769
|
+
validateInput(appId, conversationId);
|
8754
8770
|
return callFunctionInHost("externalAppAuthenticationForCEA.authenticateWithSSO" /* ApiName.ExternalAppAuthenticationForCEA_AuthenticateWithSSO */, [appId, conversationId, authTokenRequest.claims, authTokenRequest.silent], getApiVersionTag(externalAppAuthenticationForCEA_externalAppAuthenticationTelemetryVersionNumber, "externalAppAuthenticationForCEA.authenticateWithSSO" /* ApiName.ExternalAppAuthenticationForCEA_AuthenticateWithSSO */), isInvokeError);
|
8755
8771
|
});
|
8756
8772
|
}
|
@@ -8772,7 +8788,7 @@ function authenticateWithOauth(appId, conversationId, authenticateParameters) {
|
|
8772
8788
|
if (!externalAppAuthenticationForCEA_isSupported()) {
|
8773
8789
|
throw errorNotSupportedOnPlatform;
|
8774
8790
|
}
|
8775
|
-
|
8791
|
+
validateInput(appId, conversationId);
|
8776
8792
|
// Ask the parent window to open an authentication window with the parameters provided by the caller.
|
8777
8793
|
return callFunctionInHost("externalAppAuthenticationForCEA.authenticateWithOauth" /* ApiName.ExternalAppAuthenticationForCEA_AuthenticateWithOauth */, [
|
8778
8794
|
appId,
|
@@ -8803,7 +8819,7 @@ function externalAppAuthenticationForCEA_authenticateAndResendRequest(appId, con
|
|
8803
8819
|
if (!externalAppAuthenticationForCEA_isSupported()) {
|
8804
8820
|
throw errorNotSupportedOnPlatform;
|
8805
8821
|
}
|
8806
|
-
|
8822
|
+
validateInput(appId, conversationId);
|
8807
8823
|
validateActionExecuteInvokeRequest(originalRequestInfo);
|
8808
8824
|
// Ask the parent window to open an authentication window with the parameters provided by the caller.
|
8809
8825
|
return callFunctionInHostAndHandleResponse("externalAppAuthenticationForCEA.authenticateAndResendRequest" /* ApiName.ExternalAppAuthenticationForCEA_AuthenticateAndResendRequest */, [
|
@@ -8836,7 +8852,7 @@ function externalAppAuthenticationForCEA_authenticateWithSSOAndResendRequest(app
|
|
8836
8852
|
if (!externalAppAuthenticationForCEA_isSupported()) {
|
8837
8853
|
throw errorNotSupportedOnPlatform;
|
8838
8854
|
}
|
8839
|
-
|
8855
|
+
validateInput(appId, conversationId);
|
8840
8856
|
validateActionExecuteInvokeRequest(originalRequestInfo);
|
8841
8857
|
return callFunctionInHostAndHandleResponse("externalAppAuthenticationForCEA.authenticateWithSSOAndResendRequest" /* ApiName.ExternalAppAuthenticationForCEA_AuthenticateWithSSOAndResendRequest */, [
|
8842
8858
|
appId,
|
@@ -8859,6 +8875,20 @@ function externalAppAuthenticationForCEA_authenticateWithSSOAndResendRequest(app
|
|
8859
8875
|
function externalAppAuthenticationForCEA_isSupported() {
|
8860
8876
|
return ensureInitialized(runtime) && runtime.supports.externalAppAuthenticationForCEA ? true : false;
|
8861
8877
|
}
|
8878
|
+
/**
|
8879
|
+
* @hidden
|
8880
|
+
* Checks if the input is valid
|
8881
|
+
* @param appId App ID of the app upon whose behalf Copilot is requesting authentication. This must be a UUID.
|
8882
|
+
* @param conversationId ConversationId To tell the bot what conversation the calls are coming from
|
8883
|
+
|
8884
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
8885
|
+
* @internal
|
8886
|
+
* Limited to Microsoft-internal use
|
8887
|
+
*/
|
8888
|
+
function validateInput(appId, conversationId) {
|
8889
|
+
validateId(conversationId, new Error('conversation id is not valid.'));
|
8890
|
+
validateAppIdInstance(appId);
|
8891
|
+
}
|
8862
8892
|
|
8863
8893
|
;// ./src/private/externalAppCardActions.ts
|
8864
8894
|
/**
|
@@ -9017,7 +9047,7 @@ function externalAppCardActionsForCEA_processActionOpenUrl(appId, conversationId
|
|
9017
9047
|
if (!externalAppCardActionsForCEA_isSupported()) {
|
9018
9048
|
throw errorNotSupportedOnPlatform;
|
9019
9049
|
}
|
9020
|
-
|
9050
|
+
validateInput(appId, conversationId);
|
9021
9051
|
const [error, response] = yield sendMessageToParentAsync(getApiVersionTag(externalAppCardActionsForCEA_externalAppCardActionsTelemetryVersionNumber, "externalAppCardActionsForCEA.processActionOpenUrl" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionOpenUrl */), "externalAppCardActionsForCEA.processActionOpenUrl" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionOpenUrl */, [appId.toString(), conversationId, url.href]);
|
9022
9052
|
if (error) {
|
9023
9053
|
throw error;
|
@@ -9045,7 +9075,7 @@ function externalAppCardActionsForCEA_processActionSubmit(appId, conversationId,
|
|
9045
9075
|
if (!externalAppCardActionsForCEA_isSupported()) {
|
9046
9076
|
throw errorNotSupportedOnPlatform;
|
9047
9077
|
}
|
9048
|
-
|
9078
|
+
validateInput(appId, conversationId);
|
9049
9079
|
const error = yield sendAndUnwrap(getApiVersionTag(externalAppCardActionsForCEA_externalAppCardActionsTelemetryVersionNumber, "externalAppCardActionsForCEA.processActionSubmit" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionSubmit */), "externalAppCardActionsForCEA.processActionSubmit" /* ApiName.ExternalAppCardActionsForCEA_ProcessActionSubmit */, appId.toString(), conversationId, actionSubmitPayload);
|
9050
9080
|
if (error) {
|
9051
9081
|
throw error;
|