From 71a24e83456103a63c3670d4cd703ea4349fbc77 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Tue, 25 Feb 2020 10:40:08 -0800 Subject: [PATCH] [office-js] [office-js-preview] (Outlook) REST scope for getCallbackTokenAsync (#42622) --- types/office-js-preview/index.d.ts | 10 ++++++++++ types/office-js/index.d.ts | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 26ce17ea52..50719fa05a 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -12876,6 +12876,16 @@ declare namespace Office { * * The add-in should use the `restUrl` property to determine the correct URL to use when making REST API calls. * + * This API works for the following scopes: + * + * - `Mail.ReadWrite` + * + * - `Mail.Send` + * + * - `Calendars.ReadWrite` + * + * - `Contacts.ReadWrite` + * * *EWS Tokens* * * When an EWS token is requested (`options.isRest = false`), the resulting token will not work to authenticate REST API calls. diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 8c00ebc0d0..3260ae47a0 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -12533,6 +12533,16 @@ declare namespace Office { * * The add-in should use the `restUrl` property to determine the correct URL to use when making REST API calls. * + * This API works for the following scopes: + * + * - `Mail.ReadWrite` + * + * - `Mail.Send` + * + * - `Calendars.ReadWrite` + * + * - `Contacts.ReadWrite` + * * *EWS Tokens* * * When an EWS token is requested (`options.isRest = false`), the resulting token will not work to authenticate REST API calls.