Skip to content

Commit

Permalink
feat(chat): update the api
Browse files Browse the repository at this point in the history
#### chat:v1

The following keys were added:
- schemas.GoogleAppsCardV1DecoratedText.properties.icon.deprecated (Total Keys: 1)
- schemas.Message.properties.cards.deprecated (Total Keys: 1)
- schemas.Message.properties.quotedMessageMetadata (Total Keys: 2)
- schemas.QuotedMessageMetadata (Total Keys: 7)
- schemas.Space.properties.threaded.deprecated (Total Keys: 1)
- schemas.Space.properties.type.deprecated (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Jul 11, 2023
1 parent d0709e7 commit bb922af
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
32 changes: 32 additions & 0 deletions docs/dyn/chat_v1.spaces.messages.html
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down Expand Up @@ -4064,6 +4068,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down Expand Up @@ -6077,6 +6085,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down Expand Up @@ -8078,6 +8090,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down Expand Up @@ -10084,6 +10100,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down Expand Up @@ -12073,6 +12093,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down Expand Up @@ -14062,6 +14086,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down Expand Up @@ -16051,6 +16079,10 @@ <h3>Method Details</h3>
&quot;url&quot;: &quot;A String&quot;, # Output only. The URL that was matched.
},
&quot;name&quot;: &quot;A String&quot;, # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`
&quot;quotedMessageMetadata&quot;: { # Information about a quoted message. # Output only. Information about a message that&#x27;s quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.
&quot;lastUpdateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the quoted message was created or when the quoted message was last updated.
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`
},
&quot;sender&quot;: { # A user in Google Chat. # Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.
&quot;displayName&quot;: &quot;A String&quot;, # Output only. The user&#x27;s display name.
&quot;domainId&quot;: &quot;A String&quot;, # Unique identifier of the user&#x27;s Google Workspace domain.
Expand Down
29 changes: 28 additions & 1 deletion googleapiclient/discovery_cache/documents/chat.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@
}
}
},
"revision": "20230627",
"revision": "20230706",
"rootUrl": "https://chat.googleapis.com/",
"schemas": {
"ActionParameter": {
Expand Down Expand Up @@ -2041,6 +2041,7 @@
},
"icon": {
"$ref": "GoogleAppsCardV1Icon",
"deprecated": true,
"description": "Deprecated in favor of `startIcon`."
},
"onClick": {
Expand Down Expand Up @@ -3029,6 +3030,7 @@
"type": "array"
},
"cards": {
"deprecated": true,
"description": "Deprecated: Use `cards_v2` instead. Rich, formatted, and interactive cards that you can use to display UI elements such as: formatted texts, buttons, and clickable images. Cards are normally displayed below the plain-text body of the message. `cards` and `cards_v2` can have a maximum size of 32 KB.",
"items": {
"$ref": "Card"
Expand Down Expand Up @@ -3089,6 +3091,11 @@
"description": "Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`",
"type": "string"
},
"quotedMessageMetadata": {
"$ref": "QuotedMessageMetadata",
"description": "Output only. Information about a message that's quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.",
"readOnly": true
},
"sender": {
"$ref": "User",
"description": "Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/chat/api/guides/auth/users), the output populates the [user](https://developers.google.com/chat/api/reference/rest/v1/User) `name` and `type`.",
Expand Down Expand Up @@ -3145,6 +3152,24 @@
},
"type": "object"
},
"QuotedMessageMetadata": {
"description": "Information about a quoted message.",
"id": "QuotedMessageMetadata",
"properties": {
"lastUpdateTime": {
"description": "Output only. The timestamp when the quoted message was created or when the quoted message was last updated.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Output only. Resource name of the quoted message. Format: `spaces/{space}/messages/{message}`",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Reaction": {
"description": "A reaction to a message.",
"id": "Reaction",
Expand Down Expand Up @@ -3327,11 +3352,13 @@
"type": "string"
},
"threaded": {
"deprecated": true,
"description": "Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space.",
"readOnly": true,
"type": "boolean"
},
"type": {
"deprecated": true,
"description": "Output only. Deprecated: Use `space_type` instead. The type of a space.",
"enum": [
"TYPE_UNSPECIFIED",
Expand Down

0 comments on commit bb922af

Please sign in to comment.