Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/google-chat/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/.coverage
build/
docs/
protos/
system-test/
samples/generated/
4 changes: 4 additions & 0 deletions packages/google-chat/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./node_modules/gts",
"root": true
}
6 changes: 6 additions & 0 deletions packages/google-chat/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
22 changes: 22 additions & 0 deletions packages/google-chat/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **


module.exports = {
...require('gts/.prettierrc.json')
}
41 changes: 41 additions & 0 deletions packages/google-chat/protos/google/chat/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ message Message {
// `false`.
bool thread_reply = 25 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Whether this is a silent message. Silent messages are messages
// where Chat suppresses push notifications for recipients.
bool silent = 46 [(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. A custom ID for the message. You can use field to identify a
// message, or to get, delete, or update a message. To set a custom ID,
// specify the
Expand Down Expand Up @@ -646,6 +650,43 @@ message CreateMessageRequest {
// For details, see [Name a
// message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
string message_id = 9 [(google.api.field_behavior) = OPTIONAL];

// Optional. Controls the notification behavior when the message is posted.
// To learn more, see [Force notifications or send silent
// messages](https://developer.google.com/workspace/chat/create-messages#force-notify-silent).
CreateMessageNotificationOptions create_message_notification_options = 10
[(google.api.field_behavior) = OPTIONAL];
}

// Options for the notification behavior when the message is posted.
message CreateMessageNotificationOptions {
// The notification types options for the message.
enum NotificationType {
// Default behavior. Notification behavior is similar to when the human user
// sends the message using the Chat UI: no notification is sent to the
// human sender.
NOTIFICATION_TYPE_NONE = 0;

// Force notify recipients. This bypasses users' space notification settings
// and [Chat Do Not Disturb
// settings](https://support.google.com/chat/answer/9093489). This option
// does not bypass device-level Do Not Disturb settings.
//
// Requires [app authentication]
// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
NOTIFICATION_TYPE_FORCE_NOTIFY = 2;

// Silence the notification as if the recipients have [Chat Do Not
// Disturb](https://support.google.com/chat/answer/9093489) enabled or
// have muted the space.
//
// Requires [app authentication]
// (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
NOTIFICATION_TYPE_SILENT = 3;
}

// The notification type for the message.
NotificationType notification_type = 1;
}

// Lists messages in the specified space, that the user is a member of.
Expand Down
119 changes: 119 additions & 0 deletions packages/google-chat/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading