@microsoft/teams-js 2.28.1-beta.0 → 2.29.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/dist/esm/_virtual/__polyfill-node.tty.js +1 -0
  2. package/dist/esm/_virtual/__polyfill-node.util.js +1 -0
  3. package/dist/esm/_virtual/_commonjsHelpers.js +1 -0
  4. package/dist/esm/_virtual/_polyfill-node._inherits.js +1 -0
  5. package/dist/esm/_virtual/_polyfill-node.buffer.js +1 -0
  6. package/dist/esm/_virtual/_polyfill-node.global.js +1 -0
  7. package/dist/esm/_virtual/_polyfill-node.process.js +1 -0
  8. package/dist/esm/_virtual/_polyfill-node.tty.js +1 -0
  9. package/dist/esm/_virtual/_polyfill-node.util.js +1 -0
  10. package/dist/esm/_virtual/browser.js +1 -0
  11. package/dist/esm/_virtual/index.js +1 -0
  12. package/dist/esm/_virtual/node.js +1 -0
  13. package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.22.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js +1 -0
  14. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js +1 -0
  15. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js +1 -0
  16. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/index.js +1 -0
  17. package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/node.js +1 -0
  18. package/dist/esm/node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js +1 -0
  19. package/dist/esm/node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/browser.js +1 -0
  20. package/dist/esm/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/native.js +1 -0
  21. package/dist/esm/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  22. package/dist/esm/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/rng.js +1 -0
  23. package/dist/esm/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
  24. package/dist/esm/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js +1 -0
  25. package/dist/esm/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/validate.js +1 -0
  26. package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -0
  27. package/dist/esm/packages/teams-js/src/index.js +1 -0
  28. package/dist/esm/packages/teams-js/src/internal/appIdValidation.js +1 -0
  29. package/dist/esm/packages/teams-js/src/internal/communication.js +1 -0
  30. package/dist/esm/packages/teams-js/src/internal/constants.js +1 -0
  31. package/dist/esm/packages/teams-js/src/internal/deepLinkConstants.js +1 -0
  32. package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -0
  33. package/dist/esm/packages/teams-js/src/internal/globalVars.js +1 -0
  34. package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -0
  35. package/dist/esm/packages/teams-js/src/internal/internalAPIs.js +1 -0
  36. package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -0
  37. package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -0
  38. package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -0
  39. package/dist/esm/packages/teams-js/src/internal/nestedAppAuthUtils.js +1 -0
  40. package/dist/esm/packages/teams-js/src/internal/profileUtil.js +1 -0
  41. package/dist/esm/packages/teams-js/src/internal/telemetry.js +1 -0
  42. package/dist/esm/packages/teams-js/src/internal/typeCheckUtilities.js +1 -0
  43. package/dist/esm/packages/teams-js/src/internal/utils.js +1 -0
  44. package/dist/esm/packages/teams-js/src/internal/uuidObject.js +1 -0
  45. package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -0
  46. package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -0
  47. package/dist/esm/packages/teams-js/src/internal/videoFrameTick.js +1 -0
  48. package/dist/esm/packages/teams-js/src/internal/videoPerformanceMonitor.js +1 -0
  49. package/dist/esm/packages/teams-js/src/internal/videoPerformanceStatistics.js +1 -0
  50. package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -0
  51. package/dist/esm/packages/teams-js/src/private/conversations.js +1 -0
  52. package/dist/esm/packages/teams-js/src/private/copilot.js +1 -0
  53. package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -0
  54. package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -0
  55. package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -0
  56. package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -0
  57. package/dist/esm/packages/teams-js/src/private/files.js +1 -0
  58. package/dist/esm/packages/teams-js/src/private/hostEntity.js +1 -0
  59. package/dist/esm/packages/teams-js/src/private/interfaces.js +1 -0
  60. package/dist/esm/packages/teams-js/src/private/logs.js +1 -0
  61. package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -0
  62. package/dist/esm/packages/teams-js/src/private/messageChannels.js +1 -0
  63. package/dist/esm/packages/teams-js/src/private/notifications.js +1 -0
  64. package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -0
  65. package/dist/esm/packages/teams-js/src/private/privateAPIs.js +1 -0
  66. package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -0
  67. package/dist/esm/packages/teams-js/src/private/teams.js +1 -0
  68. package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -0
  69. package/dist/esm/packages/teams-js/src/public/adaptiveCards.js +1 -0
  70. package/dist/esm/packages/teams-js/src/public/app.js +1 -0
  71. package/dist/esm/packages/teams-js/src/public/appId.js +1 -0
  72. package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -0
  73. package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -0
  74. package/dist/esm/packages/teams-js/src/public/appWindow.js +1 -0
  75. package/dist/esm/packages/teams-js/src/public/authentication.js +1 -0
  76. package/dist/esm/packages/teams-js/src/public/barCode.js +1 -0
  77. package/dist/esm/packages/teams-js/src/public/calendar.js +1 -0
  78. package/dist/esm/packages/teams-js/src/public/call.js +1 -0
  79. package/dist/esm/packages/teams-js/src/public/chat.js +1 -0
  80. package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -0
  81. package/dist/esm/packages/teams-js/src/public/constants.js +1 -0
  82. package/dist/esm/packages/teams-js/src/public/dialog.js +1 -0
  83. package/dist/esm/packages/teams-js/src/public/geoLocation.js +1 -0
  84. package/dist/esm/packages/teams-js/src/public/interfaces.js +1 -0
  85. package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -0
  86. package/dist/esm/packages/teams-js/src/public/location.js +1 -0
  87. package/dist/esm/packages/teams-js/src/public/mail.js +1 -0
  88. package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -0
  89. package/dist/esm/packages/teams-js/src/public/media.js +1 -0
  90. package/dist/esm/packages/teams-js/src/public/meeting.js +1 -0
  91. package/dist/esm/packages/teams-js/src/public/menus.js +1 -0
  92. package/dist/esm/packages/teams-js/src/public/monetization.js +1 -0
  93. package/dist/esm/packages/teams-js/src/public/navigation.js +1 -0
  94. package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -0
  95. package/dist/esm/packages/teams-js/src/public/pages.js +1 -0
  96. package/dist/esm/packages/teams-js/src/public/people.js +1 -0
  97. package/dist/esm/packages/teams-js/src/public/profile.js +1 -0
  98. package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -0
  99. package/dist/esm/packages/teams-js/src/public/runtime.js +1 -0
  100. package/dist/esm/packages/teams-js/src/public/search.js +1 -0
  101. package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -0
  102. package/dist/esm/packages/teams-js/src/public/settings.js +1 -0
  103. package/dist/esm/packages/teams-js/src/public/sharing.js +1 -0
  104. package/dist/esm/packages/teams-js/src/public/stageView.js +1 -0
  105. package/dist/esm/packages/teams-js/src/public/tasks.js +1 -0
  106. package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -0
  107. package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -0
  108. package/dist/esm/packages/teams-js/src/public/version.js +1 -0
  109. package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -0
  110. package/dist/esm/packages/teams-js/src/public/visualMedia.js +1 -0
  111. package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -0
  112. package/dist/{MicrosoftTeams.d.ts → umd/MicrosoftTeams.d.ts} +155 -45
  113. package/dist/{MicrosoftTeams.js → umd/MicrosoftTeams.js} +1048 -913
  114. package/dist/umd/MicrosoftTeams.js.map +1 -0
  115. package/dist/umd/MicrosoftTeams.min.js +2 -0
  116. package/dist/umd/MicrosoftTeams.min.js.map +1 -0
  117. package/package.json +1 -1
  118. package/dist/MicrosoftTeams.js.map +0 -1
  119. package/dist/MicrosoftTeams.min.js +0 -2
  120. package/dist/MicrosoftTeams.min.js.map +0 -1
@@ -275,6 +275,72 @@ export interface UserJoinedTeamsInformation {
275
275
  */
276
276
  userJoinedTeams: TeamInformation[];
277
277
  }
278
+ /**
279
+ * @beta
280
+ * @hidden
281
+ * The types for ActionOpenUrl
282
+ *
283
+ * @internal
284
+ * Limited to Microsoft-internal use
285
+ */
286
+ export enum ActionOpenUrlType {
287
+ DeepLinkDialog = "DeepLinkDialog",
288
+ DeepLinkOther = "DeepLinkOther",
289
+ DeepLinkStageView = "DeepLinkStageView",
290
+ GenericUrl = "GenericUrl"
291
+ }
292
+ /**
293
+ * @beta
294
+ * @hidden
295
+ * Error that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
296
+ * and IExternalAppCardActionForCEAService.handleActionOpenUrl
297
+ *
298
+ * @internal
299
+ * Limited to Microsoft-internal use
300
+ */
301
+ export interface ActionOpenUrlError {
302
+ errorCode: ActionOpenUrlErrorCode;
303
+ message?: string;
304
+ }
305
+ /**
306
+ * @beta
307
+ * @hidden
308
+ * Error codes that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
309
+ * and IExternalAppCardActionForCEAService.handleActionOpenUrl
310
+ *
311
+ * @internal
312
+ * Limited to Microsoft-internal use
313
+ */
314
+ export enum ActionOpenUrlErrorCode {
315
+ INTERNAL_ERROR = "INTERNAL_ERROR",
316
+ INVALID_LINK = "INVALID_LINK",
317
+ NOT_SUPPORTED = "NOT_SUPPORTED"
318
+ }
319
+ /**
320
+ * @beta
321
+ * @hidden
322
+ * The payload that is used when executing an Adaptive Card Action.Submit
323
+ *
324
+ * @internal
325
+ * Limited to Microsoft-internal use
326
+ */
327
+ export interface IAdaptiveCardActionSubmit {
328
+ id: string;
329
+ data: string | Record<string, unknown>;
330
+ }
331
+ /**
332
+ * @beta
333
+ * @hidden
334
+ * Error that can be thrown from IExternalAppCardActionService.handleActionSubmit
335
+ * and IExternalAppCardActionForCEAService.handleActionSubmit
336
+ *
337
+ * @internal
338
+ * Limited to Microsoft-internal use
339
+ */
340
+ export interface ActionSubmitError {
341
+ errorCode: ExternalAppErrorCode;
342
+ message?: string;
343
+ }
278
344
 
279
345
  export function uploadCustomApp(manifestBlob: Blob, onComplete?: (status: boolean, reason?: string) => void): void;
280
346
  /**
@@ -867,80 +933,84 @@ export namespace externalAppCardActions {
867
933
  GenericUrl = "GenericUrl"
868
934
  }
869
935
  /**
936
+ * @beta
870
937
  * @hidden
871
- * Error that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
872
- *
938
+ * Delegates an Adaptive Card Action.Submit request to the host for the application with the provided app ID
873
939
  * @internal
874
940
  * Limited to Microsoft-internal use
941
+ * @param appId ID of the application the request is intended for. This must be a UUID
942
+ * @param actionSubmitPayload The Adaptive Card Action.Submit payload
943
+ * @param cardActionsConfig The card actions configuration. This indicates which subtypes should be handled by this API
944
+ * @returns Promise that resolves when the request is completed and rejects with ActionSubmitError if the request fails
875
945
  */
876
- interface ActionOpenUrlError {
877
- errorCode: ActionOpenUrlErrorCode;
878
- message?: string;
879
- }
946
+ function processActionSubmit(appId: string, actionSubmitPayload: IAdaptiveCardActionSubmit): Promise<void>;
880
947
  /**
948
+ * @beta
881
949
  * @hidden
882
- * Error codes that can be thrown from IExternalAppCardActionService.handleActionOpenUrl
950
+ * Delegates an Adaptive Card Action.OpenUrl request to the host for the application with the provided app ID.
951
+ * If `fromElement` is not provided, the information from the manifest is used to determine whether the URL can
952
+ * be processed by the host. Deep link URLs for plugins are not supported and will result in an error.
883
953
  * @internal
884
954
  * Limited to Microsoft-internal use
955
+ * @param appId ID of the application the request is intended for. This must be a UUID
956
+ * @param url The URL to open
957
+ * @param fromElement The element on behalf of which the M365 app is making the request.
958
+ * @returns Promise that resolves to ActionOpenUrlType indicating the type of URL that was opened on success and rejects with ActionOpenUrlError if the request fails
885
959
  */
886
- enum ActionOpenUrlErrorCode {
887
- INTERNAL_ERROR = "INTERNAL_ERROR",
888
- INVALID_LINK = "INVALID_LINK",
889
- NOT_SUPPORTED = "NOT_SUPPORTED"
890
- }
960
+ function processActionOpenUrl(appId: string, url: URL, fromElement?: {
961
+ name: 'composeExtensions' | 'plugins';
962
+ }): Promise<ActionOpenUrlType>;
891
963
  /**
892
964
  * @hidden
893
- * The payload that is used when executing an Adaptive Card Action.Submit
894
- * @internal
895
- * Limited to Microsoft-internal use
896
- */
897
- interface IAdaptiveCardActionSubmit {
898
- id: string;
899
- data: string | Record<string, unknown>;
900
- }
901
- /**
965
+ * Checks if the externalAppCardActions capability is supported by the host
966
+ * @returns boolean to represent whether externalAppCardActions capability is supported
902
967
  *
903
- * @hidden
904
- * Error that can be thrown from IExternalAppCardActionService.handleActionSubmit
968
+ * @throws Error if {@linkcode app.initialize} has not successfully completed
905
969
  *
906
970
  * @internal
907
971
  * Limited to Microsoft-internal use
908
972
  */
909
- interface ActionSubmitError {
910
- errorCode: ExternalAppErrorCode;
911
- message?: string;
912
- }
973
+ function isSupported(): boolean;
974
+ }
975
+
976
+ /**
977
+ * @beta
978
+ * @hidden
979
+ * Namespace to delegate adaptive card action for Custom Engine Agent execution to the host
980
+ * @internal
981
+ * Limited to Microsoft-internal use
982
+ */
983
+ export namespace externalAppCardActionsForCEA {
913
984
  /**
914
985
  * @beta
915
986
  * @hidden
916
- * Delegates an Adaptive Card Action.Submit request to the host for the application with the provided app ID
987
+ * Delegates an Adaptive Card Action.OpenUrl request to the host for the application with the provided app ID.
917
988
  * @internal
918
989
  * Limited to Microsoft-internal use
919
990
  * @param appId ID of the application the request is intended for. This must be a UUID
920
- * @param actionSubmitPayload The Adaptive Card Action.Submit payload
921
- * @param cardActionsConfig The card actions configuration. This indicates which subtypes should be handled by this API
922
- * @returns Promise that resolves when the request is completed and rejects with ActionSubmitError if the request fails
991
+ * @param conversationId To tell the bot what conversation the calls are coming from
992
+ * @param url The URL to open
993
+ * @throws Error if the response has not successfully completed
994
+ * @returns Promise that resolves to ActionOpenUrlType indicating the type of URL that was opened on success and rejects with ActionOpenUrlError if the request fails
923
995
  */
924
- function processActionSubmit(appId: string, actionSubmitPayload: IAdaptiveCardActionSubmit): Promise<void>;
996
+ function processActionOpenUrl(appId: AppId, conversationId: string, url: URL): Promise<ActionOpenUrlType>;
925
997
  /**
926
998
  * @beta
927
999
  * @hidden
928
- * Delegates an Adaptive Card Action.OpenUrl request to the host for the application with the provided app ID.
929
- * If `fromElement` is not provided, the information from the manifest is used to determine whether the URL can
930
- * be processed by the host. Deep link URLs for plugins are not supported and will result in an error.
1000
+ * Delegates an Adaptive Card Action.Submit request to the host for the application with the provided app ID
931
1001
  * @internal
932
1002
  * Limited to Microsoft-internal use
933
1003
  * @param appId ID of the application the request is intended for. This must be a UUID
934
- * @param url The URL to open
935
- * @param fromElement The element on behalf of which the M365 app is making the request.
936
- * @returns Promise that resolves to ActionOpenUrlType indicating the type of URL that was opened on success and rejects with ActionOpenUrlError if the request fails
1004
+ * @param conversationId To tell the bot what conversation the calls are coming from
1005
+ * @param actionSubmitPayload The Adaptive Card Action.Submit payload
1006
+ * @throws Error if host notifies of an error
1007
+ * @returns Promise that resolves when the request is completed and rejects with ActionSubmitError if the request fails
937
1008
  */
938
- function processActionOpenUrl(appId: string, url: URL, fromElement?: {
939
- name: 'composeExtensions' | 'plugins';
940
- }): Promise<ActionOpenUrlType>;
1009
+ function processActionSubmit(appId: AppId, conversationId: string, actionSubmitPayload: IAdaptiveCardActionSubmit): Promise<void>;
941
1010
  /**
1011
+ * @beta
942
1012
  * @hidden
943
- * Checks if the externalAppCardActions capability is supported by the host
1013
+ * Checks if the externalAppCardActionsForCEA capability is supported by the host
944
1014
  * @returns boolean to represent whether externalAppCardActions capability is supported
945
1015
  *
946
1016
  * @throws Error if {@linkcode app.initialize} has not successfully completed
@@ -5503,7 +5573,8 @@ export namespace app {
5503
5573
  * However, there are some older internal/hard-coded apps which violate this schema and use names like
5504
5574
  * com.microsoft.teamspace.tab.youtube. For compatibility with these legacy apps, we unfortunately cannot
5505
5575
  * securely and completely validate app ids as UUIDs. Based on this, the validation is limited to checking
5506
- * for script tags, length, and non-printable characters.
5576
+ * for script tags, length, and non-printable characters. Validation will be updated in the future to ensure
5577
+ * the app id is a valid UUID as legacy apps update.
5507
5578
  */
5508
5579
  export class AppId {
5509
5580
  /**
@@ -6276,8 +6347,9 @@ export namespace pages {
6276
6347
  *
6277
6348
  * @param params Parameters for the navigation
6278
6349
  * @returns a `Promise` that will resolve if the navigation was successful or reject if it was not
6350
+ * @throws `Error` if the app ID is not valid or `params.webUrl` is defined but not a valid URL
6279
6351
  */
6280
- function navigateToApp(params: NavigateToAppParams): Promise<void>;
6352
+ function navigateToApp(params: AppNavigationParameters | NavigateToAppParams): Promise<void>;
6281
6353
  /**
6282
6354
  * Shares a deep link that a user can use to navigate back to a specific state in this page.
6283
6355
  * Please note that this method does not yet work on mobile hosts.
@@ -6301,7 +6373,10 @@ export namespace pages {
6301
6373
  */
6302
6374
  function isSupported(): boolean;
6303
6375
  /**
6304
- * Parameters for the NavigateToApp API
6376
+ * @deprecated
6377
+ * This interface has been deprecated in favor of a more type-safe interface using {@link pages.AppNavigationParameters}
6378
+ *
6379
+ * Parameters for the {@link pages.navigateToApp} function
6305
6380
  */
6306
6381
  interface NavigateToAppParams {
6307
6382
  /**
@@ -6331,6 +6406,38 @@ export namespace pages {
6331
6406
  */
6332
6407
  chatId?: string;
6333
6408
  }
6409
+ /**
6410
+ * Type-safer version of parameters for the {@link pages.navigateToApp} function
6411
+ */
6412
+ interface AppNavigationParameters {
6413
+ /**
6414
+ * ID of the app to navigate to
6415
+ */
6416
+ appId: AppId;
6417
+ /**
6418
+ * Developer-defined ID of the page to navigate to within the app (formerly called `entityId`)
6419
+ */
6420
+ pageId: string;
6421
+ /**
6422
+ * Fallback URL to open if the navigation cannot be completed within the host (e.g., if the target app is not installed)
6423
+ */
6424
+ webUrl?: URL;
6425
+ /**
6426
+ * Developer-defined ID describing the content to navigate to within the page. This ID is passed to the application
6427
+ * via the {@link app.PageInfo.subPageId} property on the {@link app.Context} object (retrieved by calling {@link app.getContext})
6428
+ */
6429
+ subPageId?: string;
6430
+ /**
6431
+ * For apps installed as a channel tab, this ID can be supplied to indicate in which Teams channel the app should be opened
6432
+ * This property has no effect in hosts where apps cannot be opened in channels
6433
+ */
6434
+ channelId?: string;
6435
+ /**
6436
+ * Optional ID of the chat or meeting where the app should be opened
6437
+ * This property has no effect in hosts where apps cannot be opened in chats or meetings
6438
+ */
6439
+ chatId?: string;
6440
+ }
6334
6441
  /**
6335
6442
  * Provides APIs for querying and navigating between contextual tabs of an application. Unlike personal tabs,
6336
6443
  * contextual tabs are pages associated with a specific context, such as channel or chat.
@@ -6642,6 +6749,9 @@ export namespace pages {
6642
6749
  function isSupported(): boolean;
6643
6750
  }
6644
6751
  }
6752
+ export function isAppNavigationParametersObject(obj: pages.AppNavigationParameters | pages.NavigateToAppParams): obj is pages.AppNavigationParameters;
6753
+ export function convertNavigateToAppParamsToAppNavigationParameters(params: pages.NavigateToAppParams): pages.AppNavigationParameters;
6754
+ export function convertAppNavigationParametersToNavigateToAppParams(params: pages.AppNavigationParameters): pages.NavigateToAppParams;
6645
6755
 
6646
6756
  /** onComplete function type */
6647
6757
  export type onCompleteFunctionType = (status: boolean, reason?: string) => void;