@mercury-fw/channel-google-chat 0.11.0 → 0.11.1
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.
- package/CHANGELOG.md +14 -0
- package/README.md +7 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mercury-fw/channel-google-chat
|
|
2
2
|
|
|
3
|
+
## 0.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c7806ea: README: the setup steps on each service's console follow its official documentation and link it.
|
|
8
|
+
|
|
9
|
+
- Google Chat: the Chat app's configuration uses Google's current labels (**Enable interactive features**, **Add a command**, **Slash command name**, a Command ID from 1 to 1000), says Visibility takes up to five people or groups, and links Google's guides to the consent screen, the Pub/Sub quickstart, the Chat API configuration and commands.
|
|
10
|
+
- Jira: links Atlassian's guides to service account credentials and to OAuth 2.0 (3LO) apps, and says the `app.jira.no-issues` text is in `locales/en.json` only in an app created with Jira.
|
|
11
|
+
- Atlassian admin: where an organization admin creates the API key, that it's shown once and expires, and Atlassian's guide.
|
|
12
|
+
- Bitbucket: where a workspace's OAuth consumer is added, and Atlassian's guide.
|
|
13
|
+
- ZITADEL: ZITADEL's guides to a service account's key and to applications.
|
|
14
|
+
|
|
15
|
+
- f631dd5: README: a link to the package's page on Mercury's documentation site (https://lucabro81.github.io/mercury-fw/), published from this release on. The HTTP channel's README points to the HTTP API reference there, and the core's memory section to the page that explains it.
|
|
16
|
+
|
|
3
17
|
## 0.11.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Puts a [Mercury](https://github.com/lucabro81/mercury-fw) agent on Google Chat as a registered Chat app: it receives messages through a Pub/Sub subscription and replies through the Chat API, with status cards while it works and a button for the actions that need confirmation.
|
|
4
4
|
|
|
5
|
+
On Mercury's documentation site: [its page](https://lucabro81.github.io/mercury-fw/plugins/channel-google-chat/).
|
|
6
|
+
|
|
5
7
|
```bash
|
|
6
8
|
bun add @mercury-fw/channel-google-chat
|
|
7
9
|
```
|
|
@@ -134,7 +136,7 @@ Open [Google Auth Platform → Branding](https://console.cloud.google.com/auth/b
|
|
|
134
136
|
3. **Contact Information**: your address. Click **Next**.
|
|
135
137
|
4. Check **I agree to the Google API Services: User Data Policy**, click **Continue**, then **Create**.
|
|
136
138
|
|
|
137
|
-
No scopes to add: an internal app doesn't list them.
|
|
139
|
+
No scopes to add: an internal app doesn't list them. Google's own guide to this screen is [Configure the OAuth consent screen](https://developers.google.com/workspace/guides/configure-oauth-consent).
|
|
138
140
|
|
|
139
141
|
### 7. Configure the Chat app (Cloud Console)
|
|
140
142
|
|
|
@@ -142,14 +144,14 @@ Open the Chat API's configuration page for the project, `https://console.develop
|
|
|
142
144
|
|
|
143
145
|
1. **Build this Chat app as a Google Workspace add-on**: unchecked (confirm in the dialog if it asks).
|
|
144
146
|
2. **App name**: the name users search for in Chat (up to 25 characters). **Avatar URL**: an HTTPS link to a square image. **Description**: one line (up to 40 characters).
|
|
145
|
-
3. **Interactive features**:
|
|
147
|
+
3. **Interactive features**: turn on **Enable interactive features**. Without them nobody can write to the app or click its confirmation buttons.
|
|
146
148
|
4. **Functionality**: check **Join spaces and group conversations**.
|
|
147
149
|
5. **Connection settings**: pick **Cloud Pub/Sub** and paste the topic's full name, `projects/<PROJECT_ID>/topics/<TOPIC>`.
|
|
148
|
-
6. **Visibility**: check **Make this Google Chat app available to specific people and groups in <your domain>** and enter who can use it
|
|
150
|
+
6. **Visibility**: check **Make this Google Chat app available to specific people and groups in <your domain>** and enter who can use it: up to five people or Google Groups (a group covers everyone in it).
|
|
149
151
|
7. **Logs**: check **Log errors to Logging**, so a delivery error from Chat shows up in the project's logs.
|
|
150
|
-
8. **Commands**:
|
|
152
|
+
8. **Commands**: click **Add a command**, pick **Slash command** as **Command type**, enter `/stop` as **Slash command name**, any free **Command ID** from 1 to 1000 (`1` on a new app) and a **Description** of up to 50 characters, such as "Stop the answer in progress". Leave **Open a dialog** unchecked, and click **Save** in the form. The channel recognises the command by its name, so the id is up to you.
|
|
151
153
|
|
|
152
|
-
Click **Save**.
|
|
154
|
+
Click **Save**. These labels follow Google's own guides, which say more about each field: [Build a Google Chat app behind a firewall with Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub), [Configure the Google Chat API](https://developers.google.com/workspace/chat/configure-chat-api) and [Respond to Google Chat app commands](https://developers.google.com/workspace/chat/commands). Console moves things around now and then, so trust the meaning over the exact position.
|
|
153
155
|
|
|
154
156
|
### 8. Start and try it
|
|
155
157
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercury-fw/channel-google-chat",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@mercury-fw/channel-types": ">=0.54.0 <1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@mercury-fw/channel-types": "0.
|
|
37
|
+
"@mercury-fw/channel-types": "0.59.2",
|
|
38
38
|
"@mercury-fw/typescript-config": "*",
|
|
39
39
|
"@types/bun": "^1.4.2",
|
|
40
40
|
"typescript": "^6.0.3"
|