@google-apps/chat 0.16.0 → 0.17.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.
@@ -16,6 +16,7 @@ syntax = "proto3";
16
16
 
17
17
  package google.chat.v1;
18
18
 
19
+ import "google/api/field_behavior.proto";
19
20
  import "google/api/resource.proto";
20
21
  import "google/chat/v1/attachment.proto";
21
22
  import "google/chat/v1/reaction.proto";
@@ -30,9 +31,10 @@ option objc_class_prefix = "DYNAPIProto";
30
31
  option php_namespace = "Google\\Apps\\Chat\\V1";
31
32
  option ruby_package = "Google::Apps::Chat::V1";
32
33
 
33
- // Output only. Annotations associated with the plain-text body of the message.
34
- // To add basic formatting to a text message, see
35
- // [Format text
34
+ // Output only. Annotations can be associated with the plain-text body of the
35
+ // message or with chips that link to Google Workspace resources like Google
36
+ // Docs or Sheets with `start_index` and `length` of 0. To add basic formatting
37
+ // to a text message, see [Format text
36
38
  // messages](https://developers.google.com/workspace/chat/format-messages).
37
39
  //
38
40
  // Example plain-text message body:
@@ -66,7 +68,7 @@ message Annotation {
66
68
  optional int32 start_index = 2;
67
69
 
68
70
  // Length of the substring in the plain-text message body this annotation
69
- // corresponds to.
71
+ // corresponds to. If not present, indicates a length of 0.
70
72
  int32 length = 3;
71
73
 
72
74
  // Additional metadata about the annotation.
@@ -134,7 +136,10 @@ message SlashCommandMetadata {
134
136
  bool triggers_dialog = 5;
135
137
  }
136
138
 
137
- // A rich link to a resource.
139
+ // A rich link to a resource. Rich links can be associated with the plain-text
140
+ // body of the message or represent chips that link to Google Workspace
141
+ // resources like Google Docs or Sheets with `start_index` and `length`
142
+ // of 0.
138
143
  message RichLinkMetadata {
139
144
  // The rich link type. More types might be added in the future.
140
145
  enum RichLinkType {
@@ -146,6 +151,12 @@ message RichLinkMetadata {
146
151
 
147
152
  // A Chat space rich link type. For example, a space smart chip.
148
153
  CHAT_SPACE = 2;
154
+
155
+ // A Meet message rich link type. For example, a Meet chip.
156
+ MEET_SPACE = 4;
157
+
158
+ // A Calendar message rich link type. For example, a Calendar chip.
159
+ CALENDAR_EVENT = 5;
149
160
  }
150
161
 
151
162
  // The URI of this link.
@@ -161,6 +172,12 @@ message RichLinkMetadata {
161
172
 
162
173
  // Data for a chat space link.
163
174
  ChatSpaceLinkData chat_space_link_data = 4;
175
+
176
+ // Data for a Meet space link.
177
+ MeetSpaceLinkData meet_space_link_data = 5;
178
+
179
+ // Data for a Calendar event link.
180
+ CalendarEventLinkData calendar_event_link_data = 6;
164
181
  }
165
182
  }
166
183
 
@@ -204,6 +221,64 @@ message ChatSpaceLinkData {
204
221
  ];
205
222
  }
206
223
 
224
+ // Data for Meet space links.
225
+ message MeetSpaceLinkData {
226
+ // The type of the Meet space.
227
+ enum Type {
228
+ // Default value for the enum. Don't use.
229
+ TYPE_UNSPECIFIED = 0;
230
+
231
+ // The Meet space is a meeting.
232
+ MEETING = 1;
233
+
234
+ // The Meet space is a huddle.
235
+ HUDDLE = 2;
236
+ }
237
+
238
+ // The status of the huddle
239
+ enum HuddleStatus {
240
+ // Default value for the enum. Don't use.
241
+ HUDDLE_STATUS_UNSPECIFIED = 0;
242
+
243
+ // The huddle has started.
244
+ STARTED = 1;
245
+
246
+ // The huddle has ended. In this case the Meet space URI and identifiers
247
+ // will no longer be valid.
248
+ ENDED = 2;
249
+
250
+ // The huddle has been missed. In this case the Meet space URI and
251
+ // identifiers will no longer be valid.
252
+ MISSED = 3;
253
+ }
254
+
255
+ // Meeting code of the linked Meet space.
256
+ string meeting_code = 1;
257
+
258
+ // Indicates the type of the Meet space.
259
+ Type type = 2;
260
+
261
+ // Optional. Output only. If the Meet is a Huddle, indicates the status of the
262
+ // huddle. Otherwise, this is unset.
263
+ HuddleStatus huddle_status = 3 [
264
+ (google.api.field_behavior) = OPTIONAL,
265
+ (google.api.field_behavior) = OUTPUT_ONLY
266
+ ];
267
+ }
268
+
269
+ // Data for Calendar event links.
270
+ message CalendarEventLinkData {
271
+ // The [Calendar
272
+ // identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars)
273
+ // of the linked Calendar.
274
+ string calendar_id = 1;
275
+
276
+ // The [Event
277
+ // identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events)
278
+ // of the linked Calendar event.
279
+ string event_id = 2;
280
+ }
281
+
207
282
  // Type of the annotation.
208
283
  enum AnnotationType {
209
284
  // Default value for the enum. Don't use.
@@ -152,7 +152,9 @@ message Message {
152
152
  // [Card builder](https://addons.gsuite.google.com/uikit/builder)
153
153
  repeated CardWithId cards_v2 = 22 [(google.api.field_behavior) = OPTIONAL];
154
154
 
155
- // Output only. Annotations associated with the `text` in this message.
155
+ // Output only. Annotations can be associated with the plain-text body of the
156
+ // message or with chips that link to Google Workspace resources like Google
157
+ // Docs or Sheets with `start_index` and `length` of 0.
156
158
  repeated Annotation annotations = 10
157
159
  [(google.api.field_behavior) = OUTPUT_ONLY];
158
160