Skip to content

Commit 43bbbf5

Browse files
yoshi-automationfeywind
authored andcommitted
feat(chat): update the API
#### chat:v1 The following keys were added: - auth.oauth2.scopes.https://www.googleapis.com/auth/chat.app.messages.readonly.description The following keys were changed: - documentationLink - resources.spaces.resources.messages.methods.get.scopes - resources.spaces.resources.messages.methods.list.scopes - resources.spaces.resources.spaceEvents.methods.get.scopes - resources.spaces.resources.spaceEvents.methods.list.scopes - schemas.Membership.properties.role.enumDescriptions - schemas.PermissionSetting.properties.managersAllowed.description - schemas.PermissionSetting.properties.membersAllowed.description
1 parent c1bb83c commit 43bbbf5

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

discovery/chat-v1.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"https://www.googleapis.com/auth/chat.app.memberships": {
2424
"description": "On their own behalf, apps in Google Chat can see, add, update, and remove members from conversations and spaces"
2525
},
26+
"https://www.googleapis.com/auth/chat.app.messages.readonly": {
27+
"description": "On their own behalf, apps in Google Chat can see all messages and their associated reactions and message content"
28+
},
2629
"https://www.googleapis.com/auth/chat.app.spaces": {
2730
"description": "On their own behalf, apps in Google Chat can create conversations and spaces and see or update their metadata (including history settings and access settings)"
2831
},
@@ -98,7 +101,7 @@
98101
"canonicalName": "Hangouts Chat",
99102
"description": "The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages.",
100103
"discoveryVersion": "v1",
101-
"documentationLink": "https://developers.google.com/hangouts/chat",
104+
"documentationLink": "https://developers.google.com/workspace/chat",
102105
"fullyEncodeReservedExpansion": true,
103106
"icons": {
104107
"x16": "http://www.google.com/images/icons/product/search-16.gif",
@@ -995,6 +998,7 @@
995998
"$ref": "Message"
996999
},
9971000
"scopes": [
1001+
"https://www.googleapis.com/auth/chat.app.messages.readonly",
9981002
"https://www.googleapis.com/auth/chat.bot",
9991003
"https://www.googleapis.com/auth/chat.messages",
10001004
"https://www.googleapis.com/auth/chat.messages.readonly"
@@ -1048,6 +1052,7 @@
10481052
"$ref": "ListMessagesResponse"
10491053
},
10501054
"scopes": [
1055+
"https://www.googleapis.com/auth/chat.app.messages.readonly",
10511056
"https://www.googleapis.com/auth/chat.import",
10521057
"https://www.googleapis.com/auth/chat.messages",
10531058
"https://www.googleapis.com/auth/chat.messages.readonly"
@@ -1299,6 +1304,7 @@
12991304
},
13001305
"scopes": [
13011306
"https://www.googleapis.com/auth/chat.app.memberships",
1307+
"https://www.googleapis.com/auth/chat.app.messages.readonly",
13021308
"https://www.googleapis.com/auth/chat.app.spaces",
13031309
"https://www.googleapis.com/auth/chat.memberships",
13041310
"https://www.googleapis.com/auth/chat.memberships.readonly",
@@ -1349,6 +1355,7 @@
13491355
},
13501356
"scopes": [
13511357
"https://www.googleapis.com/auth/chat.app.memberships",
1358+
"https://www.googleapis.com/auth/chat.app.messages.readonly",
13521359
"https://www.googleapis.com/auth/chat.app.spaces",
13531360
"https://www.googleapis.com/auth/chat.memberships",
13541361
"https://www.googleapis.com/auth/chat.memberships.readonly",
@@ -1528,7 +1535,7 @@
15281535
}
15291536
}
15301537
},
1531-
"revision": "20250923",
1538+
"revision": "20251002",
15321539
"rootUrl": "https://chat.googleapis.com/",
15331540
"schemas": {
15341541
"AccessSettings": {
@@ -4491,8 +4498,8 @@
44914498
],
44924499
"enumDescriptions": [
44934500
"Default value. For users: they aren't a member of the space, but can be invited. For Google Groups: they're always assigned this role (other enum values might be used in the future).",
4494-
"A member of the space. The user has basic permissions, like sending messages to the space. In 1:1 and unnamed group conversations, everyone has this role.",
4495-
"A space manager. The user has all basic permissions plus administrative permissions that let them manage the space, like adding or removing members. Only supported in SpaceType.SPACE."
4501+
"A member of the space. In the Chat UI, this role is called Member. The user has basic permissions, like sending messages to the space. Managers and owners can grant members additional permissions in a space, including: - Add or remove members. - Modify space details. - Turn history on or off. - Mention everyone in the space with `@all`. - Manage Chat apps and webhooks installed in the space. In direct messages and unnamed group conversations, everyone has this role.",
4502+
"A space owner. In the Chat UI, this role is called Owner. The user has the complete set of space permissions to manage the space, including: - Change the role of other members in the space to member, manager, or owner. - Delete the space. Only supported in SpaceType.SPACE (named spaces). To learn more, see [Learn more about your role as a space owner or manager](https://support.google.com/chat/answer/11833441)."
44964503
],
44974504
"type": "string"
44984505
},
@@ -4865,11 +4872,11 @@
48654872
"id": "PermissionSetting",
48664873
"properties": {
48674874
"managersAllowed": {
4868-
"description": "Optional. Whether spaces managers have this permission.",
4875+
"description": "Optional. Whether space owners (`ROLE_MANAGER`) have this permission.",
48694876
"type": "boolean"
48704877
},
48714878
"membersAllowed": {
4872-
"description": "Optional. Whether non-manager members have this permission.",
4879+
"description": "Optional. Whether basic space members (`ROLE_MEMBER`) have this permission.",
48734880
"type": "boolean"
48744881
}
48754882
},

src/apis/chat/v1.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,11 +2339,11 @@ export namespace chat_v1 {
23392339
*/
23402340
export interface Schema$PermissionSetting {
23412341
/**
2342-
* Optional. Whether spaces managers have this permission.
2342+
* Optional. Whether space owners (`ROLE_MANAGER`) have this permission.
23432343
*/
23442344
managersAllowed?: boolean | null;
23452345
/**
2346-
* Optional. Whether non-manager members have this permission.
2346+
* Optional. Whether basic space members (`ROLE_MEMBER`) have this permission.
23472347
*/
23482348
membersAllowed?: boolean | null;
23492349
}
@@ -6788,6 +6788,7 @@ export namespace chat_v1 {
67886788
* const auth = new google.auth.GoogleAuth({
67896789
* // Scopes can be specified either as an array or as a single, space-delimited string.
67906790
* scopes: [
6791+
* 'https://www.googleapis.com/auth/chat.app.messages.readonly',
67916792
* 'https://www.googleapis.com/auth/chat.bot',
67926793
* 'https://www.googleapis.com/auth/chat.messages',
67936794
* 'https://www.googleapis.com/auth/chat.messages.readonly',
@@ -6951,6 +6952,7 @@ export namespace chat_v1 {
69516952
* const auth = new google.auth.GoogleAuth({
69526953
* // Scopes can be specified either as an array or as a single, space-delimited string.
69536954
* scopes: [
6955+
* 'https://www.googleapis.com/auth/chat.app.messages.readonly',
69546956
* 'https://www.googleapis.com/auth/chat.import',
69556957
* 'https://www.googleapis.com/auth/chat.messages',
69566958
* 'https://www.googleapis.com/auth/chat.messages.readonly',
@@ -8270,6 +8272,7 @@ export namespace chat_v1 {
82708272
* // Scopes can be specified either as an array or as a single, space-delimited string.
82718273
* scopes: [
82728274
* 'https://www.googleapis.com/auth/chat.app.memberships',
8275+
* 'https://www.googleapis.com/auth/chat.app.messages.readonly',
82738276
* 'https://www.googleapis.com/auth/chat.app.spaces',
82748277
* 'https://www.googleapis.com/auth/chat.memberships',
82758278
* 'https://www.googleapis.com/auth/chat.memberships.readonly',
@@ -8435,6 +8438,7 @@ export namespace chat_v1 {
84358438
* // Scopes can be specified either as an array or as a single, space-delimited string.
84368439
* scopes: [
84378440
* 'https://www.googleapis.com/auth/chat.app.memberships',
8441+
* 'https://www.googleapis.com/auth/chat.app.messages.readonly',
84388442
* 'https://www.googleapis.com/auth/chat.app.spaces',
84398443
* 'https://www.googleapis.com/auth/chat.memberships',
84408444
* 'https://www.googleapis.com/auth/chat.memberships.readonly',

0 commit comments

Comments
 (0)