Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4f7229c

Browse files
committedOct 3, 2023
feat(chat): update the api
#### chat:v1 The following keys were deleted: - schemas.Membership.properties.role.readOnly (Total Keys: 1) The following keys were added: - schemas.Message.properties.formattedText (Total Keys: 2) The following keys were changed: - resources.spaces.resources.members.methods.delete.scopes (Total Keys: 1) - resources.spaces.resources.members.methods.list.scopes (Total Keys: 1)
1 parent 70bcf03 commit 4f7229c

File tree

4 files changed

+1155
-1141
lines changed

4 files changed

+1155
-1141
lines changed
 

‎docs/dyn/chat_v1.spaces.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h2>Instance Methods</h2>
9898
<p class="firstline">Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [user authentication](https://developers.google.com/chat/api/guides/auth/users), returns the direct message space between the specified user and the authenticated user. With [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), returns the direct message space between the specified user and the calling Chat app. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) or [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts).</p>
9999
<p class="toc_element">
100100
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
101-
<p class="firstline">Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users).</p>
101+
<p class="firstline">Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users).</p>
102102
<p class="toc_element">
103103
<code><a href="#list">list(filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
104104
<p class="firstline">Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/chat/api/guides/v1/spaces/list). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.</p>
@@ -221,7 +221,7 @@ <h3>Method Details</h3>
221221

222222
<div class="method">
223223
<code class="details" id="get">get(name, x__xgafv=None)</code>
224-
<pre>Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users).
224+
<pre>Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users).
225225

226226
Args:
227227
name: string, Required. Resource name of the space, in the form &quot;spaces/*&quot;. Format: `spaces/{space}` (required)
@@ -377,7 +377,7 @@ <h3>Method Details</h3>
377377
&quot;type&quot;: &quot;A String&quot;, # User type.
378378
},
379379
&quot;name&quot;: &quot;A String&quot;, # Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
380-
&quot;role&quot;: &quot;A String&quot;, # Output only. User&#x27;s role within a Chat space, which determines their permitted actions in the space.
380+
&quot;role&quot;: &quot;A String&quot;, # Optional. User&#x27;s role within a Chat space, which determines their permitted actions in the space. [Developer Preview](https://developers.google.com/workspace/preview): This field can only be used as input in `UpdateMembership`.
381381
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the membership.
382382
},
383383
],

‎docs/dyn/chat_v1.spaces.members.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h3>Method Details</h3>
117117
&quot;type&quot;: &quot;A String&quot;, # User type.
118118
},
119119
&quot;name&quot;: &quot;A String&quot;, # Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
120-
&quot;role&quot;: &quot;A String&quot;, # Output only. User&#x27;s role within a Chat space, which determines their permitted actions in the space.
120+
&quot;role&quot;: &quot;A String&quot;, # Optional. User&#x27;s role within a Chat space, which determines their permitted actions in the space. [Developer Preview](https://developers.google.com/workspace/preview): This field can only be used as input in `UpdateMembership`.
121121
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the membership.
122122
}
123123

@@ -139,7 +139,7 @@ <h3>Method Details</h3>
139139
&quot;type&quot;: &quot;A String&quot;, # User type.
140140
},
141141
&quot;name&quot;: &quot;A String&quot;, # Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
142-
&quot;role&quot;: &quot;A String&quot;, # Output only. User&#x27;s role within a Chat space, which determines their permitted actions in the space.
142+
&quot;role&quot;: &quot;A String&quot;, # Optional. User&#x27;s role within a Chat space, which determines their permitted actions in the space. [Developer Preview](https://developers.google.com/workspace/preview): This field can only be used as input in `UpdateMembership`.
143143
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the membership.
144144
}</pre>
145145
</div>
@@ -168,7 +168,7 @@ <h3>Method Details</h3>
168168
&quot;type&quot;: &quot;A String&quot;, # User type.
169169
},
170170
&quot;name&quot;: &quot;A String&quot;, # Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
171-
&quot;role&quot;: &quot;A String&quot;, # Output only. User&#x27;s role within a Chat space, which determines their permitted actions in the space.
171+
&quot;role&quot;: &quot;A String&quot;, # Optional. User&#x27;s role within a Chat space, which determines their permitted actions in the space. [Developer Preview](https://developers.google.com/workspace/preview): This field can only be used as input in `UpdateMembership`.
172172
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the membership.
173173
}</pre>
174174
</div>
@@ -197,7 +197,7 @@ <h3>Method Details</h3>
197197
&quot;type&quot;: &quot;A String&quot;, # User type.
198198
},
199199
&quot;name&quot;: &quot;A String&quot;, # Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
200-
&quot;role&quot;: &quot;A String&quot;, # Output only. User&#x27;s role within a Chat space, which determines their permitted actions in the space.
200+
&quot;role&quot;: &quot;A String&quot;, # Optional. User&#x27;s role within a Chat space, which determines their permitted actions in the space. [Developer Preview](https://developers.google.com/workspace/preview): This field can only be used as input in `UpdateMembership`.
201201
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the membership.
202202
}</pre>
203203
</div>
@@ -232,7 +232,7 @@ <h3>Method Details</h3>
232232
&quot;type&quot;: &quot;A String&quot;, # User type.
233233
},
234234
&quot;name&quot;: &quot;A String&quot;, # Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`
235-
&quot;role&quot;: &quot;A String&quot;, # Output only. User&#x27;s role within a Chat space, which determines their permitted actions in the space.
235+
&quot;role&quot;: &quot;A String&quot;, # Optional. User&#x27;s role within a Chat space, which determines their permitted actions in the space. [Developer Preview](https://developers.google.com/workspace/preview): This field can only be used as input in `UpdateMembership`.
236236
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the membership.
237237
},
238238
],

‎docs/dyn/chat_v1.spaces.messages.html

+1,120-1,112
Large diffs are not rendered by default.

‎googleapiclient/discovery_cache/documents/chat.v1.json

+27-21
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
]
305305
},
306306
"get": {
307-
"description": "Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users). [User authentication](https://developers.google.com/chat/api/guides/auth/users).",
307+
"description": "Returns details about a space. For an example, see [Get a space](https://developers.google.com/chat/api/guides/v1/spaces/get). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts) and [user authentication](https://developers.google.com/chat/api/guides/auth/users).",
308308
"flatPath": "v1/spaces/{spacesId}",
309309
"httpMethod": "GET",
310310
"id": "chat.spaces.get",
@@ -474,6 +474,7 @@
474474
"$ref": "Membership"
475475
},
476476
"scopes": [
477+
"https://www.googleapis.com/auth/chat.import",
477478
"https://www.googleapis.com/auth/chat.memberships",
478479
"https://www.googleapis.com/auth/chat.memberships.app"
479480
]
@@ -549,6 +550,7 @@
549550
},
550551
"scopes": [
551552
"https://www.googleapis.com/auth/chat.bot",
553+
"https://www.googleapis.com/auth/chat.import",
552554
"https://www.googleapis.com/auth/chat.memberships",
553555
"https://www.googleapis.com/auth/chat.memberships.readonly"
554556
]
@@ -955,7 +957,7 @@
955957
}
956958
}
957959
},
958-
"revision": "20230914",
960+
"revision": "20230928",
959961
"rootUrl": "https://chat.googleapis.com/",
960962
"schemas": {
961963
"ActionParameter": {
@@ -1062,7 +1064,7 @@
10621064
"type": "object"
10631065
},
10641066
"Annotation": {
1065-
"description": "Output only. Annotations associated with the plain-text body of the message. To add basic formatting to a text message, see [Format text messages](https://developers.google.com/chat/api/guides/message-formats/text#format-texts). Example plain-text message body: ``` Hello @FooBot how are you!\" ``` The corresponding annotations metadata: ``` \"annotations\":[{ \"type\":\"USER_MENTION\", \"startIndex\":6, \"length\":7, \"userMention\": { \"user\": { \"name\":\"users/{user}\", \"displayName\":\"FooBot\", \"avatarUrl\":\"https://goo.gl/aeDtrS\", \"type\":\"BOT\" }, \"type\":\"MENTION\" } }] ```",
1067+
"description": "Output only. Annotations associated with the plain-text body of the message. To add basic formatting to a text message, see [Format text messages](https://developers.google.com/chat/format-messages). Example plain-text message body: ``` Hello @FooBot how are you!\" ``` The corresponding annotations metadata: ``` \"annotations\":[{ \"type\":\"USER_MENTION\", \"startIndex\":6, \"length\":7, \"userMention\": { \"user\": { \"name\":\"users/{user}\", \"displayName\":\"FooBot\", \"avatarUrl\":\"https://goo.gl/aeDtrS\", \"type\":\"BOT\" }, \"type\":\"MENTION\" } }] ```",
10661068
"id": "Annotation",
10671069
"properties": {
10681070
"length": {
@@ -1710,7 +1712,7 @@
17101712
"type": "array"
17111713
},
17121714
"persistValues": {
1713-
"description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/chat/api/guides/message-formats/cards) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.",
1715+
"description": "Indicates whether form values persist after the action. The default value is `false`. If `true`, form values remain after the action is triggered. To let the user make changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `NONE`. For [card messages](https://developers.google.com/chat/api/guides/v1/messages/create#create) in Chat apps, you must also set the action's [`ResponseType`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#responsetype) to `UPDATE_MESSAGE` and use the same [`card_id`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages#CardWithId) from the card that contained the action. If `false`, the form values are cleared when the action is triggered. To prevent the user from making changes while the action is being processed, set [`LoadIndicator`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#loadindicator) to `SPINNER`.",
17141716
"type": "boolean"
17151717
}
17161718
},
@@ -1833,7 +1835,7 @@
18331835
},
18341836
"fixedFooter": {
18351837
"$ref": "GoogleAppsCardV1CardFixedFooter",
1836-
"description": "The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/message-formats/cards)."
1838+
"description": "The fixed footer shown at the bottom of this card. Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/v1/messages/create#create)."
18371839
},
18381840
"header": {
18391841
"$ref": "GoogleAppsCardV1CardHeader",
@@ -1887,7 +1889,7 @@
18871889
"type": "object"
18881890
},
18891891
"GoogleAppsCardV1CardFixedFooter": {
1890-
"description": "A persistent (sticky) footer that that appears at the bottom of the card. For an example in Google Chat apps, see [Card footer](https://developers.google.com/chat/ui/widgets/card-fixed-footer). Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/message-formats/cards).",
1892+
"description": "A persistent (sticky) footer that that appears at the bottom of the card. For an example in Google Chat apps, see [Card footer](https://developers.google.com/chat/ui/widgets/card-fixed-footer). Setting `fixedFooter` without specifying a `primaryButton` or a `secondaryButton` causes an error. Supported by Google Workspace Add-ons and Chat apps. For Chat apps, you can use fixed footers in [dialogs](https://developers.google.com/chat/how-tos/dialogs), but not [card messages](https://developers.google.com/chat/api/guides/v1/messages/create#create).",
18911893
"id": "GoogleAppsCardV1CardFixedFooter",
18921894
"properties": {
18931895
"primaryButton": {
@@ -2067,7 +2069,7 @@
20672069
},
20682070
"endIcon": {
20692071
"$ref": "GoogleAppsCardV1Icon",
2070-
"description": "An icon displayed after the text. Supports [built-in](https://developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and [custom](https://developers.google.com/chat/api/guides/message-formats/cards#customicons) icons."
2072+
"description": "An icon displayed after the text. Supports [built-in](https://developers.google.com/chat/format-messages#builtinicons) and [custom](https://developers.google.com/chat/format-messages#customicons) icons."
20712073
},
20722074
"icon": {
20732075
"$ref": "GoogleAppsCardV1Icon",
@@ -2087,7 +2089,7 @@
20872089
"description": "A switch widget that a user can click to change its state and trigger an action."
20882090
},
20892091
"text": {
2090-
"description": "Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
2092+
"description": "Required. The primary text. Supports simple formatting. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
20912093
"type": "string"
20922094
},
20932095
"topLabel": {
@@ -2176,7 +2178,7 @@
21762178
"type": "object"
21772179
},
21782180
"GoogleAppsCardV1Icon": {
2179-
"description": "An icon displayed in a widget on a card. For an example in Google Chat apps, see [Icon](https://developers.google.com/chat/ui/widgets/icon). Supports [built-in](https://developers.google.com/chat/api/guides/message-formats/cards#builtinicons) and [custom](https://developers.google.com/chat/api/guides/message-formats/cards#customicons) icons.",
2181+
"description": "An icon displayed in a widget on a card. For an example in Google Chat apps, see [Icon](https://developers.google.com/chat/ui/widgets/icon). Supports [built-in](https://developers.google.com/chat/format-messages#builtinicons) and [custom](https://developers.google.com/chat/format-messages#customicons) icons.",
21802182
"id": "GoogleAppsCardV1Icon",
21812183
"properties": {
21822184
"altText": {
@@ -2200,7 +2202,7 @@
22002202
"type": "string"
22012203
},
22022204
"knownIcon": {
2203-
"description": "Display one of the built-in icons provided by Google Workspace. For example, to display an airplane icon, specify `AIRPLANE`. For a bus, specify `BUS`. For a full list of supported icons, see [built-in icons](https://developers.google.com/chat/api/guides/message-formats/cards#builtinicons).",
2205+
"description": "Display one of the built-in icons provided by Google Workspace. For example, to display an airplane icon, specify `AIRPLANE`. For a bus, specify `BUS`. For a full list of supported icons, see [built-in icons](https://developers.google.com/chat/format-messages#builtinicons).",
22042206
"type": "string"
22052207
}
22062208
},
@@ -2368,7 +2370,7 @@
23682370
"type": "boolean"
23692371
},
23702372
"header": {
2371-
"description": "Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
2373+
"description": "Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
23722374
"type": "string"
23732375
},
23742376
"uncollapsibleWidgetsCount": {
@@ -2589,7 +2591,7 @@
25892591
"type": "object"
25902592
},
25912593
"GoogleAppsCardV1TextParagraph": {
2592-
"description": "A paragraph of text that supports formatting. For an example in Google Chat apps, see [Text paragraph](https://developers.google.com/chat/ui/widgets/text-paragraph). For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards##card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
2594+
"description": "A paragraph of text that supports formatting. For an example in Google Chat apps, see [Text paragraph](https://developers.google.com/chat/ui/widgets/text-paragraph). For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
25932595
"id": "GoogleAppsCardV1TextParagraph",
25942596
"properties": {
25952597
"text": {
@@ -2657,7 +2659,7 @@
26572659
},
26582660
"textParagraph": {
26592661
"$ref": "GoogleAppsCardV1TextParagraph",
2660-
"description": "Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). For example, the following JSON creates a bolded text: ``` \"textParagraph\": { \"text\": \" *bold text*\" } ```"
2662+
"description": "Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). For example, the following JSON creates a bolded text: ``` \"textParagraph\": { \"text\": \" *bold text*\" } ```"
26612663
}
26622664
},
26632665
"type": "object"
@@ -2845,15 +2847,15 @@
28452847
"id": "KeyValue",
28462848
"properties": {
28472849
"bottomLabel": {
2848-
"description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
2850+
"description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
28492851
"type": "string"
28502852
},
28512853
"button": {
28522854
"$ref": "Button",
28532855
"description": "A button that can be clicked to trigger an action."
28542856
},
28552857
"content": {
2856-
"description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
2858+
"description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
28572859
"type": "string"
28582860
},
28592861
"contentMultiline": {
@@ -2939,7 +2941,7 @@
29392941
"description": "The `onclick` action. Only the top label, bottom label, and content region are clickable."
29402942
},
29412943
"topLabel": {
2942-
"description": "The text of the top label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
2944+
"description": "The text of the top label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
29432945
"type": "string"
29442946
}
29452947
},
@@ -3055,7 +3057,7 @@
30553057
"type": "string"
30563058
},
30573059
"role": {
3058-
"description": "Output only. User's role within a Chat space, which determines their permitted actions in the space.",
3060+
"description": "Optional. User's role within a Chat space, which determines their permitted actions in the space. [Developer Preview](https://developers.google.com/workspace/preview): This field can only be used as input in `UpdateMembership`.",
30593061
"enum": [
30603062
"MEMBERSHIP_ROLE_UNSPECIFIED",
30613063
"ROLE_MEMBER",
@@ -3066,7 +3068,6 @@
30663068
"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.",
30673069
"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."
30683070
],
3069-
"readOnly": true,
30703071
"type": "string"
30713072
},
30723073
"state": {
@@ -3172,6 +3173,11 @@
31723173
"description": "A plain-text description of the message's cards, used when the actual cards can't be displayed\u2014for example, mobile notifications.",
31733174
"type": "string"
31743175
},
3176+
"formattedText": {
3177+
"description": "Output only. Contains the message `text` with markups added to communicate formatting. This field might not capture all formatting visible in the UI, but includes the following: * [Markup syntax](https://developers.google.com/chat/format-messages) for bold, italic, strikethrough, monospace, and monospace block. * [User mentions](https://developers.google.com/chat/format-messages#messages-@mention) using the format ``. * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the first string is the URL and the second is the rendered text\u2014for example, ``. * Custom emoji using the format `:{emoji_name}:`\u2014for example, `:smile:`. This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning face emoji. For more information, see [View text formatting sent in a message](https://developers.google.com/chat/format-messages#view_text_formatting_sent_in_a_message)",
3178+
"readOnly": true,
3179+
"type": "string"
3180+
},
31753181
"lastUpdateTime": {
31763182
"description": "Output only. The time at which the message was last edited by a user. If the message has never been edited, this field is empty.",
31773183
"format": "google-datetime",
@@ -3207,7 +3213,7 @@
32073213
"description": "If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [space](https://developers.google.com/chat/api/reference/rest/v1/spaces) `name`."
32083214
},
32093215
"text": {
3210-
"description": "Plain-text body of the message. The first link to an image, video, or web page generates a [preview chip](https://developers.google.com/chat/how-tos/preview-links). You can also [@mention a Google Chat user](https://developers.google.com/chat/api/guides/message-formats/text#messages-@mention), or everyone in the space. To learn about creating text messages, see [Create a text message](https://developers.google.com/chat/api/guides/message-formats/text).",
3216+
"description": "Plain-text body of the message. The first link to an image, video, or web page generates a [preview chip](https://developers.google.com/chat/how-tos/preview-links). You can also [@mention a Google Chat user](https://developers.google.com/chat/format-messages#messages-@mention), or everyone in the space. To learn about creating text messages, see [Send a text message](https://developers.google.com/chat/api/guides/v1/messages/create#create-text-messages).",
32113217
"type": "string"
32123218
},
32133219
"thread": {
@@ -3291,7 +3297,7 @@
32913297
"id": "Section",
32923298
"properties": {
32933299
"header": {
3294-
"description": "The header of the section. Formatted text is supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
3300+
"description": "The header of the section. Formatted text is supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
32953301
"type": "string"
32963302
},
32973303
"widgets": {
@@ -3559,7 +3565,7 @@
35593565
"type": "object"
35603566
},
35613567
"TextParagraph": {
3562-
"description": "A paragraph of text. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
3568+
"description": "A paragraph of text. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).",
35633569
"id": "TextParagraph",
35643570
"properties": {
35653571
"text": {

0 commit comments

Comments
 (0)
Please sign in to comment.