@google-apps/chat 0.19.1 → 0.21.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.
@@ -39,7 +39,7 @@ message DeletionMetadata {
39
39
  // User deleted their own message.
40
40
  CREATOR = 1;
41
41
 
42
- // A space manager deleted the message.
42
+ // An owner or manager deleted the message.
43
43
  SPACE_OWNER = 2;
44
44
 
45
45
  // A Google Workspace administrator deleted the message. Administrators can
@@ -66,16 +66,66 @@ message Membership {
66
66
  // assigned this role (other enum values might be used in the future).
67
67
  MEMBERSHIP_ROLE_UNSPECIFIED = 0;
68
68
 
69
- // A member of the space. The user has basic permissions, like sending
70
- // messages to the space. In 1:1 and unnamed group conversations, everyone
69
+ // A member of the space. In the Chat UI, this role is called Member.
70
+ //
71
+ // The user has basic permissions, like sending
72
+ // messages to the space.
73
+ // Managers and owners can grant members additional permissions in a space,
74
+ // including:
75
+ //
76
+ // - Add or remove members.
77
+ // - Modify space details.
78
+ // - Turn history on or off.
79
+ // - Mention everyone in the space with `@all`.
80
+ // - Manage Chat apps and webhooks installed in the space.
81
+ //
82
+ // In direct messages and unnamed group conversations, everyone
71
83
  // has this role.
72
84
  ROLE_MEMBER = 1;
73
85
 
74
- // A space manager. The user has all basic permissions plus administrative
75
- // permissions that let them manage the space, like adding or removing
76
- // members. Only supported in
77
- // [SpaceType.SPACE][google.chat.v1.Space.SpaceType].
86
+ // A space owner. In the Chat UI, this role is called Owner.
87
+ //
88
+ // The user has the complete set of space permissions to manage the space,
89
+ // including:
90
+ //
91
+ // - Change the role of other members in the space to member, manager, or
92
+ // owner.
93
+ // - Delete the space.
94
+ //
95
+ // Only supported in
96
+ // [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
97
+ //
98
+ // To learn more, see
99
+ // [Learn more about your role as a space
100
+ // owner or manager](https://support.google.com/chat/answer/11833441).
78
101
  ROLE_MANAGER = 2;
102
+
103
+ // A space manager. In the Chat UI, this role is called Manager.
104
+ //
105
+ // The user has all basic permissions of `ROLE_MEMBER`,
106
+ // and can be granted a subset of administrative permissions by an owner.
107
+ // By default, managers have all the permissions of an owner except for the
108
+ // ability to:
109
+ //
110
+ // - Delete the space.
111
+ // - Make another space member an owner.
112
+ // - Change an owner's role.
113
+ //
114
+ // By default, managers permissions include but aren't limited to:
115
+ //
116
+ // - Make another member a manager.
117
+ // - Delete messages in the space.
118
+ // - Manage space permissions.
119
+ // - Receive notifications for requests to join the space if the manager
120
+ // has the "manage members" permission in the space settings.
121
+ // - Make a space discoverable.
122
+ //
123
+ // Only supported in
124
+ // [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
125
+ //
126
+ // To learn more, see
127
+ // [Manage space settings](https://support.google.com/chat/answer/13340792).
128
+ ROLE_ASSISTANT_MANAGER = 4;
79
129
  }
80
130
 
81
131
  // Identifier. Resource name of the membership, assigned by the server.
@@ -232,10 +232,20 @@ message Space {
232
232
 
233
233
  // Represents a space permission setting.
234
234
  message PermissionSetting {
235
- // Optional. Whether spaces managers have this permission.
235
+ // Optional. Whether space owners
236
+ // ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER])
237
+ // have this permission.
236
238
  bool managers_allowed = 1 [(google.api.field_behavior) = OPTIONAL];
237
239
 
238
- // Optional. Whether non-manager members have this permission.
240
+ // Optional. Whether space managers
241
+ // [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
242
+ // have this permission.
243
+ optional bool assistant_managers_allowed = 3
244
+ [(google.api.field_behavior) = OPTIONAL];
245
+
246
+ // Optional. Whether basic space members
247
+ // ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER])
248
+ // have this permission.
239
249
  bool members_allowed = 2 [(google.api.field_behavior) = OPTIONAL];
240
250
  }
241
251