@google-apps/chat 0.29.0 → 0.30.0

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.
@@ -51,6 +51,9 @@ service ChatService {
51
51
  "https://www.googleapis.com/auth/chat.admin.memberships.readonly,"
52
52
  "https://www.googleapis.com/auth/chat.admin.spaces,"
53
53
  "https://www.googleapis.com/auth/chat.admin.spaces.readonly,"
54
+ "https://www.googleapis.com/auth/chat.app.all.memberships.readonly,"
55
+ "https://www.googleapis.com/auth/chat.app.all.messages.readonly,"
56
+ "https://www.googleapis.com/auth/chat.app.all.spaces.readonly,"
54
57
  "https://www.googleapis.com/auth/chat.app.delete,"
55
58
  "https://www.googleapis.com/auth/chat.app.memberships,"
56
59
  "https://www.googleapis.com/auth/chat.app.memberships.readonly,"
@@ -0,0 +1,47 @@
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
+ // http://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
+ syntax = "proto3";
16
+
17
+ package google.chat.v1;
18
+
19
+ option csharp_namespace = "Google.Apps.Chat.V1";
20
+ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
21
+ option java_multiple_files = true;
22
+ option java_outer_classname = "MarkupSyntaxProto";
23
+ option java_package = "com.google.chat.v1";
24
+ option objc_class_prefix = "DYNAPIProto";
25
+ option php_namespace = "Google\\Apps\\Chat\\V1";
26
+ option ruby_package = "Google::Apps::Chat::V1";
27
+
28
+ // Specifies the markup syntax used to format the Chat message text.
29
+ // Applies to the `text` field of the `Message` resource.
30
+ enum MarkupSyntax {
31
+ // Represents the unspecified value.
32
+ MARKUP_SYNTAX_UNSPECIFIED = 0;
33
+
34
+ // Uses Google Chat's markup syntax.
35
+ // See
36
+ // https://developers.google.com/workspace/chat/format-messages#format-texts
37
+ // for more information.
38
+ MARKUP_SYNTAX_CHAT = 1;
39
+
40
+ // Uses Markdown syntax. This syntax is based on the
41
+ // [CommonMark](https://commonmark.org/help/) specification, with additional
42
+ // extensions.
43
+ // See
44
+ // https://developers.google.com/workspace/chat/format-messages#format-texts
45
+ // for more information.
46
+ MARKUP_SYNTAX_MARKDOWN = 2;
47
+ }
@@ -24,6 +24,7 @@ import "google/chat/v1/annotation.proto";
24
24
  import "google/chat/v1/attachment.proto";
25
25
  import "google/chat/v1/contextual_addon.proto";
26
26
  import "google/chat/v1/deletion_metadata.proto";
27
+ import "google/chat/v1/markup_syntax.proto";
27
28
  import "google/chat/v1/matched_url.proto";
28
29
  import "google/chat/v1/reaction.proto";
29
30
  import "google/chat/v1/slash_command.proto";
@@ -145,9 +146,14 @@ message Message {
145
146
  // Optional. An array of
146
147
  // [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
147
148
  //
148
- // Only Chat apps can create cards. If your Chat app [authenticates as a
149
+ // Chat apps can create cards with [app
150
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
151
+ // As part of the [Developer Preview
152
+ // Program](https://developers.google.com/workspace/preview), if your Chat app
153
+ // [authenticates as a
149
154
  // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
150
- // the messages can't contain cards.
155
+ // it can create card messages. If your Chat app is not part of Developer
156
+ // Preview Program, it can't create cards with user authentication.
151
157
  //
152
158
  // To learn how to create a message that contains cards, see [Send a
153
159
  // message](https://developers.google.com/workspace/chat/create-messages).
@@ -272,6 +278,10 @@ message Message {
272
278
  // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
273
279
  repeated AccessoryWidget accessory_widgets = 44
274
280
  [(google.api.field_behavior) = OPTIONAL];
281
+
282
+ // Optional. Specifies how the server interprets the message `text` field
283
+ // content.
284
+ MarkupSyntax markup_syntax = 47 [(google.api.field_behavior) = OPTIONAL];
275
285
  }
276
286
 
277
287
  // A GIF image that's specified by a URL.
@@ -512,6 +522,10 @@ message GetMessageRequest {
512
522
  (google.api.field_behavior) = REQUIRED,
513
523
  (google.api.resource_reference) = { type: "chat.googleapis.com/Message" }
514
524
  ];
525
+
526
+ // Optional. Specifies the desired output syntax for the Chat message
527
+ // `formatted_text` field.
528
+ MarkupSyntax markup_syntax = 3 [(google.api.field_behavior) = OPTIONAL];
515
529
  }
516
530
 
517
531
  // Request to delete a message.
@@ -775,6 +789,10 @@ message ListMessagesRequest {
775
789
  // deleted time and metadata about their deletion, but message content is
776
790
  // unavailable.
777
791
  bool show_deleted = 6 [(google.api.field_behavior) = OPTIONAL];
792
+
793
+ // Optional. Specifies the desired output syntax for the Chat message
794
+ // `formatted_text` field.
795
+ MarkupSyntax markup_syntax = 9 [(google.api.field_behavior) = OPTIONAL];
778
796
  }
779
797
 
780
798
  // Response message for listing messages.
@@ -818,9 +836,17 @@ message Dialog {
818
836
  // [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
819
837
  // in a Google Chat message.
820
838
  //
821
- // Only Chat apps can create cards. If your Chat app [authenticates as a
839
+ // Chat apps can create cards with [app
840
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
841
+ // As part of the [Developer Preview
842
+ // Program](https://developers.google.com/workspace/preview), if your Chat app
843
+ // [authenticates as a
822
844
  // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
823
- // the message can't contain cards.
845
+ // it can create card messages. If your Chat app is not part of Developer
846
+ // Preview Program, it can't create cards with user authentication.
847
+ //
848
+ // To learn how to create a message that contains cards, see [Send a
849
+ // message](https://developers.google.com/workspace/chat/create-messages).
824
850
  //
825
851
  // [Card builder](https://addons.gsuite.google.com/uikit/builder)
826
852
  message CardWithId {
@@ -1019,6 +1045,10 @@ message SearchMessagesRequest {
1019
1045
  // is supported, and it must be specified after the order attribute.
1020
1046
  string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
1021
1047
 
1048
+ // Optional. Specifies the desired output syntax for the Chat message
1049
+ // `formatted_text` field.
1050
+ MarkupSyntax markup_syntax = 6 [(google.api.field_behavior) = OPTIONAL];
1051
+
1022
1052
  // Optional. Specifies what kind of search results view to return. The default
1023
1053
  // is `SEARCH_MESSAGES_VIEW_BASIC`.
1024
1054
  SearchMessagesView view = 7 [(google.api.field_behavior) = OPTIONAL];
@@ -916,6 +916,7 @@ message SearchSpacesRequest {
916
916
  //
917
917
  // - `create_time DESC`
918
918
  // - `relevance DESC`
919
+ // [Developer Preview](https://developers.google.com/workspace/preview).
919
920
  string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
920
921
  }
921
922
 
@@ -17651,6 +17651,9 @@ export namespace google {
17651
17651
 
17652
17652
  /** Message accessoryWidgets */
17653
17653
  accessoryWidgets?: (google.chat.v1.IAccessoryWidget[]|null);
17654
+
17655
+ /** Message markupSyntax */
17656
+ markupSyntax?: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax|null);
17654
17657
  }
17655
17658
 
17656
17659
  /** Represents a Message. */
@@ -17743,6 +17746,9 @@ export namespace google {
17743
17746
  /** Message accessoryWidgets. */
17744
17747
  public accessoryWidgets: google.chat.v1.IAccessoryWidget[];
17745
17748
 
17749
+ /** Message markupSyntax. */
17750
+ public markupSyntax: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax);
17751
+
17746
17752
  /**
17747
17753
  * Creates a new Message instance using the specified properties.
17748
17754
  * @param [properties] Properties to set
@@ -18813,6 +18819,9 @@ export namespace google {
18813
18819
 
18814
18820
  /** GetMessageRequest name */
18815
18821
  name?: (string|null);
18822
+
18823
+ /** GetMessageRequest markupSyntax */
18824
+ markupSyntax?: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax|null);
18816
18825
  }
18817
18826
 
18818
18827
  /** Represents a GetMessageRequest. */
@@ -18827,6 +18836,9 @@ export namespace google {
18827
18836
  /** GetMessageRequest name. */
18828
18837
  public name: string;
18829
18838
 
18839
+ /** GetMessageRequest markupSyntax. */
18840
+ public markupSyntax: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax);
18841
+
18830
18842
  /**
18831
18843
  * Creates a new GetMessageRequest instance using the specified properties.
18832
18844
  * @param [properties] Properties to set
@@ -19387,6 +19399,9 @@ export namespace google {
19387
19399
 
19388
19400
  /** ListMessagesRequest showDeleted */
19389
19401
  showDeleted?: (boolean|null);
19402
+
19403
+ /** ListMessagesRequest markupSyntax */
19404
+ markupSyntax?: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax|null);
19390
19405
  }
19391
19406
 
19392
19407
  /** Represents a ListMessagesRequest. */
@@ -19416,6 +19431,9 @@ export namespace google {
19416
19431
  /** ListMessagesRequest showDeleted. */
19417
19432
  public showDeleted: boolean;
19418
19433
 
19434
+ /** ListMessagesRequest markupSyntax. */
19435
+ public markupSyntax: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax);
19436
+
19419
19437
  /**
19420
19438
  * Creates a new ListMessagesRequest instance using the specified properties.
19421
19439
  * @param [properties] Properties to set
@@ -19921,6 +19939,9 @@ export namespace google {
19921
19939
  /** SearchMessagesRequest orderBy */
19922
19940
  orderBy?: (string|null);
19923
19941
 
19942
+ /** SearchMessagesRequest markupSyntax */
19943
+ markupSyntax?: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax|null);
19944
+
19924
19945
  /** SearchMessagesRequest view */
19925
19946
  view?: (google.chat.v1.SearchMessagesRequest.SearchMessagesView|keyof typeof google.chat.v1.SearchMessagesRequest.SearchMessagesView|null);
19926
19947
  }
@@ -19949,6 +19970,9 @@ export namespace google {
19949
19970
  /** SearchMessagesRequest orderBy. */
19950
19971
  public orderBy: string;
19951
19972
 
19973
+ /** SearchMessagesRequest markupSyntax. */
19974
+ public markupSyntax: (google.chat.v1.MarkupSyntax|keyof typeof google.chat.v1.MarkupSyntax);
19975
+
19952
19976
  /** SearchMessagesRequest view. */
19953
19977
  public view: (google.chat.v1.SearchMessagesRequest.SearchMessagesView|keyof typeof google.chat.v1.SearchMessagesRequest.SearchMessagesView);
19954
19978
 
@@ -22153,6 +22177,13 @@ export namespace google {
22153
22177
  }
22154
22178
  }
22155
22179
 
22180
+ /** MarkupSyntax enum. */
22181
+ enum MarkupSyntax {
22182
+ MARKUP_SYNTAX_UNSPECIFIED = 0,
22183
+ MARKUP_SYNTAX_CHAT = 1,
22184
+ MARKUP_SYNTAX_MARKDOWN = 2
22185
+ }
22186
+
22156
22187
  /** Properties of a MatchedUrl. */
22157
22188
  interface IMatchedUrl {
22158
22189