google-apis-chat_v1 0.155.0 → 0.157.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6842d654f4800b8f520b3c3610e28d1c52dc442ea7e3dc82109823d9871068cf
4
- data.tar.gz: 77fbf116ef1fe9e016edc98fe0c1a0307037d19b4240fb0e495f320b964f3b58
3
+ metadata.gz: a2965c5703b55c72fbd81511aa84169ab753f482ffb2835ea7a968e333057eae
4
+ data.tar.gz: 6aa44c9f69109deaed9c2a3952741c71cb7784f9604b60aebfc2cbb931766a38
5
5
  SHA512:
6
- metadata.gz: 0bd45ec119942d4613176372be61c9a4d78a8c837dd232b64b4c70869e572b85ff446a06a02e0ffe47f0769a620fd0ab4249a3f4f76f530b981d634f294f3c42
7
- data.tar.gz: 9ef527cce36524ffb0c3e9d6ddb9e00daf601a844fac5b7290293e5c97a9290a1558297b6c7c01c7c676cbe6d4dafb8c75aa024a9c9301a89d6d86fefe5efedf
6
+ metadata.gz: cd1a8f4c1686eb91afe1fbd15ecdf7f3837975a22e9f7eb0729e65d4d36943d175e45b5796464da97a29a54a039ab52dd58096d435df8b738875b7f4ce0aac5e
7
+ data.tar.gz: feb9e0464df1b31682fb0d18b48f49264db917a04d810e76f0e2720b174d4985f03b2215974e167b7108e167f453cbe1d33c3c0511467014bb0bbc863b760fa6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.157.0 (2026-10-04)
4
+
5
+ * Regenerated from discovery document revision 20260927
6
+
7
+ ### v0.156.0 (2026-09-24)
8
+
9
+ * Regenerated from discovery document revision 20260920
10
+
3
11
  ### v0.155.0 (2026-09-20)
4
12
 
5
13
  * Regenerated from discovery document revision 20260913
@@ -6480,6 +6480,9 @@ module Google
6480
6480
  # partial match of their display name. Results are limited to the top five space
6481
6481
  # matches. For example, `space.display_name:Project` searches for messages in
6482
6482
  # the top five spaces that contain the word "Project" in their display names. - `
6483
+ # space.space_type`: The type of the space. Only supports `=`. For example, `
6484
+ # space.space_type="DIRECT_MESSAGE"` returns only messages from direct messages.
6485
+ # The possible values are `DIRECT_MESSAGE`, `GROUP_CHAT`, and `SPACE`. - `
6483
6486
  # attachment`: Supports the operator `:*` (has any) to check for the presence of
6484
6487
  # attachments. If `attachment:*` is specified, only messages that have at least
6485
6488
  # one attachment are returned. - `annotations.user_mentions.user.name`: The
@@ -6492,50 +6495,53 @@ module Google
6492
6495
  # For advanced filtering, the following functions are also available: - `
6493
6496
  # has_link()`: Returns only messages that have at least one hyperlink in the
6494
6497
  # message text. - `is_unread()`: Filters out messages that have been read by the
6495
- # calling user. Using the `space.display_name` filter requires that the calling
6496
- # credentials include one of the following [authorization scopes](https://
6497
- # developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): -
6498
- # `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.
6499
- # googleapis.com/auth/chat.spaces` Using the `is_unread()` filter requires that
6500
- # the calling credentials include one of the following [authorization scopes](
6501
- # https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-
6502
- # scopes): - `https://www.googleapis.com/auth/chat.users.readstate.readonly` - `
6503
- # https://www.googleapis.com/auth/chat.users.readstate` Across different fields,
6504
- # only `AND` operators are supported. A valid example is `sender.name = "users/
6505
- # 1234567890" AND is_unread()`. The word `AND` is optional and is implied if
6506
- # omitted. For example, `sender.name = "users/1234567890" is_unread()` is valid
6507
- # and is equivalent to the previous example. An invalid example is `sender.name =
6508
- # "users/1234567890" OR is_unread()` because `OR` is not supported between
6509
- # different fields. Among the same field: - `create_time` supports only `AND`,
6510
- # and can only be used to represent an interval, such as `create_time >= "2022-
6511
- # 01-01T00:00:00+00:00" AND create_time < "2023-01-01T00:00:00+00:00"`. - `
6512
- # sender.name` supports only the `OR` operator, for example: `sender.name = "
6513
- # users/1234567890" OR sender.name = "users/0987654321"`. - `space.name`
6514
- # supports only the `OR` operator, for example: `space.name = "spaces/ABCDEFGH"
6515
- # OR space.name = "spaces/QWERTYUI"`. - `space.display_name` supports the
6516
- # operators `AND` and `OR`, but not a mix of both. For example: `space.
6517
- # display_name:Project AND space.display_name:Tasks` returns messages that are
6518
- # in spaces with display names containing both `Project` and `Tasks`, whereas `
6519
- # space.display_name:Project OR space.display_name:Tasks` returns messages that
6520
- # are in spaces with display names containing either `Project` or `Tasks` or
6521
- # both. - `annotations.user_mentions.user.name` supports the operators `AND` and
6522
- # `OR`, but not a mix of both. For example: `annotations.user_mentions.user.name:
6523
- # "users/1234567890" AND annotations.user_mentions.user.name:"users/0987654321"`
6524
- # returns only messages that mentions both users, whereas `annotations.
6525
- # user_mentions.user.name:"users/1234567890" OR annotations.user_mentions.user.
6526
- # name:"users/0987654321"` returns messages that mention either user or both.
6527
- # Parentheses are required to disambiguate operator precedence when combining `
6528
- # AND` and `OR` operators in the same query. For example: `(sender.name="users/
6529
- # me" OR sender.name="users/123456") AND is_unread()`. Otherwise, parentheses
6530
- # are optional. The following example queries are valid: ``` "Pending reports"
6531
- # AND create_time >= "2023-01-01T00:00:00Z" sender.name = "users/example@gmail.
6532
- # com" annotations.user_mentions.user.name:"users/0987654321" attachment:* AND
6533
- # space.name = "spaces/ABCDEFGH" tasks AND is_unread() AND sender.name = "users/
6534
- # 1234567890" "things to do" "urgent" (sender.name = "users/1234567890") AND (
6535
- # create_time < "2023-05-01T00:00:00Z") tasks AND space.name = "spaces/ABCDEFGH"
6536
- # AND has_link() "project one" is_unread() space.display_name:Project tasks ```
6537
- # The maximum query length is 1,000 characters. Invalid queries are rejected by
6538
- # the server with an `INVALID_ARGUMENT` error.
6498
+ # calling user. Using the `space.display_name` or the `space.space_type` filters
6499
+ # requires that the calling credentials include one of the following [
6500
+ # authorization scopes](https://developers.google.com/workspace/chat/
6501
+ # authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/
6502
+ # chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` Using
6503
+ # the `is_unread()` filter requires that the calling credentials include one of
6504
+ # the following [authorization scopes](https://developers.google.com/workspace/
6505
+ # chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/
6506
+ # auth/chat.users.readstate.readonly` - `https://www.googleapis.com/auth/chat.
6507
+ # users.readstate` Across different fields, only `AND` operators are supported.
6508
+ # A valid example is `sender.name = "users/1234567890" AND is_unread()`. The
6509
+ # word `AND` is optional and is implied if omitted. For example, `sender.name = "
6510
+ # users/1234567890" is_unread()` is valid and is equivalent to the previous
6511
+ # example. An invalid example is `sender.name = "users/1234567890" OR is_unread()
6512
+ # ` because `OR` is not supported between different fields. Among the same field:
6513
+ # - `create_time` supports only `AND`, and can only be used to represent an
6514
+ # interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND create_time <
6515
+ # "2023-01-01T00:00:00+00:00"`. - `sender.name` supports only the `OR` operator,
6516
+ # for example: `sender.name = "users/1234567890" OR sender.name = "users/
6517
+ # 0987654321"`. - `space.name` supports only the `OR` operator, for example: `
6518
+ # space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`. - `space.
6519
+ # display_name` supports the operators `AND` and `OR`, but not a mix of both.
6520
+ # For example: `space.display_name:Project AND space.display_name:Tasks` returns
6521
+ # messages that are in spaces with display names containing both `Project` and `
6522
+ # Tasks`, whereas `space.display_name:Project OR space.display_name:Tasks`
6523
+ # returns messages that are in spaces with display names containing either `
6524
+ # Project` or `Tasks` or both. - `space.space_type` supports only the `OR`
6525
+ # operator, for example: `space.space_type = "DIRECT_MESSAGE" OR space.
6526
+ # space_type = "GROUP_CHAT"`. - `annotations.user_mentions.user.name` supports
6527
+ # the operators `AND` and `OR`, but not a mix of both. For example: `annotations.
6528
+ # user_mentions.user.name:"users/1234567890" AND annotations.user_mentions.user.
6529
+ # name:"users/0987654321"` returns only messages that mentions both users,
6530
+ # whereas `annotations.user_mentions.user.name:"users/1234567890" OR annotations.
6531
+ # user_mentions.user.name:"users/0987654321"` returns messages that mention
6532
+ # either user or both. Parentheses are required to disambiguate operator
6533
+ # precedence when combining `AND` and `OR` operators in the same query. For
6534
+ # example: `(sender.name="users/me" OR sender.name="users/123456") AND is_unread(
6535
+ # )`. Otherwise, parentheses are optional. The following example queries are
6536
+ # valid: ``` "Pending reports" AND create_time >= "2023-01-01T00:00:00Z" sender.
6537
+ # name = "users/example@gmail.com" annotations.user_mentions.user.name:"users/
6538
+ # 0987654321" attachment:* AND space.name = "spaces/ABCDEFGH" tasks AND
6539
+ # is_unread() AND sender.name = "users/1234567890" "things to do" "urgent" (
6540
+ # sender.name = "users/1234567890") AND (create_time < "2023-05-01T00:00:00Z")
6541
+ # tasks AND space.name = "spaces/ABCDEFGH" AND has_link() "project one"
6542
+ # is_unread() space.display_name:Project tasks ``` The maximum query length is 1,
6543
+ # 000 characters. Invalid queries are rejected by the server with an `
6544
+ # INVALID_ARGUMENT` error.
6539
6545
  # Corresponds to the JSON property `filter`
6540
6546
  # @return [String]
6541
6547
  attr_accessor :filter
@@ -7139,7 +7145,7 @@ module Google
7139
7145
  include Google::Apis::Core::Hashable
7140
7146
 
7141
7147
  # Optional. A description of the space. For example, describe the space's
7142
- # discussion topic, functional purpose, or participants. Supports up to 150
7148
+ # discussion topic, functional purpose, or participants. Supports up to 4,096
7143
7149
  # characters.
7144
7150
  # Corresponds to the JSON property `description`
7145
7151
  # @return [String]
@@ -7730,6 +7736,17 @@ module Google
7730
7736
  class User
7731
7737
  include Google::Apis::Core::Hashable
7732
7738
 
7739
+ # Output only. The user's avatar image URL. When calling the Messages and
7740
+ # Memberships APIs with [user authentication](https://developers.google.com/
7741
+ # workspace/chat/authenticate-authorize-chat-user), this field is populated for
7742
+ # both internal and external users for the `sender` of a message, users within `
7743
+ # annotations` (such as user mentions), and within `Membership` resources,
7744
+ # provided the user is a member of the space or has prior affinity with the
7745
+ # calling user.
7746
+ # Corresponds to the JSON property `avatarUrl`
7747
+ # @return [String]
7748
+ attr_accessor :avatar_url
7749
+
7733
7750
  # Output only. The user's display name. Populated for both app authentication
7734
7751
  # and user authentication. This field is always populated for requests made with
7735
7752
  # [app authentication](https://developers.google.com/workspace/chat/authenticate-
@@ -7748,6 +7765,17 @@ module Google
7748
7765
  # @return [String]
7749
7766
  attr_accessor :domain_id
7750
7767
 
7768
+ # Output only. The user's email address. When calling the Messages and
7769
+ # Memberships APIs with [user authentication](https://developers.google.com/
7770
+ # workspace/chat/authenticate-authorize-chat-user), this field is populated for
7771
+ # both internal and external users for the `sender` of a message, users within `
7772
+ # annotations` (such as user mentions), and within `Membership` resources,
7773
+ # provided the user is a member of the space or has prior affinity with the
7774
+ # calling user.
7775
+ # Corresponds to the JSON property `email`
7776
+ # @return [String]
7777
+ attr_accessor :email
7778
+
7751
7779
  # Output only. When `true`, the user is deleted or their profile is not visible,
7752
7780
  # such as when a user is mentioned in a space without being a member and without
7753
7781
  # prior affinity with the calling user.
@@ -7783,8 +7811,10 @@ module Google
7783
7811
 
7784
7812
  # Update properties of this object
7785
7813
  def update!(**args)
7814
+ @avatar_url = args[:avatar_url] if args.key?(:avatar_url)
7786
7815
  @display_name = args[:display_name] if args.key?(:display_name)
7787
7816
  @domain_id = args[:domain_id] if args.key?(:domain_id)
7817
+ @email = args[:email] if args.key?(:email)
7788
7818
  @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous)
7789
7819
  @name = args[:name] if args.key?(:name)
7790
7820
  @type = args[:type] if args.key?(:type)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ChatV1
18
18
  # Version of the google-apis-chat_v1 gem
19
- GEM_VERSION = "0.155.0"
19
+ GEM_VERSION = "0.157.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260913"
25
+ REVISION = "20260927"
26
26
  end
27
27
  end
28
28
  end
@@ -3075,8 +3075,10 @@ module Google
3075
3075
  class User
3076
3076
  # @private
3077
3077
  class Representation < Google::Apis::Core::JsonRepresentation
3078
+ property :avatar_url, as: 'avatarUrl'
3078
3079
  property :display_name, as: 'displayName'
3079
3080
  property :domain_id, as: 'domainId'
3081
+ property :email, as: 'email'
3080
3082
  property :is_anonymous, as: 'isAnonymous'
3081
3083
  property :name, as: 'name'
3082
3084
  property :type, as: 'type'
@@ -99,10 +99,10 @@ module Google
99
99
  # View members in Google Chat conversations.
100
100
  AUTH_CHAT_MEMBERSHIPS_READONLY = 'https://www.googleapis.com/auth/chat.memberships.readonly'
101
101
 
102
- # See, compose, send, update, and delete messages as well as their message content; add, see, and delete reactions to messages.
102
+ # See, compose, send, update, and delete messages, their content, and attached cards; add, see, and delete reactions to messages.
103
103
  AUTH_CHAT_MESSAGES = 'https://www.googleapis.com/auth/chat.messages'
104
104
 
105
- # Compose and send messages in Google Chat
105
+ # Compose and send messages and attach cards
106
106
  AUTH_CHAT_MESSAGES_CREATE = 'https://www.googleapis.com/auth/chat.messages.create'
107
107
 
108
108
  # See, add, and delete reactions as well as their reaction content to messages in Google Chat
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chat_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.155.0
4
+ version: 0.157.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.155.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.157.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
62
62
  rdoc_options: []
63
63
  require_paths: