Skip to content

Commit

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

The following keys were added:
- resources.dms.methods.messages.parameters.messageReplyOption (Total Keys: 2)
- resources.dms.methods.webhooks.parameters.messageReplyOption (Total Keys: 2)
- resources.dms.resources.conversations.methods.messages.parameters.messageReplyOption (Total Keys: 2)
- resources.rooms.methods.messages.parameters.messageReplyOption (Total Keys: 2)
- resources.rooms.methods.webhooks.parameters.messageReplyOption (Total Keys: 2)
- resources.rooms.resources.conversations.methods.messages.parameters.messageReplyOption (Total Keys: 2)
- resources.spaces.methods.webhooks.parameters.messageReplyOption (Total Keys: 2)
- resources.spaces.resources.messages.methods.create.parameters.messageReplyOption (Total Keys: 2)
- schemas.Message.properties.threadReply (Total Keys: 2)
- schemas.Space.properties.spaceThreadingState (Total Keys: 2)
- schemas.Thread.properties.threadKey.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Oct 25, 2022
1 parent 4b424cf commit 39808f1
Show file tree
Hide file tree
Showing 7 changed files with 369 additions and 124 deletions.
33 changes: 22 additions & 11 deletions docs/dyn/chat_v1.dms.conversations.html
Expand Up @@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#messages">messages(parent, body=None, messageId=None, requestId=None, threadKey=None, x__xgafv=None)</a></code></p>
<code><a href="#messages">messages(parent, body=None, messageId=None, messageReplyOption=None, requestId=None, threadKey=None, x__xgafv=None)</a></code></p>
<p class="firstline">Legacy path for creating message. Calling these will result in a BadRequest response.</p>
<h3>Method Details</h3>
<div class="method">
Expand All @@ -87,7 +87,7 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="messages">messages(parent, body=None, messageId=None, requestId=None, threadKey=None, x__xgafv=None)</code>
<code class="details" id="messages">messages(parent, body=None, messageId=None, messageReplyOption=None, requestId=None, threadKey=None, x__xgafv=None)</code>
<pre>Legacy path for creating message. Calling these will result in a BadRequest response.

Args:
Expand Down Expand Up @@ -1372,26 +1372,34 @@ <h3>Method Details</h3>
&quot;slashCommand&quot;: { # A [slash command](https://developers.google.com/chat/how-tos/slash-commands) in Google Chat. # Output only. Slash command information, if applicable.
&quot;commandId&quot;: &quot;A String&quot;, # The id of the slash command invoked.
},
&quot;space&quot;: { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to.
&quot;space&quot;: { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to. When accessed with [user authentication](https://developers.google.com/chat/api/guides/auth/users), only the name of the Space is populated.
&quot;displayName&quot;: &quot;A String&quot;, # The space&#x27;s display name. For direct messages between humans, this field might be empty.
&quot;name&quot;: &quot;A String&quot;, # Resource name of the space. Format: spaces/{space}
&quot;singleUserBotDm&quot;: True or False, # Optional. Whether the space is a DM between a Chat app and a single human.
&quot;spaceDetails&quot;: { # Details about the space including description and rules. # Details about the space including description and rules.
&quot;description&quot;: &quot;A String&quot;, # Optional. A description of the space. It could describe the space&#x27;s discussion topic, functional purpose, or participants.
&quot;guidelines&quot;: &quot;A String&quot;, # Optional. The space&#x27;s rules, expectations, and etiquette.
},
&quot;threaded&quot;: True or False, # Output only. Whether messages are threaded in this space.
&quot;spaceThreadingState&quot;: &quot;A String&quot;, # Output only. The threading state in the Chat space.
&quot;threaded&quot;: True or False, # Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space.
&quot;type&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer preview) instead. The type of a space.
},
&quot;text&quot;: &quot;A String&quot;, # Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip.
&quot;thread&quot;: { # A thread in Google Chat. # The thread the message belongs to.
&quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/threads/*&quot;. Example: spaces/AAAAAAAAAAA/threads/TTTTTTTTTTT
&quot;thread&quot;: { # A thread in Google Chat. # The thread the message belongs to. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
&quot;name&quot;: &quot;A String&quot;, # Resource name of the thread. Example: spaces/{space}/threads/{thread}
&quot;threadKey&quot;: &quot;A String&quot;, # Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). For other requests, this is an output only field.
},
&quot;threadReply&quot;: True or False, # Output only. When `true`, the message is a response in a reply thread. When `false`, the message is visible in the space&#x27;s top-level conversation as either the first message of a thread or a message with no threaded replies. If the space doesn&#x27;t support reply in threads, this field is always `false`.
}

messageId: string, Optional. A custom name for a Chat message assigned at creation. Must start with `client-` and contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this field to get, update, or delete the message with the specified value. For example usage, see [Name a created message](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message).
messageReplyOption: string, Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces.
Allowed values
MESSAGE_REPLY_OPTION_UNSPECIFIED - Default. Starts a thread.
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD - Creates the message as a reply to the thread specified by thread ID or thread_key. If it fails, the message starts a new thread instead.
REPLY_MESSAGE_OR_FAIL - Creates the message as a reply to the thread specified by thread ID or thread_key. If it fails, a NOT_FOUND error is returned instead.
requestId: string, Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message.
threadKey: string, Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` instead of thread.name. (Setting thread.name has no effect.) The first message with a given `threadKey` starts a new thread. Subsequent messages with the same `threadKey` post into the same thread.
threadKey: string, Optional. Deprecated: Use thread_key instead. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
Expand Down Expand Up @@ -2677,21 +2685,24 @@ <h3>Method Details</h3>
&quot;slashCommand&quot;: { # A [slash command](https://developers.google.com/chat/how-tos/slash-commands) in Google Chat. # Output only. Slash command information, if applicable.
&quot;commandId&quot;: &quot;A String&quot;, # The id of the slash command invoked.
},
&quot;space&quot;: { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to.
&quot;space&quot;: { # A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app. # The space the message belongs to. When accessed with [user authentication](https://developers.google.com/chat/api/guides/auth/users), only the name of the Space is populated.
&quot;displayName&quot;: &quot;A String&quot;, # The space&#x27;s display name. For direct messages between humans, this field might be empty.
&quot;name&quot;: &quot;A String&quot;, # Resource name of the space. Format: spaces/{space}
&quot;singleUserBotDm&quot;: True or False, # Optional. Whether the space is a DM between a Chat app and a single human.
&quot;spaceDetails&quot;: { # Details about the space including description and rules. # Details about the space including description and rules.
&quot;description&quot;: &quot;A String&quot;, # Optional. A description of the space. It could describe the space&#x27;s discussion topic, functional purpose, or participants.
&quot;guidelines&quot;: &quot;A String&quot;, # Optional. The space&#x27;s rules, expectations, and etiquette.
},
&quot;threaded&quot;: True or False, # Output only. Whether messages are threaded in this space.
&quot;spaceThreadingState&quot;: &quot;A String&quot;, # Output only. The threading state in the Chat space.
&quot;threaded&quot;: True or False, # Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages are threaded in this space.
&quot;type&quot;: &quot;A String&quot;, # Output only. Deprecated: Use `singleUserBotDm` or `spaceType` (developer preview) instead. The type of a space.
},
&quot;text&quot;: &quot;A String&quot;, # Plain-text body of the message. The first link to an image, video, web page, or other preview-able item generates a preview chip.
&quot;thread&quot;: { # A thread in Google Chat. # The thread the message belongs to.
&quot;name&quot;: &quot;A String&quot;, # Resource name, in the form &quot;spaces/*/threads/*&quot;. Example: spaces/AAAAAAAAAAA/threads/TTTTTTTTTTT
&quot;thread&quot;: { # A thread in Google Chat. # The thread the message belongs to. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread).
&quot;name&quot;: &quot;A String&quot;, # Resource name of the thread. Example: spaces/{space}/threads/{thread}
&quot;threadKey&quot;: &quot;A String&quot;, # Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a `threadKey` or the thread.name. For example usage, see [Start or reply to a message thread](/chat/api/guides/crudl/messages#start_or_reply_to_a_message_thread). For other requests, this is an output only field.
},
&quot;threadReply&quot;: True or False, # Output only. When `true`, the message is a response in a reply thread. When `false`, the message is visible in the space&#x27;s top-level conversation as either the first message of a thread or a message with no threaded replies. If the space doesn&#x27;t support reply in threads, this field is always `false`.
}</pre>
</div>

Expand Down

0 comments on commit 39808f1

Please sign in to comment.