Repository navigation
feat: add clasp chat command to configure Chat apps via Workspace Add-ons API - #1180
Open
vinay-google wants to merge 2 commits into
Open
vinay-google wants to merge 2 commits into
vinay-google wants to merge 2 commits into
Conversation
vinay-google
force-pushed
the
feat/chat-app-config
branch
from
November 2, 2026 23:18
ef5d616 to
134c611
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for configuring Google Chat apps (built as Google Workspace add-ons) using the Google Workspace Add-ons API (
gsuiteaddons.googleapis.com/v1/projects/{project}/chatAppConfig).Design & Manifest Compatibility
script.projects.updateContent(clasp push) strictly validatesappsscript.jsonagainstgoogle.apps.script.type.ScriptManifest, whereaddOns.chat(ChatAddOnManifest) only supportsaddToSpaceFallbackMessageandchatAddon.clasp push, Chat app configuration (ChatAppConfig) is stored in a dedicatedchatapp.jsonfile alongsideappsscript.json(which is ignored by default.claspignore).chatapp.jsonviaclasp chat push/clasp chat update,claspautomatically falls back toaddOns.common.nameandaddOns.common.logoUrlfromappsscript.jsonifdisplayNameoravatarUriare omitted.Commands Added
clasp chat get [--view <BASIC|FULL>] [--json]— Retrieves and prints the project'sChatAppConfig.clasp chat pull [--file <file>] [--view <BASIC|FULL>]— FetchesChatAppConfigand writes it tochatapp.json(or--file).clasp chat push [--file <file>] [--updateMask <mask>](aliasupdate) — UpdatesChatAppConfigfromchatapp.json(or--file).clasp chat --open— Opens the Google Chat API Configuration page in the Google Cloud Console.Testing
npm run compile(tsc)npm run check(gts check)npx mocha --cache false build/test/chatapp.js(8 passing)