History

Add Gmail modify support (#1630)

Rhys Sullivan committed 2 months ago

Commit df2eeaa1 parent 75a3c4511 files · +177 −26Browse files

Showing the changes to apps/cloud/src/engine/execution-stack.ts (1 of 11 files). Show all

Unified · Split

apps/cloud/src/engine/execution-stack.ts+5−4
@@ -89,13 +89,14 @@ export const CloudPluginsProvider: Layer.Layer<PluginsProvider> = Layer.succeed( · 88 unmodified lines
89 */89 */
90export const CLOUD_MOUNT_PREFIX = "/api" as const;90export const CLOUD_MOUNT_PREFIX = "/api" as const;
91 91
92// Initial Google launch boundary. Calendar + Sheets are sensitive scopes but92// Initial Google launch boundary. Gmail uses gmail.modify for read, send, and
93// not restricted Workspace scopes; Gmail and account-wide Drive remain absent93// trash operations while immediate permanent deletion remains absent until the
94// until their separate verification/security work is complete. The same scope94// broader mail.google.com scope is approved. Account-wide Drive remains absent.
95// source builds the catalog auth templates, preventing config drift.95// The same scope source builds the catalog auth templates, preventing drift.
96const GOOGLE_FIRST_PARTY_ALLOWED_SCOPES: readonly string[] = [96const GOOGLE_FIRST_PARTY_ALLOWED_SCOPES: readonly string[] = [
97 ...new Set([97 ...new Set([
98 ...googleCatalogOAuthScopesForPreset("google-calendar"),98 ...googleCatalogOAuthScopesForPreset("google-calendar"),
99 ...googleCatalogOAuthScopesForPreset("google-gmail"),
99 ...googleCatalogOAuthScopesForPreset("google-sheets"),100 ...googleCatalogOAuthScopesForPreset("google-sheets"),
100 ]),101 ]),
101];102];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t