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.Message.properties.privateMessageViewer.$ref (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Jan 4, 2024
1 parent 0e80b37 commit b94b8ec
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 38 deletions.
2 changes: 1 addition & 1 deletion docs/dyn/chat_v1.spaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ <h3>Method Details</h3>
<pre>Lists spaces the caller is a member of. Group chats and DMs aren&#x27;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). Supports [app 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&#x27;t listed until the first message is sent.

Args:
filter: string, Optional. A query filter. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users). You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can&#x27;t be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = &quot;SPACE&quot; spaceType = &quot;GROUP_CHAT&quot; OR spaceType = &quot;DIRECT_MESSAGE&quot; ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. With [app authentication](https://developers.google.com/chat/api/guides/auth/service-accounts), this field is ignored and the query always returns all spaces. But the Chat API still validates the query syntax, so invalid queries are still rejected.
filter: string, Optional. A query filter. You can filter spaces by the space type ([`space_type`](https://developers.google.com/chat/api/reference/rest/v1/spaces#spacetype)). To filter by space type, you must specify valid enum value, such as `SPACE` or `GROUP_CHAT` (the `space_type` can&#x27;t be `SPACE_TYPE_UNSPECIFIED`). To query for multiple space types, use the `OR` operator. For example, the following queries are valid: ``` space_type = &quot;SPACE&quot; spaceType = &quot;GROUP_CHAT&quot; OR spaceType = &quot;DIRECT_MESSAGE&quot; ``` Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error.
pageSize: integer, Optional. The maximum number of spaces to return. The service might return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1,000. If you use a value more than 1,000, it&#x27;s automatically changed to 1,000. Negative values return an `INVALID_ARGUMENT` error.
pageToken: string, Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.
x__xgafv: string, V1 error format.
Expand Down

0 comments on commit b94b8ec

Please sign in to comment.