GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: [chat] Support force notify and silent notification option for … · googleapis/google-cloud-node@ea2e21e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/google-chat
    • .eslintignore
    • .eslintrc.json
    • .prettierignore
    • .prettierrc.js
    • protos
      • google/chat/v1
        • message.proto
      • protos.d.ts
      • protos.json
      • protos.js
    • samples/generated/v1
      • chat_service.create_message.js
      • snippet_metadata_google.chat.v1.json
    • src
      • index.ts
      • v1
        • chat_service_client.ts
    • webpack.config.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/google-chat/.eslintignore‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/node_modules
2+
**/.coverage
3+
build/
4+
docs/
5+
protos/
6+
system-test/
7+
samples/generated/
Collapse file

‎packages/google-chat/.eslintrc.json‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./node_modules/gts",
3+
"root": true
4+
}
Collapse file

‎packages/google-chat/.prettierignore‎

Copy file name to clipboard
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
Collapse file

‎packages/google-chat/.prettierrc.js‎

Copy file name to clipboard
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
20+
module.exports = {
21+
...require('gts/.prettierrc.json')
22+
}
Collapse file

‎packages/google-chat/protos/google/chat/v1/message.proto‎

Copy file name to clipboardExpand all lines: packages/google-chat/protos/google/chat/v1/message.proto
+41Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ message Message {
204204
// `false`.
205205
bool thread_reply = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
206206

207+
// Output only. Whether this is a silent message. Silent messages are messages
208+
// where Chat suppresses push notifications for recipients.
209+
bool silent = 46 [(google.api.field_behavior) = OUTPUT_ONLY];
210+
207211
// Optional. A custom ID for the message. You can use field to identify a
208212
// message, or to get, delete, or update a message. To set a custom ID,
209213
// specify the
@@ -646,6 +650,43 @@ message CreateMessageRequest {
646650
// For details, see [Name a
647651
// message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
648652
string message_id = 9 [(google.api.field_behavior) = OPTIONAL];
653+
654+
// Optional. Controls the notification behavior when the message is posted.
655+
// To learn more, see [Force notifications or send silent
656+
// messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent).
657+
CreateMessageNotificationOptions create_message_notification_options = 10
658+
[(google.api.field_behavior) = OPTIONAL];
659+
}
660+
661+
// Options for the notification behavior when the message is posted.
662+
message CreateMessageNotificationOptions {
663+
// The notification types options for the message.
664+
enum NotificationType {
665+
// Default behavior. Notification behavior is similar to when the human user
666+
// sends the message using the Chat UI: no notification is sent to the
667+
// human sender.
668+
NOTIFICATION_TYPE_NONE = 0;
669+
670+
// Force notify recipients. This bypasses users' space notification settings
671+
// and [Chat Do Not Disturb
672+
// settings](https://support.google.com/chat/answer/9093489). This option
673+
// does not bypass device-level Do Not Disturb settings.
674+
//
675+
// Requires [app authentication]
676+
// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
677+
NOTIFICATION_TYPE_FORCE_NOTIFY = 2;
678+
679+
// Silence the notification as if the recipients have [Chat Do Not
680+
// Disturb](https://support.google.com/chat/answer/9093489) enabled or
681+
// have muted the space.
682+
//
683+
// Requires [app authentication]
684+
// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
685+
NOTIFICATION_TYPE_SILENT = 3;
686+
}
687+
688+
// The notification type for the message.
689+
NotificationType notification_type = 1;
649690
}
650691

651692
// Lists messages in the specified space, that the user is a member of.
Collapse file

‎packages/google-chat/protos/protos.d.ts‎

Copy file name to clipboardExpand all lines: packages/google-chat/protos/protos.d.ts
+119Lines changed: 119 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.