google-apis-chat_v1 0.91.0 → 0.92.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f085237aac358b183d40cff86b8ef0c00ce1ec911da9964b0006c3f8c438234
|
4
|
+
data.tar.gz: 70c026fd5643256c13eba7be7a363dd847c62ea9204a57a136ca52a83da0ef0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e3f9ee66a28dfc2bde7000f2397b20cd68ec7ba95367c14ac1053e4a78e2aa5c43e0033b933420963b693ebcbc11a861e555f5f4af048ceb854a700b526efe6
|
7
|
+
data.tar.gz: b845ae855d46931ac6a633e01a5bdaf8bf25df9690b7a0a9d553b6ac0f44a22eeabe7e8eba9de5a1d06ca81979bf7893e5d9d11ba03ee0973c9f27140ca92932
|
data/CHANGELOG.md
CHANGED
@@ -752,7 +752,7 @@ module Google
|
|
752
752
|
class CustomEmoji
|
753
753
|
include Google::Apis::Core::Hashable
|
754
754
|
|
755
|
-
# Unique key for the custom emoji resource.
|
755
|
+
# Output only. Unique key for the custom emoji resource.
|
756
756
|
# Corresponds to the JSON property `uid`
|
757
757
|
# @return [String]
|
758
758
|
attr_accessor :uid
|
@@ -884,8 +884,9 @@ module Google
|
|
884
884
|
# @return [String]
|
885
885
|
attr_accessor :event_time
|
886
886
|
|
887
|
-
# For `CARD_CLICKED` interaction events, whether the user
|
888
|
-
# dialog](https://developers.
|
887
|
+
# For `CARD_CLICKED` and `MESSAGE` interaction events, whether the user is
|
888
|
+
# interacting with or about to interact with a [dialog](https://developers.
|
889
|
+
# google.com/workspace/chat/dialogs).
|
889
890
|
# Corresponds to the JSON property `isDialogEvent`
|
890
891
|
# @return [Boolean]
|
891
892
|
attr_accessor :is_dialog_event
|
@@ -4896,6 +4897,34 @@ module Google
|
|
4896
4897
|
end
|
4897
4898
|
end
|
4898
4899
|
|
4900
|
+
# A user's read state within a space, used to identify read and unread messages.
|
4901
|
+
class SpaceReadState
|
4902
|
+
include Google::Apis::Core::Hashable
|
4903
|
+
|
4904
|
+
# Optional. The time when the user's space read state was updated. Usually this
|
4905
|
+
# corresponds with either the timestamp of the last read message, or a timestamp
|
4906
|
+
# specified by the user to mark the last read position in a space.
|
4907
|
+
# Corresponds to the JSON property `lastReadTime`
|
4908
|
+
# @return [String]
|
4909
|
+
attr_accessor :last_read_time
|
4910
|
+
|
4911
|
+
# Resource name of the space read state. Format: `users/`user`/spaces/`space`/
|
4912
|
+
# spaceReadState`
|
4913
|
+
# Corresponds to the JSON property `name`
|
4914
|
+
# @return [String]
|
4915
|
+
attr_accessor :name
|
4916
|
+
|
4917
|
+
def initialize(**args)
|
4918
|
+
update!(**args)
|
4919
|
+
end
|
4920
|
+
|
4921
|
+
# Update properties of this object
|
4922
|
+
def update!(**args)
|
4923
|
+
@last_read_time = args[:last_read_time] if args.key?(:last_read_time)
|
4924
|
+
@name = args[:name] if args.key?(:name)
|
4925
|
+
end
|
4926
|
+
end
|
4927
|
+
|
4899
4928
|
# Event payload for an updated space. Event type: `google.workspace.chat.space.
|
4900
4929
|
# v1.updated`
|
4901
4930
|
class SpaceUpdatedEventData
|
@@ -5061,6 +5090,33 @@ module Google
|
|
5061
5090
|
end
|
5062
5091
|
end
|
5063
5092
|
|
5093
|
+
# A user's read state within a thread, used to identify read and unread messages.
|
5094
|
+
class ThreadReadState
|
5095
|
+
include Google::Apis::Core::Hashable
|
5096
|
+
|
5097
|
+
# The time when the user's thread read state was updated. Usually this
|
5098
|
+
# corresponds with the timestamp of the last read message in a thread.
|
5099
|
+
# Corresponds to the JSON property `lastReadTime`
|
5100
|
+
# @return [String]
|
5101
|
+
attr_accessor :last_read_time
|
5102
|
+
|
5103
|
+
# Resource name of the thread read state. Format: `users/`user`/spaces/`space`/
|
5104
|
+
# threads/`thread`/threadReadState`
|
5105
|
+
# Corresponds to the JSON property `name`
|
5106
|
+
# @return [String]
|
5107
|
+
attr_accessor :name
|
5108
|
+
|
5109
|
+
def initialize(**args)
|
5110
|
+
update!(**args)
|
5111
|
+
end
|
5112
|
+
|
5113
|
+
# Update properties of this object
|
5114
|
+
def update!(**args)
|
5115
|
+
@last_read_time = args[:last_read_time] if args.key?(:last_read_time)
|
5116
|
+
@name = args[:name] if args.key?(:name)
|
5117
|
+
end
|
5118
|
+
end
|
5119
|
+
|
5064
5120
|
# Time input values.
|
5065
5121
|
class TimeInput
|
5066
5122
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.92.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240423"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -694,6 +694,12 @@ module Google
|
|
694
694
|
include Google::Apis::Core::JsonObjectSupport
|
695
695
|
end
|
696
696
|
|
697
|
+
class SpaceReadState
|
698
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
699
|
+
|
700
|
+
include Google::Apis::Core::JsonObjectSupport
|
701
|
+
end
|
702
|
+
|
697
703
|
class SpaceUpdatedEventData
|
698
704
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
699
705
|
|
@@ -730,6 +736,12 @@ module Google
|
|
730
736
|
include Google::Apis::Core::JsonObjectSupport
|
731
737
|
end
|
732
738
|
|
739
|
+
class ThreadReadState
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
741
|
+
|
742
|
+
include Google::Apis::Core::JsonObjectSupport
|
743
|
+
end
|
744
|
+
|
733
745
|
class TimeInput
|
734
746
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
747
|
|
@@ -1997,6 +2009,14 @@ module Google
|
|
1997
2009
|
end
|
1998
2010
|
end
|
1999
2011
|
|
2012
|
+
class SpaceReadState
|
2013
|
+
# @private
|
2014
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2015
|
+
property :last_read_time, as: 'lastReadTime'
|
2016
|
+
property :name, as: 'name'
|
2017
|
+
end
|
2018
|
+
end
|
2019
|
+
|
2000
2020
|
class SpaceUpdatedEventData
|
2001
2021
|
# @private
|
2002
2022
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2045,6 +2065,14 @@ module Google
|
|
2045
2065
|
end
|
2046
2066
|
end
|
2047
2067
|
|
2068
|
+
class ThreadReadState
|
2069
|
+
# @private
|
2070
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2071
|
+
property :last_read_time, as: 'lastReadTime'
|
2072
|
+
property :name, as: 'name'
|
2073
|
+
end
|
2074
|
+
end
|
2075
|
+
|
2048
2076
|
class TimeInput
|
2049
2077
|
# @private
|
2050
2078
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -773,9 +773,10 @@ module Google
|
|
773
773
|
execute_or_queue_command(command, &block)
|
774
774
|
end
|
775
775
|
|
776
|
-
# Creates a message in a Google Chat space.
|
777
|
-
#
|
778
|
-
#
|
776
|
+
# Creates a message in a Google Chat space. The maximum message size, including
|
777
|
+
# text and cards, is 32,000 bytes. For an example, see [Send a message](https://
|
778
|
+
# developers.google.com/workspace/chat/create-messages). Calling this method
|
779
|
+
# requires [authentication](https://developers.google.com/workspace/chat/
|
779
780
|
# authenticate-authorize) and supports the following authentication types: - For
|
780
781
|
# text messages, user authentication or app authentication are supported. - For
|
781
782
|
# card messages, only app authentication is supported. (Only Chat apps can
|
@@ -1425,6 +1426,129 @@ module Google
|
|
1425
1426
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1426
1427
|
execute_or_queue_command(command, &block)
|
1427
1428
|
end
|
1429
|
+
|
1430
|
+
# Returns details about a user's read state within a space, used to identify
|
1431
|
+
# read and unread messages. Requires [user authentication](https://developers.
|
1432
|
+
# google.com/workspace/chat/authenticate-authorize-chat-user).
|
1433
|
+
# @param [String] name
|
1434
|
+
# Required. Resource name of the space read state to retrieve. Only supports
|
1435
|
+
# getting read state for the calling user. To refer to the calling user, set one
|
1436
|
+
# of the following: - The `me` alias. For example, `users/me/spaces/`space`/
|
1437
|
+
# spaceReadState`. - Their Workspace email address. For example, `users/user@
|
1438
|
+
# example.com/spaces/`space`/spaceReadState`. - Their user id. For example, `
|
1439
|
+
# users/123456789/spaces/`space`/spaceReadState`. Format: users/`user`/spaces/`
|
1440
|
+
# space`/spaceReadState
|
1441
|
+
# @param [String] fields
|
1442
|
+
# Selector specifying which fields to include in a partial response.
|
1443
|
+
# @param [String] quota_user
|
1444
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1445
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1446
|
+
# @param [Google::Apis::RequestOptions] options
|
1447
|
+
# Request-specific options
|
1448
|
+
#
|
1449
|
+
# @yield [result, err] Result & error if block supplied
|
1450
|
+
# @yieldparam result [Google::Apis::ChatV1::SpaceReadState] parsed result object
|
1451
|
+
# @yieldparam err [StandardError] error object if request failed
|
1452
|
+
#
|
1453
|
+
# @return [Google::Apis::ChatV1::SpaceReadState]
|
1454
|
+
#
|
1455
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1456
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1457
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1458
|
+
def get_user_space_space_read_state(name, fields: nil, quota_user: nil, options: nil, &block)
|
1459
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1460
|
+
command.response_representation = Google::Apis::ChatV1::SpaceReadState::Representation
|
1461
|
+
command.response_class = Google::Apis::ChatV1::SpaceReadState
|
1462
|
+
command.params['name'] = name unless name.nil?
|
1463
|
+
command.query['fields'] = fields unless fields.nil?
|
1464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1465
|
+
execute_or_queue_command(command, &block)
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
# Updates a user's read state within a space, used to identify read and unread
|
1469
|
+
# messages. Requires [user authentication](https://developers.google.com/
|
1470
|
+
# workspace/chat/authenticate-authorize-chat-user).
|
1471
|
+
# @param [String] name
|
1472
|
+
# Resource name of the space read state. Format: `users/`user`/spaces/`space`/
|
1473
|
+
# spaceReadState`
|
1474
|
+
# @param [Google::Apis::ChatV1::SpaceReadState] space_read_state_object
|
1475
|
+
# @param [String] update_mask
|
1476
|
+
# Required. The field paths to update. Currently supported field paths: - `
|
1477
|
+
# last_read_time` When the `last_read_time` is before the latest message create
|
1478
|
+
# time, the space appears as unread in the UI. To mark the space as read, set `
|
1479
|
+
# last_read_time` to any value later (larger) than the latest message create
|
1480
|
+
# time. The `last_read_time` is coerced to match the latest message create time.
|
1481
|
+
# Note that the space read state only affects the read state of messages that
|
1482
|
+
# are visible in the space's top-level conversation. Replies in threads are
|
1483
|
+
# unaffected by this timestamp, and instead rely on the thread read state.
|
1484
|
+
# @param [String] fields
|
1485
|
+
# Selector specifying which fields to include in a partial response.
|
1486
|
+
# @param [String] quota_user
|
1487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1489
|
+
# @param [Google::Apis::RequestOptions] options
|
1490
|
+
# Request-specific options
|
1491
|
+
#
|
1492
|
+
# @yield [result, err] Result & error if block supplied
|
1493
|
+
# @yieldparam result [Google::Apis::ChatV1::SpaceReadState] parsed result object
|
1494
|
+
# @yieldparam err [StandardError] error object if request failed
|
1495
|
+
#
|
1496
|
+
# @return [Google::Apis::ChatV1::SpaceReadState]
|
1497
|
+
#
|
1498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1501
|
+
def update_user_space_space_read_state(name, space_read_state_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1502
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1503
|
+
command.request_representation = Google::Apis::ChatV1::SpaceReadState::Representation
|
1504
|
+
command.request_object = space_read_state_object
|
1505
|
+
command.response_representation = Google::Apis::ChatV1::SpaceReadState::Representation
|
1506
|
+
command.response_class = Google::Apis::ChatV1::SpaceReadState
|
1507
|
+
command.params['name'] = name unless name.nil?
|
1508
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1509
|
+
command.query['fields'] = fields unless fields.nil?
|
1510
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1511
|
+
execute_or_queue_command(command, &block)
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
# Returns details about a user's read state within a thread, used to identify
|
1515
|
+
# read and unread messages. Requires [user authentication](https://developers.
|
1516
|
+
# google.com/workspace/chat/authenticate-authorize-chat-user).
|
1517
|
+
# @param [String] name
|
1518
|
+
# Required. Resource name of the thread read state to retrieve. Only supports
|
1519
|
+
# getting read state for the calling user. To refer to the calling user, set one
|
1520
|
+
# of the following: - The `me` alias. For example, `users/me/spaces/`space`/
|
1521
|
+
# threads/`thread`/threadReadState`. - Their Workspace email address. For
|
1522
|
+
# example, `users/user@example.com/spaces/`space`/threads/`thread`/
|
1523
|
+
# threadReadState`. - Their user id. For example, `users/123456789/spaces/`space`
|
1524
|
+
# /threads/`thread`/threadReadState`. Format: users/`user`/spaces/`space`/
|
1525
|
+
# threads/`thread`/threadReadState
|
1526
|
+
# @param [String] fields
|
1527
|
+
# Selector specifying which fields to include in a partial response.
|
1528
|
+
# @param [String] quota_user
|
1529
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1530
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1531
|
+
# @param [Google::Apis::RequestOptions] options
|
1532
|
+
# Request-specific options
|
1533
|
+
#
|
1534
|
+
# @yield [result, err] Result & error if block supplied
|
1535
|
+
# @yieldparam result [Google::Apis::ChatV1::ThreadReadState] parsed result object
|
1536
|
+
# @yieldparam err [StandardError] error object if request failed
|
1537
|
+
#
|
1538
|
+
# @return [Google::Apis::ChatV1::ThreadReadState]
|
1539
|
+
#
|
1540
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1541
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1542
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1543
|
+
def get_user_space_thread_thread_read_state(name, fields: nil, quota_user: nil, options: nil, &block)
|
1544
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1545
|
+
command.response_representation = Google::Apis::ChatV1::ThreadReadState::Representation
|
1546
|
+
command.response_class = Google::Apis::ChatV1::ThreadReadState
|
1547
|
+
command.params['name'] = name unless name.nil?
|
1548
|
+
command.query['fields'] = fields unless fields.nil?
|
1549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1550
|
+
execute_or_queue_command(command, &block)
|
1551
|
+
end
|
1428
1552
|
|
1429
1553
|
protected
|
1430
1554
|
|
data/lib/google/apis/chat_v1.rb
CHANGED
@@ -74,6 +74,12 @@ module Google
|
|
74
74
|
|
75
75
|
# View chat and spaces in Google Chat
|
76
76
|
AUTH_CHAT_SPACES_READONLY = 'https://www.googleapis.com/auth/chat.spaces.readonly'
|
77
|
+
|
78
|
+
# View and modify last read time for Google Chat conversations
|
79
|
+
AUTH_CHAT_USERS_READSTATE = 'https://www.googleapis.com/auth/chat.users.readstate'
|
80
|
+
|
81
|
+
# View last read time for Google Chat conversations
|
82
|
+
AUTH_CHAT_USERS_READSTATE_READONLY = 'https://www.googleapis.com/auth/chat.users.readstate.readonly'
|
77
83
|
end
|
78
84
|
end
|
79
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-chat_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.92.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.92.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|