@google-apps/chat 0.20.0 → 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.
- package/build/protos/google/chat/v1/deletion_metadata.proto +1 -1
- package/build/protos/google/chat/v1/membership.proto +56 -6
- package/build/protos/google/chat/v1/space.proto +12 -2
- package/build/protos/protos.d.ts +8 -1
- package/build/protos/protos.js +44 -0
- package/build/protos/protos.json +17 -1
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ message DeletionMetadata {
|
|
|
39
39
|
// User deleted their own message.
|
|
40
40
|
CREATOR = 1;
|
|
41
41
|
|
|
42
|
-
//
|
|
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.
|
|
70
|
-
//
|
|
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
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
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
|
|
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
|
|
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
|
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -15137,7 +15137,8 @@ export namespace google {
|
|
|
15137
15137
|
enum MembershipRole {
|
|
15138
15138
|
MEMBERSHIP_ROLE_UNSPECIFIED = 0,
|
|
15139
15139
|
ROLE_MEMBER = 1,
|
|
15140
|
-
ROLE_MANAGER = 2
|
|
15140
|
+
ROLE_MANAGER = 2,
|
|
15141
|
+
ROLE_ASSISTANT_MANAGER = 4
|
|
15141
15142
|
}
|
|
15142
15143
|
}
|
|
15143
15144
|
|
|
@@ -20673,6 +20674,9 @@ export namespace google {
|
|
|
20673
20674
|
/** PermissionSetting managersAllowed */
|
|
20674
20675
|
managersAllowed?: (boolean|null);
|
|
20675
20676
|
|
|
20677
|
+
/** PermissionSetting assistantManagersAllowed */
|
|
20678
|
+
assistantManagersAllowed?: (boolean|null);
|
|
20679
|
+
|
|
20676
20680
|
/** PermissionSetting membersAllowed */
|
|
20677
20681
|
membersAllowed?: (boolean|null);
|
|
20678
20682
|
}
|
|
@@ -20689,6 +20693,9 @@ export namespace google {
|
|
|
20689
20693
|
/** PermissionSetting managersAllowed. */
|
|
20690
20694
|
public managersAllowed: boolean;
|
|
20691
20695
|
|
|
20696
|
+
/** PermissionSetting assistantManagersAllowed. */
|
|
20697
|
+
public assistantManagersAllowed?: (boolean|null);
|
|
20698
|
+
|
|
20692
20699
|
/** PermissionSetting membersAllowed. */
|
|
20693
20700
|
public membersAllowed: boolean;
|
|
20694
20701
|
|
package/build/protos/protos.js
CHANGED
|
@@ -39297,6 +39297,7 @@
|
|
|
39297
39297
|
case 0:
|
|
39298
39298
|
case 1:
|
|
39299
39299
|
case 2:
|
|
39300
|
+
case 4:
|
|
39300
39301
|
break;
|
|
39301
39302
|
}
|
|
39302
39303
|
if (message.member != null && message.hasOwnProperty("member")) {
|
|
@@ -39387,6 +39388,10 @@
|
|
|
39387
39388
|
case 2:
|
|
39388
39389
|
message.role = 2;
|
|
39389
39390
|
break;
|
|
39391
|
+
case "ROLE_ASSISTANT_MANAGER":
|
|
39392
|
+
case 4:
|
|
39393
|
+
message.role = 4;
|
|
39394
|
+
break;
|
|
39390
39395
|
}
|
|
39391
39396
|
if (object.member != null) {
|
|
39392
39397
|
if (typeof object.member !== "object")
|
|
@@ -39505,12 +39510,14 @@
|
|
|
39505
39510
|
* @property {number} MEMBERSHIP_ROLE_UNSPECIFIED=0 MEMBERSHIP_ROLE_UNSPECIFIED value
|
|
39506
39511
|
* @property {number} ROLE_MEMBER=1 ROLE_MEMBER value
|
|
39507
39512
|
* @property {number} ROLE_MANAGER=2 ROLE_MANAGER value
|
|
39513
|
+
* @property {number} ROLE_ASSISTANT_MANAGER=4 ROLE_ASSISTANT_MANAGER value
|
|
39508
39514
|
*/
|
|
39509
39515
|
Membership.MembershipRole = (function() {
|
|
39510
39516
|
var valuesById = {}, values = Object.create(valuesById);
|
|
39511
39517
|
values[valuesById[0] = "MEMBERSHIP_ROLE_UNSPECIFIED"] = 0;
|
|
39512
39518
|
values[valuesById[1] = "ROLE_MEMBER"] = 1;
|
|
39513
39519
|
values[valuesById[2] = "ROLE_MANAGER"] = 2;
|
|
39520
|
+
values[valuesById[4] = "ROLE_ASSISTANT_MANAGER"] = 4;
|
|
39514
39521
|
return values;
|
|
39515
39522
|
})();
|
|
39516
39523
|
|
|
@@ -53889,6 +53896,7 @@
|
|
|
53889
53896
|
* @memberof google.chat.v1.Space
|
|
53890
53897
|
* @interface IPermissionSetting
|
|
53891
53898
|
* @property {boolean|null} [managersAllowed] PermissionSetting managersAllowed
|
|
53899
|
+
* @property {boolean|null} [assistantManagersAllowed] PermissionSetting assistantManagersAllowed
|
|
53892
53900
|
* @property {boolean|null} [membersAllowed] PermissionSetting membersAllowed
|
|
53893
53901
|
*/
|
|
53894
53902
|
|
|
@@ -53915,6 +53923,14 @@
|
|
|
53915
53923
|
*/
|
|
53916
53924
|
PermissionSetting.prototype.managersAllowed = false;
|
|
53917
53925
|
|
|
53926
|
+
/**
|
|
53927
|
+
* PermissionSetting assistantManagersAllowed.
|
|
53928
|
+
* @member {boolean|null|undefined} assistantManagersAllowed
|
|
53929
|
+
* @memberof google.chat.v1.Space.PermissionSetting
|
|
53930
|
+
* @instance
|
|
53931
|
+
*/
|
|
53932
|
+
PermissionSetting.prototype.assistantManagersAllowed = null;
|
|
53933
|
+
|
|
53918
53934
|
/**
|
|
53919
53935
|
* PermissionSetting membersAllowed.
|
|
53920
53936
|
* @member {boolean} membersAllowed
|
|
@@ -53923,6 +53939,15 @@
|
|
|
53923
53939
|
*/
|
|
53924
53940
|
PermissionSetting.prototype.membersAllowed = false;
|
|
53925
53941
|
|
|
53942
|
+
// OneOf field names bound to virtual getters and setters
|
|
53943
|
+
var $oneOfFields;
|
|
53944
|
+
|
|
53945
|
+
// Virtual OneOf for proto3 optional field
|
|
53946
|
+
Object.defineProperty(PermissionSetting.prototype, "_assistantManagersAllowed", {
|
|
53947
|
+
get: $util.oneOfGetter($oneOfFields = ["assistantManagersAllowed"]),
|
|
53948
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
53949
|
+
});
|
|
53950
|
+
|
|
53926
53951
|
/**
|
|
53927
53952
|
* Creates a new PermissionSetting instance using the specified properties.
|
|
53928
53953
|
* @function create
|
|
@@ -53951,6 +53976,8 @@
|
|
|
53951
53976
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.managersAllowed);
|
|
53952
53977
|
if (message.membersAllowed != null && Object.hasOwnProperty.call(message, "membersAllowed"))
|
|
53953
53978
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.membersAllowed);
|
|
53979
|
+
if (message.assistantManagersAllowed != null && Object.hasOwnProperty.call(message, "assistantManagersAllowed"))
|
|
53980
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.assistantManagersAllowed);
|
|
53954
53981
|
return writer;
|
|
53955
53982
|
};
|
|
53956
53983
|
|
|
@@ -53991,6 +54018,10 @@
|
|
|
53991
54018
|
message.managersAllowed = reader.bool();
|
|
53992
54019
|
break;
|
|
53993
54020
|
}
|
|
54021
|
+
case 3: {
|
|
54022
|
+
message.assistantManagersAllowed = reader.bool();
|
|
54023
|
+
break;
|
|
54024
|
+
}
|
|
53994
54025
|
case 2: {
|
|
53995
54026
|
message.membersAllowed = reader.bool();
|
|
53996
54027
|
break;
|
|
@@ -54030,9 +54061,15 @@
|
|
|
54030
54061
|
PermissionSetting.verify = function verify(message) {
|
|
54031
54062
|
if (typeof message !== "object" || message === null)
|
|
54032
54063
|
return "object expected";
|
|
54064
|
+
var properties = {};
|
|
54033
54065
|
if (message.managersAllowed != null && message.hasOwnProperty("managersAllowed"))
|
|
54034
54066
|
if (typeof message.managersAllowed !== "boolean")
|
|
54035
54067
|
return "managersAllowed: boolean expected";
|
|
54068
|
+
if (message.assistantManagersAllowed != null && message.hasOwnProperty("assistantManagersAllowed")) {
|
|
54069
|
+
properties._assistantManagersAllowed = 1;
|
|
54070
|
+
if (typeof message.assistantManagersAllowed !== "boolean")
|
|
54071
|
+
return "assistantManagersAllowed: boolean expected";
|
|
54072
|
+
}
|
|
54036
54073
|
if (message.membersAllowed != null && message.hasOwnProperty("membersAllowed"))
|
|
54037
54074
|
if (typeof message.membersAllowed !== "boolean")
|
|
54038
54075
|
return "membersAllowed: boolean expected";
|
|
@@ -54053,6 +54090,8 @@
|
|
|
54053
54090
|
var message = new $root.google.chat.v1.Space.PermissionSetting();
|
|
54054
54091
|
if (object.managersAllowed != null)
|
|
54055
54092
|
message.managersAllowed = Boolean(object.managersAllowed);
|
|
54093
|
+
if (object.assistantManagersAllowed != null)
|
|
54094
|
+
message.assistantManagersAllowed = Boolean(object.assistantManagersAllowed);
|
|
54056
54095
|
if (object.membersAllowed != null)
|
|
54057
54096
|
message.membersAllowed = Boolean(object.membersAllowed);
|
|
54058
54097
|
return message;
|
|
@@ -54079,6 +54118,11 @@
|
|
|
54079
54118
|
object.managersAllowed = message.managersAllowed;
|
|
54080
54119
|
if (message.membersAllowed != null && message.hasOwnProperty("membersAllowed"))
|
|
54081
54120
|
object.membersAllowed = message.membersAllowed;
|
|
54121
|
+
if (message.assistantManagersAllowed != null && message.hasOwnProperty("assistantManagersAllowed")) {
|
|
54122
|
+
object.assistantManagersAllowed = message.assistantManagersAllowed;
|
|
54123
|
+
if (options.oneofs)
|
|
54124
|
+
object._assistantManagersAllowed = "assistantManagersAllowed";
|
|
54125
|
+
}
|
|
54082
54126
|
return object;
|
|
54083
54127
|
};
|
|
54084
54128
|
|
package/build/protos/protos.json
CHANGED
|
@@ -4224,7 +4224,8 @@
|
|
|
4224
4224
|
"values": {
|
|
4225
4225
|
"MEMBERSHIP_ROLE_UNSPECIFIED": 0,
|
|
4226
4226
|
"ROLE_MEMBER": 1,
|
|
4227
|
-
"ROLE_MANAGER": 2
|
|
4227
|
+
"ROLE_MANAGER": 2,
|
|
4228
|
+
"ROLE_ASSISTANT_MANAGER": 4
|
|
4228
4229
|
}
|
|
4229
4230
|
}
|
|
4230
4231
|
}
|
|
@@ -5709,6 +5710,13 @@
|
|
|
5709
5710
|
}
|
|
5710
5711
|
},
|
|
5711
5712
|
"PermissionSetting": {
|
|
5713
|
+
"oneofs": {
|
|
5714
|
+
"_assistantManagersAllowed": {
|
|
5715
|
+
"oneof": [
|
|
5716
|
+
"assistantManagersAllowed"
|
|
5717
|
+
]
|
|
5718
|
+
}
|
|
5719
|
+
},
|
|
5712
5720
|
"fields": {
|
|
5713
5721
|
"managersAllowed": {
|
|
5714
5722
|
"type": "bool",
|
|
@@ -5717,6 +5725,14 @@
|
|
|
5717
5725
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
5718
5726
|
}
|
|
5719
5727
|
},
|
|
5728
|
+
"assistantManagersAllowed": {
|
|
5729
|
+
"type": "bool",
|
|
5730
|
+
"id": 3,
|
|
5731
|
+
"options": {
|
|
5732
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
5733
|
+
"proto3_optional": true
|
|
5734
|
+
}
|
|
5735
|
+
},
|
|
5720
5736
|
"membersAllowed": {
|
|
5721
5737
|
"type": "bool",
|
|
5722
5738
|
"id": 2,
|