Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64153,6 +64153,9 @@
"/chat:v1/FormAction/actionMethodName": action_method_name
"/chat:v1/FormAction/parameters": parameters
"/chat:v1/FormAction/parameters/parameter": parameter
"/chat:v1/ForwardedMetadata": forwarded_metadata
"/chat:v1/ForwardedMetadata/space": space
"/chat:v1/ForwardedMetadata/spaceDisplayName": space_display_name
"/chat:v1/GoogleAppsCardV1Action": google_apps_card_v1_action
"/chat:v1/GoogleAppsCardV1Action/allWidgetsAreRequired": all_widgets_are_required
"/chat:v1/GoogleAppsCardV1Action/function": function
Expand Down Expand Up @@ -64611,8 +64614,19 @@
"/chat:v1/PermissionSettings/toggleHistory": toggle_history
"/chat:v1/PermissionSettings/useAtMentionAll": use_at_mention_all
"/chat:v1/QuotedMessageMetadata": quoted_message_metadata
"/chat:v1/QuotedMessageMetadata/forwardedMetadata": forwarded_metadata
"/chat:v1/QuotedMessageMetadata/lastUpdateTime": last_update_time
"/chat:v1/QuotedMessageMetadata/name": name
"/chat:v1/QuotedMessageMetadata/quoteType": quote_type
"/chat:v1/QuotedMessageMetadata/quotedMessageSnapshot": quoted_message_snapshot
"/chat:v1/QuotedMessageSnapshot": quoted_message_snapshot
"/chat:v1/QuotedMessageSnapshot/annotations": annotations
"/chat:v1/QuotedMessageSnapshot/annotations/annotation": annotation
"/chat:v1/QuotedMessageSnapshot/attachments": attachments
"/chat:v1/QuotedMessageSnapshot/attachments/attachment": attachment
"/chat:v1/QuotedMessageSnapshot/formattedText": formatted_text
"/chat:v1/QuotedMessageSnapshot/sender": sender
"/chat:v1/QuotedMessageSnapshot/text": text
"/chat:v1/Reaction": reaction
"/chat:v1/Reaction/emoji": emoji
"/chat:v1/Reaction/name": name
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-chat_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-chat_v1

### v0.142.0 (2026-01-25)

* Regenerated from discovery document revision 20260120

### v0.141.0 (2026-01-18)

* Regenerated from discovery document revision 20260108
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,35 @@ def update!(**args)
end
end

# Metadata about the source space from which a message was forwarded.
class ForwardedMetadata
include Google::Apis::Core::Hashable

# Output only. The resource name of the source space. Format: spaces/`space`
# Corresponds to the JSON property `space`
# @return [String]
attr_accessor :space

# Output only. The display name of the source space or DM at the time of
# forwarding. For `SPACE`, this is the space name. For `DIRECT_MESSAGE`, this is
# the other participant's name (e.g., "User A"). For `GROUP_CHAT`, this is a
# generated name based on members' first names, limited to 5 including the
# creator (e.g., "User A, User B").
# Corresponds to the JSON property `spaceDisplayName`
# @return [String]
attr_accessor :space_display_name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@space = args[:space] if args.key?(:space)
@space_display_name = args[:space_display_name] if args.key?(:space_display_name)
end
end

# An action that describes the behavior when the form is submitted. For example,
# you can invoke an Apps Script script to handle the form. If the action is
# triggered, the form values are sent to the server. [Google Workspace add-ons
Expand Down Expand Up @@ -5512,6 +5541,11 @@ def update!(**args)
class QuotedMessageMetadata
include Google::Apis::Core::Hashable

# Metadata about the source space from which a message was forwarded.
# Corresponds to the JSON property `forwardedMetadata`
# @return [Google::Apis::ChatV1::ForwardedMetadata]
attr_accessor :forwarded_metadata

# Required. The timestamp when the quoted message was created or when the quoted
# message was last updated. If the message was edited, use this field, `
# last_update_time`. If the message was never edited, use `create_time`. If `
Expand All @@ -5527,14 +5561,79 @@ class QuotedMessageMetadata
# @return [String]
attr_accessor :name

# Optional. Specifies the quote type. If not set, defaults to REPLY in the
# message read/write path for backward compatibility.
# Corresponds to the JSON property `quoteType`
# @return [String]
attr_accessor :quote_type

# Provides a snapshot of the content of the quoted message at the time of
# quoting or forwarding
# Corresponds to the JSON property `quotedMessageSnapshot`
# @return [Google::Apis::ChatV1::QuotedMessageSnapshot]
attr_accessor :quoted_message_snapshot

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@forwarded_metadata = args[:forwarded_metadata] if args.key?(:forwarded_metadata)
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
@name = args[:name] if args.key?(:name)
@quote_type = args[:quote_type] if args.key?(:quote_type)
@quoted_message_snapshot = args[:quoted_message_snapshot] if args.key?(:quoted_message_snapshot)
end
end

# Provides a snapshot of the content of the quoted message at the time of
# quoting or forwarding
class QuotedMessageSnapshot
include Google::Apis::Core::Hashable

# Output only. Annotations parsed from the text body of the quoted message.
# Populated only for FORWARD quote type.
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::ChatV1::Annotation>]
attr_accessor :annotations

# Output only. Attachments that were part of the quoted message. These are
# copies of the quoted message's attachment metadata. Populated only for FORWARD
# quote type.
# Corresponds to the JSON property `attachments`
# @return [Array<Google::Apis::ChatV1::Attachment>]
attr_accessor :attachments

# Output only. Contains the quoted message `text` with markups added to support
# rich formatting like hyperlinks,custom emojis, markup, etc. Populated only for
# FORWARD quote type.
# Corresponds to the JSON property `formattedText`
# @return [String]
attr_accessor :formatted_text

# Output only. The quoted message's author name. Populated for both REPLY &
# FORWARD quote types.
# Corresponds to the JSON property `sender`
# @return [String]
attr_accessor :sender

# Output only. Snapshot of the quoted message's text content.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@attachments = args[:attachments] if args.key?(:attachments)
@formatted_text = args[:formatted_text] if args.key?(:formatted_text)
@sender = args[:sender] if args.key?(:sender)
@text = args[:text] if args.key?(:text)
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ChatV1
# Version of the google-apis-chat_v1 gem
GEM_VERSION = "0.141.0"
GEM_VERSION = "0.142.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.18.0"

# Revision of the discovery document this client was generated from
REVISION = "20260108"
REVISION = "20260120"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class ForwardedMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleAppsCardV1Action
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -766,6 +772,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class QuotedMessageSnapshot
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Reaction
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1346,6 +1358,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ForwardedMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :space, as: 'space'
property :space_display_name, as: 'spaceDisplayName'
end
end

class GoogleAppsCardV1Action
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -2322,8 +2342,26 @@ class Representation < Google::Apis::Core::JsonRepresentation
class QuotedMessageMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarded_metadata, as: 'forwardedMetadata', class: Google::Apis::ChatV1::ForwardedMetadata, decorator: Google::Apis::ChatV1::ForwardedMetadata::Representation

property :last_update_time, as: 'lastUpdateTime'
property :name, as: 'name'
property :quote_type, as: 'quoteType'
property :quoted_message_snapshot, as: 'quotedMessageSnapshot', class: Google::Apis::ChatV1::QuotedMessageSnapshot, decorator: Google::Apis::ChatV1::QuotedMessageSnapshot::Representation

end
end

class QuotedMessageSnapshot
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotations, as: 'annotations', class: Google::Apis::ChatV1::Annotation, decorator: Google::Apis::ChatV1::Annotation::Representation

collection :attachments, as: 'attachments', class: Google::Apis::ChatV1::Attachment, decorator: Google::Apis::ChatV1::Attachment::Representation

property :formatted_text, as: 'formattedText'
property :sender, as: 'sender'
property :text, as: 'text'
end
end

Expand Down