@google-apps/chat 0.1.0 → 0.3.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -0
  3. package/build/protos/google/apps/card/v1/card.proto +242 -160
  4. package/build/protos/google/chat/v1/action_status.proto +4 -4
  5. package/build/protos/google/chat/v1/annotation.proto +46 -4
  6. package/build/protos/google/chat/v1/attachment.proto +12 -3
  7. package/build/protos/google/chat/v1/chat_service.proto +95 -83
  8. package/build/protos/google/chat/v1/contextual_addon.proto +4 -4
  9. package/build/protos/google/chat/v1/deletion_metadata.proto +3 -3
  10. package/build/protos/google/chat/v1/group.proto +3 -3
  11. package/build/protos/google/chat/v1/history_state.proto +3 -3
  12. package/build/protos/google/chat/v1/matched_url.proto +3 -3
  13. package/build/protos/google/chat/v1/membership.proto +36 -14
  14. package/build/protos/google/chat/v1/message.proto +88 -57
  15. package/build/protos/google/chat/v1/reaction.proto +7 -5
  16. package/build/protos/google/chat/v1/slash_command.proto +6 -5
  17. package/build/protos/google/chat/v1/space.proto +31 -20
  18. package/build/protos/google/chat/v1/space_setup.proto +4 -3
  19. package/build/protos/google/chat/v1/user.proto +6 -5
  20. package/build/protos/google/chat/v1/widgets.proto +7 -7
  21. package/build/protos/protos.d.ts +724 -142
  22. package/build/protos/protos.js +2007 -576
  23. package/build/protos/protos.json +179 -47
  24. package/build/src/v1/chat_service_client.d.ts +174 -135
  25. package/build/src/v1/chat_service_client.js +58 -31
  26. package/build/src/v1/chat_service_client.js.map +1 -1
  27. package/build/src/v1/chat_service_client_config.json +5 -0
  28. package/package.json +1 -1
@@ -22,13 +22,13 @@ import "google/chat/v1/history_state.proto";
22
22
  import "google/protobuf/field_mask.proto";
23
23
  import "google/protobuf/timestamp.proto";
24
24
 
25
- option csharp_namespace = "Google.Chat.V1";
25
+ option csharp_namespace = "Google.Apps.Chat.V1";
26
26
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
27
27
  option java_multiple_files = true;
28
28
  option java_outer_classname = "SpaceProto";
29
29
  option java_package = "com.google.chat.v1";
30
- option php_namespace = "Google\\Chat\\V1";
31
- option ruby_package = "Google::Chat::V1";
30
+ option php_namespace = "Google\\Apps\\Chat\\V1";
31
+ option ruby_package = "Google::Apps::Chat::V1";
32
32
 
33
33
  // A space in Google Chat. Spaces are conversations between two or more users
34
34
  // or 1:1 messages between a user and a Chat app.
@@ -40,6 +40,7 @@ message Space {
40
40
 
41
41
  // Deprecated: Use `SpaceType` instead.
42
42
  enum Type {
43
+ // Reserved.
43
44
  TYPE_UNSPECIFIED = 0;
44
45
 
45
46
  // Conversations between two or more humans.
@@ -124,7 +125,7 @@ message Space {
124
125
  [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
125
126
 
126
127
  // The space's display name. Required when [creating a
127
- // space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create).
128
+ // space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/create).
128
129
  // If you receive the error message `ALREADY_EXISTS` when creating a space or
129
130
  // updating the `displayName`, try a different `displayName`. An
130
131
  // existing space within the Google Workspace organization might already use
@@ -139,13 +140,18 @@ message Space {
139
140
  // Input when creating a space in a Google Workspace organization. Omit this
140
141
  // field when creating spaces in the following conditions:
141
142
  //
142
- // * The authenticated user uses a Google Account. By default,
143
- // the space permits any Google Chat user.
143
+ // * The authenticated user uses a consumer account (unmanaged user
144
+ // account). By default, a space created by a consumer account permits any
145
+ // Google Chat user.
144
146
  //
145
147
  // * The space is used to [import data to Google Chat]
146
- // (https://developers.google.com/chat/api/guides/import-data-overview).
147
- // Import mode spaces must only permit members from the same Google
148
- // Workspace organization.
148
+ // (https://developers.google.com/chat/api/guides/import-data-overview)
149
+ // because import mode spaces must only permit members from the same
150
+ // Google Workspace organization. However, as part of the [Google
151
+ // Workspace Developer Preview
152
+ // Program](https://developers.google.com/workspace/preview), import mode
153
+ // spaces can permit any Google Chat user so this field can then be set
154
+ // for import mode spaces.
149
155
  //
150
156
  // For existing spaces, this field is output only.
151
157
  bool external_user_allowed = 8 [(google.api.field_behavior) = IMMUTABLE];
@@ -188,6 +194,7 @@ message Space {
188
194
  bool admin_installed = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
189
195
  }
190
196
 
197
+ // A request to create a named space.
191
198
  message CreateSpaceRequest {
192
199
  // Required. The `displayName` and `spaceType` fields must be populated. Only
193
200
  // `SpaceType.SPACE` is supported.
@@ -216,8 +223,8 @@ message ListSpacesRequest {
216
223
  //
217
224
  // If unspecified, at most 100 spaces are returned.
218
225
  //
219
- // The maximum value is 1,000. If you use a value more than 1,000, it's
220
- // automatically changed to 1,000.
226
+ // The maximum value is 1000. If you use a value more than 1000, it's
227
+ // automatically changed to 1000.
221
228
  //
222
229
  // Negative values return an `INVALID_ARGUMENT` error.
223
230
  int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL];
@@ -232,7 +239,7 @@ message ListSpacesRequest {
232
239
  // Optional. A query filter.
233
240
  //
234
241
  // You can filter spaces by the space type
235
- // ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)).
242
+ // ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spacetype)).
236
243
  //
237
244
  // To filter by space type, you must specify valid enum value, such as
238
245
  // `SPACE` or `GROUP_CHAT` (the `space_type` can't be
@@ -251,6 +258,7 @@ message ListSpacesRequest {
251
258
  string filter = 3 [(google.api.field_behavior) = OPTIONAL];
252
259
  }
253
260
 
261
+ // The response for a list spaces request.
254
262
  message ListSpacesResponse {
255
263
  // List of spaces in the requested (or first) page.
256
264
  repeated Space spaces = 1;
@@ -282,8 +290,8 @@ message FindDirectMessageRequest {
282
290
  // in the Directory API. For example, if the People API profile ID is
283
291
  // `123456789`, you can find a direct message with that person by using
284
292
  // `users/123456789` as the `name`. When [authenticated as a
285
- // user](https://developers.google.com/chat/api/guides/auth/users), you can
286
- // use the email as an alias for `{user}`. For example,
293
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
294
+ // you can use the email as an alias for `{user}`. For example,
287
295
  // `users/example@gmail.com` where `example@gmail.com` is the email of the
288
296
  // Google Chat user.
289
297
  string name = 1 [(google.api.field_behavior) = REQUIRED];
@@ -310,12 +318,13 @@ message UpdateSpaceRequest {
310
318
  // Google Workspace organization might already use this display name.)
311
319
  //
312
320
  // - `space_type` (Only supports changing a `GROUP_CHAT` space type to
313
- // `SPACE`. Include `display_name` together with `space_type` in the update
314
- // mask and ensure that the specified space has a non-empty display name and
315
- // the `SPACE` space type. Including the `space_type` mask and the `SPACE`
316
- // type in the specified space when updating the display name is optional if
317
- // the existing space already has the `SPACE` type. Trying to update the
318
- // space type in other ways results in an invalid argument error).
321
+ // `SPACE`. Include `display_name` together
322
+ // with `space_type` in the update mask and ensure that the specified space
323
+ // has a non-empty display name and the `SPACE` space type. Including the
324
+ // `space_type` mask and the `SPACE` type in the specified space when updating
325
+ // the display name is optional if the existing space already has the `SPACE`
326
+ // type. Trying to update the space type in other ways results in an invalid
327
+ // argument error).
319
328
  //
320
329
  // - `space_details`
321
330
  //
@@ -324,6 +333,7 @@ message UpdateSpaceRequest {
324
333
  // allows users to change their history
325
334
  // setting](https://support.google.com/a/answer/7664184).
326
335
  // Warning: mutually exclusive with all other field paths.)
336
+ //
327
337
  // - Developer Preview: `access_settings.audience` (Supports changing the
328
338
  // [access setting](https://support.google.com/chat/answer/11971020) of a
329
339
  // space. If no audience is specified in the access setting, the space's
@@ -354,6 +364,7 @@ message CompleteImportSpaceRequest {
354
364
  ];
355
365
  }
356
366
 
367
+ // Response message for completing the import process for a space.
357
368
  message CompleteImportSpaceResponse {
358
369
  // The import mode space.
359
370
  Space space = 1;
@@ -20,14 +20,15 @@ import "google/api/field_behavior.proto";
20
20
  import "google/chat/v1/membership.proto";
21
21
  import "google/chat/v1/space.proto";
22
22
 
23
- option csharp_namespace = "Google.Chat.V1";
23
+ option csharp_namespace = "Google.Apps.Chat.V1";
24
24
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
25
25
  option java_multiple_files = true;
26
26
  option java_outer_classname = "SpaceSetupProto";
27
27
  option java_package = "com.google.chat.v1";
28
- option php_namespace = "Google\\Chat\\V1";
29
- option ruby_package = "Google::Chat::V1";
28
+ option php_namespace = "Google\\Apps\\Chat\\V1";
29
+ option ruby_package = "Google::Apps::Chat::V1";
30
30
 
31
+ // Request to create a space and add specified users to it.
31
32
  message SetUpSpaceRequest {
32
33
  // Required. The `Space.spaceType` field is required.
33
34
  //
@@ -19,18 +19,19 @@ package google.chat.v1;
19
19
  import "google/api/field_behavior.proto";
20
20
  import "google/api/resource.proto";
21
21
 
22
- option csharp_namespace = "Google.Chat.V1";
22
+ option csharp_namespace = "Google.Apps.Chat.V1";
23
23
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
24
24
  option java_multiple_files = true;
25
25
  option java_outer_classname = "UserProto";
26
26
  option java_package = "com.google.chat.v1";
27
- option php_namespace = "Google\\Chat\\V1";
28
- option ruby_package = "Google::Chat::V1";
27
+ option php_namespace = "Google\\Apps\\Chat\\V1";
28
+ option ruby_package = "Google::Apps::Chat::V1";
29
29
 
30
30
  // A user in Google Chat.
31
31
  // When returned as an output from a request, if your Chat app [authenticates as
32
- // a user](https://developers.google.com/chat/api/guides/auth/users), the output
33
- // for a `User` resource only populates the user's `name` and `type`.
32
+ // a
33
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
34
+ // the output for a `User` resource only populates the user's `name` and `type`.
34
35
  message User {
35
36
  enum Type {
36
37
  // Default value for the enum. DO NOT USE.
@@ -16,20 +16,20 @@ syntax = "proto3";
16
16
 
17
17
  package google.chat.v1;
18
18
 
19
- option csharp_namespace = "Google.Chat.V1";
19
+ option csharp_namespace = "Google.Apps.Chat.V1";
20
20
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
21
21
  option java_multiple_files = true;
22
22
  option java_outer_classname = "WidgetsProto";
23
23
  option java_package = "com.google.chat.v1";
24
- option php_namespace = "Google\\Chat\\V1";
25
- option ruby_package = "Google::Chat::V1";
24
+ option php_namespace = "Google\\Apps\\Chat\\V1";
25
+ option ruby_package = "Google::Apps::Chat::V1";
26
26
 
27
27
  // A widget is a UI element that presents text and images.
28
28
  message WidgetMarkup {
29
29
  // A paragraph of text. Formatted text supported. For more information
30
30
  // about formatting text, see
31
31
  // [Formatting text in Google Chat
32
- // apps](https://developers.google.com/chat/format-messages#card-formatting)
32
+ // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
33
33
  // and
34
34
  // [Formatting
35
35
  // text in Google Workspace
@@ -139,7 +139,7 @@ message WidgetMarkup {
139
139
  // The text of the top label. Formatted text supported. For more information
140
140
  // about formatting text, see
141
141
  // [Formatting text in Google Chat
142
- // apps](https://developers.google.com/chat/format-messages#card-formatting)
142
+ // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
143
143
  // and
144
144
  // [Formatting
145
145
  // text in Google Workspace
@@ -150,7 +150,7 @@ message WidgetMarkup {
150
150
  // For more information
151
151
  // about formatting text, see
152
152
  // [Formatting text in Google Chat
153
- // apps](https://developers.google.com/chat/format-messages#card-formatting)
153
+ // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
154
154
  // and
155
155
  // [Formatting
156
156
  // text in Google Workspace
@@ -162,7 +162,7 @@ message WidgetMarkup {
162
162
 
163
163
  // The text of the bottom label. Formatted text supported. For more
164
164
  // information about formatting text, see [Formatting text in Google Chat
165
- // apps](https://developers.google.com/chat/format-messages#card-formatting)
165
+ // apps](https://developers.google.com/workspace/chat/format-messages#card-formatting)
166
166
  // and
167
167
  // [Formatting
168
168
  // text in Google Workspace