@types/office-js 1.0.555 → 1.0.557
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.
- office-js/README.md +1 -1
- office-js/index.d.ts +36 -42
- office-js/package.json +2 -2
office-js/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js (https://github.com/OfficeD
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Fri,
|
|
11
|
+
* Last updated: Fri, 07 Nov 2025 17:02:00 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -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".
|
|
@@ -17577,12 +17579,11 @@ declare namespace Office {
|
|
|
17577
17579
|
*
|
|
17578
17580
|
* **Important**:
|
|
17579
17581
|
*
|
|
17580
|
-
* - Legacy Exchange
|
|
17581
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback
|
|
17582
|
-
*
|
|
17583
|
-
*
|
|
17584
|
-
*
|
|
17585
|
-
* Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
|
|
17582
|
+
* - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
|
|
17583
|
+
* {@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.
|
|
17584
|
+
* If an Outlook add-in requires delegated user access or user identity, we recommend using
|
|
17585
|
+
* {@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}.
|
|
17586
|
+
* Exchange user identity tokens are still supported for Exchange on-premises.
|
|
17586
17587
|
*
|
|
17587
17588
|
* - This method isn't supported in Outlook on Android or on iOS. For more information on supported APIs in Outlook mobile, see
|
|
17588
17589
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-mobile-apis | Outlook JavaScript APIs supported in Outlook on mobile devices}.
|
|
@@ -18097,12 +18098,11 @@ declare namespace Office {
|
|
|
18097
18098
|
*
|
|
18098
18099
|
* **Important**:
|
|
18099
18100
|
*
|
|
18100
|
-
* - Legacy Exchange
|
|
18101
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback
|
|
18102
|
-
*
|
|
18103
|
-
*
|
|
18104
|
-
*
|
|
18105
|
-
* Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
|
|
18101
|
+
* - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
|
|
18102
|
+
* {@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.
|
|
18103
|
+
* If an Outlook add-in requires delegated user access or user identity, we recommend using
|
|
18104
|
+
* {@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)}.
|
|
18105
|
+
* Exchange user identity tokens are still supported for Exchange on-premises.
|
|
18106
18106
|
*
|
|
18107
18107
|
* - 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
|
|
18108
18108
|
* until extended support ends for Outlook 2019 on October 14, 2025. Traffic from these add-ins is automatically identified for exemption. This exemption also
|
|
@@ -18166,14 +18166,13 @@ declare namespace Office {
|
|
|
18166
18166
|
* property to view details about the error.
|
|
18167
18167
|
*
|
|
18168
18168
|
* - `GenericTokenError: An internal error has occurred.` - In Exchange Online environments, this error occurs when the token can't be retrieved because legacy Exchange tokens
|
|
18169
|
-
* for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in.
|
|
18170
|
-
* {@link https://aka.ms/naafaq | FAQ page}.
|
|
18169
|
+
* 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.
|
|
18171
18170
|
*
|
|
18172
18171
|
* - `HTTPRequestFailure: The request has failed. Please look at the diagnostics object for the HTTP error code.`
|
|
18173
18172
|
*
|
|
18174
18173
|
* - `InternalServerError: The Exchange server returned an error. Please look at the diagnostics object for more information.` - In Exchange Online environments,
|
|
18175
|
-
* this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
|
|
18176
|
-
*
|
|
18174
|
+
* this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
|
|
18175
|
+
* {@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.
|
|
18177
18176
|
*
|
|
18178
18177
|
* - `NetworkError: The user is no longer connected to the network. Please check your network connection and try again.`
|
|
18179
18178
|
*
|
|
@@ -18202,12 +18201,11 @@ declare namespace Office {
|
|
|
18202
18201
|
*
|
|
18203
18202
|
* **Important**:
|
|
18204
18203
|
*
|
|
18205
|
-
* - Legacy Exchange
|
|
18206
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback
|
|
18207
|
-
*
|
|
18208
|
-
*
|
|
18209
|
-
*
|
|
18210
|
-
* Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
|
|
18204
|
+
* - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
|
|
18205
|
+
* {@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.
|
|
18206
|
+
* If an Outlook add-in requires delegated user access or user identity, we recommend using
|
|
18207
|
+
* {@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)}.
|
|
18208
|
+
* Exchange user identity tokens are still supported for Exchange on-premises.
|
|
18211
18209
|
*
|
|
18212
18210
|
* - You can pass both the token and either an attachment identifier or item identifier to an external system. That system uses
|
|
18213
18211
|
* the token as a bearer authorization token to call the Exchange Web Services (EWS)
|
|
@@ -18236,14 +18234,13 @@ declare namespace Office {
|
|
|
18236
18234
|
* property to view details about the error.
|
|
18237
18235
|
*
|
|
18238
18236
|
* - `GenericTokenError: An internal error has occurred.` - In Exchange Online environments, this error occurs when the token can't be retrieved because legacy Exchange tokens
|
|
18239
|
-
* for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in.
|
|
18240
|
-
* {@link https://aka.ms/naafaq | FAQ page}.
|
|
18237
|
+
* 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.
|
|
18241
18238
|
*
|
|
18242
18239
|
* - `HTTPRequestFailure: The request has failed. Please look at the diagnostics object for the HTTP error code.`
|
|
18243
18240
|
*
|
|
18244
18241
|
* - `InternalServerError: The Exchange server returned an error. Please look at the diagnostics object for more information.` - In Exchange Online environments,
|
|
18245
|
-
* this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
|
|
18246
|
-
*
|
|
18242
|
+
* this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
|
|
18243
|
+
* {@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.
|
|
18247
18244
|
*
|
|
18248
18245
|
* - `NetworkError: The user is no longer connected to the network. Please check your network connection and try again.`
|
|
18249
18246
|
*
|
|
@@ -18377,12 +18374,11 @@ declare namespace Office {
|
|
|
18377
18374
|
*
|
|
18378
18375
|
* **Important**:
|
|
18379
18376
|
*
|
|
18380
|
-
* - Legacy Exchange
|
|
18381
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback
|
|
18382
|
-
*
|
|
18383
|
-
*
|
|
18384
|
-
*
|
|
18385
|
-
* Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
|
|
18377
|
+
* - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
|
|
18378
|
+
* {@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.
|
|
18379
|
+
* If an Outlook add-in requires delegated user access or user identity, we recommend using
|
|
18380
|
+
* {@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)}.
|
|
18381
|
+
* Exchange user identity tokens are still supported for Exchange on-premises.
|
|
18386
18382
|
*
|
|
18387
18383
|
* - The `getUserIdentityTokenAsync` method returns a token that you can use to identify and
|
|
18388
18384
|
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication | authenticate the add-in and user with an external system}.
|
|
@@ -18395,14 +18391,13 @@ declare namespace Office {
|
|
|
18395
18391
|
* property to view details about the error.
|
|
18396
18392
|
*
|
|
18397
18393
|
* - `GenericTokenError: An internal error has occurred.` - In Exchange Online environments, this error occurs when the token can't be retrieved because legacy Exchange tokens
|
|
18398
|
-
* for Outlook add-ins are turned off. We recommend using NAA as a single sign-on solution for your add-in.
|
|
18399
|
-
* {@link https://aka.ms/naafaq | FAQ page}.
|
|
18394
|
+
* 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.
|
|
18400
18395
|
*
|
|
18401
18396
|
* - `HTTPRequestFailure: The request has failed. Please look at the diagnostics object for the HTTP error code.`
|
|
18402
18397
|
*
|
|
18403
18398
|
* - `InternalServerError: The Exchange server returned an error. Please look at the diagnostics object for more information.` - In Exchange Online environments,
|
|
18404
|
-
* this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
|
|
18405
|
-
*
|
|
18399
|
+
* this error occurs when the token can't be retrieved because legacy Exchange tokens for Outlook add-ins are turned off. We recommend using
|
|
18400
|
+
* {@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.
|
|
18406
18401
|
*
|
|
18407
18402
|
* - `NetworkError: The user is no longer connected to the network. Please check your network connection and try again.`
|
|
18408
18403
|
*
|
|
@@ -18493,12 +18488,11 @@ declare namespace Office {
|
|
|
18493
18488
|
*
|
|
18494
18489
|
* **Important**:
|
|
18495
18490
|
*
|
|
18496
|
-
* - Legacy Exchange
|
|
18497
|
-
* {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#callback-tokens | callback
|
|
18498
|
-
*
|
|
18499
|
-
*
|
|
18500
|
-
*
|
|
18501
|
-
* Nested app authentication (NAA) is the recommended approach for tokens going forward. For more information, see the {@link https://aka.ms/naafaq | FAQ page}.
|
|
18491
|
+
* - Legacy Exchange Online {@link https://learn.microsoft.com/office/dev/add-ins/outlook/authentication#exchange-user-identity-token | user identity tokens} and
|
|
18492
|
+
* {@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.
|
|
18493
|
+
* If an Outlook add-in requires delegated user access or user identity, we recommend using
|
|
18494
|
+
* {@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)}.
|
|
18495
|
+
* Exchange user identity tokens are still supported for Exchange on-premises.
|
|
18502
18496
|
*
|
|
18503
18497
|
* - To enable the `makeEwsRequestAsync` method to make EWS requests, the server administrator must set `OAuthAuthentication` to `true` on the
|
|
18504
18498
|
* Client Access Server EWS directory .
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.557",
|
|
4
4
|
"description": "TypeScript definitions for office-js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "13b1bcedd222a38b2b427be8ade3ac097181ad007fc59ea77110706e0d052f19",
|
|
50
50
|
"typeScriptVersion": "5.2"
|
|
51
51
|
}
|