@types/office-js-preview 1.0.660 → 1.0.662

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.
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 03 Nov 2025 20:02:07 GMT
11
+ * Last updated: Fri, 07 Nov 2025 17:02:00 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -288,6 +288,8 @@ declare namespace Office {
288
288
  */
289
289
  function initialize(reason: InitializationReason): void;
290
290
  /**
291
+ * **WARNING**: This API returns inaccurate values when used on desktop applications. Use `Office.context.requirements.isSetSupported` instead.
292
+ *
291
293
  * Checks if the specified requirement set is supported by the Office application.
292
294
  * @param name - Set name; e.g., "MatrixBindings".
293
295
  * @param minVersion - The minimum required version; e.g., "1.4".
@@ -17991,12 +17993,11 @@ declare namespace Office {
17991
17993
  *
17992
17994
  * **Important**:
17993
17995
  *
17994
- * - Legacy Exchange tokens are deprecated. Legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
17995
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens have been turned off by default for most Exchange Online tenants.
17996
- * Administrators can reenable legacy tokens for tenants and add-ins until June 2025. In October 2025, legacy tokens will be completely turned off for all tenants.
17997
- * This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
17998
- * which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
17999
- * Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
17996
+ * - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
17997
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback tokens} are no longer supported and are turned off across all Microsoft 365 tenants.
17998
+ * If an Outlook add-in requires delegated user access or user identity, we recommend using
17999
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | MSAL (Microsoft Authentication Library) and nested app authentication (NAA)}.
18000
+ * Exchange user identity tokens are still supported for Exchange on-premises.
18000
18001
  *
18001
18002
  * - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
18002
18003
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
@@ -18511,12 +18512,11 @@ declare namespace Office {
18511
18512
  *
18512
18513
  * **Important**:
18513
18514
  *
18514
- * - Legacy Exchange tokens are deprecated. Legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
18515
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens have been turned off by default for most Exchange Online tenants.
18516
- * Administrators can reenable legacy tokens for tenants and add-ins until June 2025. In October 2025, legacy tokens will be completely turned off for all tenants.
18517
- * This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
18518
- * which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
18519
- * Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
18515
+ * - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
18516
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback tokens} are no longer supported and are turned off across all Microsoft 365 tenants.
18517
+ * If an Outlook add-in requires delegated user access or user identity, we recommend using
18518
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | MSAL (Microsoft Authentication Library) and nested app authentication (NAA)}.
18519
+ * Exchange user identity tokens are still supported for Exchange on-premises.
18520
18520
  *
18521
18521
  * - The Outlook REST v2.0 and beta endpoints are now deprecated. However, privately released and AppSource-hosted add-ins are able to use the REST service
18522
18522
  * until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
@@ -18580,14 +18580,13 @@ declare namespace Office {
18580
18580
  * property to view details about the error.
18581
18581
  *
18582
18582
  * - `GenericTokenError: An internal error has occurred.` - In Exchange Online environments, this error occurs when the token can't be retrieved because legacy Exchange tokens
18583
- * for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in. For guidance on how to implement NAA, see the
18584
- * {@link https://aka.ms/naafaq | FAQ page}.
18583
+ * for Outlook add-ins are turned off. We recommend using {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | NAA} as a single sign-on solution for your add-in.
18585
18584
  *
18586
18585
  * - `HTTPRequestFailure: The request has failed. Please look at the diagnostics object for the HTTP error code.`
18587
18586
  *
18588
18587
  * - `InternalServerError: The Exchange server returned an error. Please look at the diagnostics object for more information.` - In Exchange Online environments,
18589
- * this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in.
18590
- * For guidance on how to implement NAA, see the {@link https://aka.ms/naafaq | FAQ page}.
18588
+ * this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
18589
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | NAA} as a single sign-on solution for your add-in.
18591
18590
  *
18592
18591
  * - `NetworkError: The user is no longer connected to the network. Please check your network connection and try again.`
18593
18592
  *
@@ -18616,12 +18615,11 @@ declare namespace Office {
18616
18615
  *
18617
18616
  * **Important**:
18618
18617
  *
18619
- * - Legacy Exchange tokens are deprecated. Legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
18620
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens have been turned off by default for most Exchange Online tenants.
18621
- * Administrators can reenable legacy tokens for tenants and add-ins until June 2025. In October 2025, legacy tokens will be completely turned off for all tenants.
18622
- * This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
18623
- * which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
18624
- * Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
18618
+ * - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
18619
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback tokens} are no longer supported and are turned off across all Microsoft 365 tenants.
18620
+ * If an Outlook add-in requires delegated user access or user identity, we recommend using
18621
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | MSAL (Microsoft Authentication Library) and nested app authentication (NAA)}.
18622
+ * Exchange user identity tokens are still supported for Exchange on-premises.
18625
18623
  *
18626
18624
  * - You can pass both the token and either an attachment identifier or item identifier to an external system. That system uses
18627
18625
  * the token as a bearer authorization token to call the Exchange Web Services (EWS)
@@ -18650,14 +18648,13 @@ declare namespace Office {
18650
18648
  * property to view details about the error.
18651
18649
  *
18652
18650
  * - `GenericTokenError: An internal error has occurred.` - In Exchange Online environments, this error occurs when the token can't be retrieved because legacy Exchange tokens
18653
- * for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in. For guidance on how to implement NAA, see the
18654
- * {@link https://aka.ms/naafaq | FAQ page}.
18651
+ * for Outlook add-ins are turned off. We recommend using {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | NAA} as a single sign-on solution for your add-in.
18655
18652
  *
18656
18653
  * - `HTTPRequestFailure: The request has failed. Please look at the diagnostics object for the HTTP error code.`
18657
18654
  *
18658
18655
  * - `InternalServerError: The Exchange server returned an error. Please look at the diagnostics object for more information.` - In Exchange Online environments,
18659
- * this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in.
18660
- * For guidance on how to implement NAA, see the {@link https://aka.ms/naafaq | FAQ page}.
18656
+ * this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
18657
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | NAA} as a single sign-on solution for your add-in.
18661
18658
  *
18662
18659
  * - `NetworkError: The user is no longer connected to the network. Please check your network connection and try again.`
18663
18660
  *
@@ -18791,12 +18788,11 @@ declare namespace Office {
18791
18788
  *
18792
18789
  * **Important**:
18793
18790
  *
18794
- * - Legacy Exchange tokens are deprecated. Legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
18795
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens have been turned off by default for most Exchange Online tenants.
18796
- * Administrators can reenable legacy tokens for tenants and add-ins until June 2025. In October 2025, legacy tokens will be completely turned off for all tenants.
18797
- * This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
18798
- * which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
18799
- * Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
18791
+ * - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
18792
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback tokens} are no longer supported and are turned off across all Microsoft 365 tenants.
18793
+ * If an Outlook add-in requires delegated user access or user identity, we recommend using
18794
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | MSAL (Microsoft Authentication Library) and nested app authentication (NAA)}.
18795
+ * Exchange user identity tokens are still supported for Exchange on-premises.
18800
18796
  *
18801
18797
  * - The `getUserIdentityTokenAsync` method returns a token that you can use to identify and
18802
18798
  * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication | authenticate the add-in and user with an external system}.
@@ -18809,14 +18805,13 @@ declare namespace Office {
18809
18805
  * property to view details about the error.
18810
18806
  *
18811
18807
  * - `GenericTokenError: An internal error has occurred.` - In Exchange Online environments, this error occurs when the token can't be retrieved because legacy Exchange tokens
18812
- * for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in. For guidance on how to implement NAA, see the
18813
- * {@link https://aka.ms/naafaq | FAQ page}.
18808
+ * for Outlook add-ins are turned off. We recommend using {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | NAA} as a single sign-on solution for your add-in.
18814
18809
  *
18815
18810
  * - `HTTPRequestFailure: The request has failed. Please look at the diagnostics object for the HTTP error code.`
18816
18811
  *
18817
18812
  * - `InternalServerError: The Exchange server returned an error. Please look at the diagnostics object for more information.` - In Exchange Online environments,
18818
- * this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in.
18819
- * For guidance on how to implement NAA, see the {@link https://aka.ms/naafaq | FAQ page}.
18813
+ * this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
18814
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | NAA} as a single sign-on solution for your add-in.
18820
18815
  *
18821
18816
  * - `NetworkError: The user is no longer connected to the network. Please check your network connection and try again.`
18822
18817
  *
@@ -18907,12 +18902,11 @@ declare namespace Office {
18907
18902
  *
18908
18903
  * **Important**:
18909
18904
  *
18910
- * - Legacy Exchange tokens are deprecated. Legacy Exchange {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity} and
18911
- * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback} tokens have been turned off by default for most Exchange Online tenants.
18912
- * Administrators can reenable legacy tokens for tenants and add-ins until June 2025. In October 2025, legacy tokens will be completely turned off for all tenants.
18913
- * This is part of {@link https://blogs.microsoft.com/on-the-issues/2023/11/02/secure-future-initiative-sfi-cybersecurity-cyberattacks/ | Microsoft's Secure Future Initiative},
18914
- * which gives organizations the tools needed to respond to the current threat landscape. Exchange user identity tokens will still work for Exchange on-premises.
18915
- * Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
18905
+ * - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
18906
+ * {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback tokens} are no longer supported and are turned off across all Microsoft 365 tenants.
18907
+ * If an Outlook add-in requires delegated user access or user identity, we recommend using
18908
+ * {@link https://learn.microsoft.com/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in | MSAL (Microsoft Authentication Library) and nested app authentication (NAA)}.
18909
+ * Exchange user identity tokens are still supported for Exchange on-premises.
18916
18910
  *
18917
18911
  * - To enable the `makeEwsRequestAsync` method to make EWS requests, the server administrator must set `OAuthAuthentication` to `true` on the
18918
18912
  * Client Access Server EWS directory .
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.660",
3
+ "version": "1.0.662",
4
4
  "description": "TypeScript definitions for office-js-preview",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "4c182dea03ae57d298a689283781d724b22eb1ca5cf98636d72a6fbdc8df5d03",
49
+ "typesPublisherContentHash": "761d7eabcce35fcdfd40558974fe19cdab83c2eb970d1c6355a7e6642b81c78b",
50
50
  "typeScriptVersion": "5.2",
51
51
  "nonNpm": true
52
52
  }