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
8989 */
9090 export const CLOUD_MOUNT_PREFIX = "/api" as const;
9191
92−// Initial Google launch boundary. Calendar + Sheets are sensitive scopes but
93−// not restricted Workspace scopes; Gmail and account-wide Drive remain absent
94−// until their separate verification/security work is complete. The same scope
95−// source builds the catalog auth templates, preventing config drift.
92+// Initial Google launch boundary. Gmail uses gmail.modify for read, send, and
93+// trash operations while immediate permanent deletion remains absent until the
94+// broader mail.google.com scope is approved. Account-wide Drive remains absent.
95+// The same scope source builds the catalog auth templates, preventing drift.
9696 const GOOGLE_FIRST_PARTY_ALLOWED_SCOPES: readonly string[] = [
9797 ...new Set([
9898 ...googleCatalogOAuthScopesForPreset("google-calendar"),
99+ ...googleCatalogOAuthScopesForPreset("google-gmail"),
99100 ...googleCatalogOAuthScopesForPreset("google-sheets"),
100101 ]),
101102 ];

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