شاخص
-
ChatService
(رابط) -
AccessoryWidget
(پیام) -
ActionResponse
(پیام) -
ActionResponse.ResponseType
(enum) -
ActionResponse.SelectionItems
(پیام) -
ActionResponse.UpdatedWidget
(پیام) -
ActionStatus
(پیام) -
Annotation
(پیام) -
AnnotationType
(enum) -
AppCommandMetadata
(پیام) -
AppCommandMetadata.AppCommandType
(enum) -
AttachedGif
(پیام) -
Attachment
(پیام) -
Attachment.Source
(تعدادی) -
AttachmentDataRef
(پیام) -
CalendarEventLinkData
(پیام) -
CardWithId
(پیام) -
ChatSpaceLinkData
(پیام) -
CompleteImportSpaceRequest
(پیام) -
CompleteImportSpaceResponse
(پیام) -
ContextualAddOnMarkup
(پیام) -
ContextualAddOnMarkup.Card
(پیام) -
ContextualAddOnMarkup.Card.CardAction
(پیام) -
ContextualAddOnMarkup.Card.CardHeader
(پیام) -
ContextualAddOnMarkup.Card.CardHeader.ImageStyle
(enum) -
ContextualAddOnMarkup.Card.Section
(پیام) -
CreateCustomEmojiRequest
(پیام) -
CreateMembershipRequest
(پیام) -
CreateMessageRequest
(پیام) -
CreateMessageRequest.MessageReplyOption
(enum) -
CreateReactionRequest
(پیام) -
CreateSpaceRequest
(پیام) -
CustomEmoji
(پیام) -
CustomEmoji.CustomEmojiPayload
(پیام) -
CustomEmojiMetadata
(پیام) -
DeleteCustomEmojiRequest
(پیام) -
DeleteMembershipRequest
(پیام) -
DeleteMessageRequest
(پیام) -
DeleteReactionRequest
(پیام) -
DeleteSpaceRequest
(پیام) -
DeletionMetadata
(پیام) -
DeletionMetadata.DeletionType
(enum) -
Dialog
(پیام) -
DialogAction
(پیام) -
DriveDataRef
(پیام) -
DriveLinkData
(پیام) -
Emoji
(پیام) -
EmojiReactionSummary
(پیام) -
FindDirectMessageRequest
(پیام) -
GetAttachmentRequest
(پیام) -
GetCustomEmojiRequest
(پیام) -
GetMembershipRequest
(پیام) -
GetMessageRequest
(پیام) -
GetSpaceEventRequest
(پیام) -
GetSpaceNotificationSettingRequest
(پیام) -
GetSpaceReadStateRequest
(پیام) -
GetSpaceRequest
(پیام) -
GetThreadReadStateRequest
(پیام) -
Group
(پیام) -
HistoryState
(تعدادی) -
ListCustomEmojisRequest
(پیام) -
ListCustomEmojisResponse
(پیام) -
ListMembershipsRequest
(پیام) -
ListMembershipsResponse
(پیام) -
ListMessagesRequest
(پیام) -
ListMessagesResponse
(پیام) -
ListReactionsRequest
(پیام) -
ListReactionsResponse
(پیام) -
ListSpaceEventsRequest
(پیام) -
ListSpaceEventsResponse
(پیام) -
ListSpacesRequest
(پیام) -
ListSpacesResponse
(پیام) -
MatchedUrl
(پیام) -
MeetSpaceLinkData
(پیام) -
MeetSpaceLinkData.HuddleStatus
(enum) -
MeetSpaceLinkData.Type
(enum) -
Membership
(پیام) -
Membership.MembershipRole
(تعدادی) -
Membership.MembershipState
(تعدادی) -
MembershipBatchCreatedEventData
(پیام) -
MembershipBatchDeletedEventData
(پیام) -
MembershipBatchUpdatedEventData
(پیام) -
MembershipCreatedEventData
(پیام) -
MembershipDeletedEventData
(پیام) -
MembershipUpdatedEventData
(پیام) -
Message
(پیام) -
MessageBatchCreatedEventData
(پیام) -
MessageBatchDeletedEventData
(پیام) -
MessageBatchUpdatedEventData
(پیام) -
MessageCreatedEventData
(پیام) -
MessageDeletedEventData
(پیام) -
MessageUpdatedEventData
(پیام) -
QuotedMessageMetadata
(پیام) -
Reaction
(پیام) -
ReactionBatchCreatedEventData
(پیام) -
ReactionBatchDeletedEventData
(پیام) -
ReactionCreatedEventData
(پیام) -
ReactionDeletedEventData
(پیام) -
RichLinkMetadata
(پیام) -
RichLinkMetadata.RichLinkType
(enum) -
SearchSpacesRequest
(پیام) -
SearchSpacesResponse
(پیام) -
SetUpSpaceRequest
(پیام) -
SlashCommand
(پیام) -
SlashCommandMetadata
(پیام) -
SlashCommandMetadata.Type
(enum) -
Space
(پیام) -
Space.AccessSettings
(پیام) -
Space.AccessSettings.AccessState
(enum) -
Space.MembershipCount
(پیام) -
Space.PermissionSetting
(پیام) -
Space.PermissionSettings
(پیام) -
Space.PredefinedPermissionSettings
(enum) -
Space.SpaceDetails
(پیام) -
Space.SpaceThreadingState
(enum) -
Space.SpaceType
(enum) -
Space.Type
(enum) -
SpaceBatchUpdatedEventData
(پیام) -
SpaceEvent
(پیام) -
SpaceNotificationSetting
(پیام) -
SpaceNotificationSetting.MuteSetting
(enum) -
SpaceNotificationSetting.NotificationSetting
(enum) -
SpaceReadState
(پیام) -
SpaceUpdatedEventData
(پیام) -
Thread
(پیام) -
ThreadReadState
(پیام) -
UpdateMembershipRequest
(پیام) -
UpdateMessageRequest
(پیام) -
UpdateSpaceNotificationSettingRequest
(پیام) -
UpdateSpaceReadStateRequest
(پیام) -
UpdateSpaceRequest
(پیام) -
User
(پیام) -
User.Type
(enum) -
UserMentionMetadata
(پیام) -
UserMentionMetadata.Type
(enum) -
WidgetMarkup
(پیام) -
WidgetMarkup.Button
(پیام) -
WidgetMarkup.FormAction
(پیام) -
WidgetMarkup.FormAction.ActionParameter
(پیام) -
WidgetMarkup.Icon
(enum) -
WidgetMarkup.Image
(پیام) -
WidgetMarkup.ImageButton
(پیام) -
WidgetMarkup.KeyValue
(پیام) -
WidgetMarkup.OnClick
(پیام) -
WidgetMarkup.OpenLink
(پیام) -
WidgetMarkup.TextButton
(پیام) -
WidgetMarkup.TextParagraph
(پیام)
سرویس چت
به برنامهنویسان امکان میدهد تا برنامهها و ادغامهای Chat را در Google Chat Platform بسازند.
CompleteImportSpace |
---|
فرآیند واردات فضای مشخص شده را تکمیل می کند و آن را برای کاربران قابل مشاهده می کند. به احراز هویت کاربر و تفویض اختیار در سطح دامنه با محدوده مجوز نیاز دارد:
برای اطلاعات بیشتر، به مجوز برنامههای گپ Google برای وارد کردن دادهها مراجعه کنید.
|
CreateCustomEmoji |
---|
یک ایموجی سفارشی ایجاد می کند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . نیاز به احراز هویت کاربر با محدوده مجوز :
|
ایجاد عضویت |
---|
یک عضویت برای برنامه چت تماس گیرنده، یک کاربر یا یک گروه Google ایجاد می کند. ایجاد عضویت برای سایر برنامههای گپ پشتیبانی نمیشود. هنگام ایجاد عضویت، اگر خطمشی پذیرش خودکار عضو مشخصشده خاموش باشد، دعوت میشود و باید قبل از پیوستن، دعوت فضایی را بپذیرد. در غیر این صورت، ایجاد عضویت، عضو را مستقیماً به فضای مشخص شده اضافه می کند. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه برای موارد استفاده زیر پشتیبانی نمیشود:
برای مثال استفاده، نگاه کنید به:
|
ایجاد پیام |
---|
پیامی را در فضای چت Google ایجاد می کند. برای مثال، به ارسال پیام مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
Chat بسته به نوع احراز هویتی که در درخواست خود استفاده می کنید، فرستنده پیام را متفاوت نسبت می دهد. تصویر زیر نشان می دهد که چگونه Chat هنگام استفاده از احراز هویت برنامه، پیامی را نسبت می دهد. Chat برنامه چت را به عنوان فرستنده پیام نمایش می دهد. محتوای پیام میتواند شامل متن ( تصویر زیر نشان میدهد که چگونه Chat هنگام استفاده از احراز هویت کاربر، یک پیام را مشخص میکند. Chat کاربر را به عنوان فرستنده پیام نمایش می دهد و برنامه Chat را با نمایش نام پیام به آن نسبت می دهد. محتوای پیام فقط می تواند حاوی متن ( حداکثر اندازه پیام، با احتساب محتوای پیام، 32000 بایت است. برای درخواست های وب هوک ، پاسخ حاوی پیام کامل نیست. پاسخ فقط فیلدهای
|
CreateReaction |
---|
یک واکنش ایجاد می کند و آن را به یک پیام اضافه می کند. برای مثال، افزودن واکنش به پیام را ببینید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
CreateSpace |
---|
فضا ایجاد می کند. می توان از آن برای ایجاد یک فضای نامگذاری شده یا یک چت گروهی در از انواع احراز هویت زیر پشتیبانی می کند:
هنگام احراز هویت به عنوان یک برنامه، قسمت هنگام احراز هویت به عنوان یک برنامه، برنامه Chat به عنوان عضوی از فضا اضافه می شود. با این حال، برخلاف احراز هویت انسانی، برنامه Chat به عنوان مدیر فضا اضافه نشده است. بهطور پیشفرض، برنامه Chat میتواند توسط همه اعضای فضا از فضا حذف شود. برای اینکه فقط مدیران فضا بتوانند برنامه را از یک فضا حذف کنند، عضویت در فضا هنگام ایجاد بستگی به این دارد که آیا فضا در
اگر هنگام ایجاد یک فاصله، پیام خطای
|
حذف سفارشی ایموجی |
---|
یک ایموجی سفارشی را حذف می کند. به طور پیش فرض، کاربران فقط می توانند شکلک های سفارشی خود را حذف کنند. مدیران شکلکهایی که توسط سرپرست تعیین شدهاند میتوانند هر شکلک سفارشی را در سازمان حذف کنند. به آموزش درباره شکلک های سفارشی در گپ Google مراجعه کنید. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . نیاز به احراز هویت کاربر با محدوده مجوز :
|
حذف عضویت |
---|
عضویت را حذف می کند. برای مثال، به حذف یک کاربر یا برنامه چت Google از یک فضا مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه برای موارد استفاده زیر پشتیبانی نمیشود:
برای حذف عضویت برای مدیران فضا، درخواست کننده باید یک مدیر فضا باشد. اگر از احراز هویت برنامه استفاده می کنید، برنامه Chat باید فضاساز باشد.
|
DeleteMessage |
---|
یک پیام را حذف می کند. برای مثال، حذف یک پیام را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
هنگام استفاده از احراز هویت برنامه، درخواستها فقط میتوانند پیامهای ایجاد شده توسط برنامه چت را حذف کنند.
|
DeleteReaction |
---|
واکنش به یک پیام را حذف می کند. برای مثال، حذف واکنش را ببینید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
DeleteSpace |
---|
فضای نامگذاری شده را حذف می کند. همیشه یک حذف آبشاری انجام می دهد، به این معنی که منابع فرزند فضا - مانند پیام های ارسال شده در فضا و عضویت در فضا - نیز حذف می شوند. برای مثال، حذف یک فاصله را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
|
FindDirectMessage |
---|
پیام مستقیم موجود با کاربر مشخص شده را برمی گرداند. اگر فضای پیام مستقیم پیدا نشد، خطای با احراز هویت برنامه ، فضای پیام مستقیم بین کاربر مشخص شده و برنامه چت در حال تماس را برمیگرداند. با احراز هویت کاربر ، فضای پیام مستقیم بین کاربر مشخص شده و کاربر احراز هویت شده را برمی گرداند. از انواع احراز هویت زیر پشتیبانی می کند:
|
GetAttachment |
---|
فراداده یک پیوست پیام را دریافت می کند. دادههای پیوست با استفاده از API رسانه واکشی میشوند. برای مثال، به دریافت فراداده درباره پیوست پیام مراجعه کنید. به تأیید اعتبار برنامه با محدوده مجوز نیاز دارد:
|
GetCustomEmoji |
---|
جزئیات یک ایموجی سفارشی را برمی گرداند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
GetMembership |
---|
جزئیات عضویت را برمیگرداند. برای مثال، به دریافت جزئیات درباره عضویت کاربر یا برنامه چت Google مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
|
GetMessage |
---|
جزئیات یک پیام را برمی گرداند. برای مثال، به دریافت جزئیات درباره یک پیام مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
توجه: ممکن است پیامی از یک عضو یا فضای مسدود شده بازگرداند.
|
GetSpace |
---|
جزئیات یک فضا را برمیگرداند. برای مثال، به دریافت جزئیات در مورد یک فضا مراجعه کنید. از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه دارای محدودیت های زیر است:
|
GetSpaceEvent |
---|
رویدادی را از فضای گپ Google برمیگرداند. بارگذاری رویداد حاوی جدیدترین نسخه منبعی است که تغییر کرده است. به عنوان مثال، اگر رویدادی را درباره یک پیام جدید درخواست کنید اما پیام بعداً بهروزرسانی شد، سرور منبع توجه: فیلد انواع احراز هویت زیر را با محدوده مجوز مناسب برای خواندن داده های درخواستی پشتیبانی می کند:
برای دریافت یک رویداد، تماس گیرنده احراز هویت باید عضوی از فضا باشد. برای مثال، به دریافت جزئیات یک رویداد از فضای گپ Google مراجعه کنید.
|
GetSpaceNotificationSetting |
---|
تنظیمات اعلان فضایی را دریافت می کند. برای مثال، تنظیمات اعلان فضای تماس گیرنده را دریافت کنید . نیاز به احراز هویت کاربر با محدوده مجوز :
|
GetSpaceReadState |
---|
جزئیات مربوط به وضعیت خوانده شده کاربر را در یک فضا باز می گرداند که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود. برای مثال، به دریافت جزئیات در مورد وضعیت خواندن فضای کاربر مراجعه کنید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
GetThreadReadState |
---|
جزئیات مربوط به وضعیت خواندن کاربر در یک رشته را که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود، برمی گرداند. برای مثال، به دریافت جزئیات در مورد وضعیت خواندن رشته کاربر مراجعه کنید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
ListCustomEmojis |
---|
ایموجی های سفارشی قابل مشاهده برای کاربر احراز هویت شده را فهرست می کند. شکلکهای سفارشی فقط برای حسابهای Google Workspace در دسترس هستند و سرپرست باید شکلکهای سفارشی را برای سازمان روشن کند. برای اطلاعات بیشتر، در مورد اموجیهای سفارشی در گپ Google بدانید و مجوزهای شکلک سفارشی را مدیریت کنید . به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
لیست اعضا |
---|
عضویت ها را در یک فضا فهرست می کند. برای مثال، فهرست کاربران و برنامههای چت Google را در یک فضا ببینید. فهرست کردن عضویتها با احراز هویت برنامه، عضویتها را در فضاهایی فهرست میکند که برنامه Chat به آنها دسترسی دارد، اما عضویتهای برنامه Chat، از جمله عضویت خود را استثنا نمیکند. فهرست کردن عضویتها با احراز هویت کاربر، عضویتها را در فضاهایی فهرست میکند که کاربر احراز هویت شده به آنها دسترسی دارد. از انواع احراز هویت زیر پشتیبانی می کند:
|
ListMessages |
---|
پیامها را در فضایی فهرست میکند که تماسگیرنده عضو آن است، از جمله پیامهای اعضای مسدود شده و فضاها. پیامهای سیستم، مانند پیامهایی که اعضای جدید فضایی را اعلام میکنند، شامل نمیشوند. اگر پیامهایی را از یک فضای بدون پیام فهرست کنید، پاسخ یک شی خالی است. هنگام استفاده از رابط REST/HTTP، پاسخ حاوی یک شی JSON خالی، از انواع احراز هویت زیر پشتیبانی می کند:
|
ListReactions |
---|
واکنش ها به یک پیام را فهرست می کند. برای مثال، فهرست واکنشها را برای یک پیام ببینید. به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
ListSpaceEvents |
---|
رویدادها را از فضای چت Google فهرست می کند. برای هر رویداد، محموله حاوی جدیدترین نسخه منبع چت است. برای مثال، اگر رویدادهای مربوط به اعضای جدید فضایی را فهرست کنید، سرور منابع انواع احراز هویت زیر را با محدوده مجوز مناسب برای خواندن داده های درخواستی پشتیبانی می کند:
برای فهرست کردن رویدادها، تماس گیرنده احراز هویت باید عضوی از فضا باشد. برای مثال، فهرست رویدادها را از فضای گپ Google ببینید.
|
ListSpaces |
---|
فضاهایی را که تماس گیرنده عضوی از آنها است را فهرست می کند. تا زمانی که اولین پیام ارسال نشود، چتهای گروهی و پیامهای پیامکی فهرست نمیشوند. برای مثال، لیست فاصله ها را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
برای فهرست کردن همه فضاهای نامگذاری شده توسط سازمان Google Workspace، به جای آن از روش
|
فضاهای جستجو |
---|
فهرستی از فضاهای یک سازمان Google Workspace را بر اساس جستجوی سرپرست برمیگرداند. در درخواست، به احراز هویت کاربر با امتیازات سرپرست و یکی از حوزه های مجوز زیر نیاز دارد:
|
SetUpSpace |
---|
فضایی ایجاد می کند و کاربران مشخصی را به آن اضافه می کند. کاربر تماس گیرنده به طور خودکار به فضا اضافه می شود و نباید به عنوان عضویت در درخواست مشخص شود. برای مثال، به تنظیم فضایی با اعضای اولیه مراجعه کنید. برای تعیین اعضای انسانی برای افزودن، عضویت هایی را با برای تعیین گروههای Google برای افزودن، عضویتها را با برای یک فضای نامگذاری شده یا چت گروهی، اگر تماس گیرنده مسدود شود، یا توسط برخی از اعضا مسدود شده باشد، یا اجازه اضافه کردن برخی از اعضا را نداشته باشد، آن اعضا به فضای ایجاد شده اضافه نمی شوند. برای ایجاد یک پیام مستقیم (DM) بین کاربر تماس گیرنده و کاربر انسانی دیگر، دقیقاً یک عضویت را برای نشان دادن کاربر انسانی مشخص کنید. اگر یکی از کاربران دیگری را مسدود کند، درخواست با شکست مواجه می شود و DM ایجاد نمی شود. برای ایجاد DM بین کاربر تماس گیرنده و برنامه تماس گیرنده، اگر یک DM از قبل بین دو کاربر وجود داشته باشد، حتی زمانی که یک کاربر در زمان درخواست، دیگری را مسدود کند، DM موجود برگردانده می شود. فضاهای دارای پاسخ رشته ای پشتیبانی نمی شوند. اگر هنگام تنظیم یک فاصله، پیام خطای به احراز هویت کاربر با یکی از حوزه های مجوز زیر نیاز دارد:
|
به روز رسانی عضویت |
---|
عضویت را به روز می کند. برای مثال، بهروزرسانی عضویت کاربر در یک فضا را ببینید. از انواع احراز هویت زیر پشتیبانی می کند:
|
UpdateMessage |
---|
یک پیام را به روز می کند. بین روش های از انواع احراز هویت زیر پشتیبانی می کند:
هنگام استفاده از احراز هویت برنامه، درخواستها فقط میتوانند پیامهای ایجاد شده توسط برنامه چت را بهروزرسانی کنند.
|
UpdateSpace |
---|
یک فضا را به روز می کند. برای مثال، بهروزرسانی یک فاصله را ببینید. اگر فیلد از انواع احراز هویت زیر پشتیبانی می کند:
احراز هویت برنامه دارای محدودیت های زیر است:
|
UpdateSpaceNotificationSetting |
---|
تنظیمات اعلان فضایی را به روز می کند. برای مثال، بهروزرسانی تنظیمات اعلان فضای تماسگیرنده را ببینید. نیاز به احراز هویت کاربر با محدوده مجوز :
|
UpdateSpaceReadState |
---|
وضعیت خواندن کاربر را در یک فضا به روز می کند، که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود. برای مثال، بهروزرسانی وضعیت خواندن فضای کاربر را ببینید. نیاز به احراز هویت کاربر با محدوده مجوز :
|
ابزارک لوازم جانبی
یک یا چند ویجت تعاملی که در پایین یک پیام ظاهر می شود. برای جزئیات، به افزودن ویجتهای تعاملی در پایین پیام رجوع کنید.
فیلدها | |
---|---|
action میدانی اتحادیه نوع عمل. action فقط می تواند یکی از موارد زیر باشد: | |
button_list | لیستی از دکمه ها |
ActionResponse
پارامترهایی که یک برنامه چت می تواند برای پیکربندی نحوه ارسال پاسخ خود استفاده کند.
فیلدها | |
---|---|
type | فقط ورودی نوع پاسخ برنامه چت. |
url | فقط ورودی URL برای احراز هویت یا پیکربندی کاربران. (فقط برای انواع پاسخ |
dialog_action | فقط ورودی پاسخی به یک رویداد تعاملی مربوط به یک گفتگو . باید با |
updated_widget | فقط ورودی پاسخ ویجت به روز شده. |
نوع پاسخ
نوع پاسخ برنامه چت.
Enums | |
---|---|
TYPE_UNSPECIFIED | نوع پیشفرض که بهعنوان NEW_MESSAGE استفاده میشود. |
NEW_MESSAGE | به عنوان یک پیام جدید در تاپیک ارسال کنید. |
UPDATE_MESSAGE | پیام برنامه چت را به روز کنید. این فقط در رویداد CARD_CLICKED که نوع فرستنده پیام BOT است مجاز است. |
UPDATE_USER_MESSAGE_CARDS | کارت ها را در پیام کاربر به روز کنید. این فقط به عنوان پاسخی به یک رویداد MESSAGE با نشانی اینترنتی منطبق، یا یک رویداد CARD_CLICKED که نوع فرستنده پیام HUMAN است مجاز است. متن نادیده گرفته می شود. |
REQUEST_CONFIG | به طور خصوصی از کاربر برای احراز هویت یا پیکربندی اضافی بخواهید. |
DIALOG | دیالوگی ارائه می دهد. |
UPDATE_WIDGET | پرس و جو گزینه های تکمیل خودکار متن ویجت. |
انتخاب آیتم ها
فهرست نتایج تکمیل خودکار ویجت.
فیلدها | |
---|---|
items[] | آرایه ای از اشیاء SelectionItem. |
ویجت به روز شده
برای ویجتهای selectionInput
، پیشنهادات تکمیل خودکار را برای یک منوی چند انتخابی برمیگرداند.
فیلدها | |
---|---|
widget | شناسه ویجت به روز شده. شناسه باید با شناسه ویجتی که درخواست بهروزرسانی را راهاندازی کرده، مطابقت داشته باشد. |
فیلد اتحادیه updated_widget . ویجت در پاسخ به اقدام کاربر به روز شد. updated_widget فقط می تواند یکی از موارد زیر باشد: | |
suggestions | فهرست نتایج تکمیل خودکار ویجت |
ActionStatus
وضعیت درخواست برای فراخوانی یا ارسال گفتگو را نشان می دهد.
فیلدها | |
---|---|
status_code | کد وضعیت. |
user_facing_message | پیامی برای ارسال به کاربران در مورد وضعیت درخواست آنها. اگر تنظیم نشود، یک پیام عمومی بر اساس |
حاشیه نویسی
فقط خروجی حاشیهنویسیها را میتوان با متن ساده پیام یا تراشههایی مرتبط کرد که به منابع Google Workspace مانند Google Docs یا Sheets با start_index
و length
0 پیوند دارند. برای افزودن قالببندی اولیه به پیام نوشتاری، به قالببندی پیامهای متنی مراجعه کنید.
مثال متن پیام ساده:
Hello @FooBot how are you!"
ابرداده حاشیه نویسی مربوطه:
"annotations":[{
"type":"USER_MENTION",
"startIndex":6,
"length":7,
"userMention": {
"user": {
"name":"users/{user}",
"displayName":"FooBot",
"avatarUrl":"https://goo.gl/aeDtrS",
"type":"BOT"
},
"type":"MENTION"
}
}]
فیلدها | |
---|---|
type | نوع این حاشیه نویسی. |
length | طول بستر در بدنه پیام متن ساده این حاشیه نویسی با آن مطابقت دارد. در صورت وجود ، طول 0 را نشان می دهد. |
start_index | شاخص شروع (مبتنی بر 0 ، فراگیر) در بدن پیام متن ساده این حاشیه نویسی با آن مطابقت دارد. |
Union Field metadata . ابرداده اضافی در مورد حاشیه نویسی. metadata فقط می تواند یکی از موارد زیر باشد: | |
user_mention | ابرداده از کاربر ذکر شده است. |
slash_command | ابرداده برای یک فرمان برش. |
rich_link_metadata | ابرداده برای پیوند غنی. |
custom_emoji_metadata | ابرداده برای یک ایموجی سفارشی. |
حاشیه نویسی
نوع حاشیه نویسی.
Enums | |
---|---|
ANNOTATION_TYPE_UNSPECIFIED | مقدار پیش فرض برای enum. استفاده نکنید. |
USER_MENTION | یک کاربر ذکر شده است. |
SLASH_COMMAND | یک دستور slash فراخوانی شده است. |
RICH_LINK | حاشیه نویسی پیوند غنی. |
CUSTOM_EMOJI | حاشیه نویسی ایموجی سفارشی. |
aspcommandmetadata
ابرداده در مورد دستور برنامه چت .
فیلدها | |
---|---|
app_command_id | شناسه برای دستور مشخص شده در پیکربندی API چت. |
app_command_type | نوع دستور برنامه چت. |
عکسبرداری
نوع دستور برنامه چت. برای جزئیات بیشتر ، به انواع دستورات برنامه چت مراجعه کنید.
Enums | |
---|---|
APP_COMMAND_TYPE_UNSPECIFIED | مقدار پیش فرض نامشخص |
SLASH_COMMAND | یک فرمان بریده کاربر دستور را در یک پیام گپ ارسال می کند. |
QUICK_COMMAND | یک دستور سریع کاربر دستور را از منوی چت در منطقه پاسخ پیام انتخاب می کند. |
ضمیمه
تصویری GIF که توسط یک URL مشخص شده است.
فیلدها | |
---|---|
uri | فقط خروجی URL که میزبان تصویر GIF است. |
پیوست
پیوست در گپ گوگل.
فیلدها | |
---|---|
name | اختیاری. نام منبع ضمیمه ، در |
content_name | فقط خروجی نام اصلی پرونده برای محتوا ، نه مسیر کامل. |
content_type | فقط خروجی نوع محتوا (نوع MIME) پرونده. |
thumbnail_uri | فقط خروجی URL تصویر کوچک که باید برای پیش نمایش دلبستگی به یک کاربر انسانی استفاده شود. برنامه های گپ نباید از این URL برای بارگیری محتوای پیوست استفاده کنند. |
download_uri | فقط خروجی URL بارگیری که باید از آن استفاده شود تا کاربر انسانی بتواند پیوست را بارگیری کند. برنامه های گپ نباید از این URL برای بارگیری محتوای پیوست استفاده کنند. |
source | فقط خروجی منبع پیوست. |
Union Field data_ref . مرجع داده به پیوست. data_ref تنها می تواند یکی از موارد زیر باشد: | |
attachment_data_ref | اختیاری. مرجع داده های پیوست. این قسمت برای ایجاد یا به روزرسانی پیام ها با پیوست ها یا با API رسانه برای بارگیری داده های پیوست استفاده می شود. |
drive_data_ref | فقط خروجی مرجع پیوست Google Drive. این قسمت با Google Drive API استفاده می شود. |
منبع
منبع پیوست.
Enums | |
---|---|
SOURCE_UNSPECIFIED | رزرو شده است. |
DRIVE_FILE | پرونده یک پرونده Google Drive است. |
UPLOADED_CONTENT | پرونده برای گپ بارگذاری می شود. |
AttachmentDataref
مرجع داده های پیوست.
فیلدها | |
---|---|
resource_name | اختیاری. نام منبع داده های پیوست. این قسمت با استفاده از API Media برای بارگیری داده های پیوست استفاده می شود. |
attachment_upload_token | اختیاری. نشانه مات حاوی مرجع به پیوست آپلود شده. توسط مشتریان به عنوان یک رشته مات رفتار می شود و برای ایجاد یا به روزرسانی پیام های گپ با پیوست ها استفاده می شود. |
calendareventlinkdata
داده ها برای پیوندهای رویداد تقویم.
فیلدها | |
---|---|
calendar_id | شناسه تقویم تقویم مرتبط. |
event_id | شناسه رویداد رویداد تقویم مرتبط. |
کارتن
کارت در پیام گپ Google.
فقط برنامه های چت می توانند کارت ایجاد کنند. اگر برنامه چت شما به عنوان کاربر تأیید می شود ، پیام نمی تواند حاوی کارت باشد.
کارت های طراحی و پیش نمایش با سازنده کارت.
سازنده کارت را باز کنیدفیلدها | |
---|---|
card_id | اگر پیام حاوی چندین کارت باشد ، لازم است. یک شناسه منحصر به فرد برای کارت در یک پیام. |
card | یک کارت حداکثر اندازه 32 کیلوبایت است. |
chatspacelinkdata
داده ها برای پیوندهای فضایی چت.
فیلدها | |
---|---|
space | فضای منبع فضایی چت مرتبط. قالب: |
thread | موضوع منبع فضایی چت مرتبط. قالب: |
message | پیام منبع فضایی چت مرتبط. قالب: |
کامل
پیام را برای تکمیل فرایند واردات برای یک فضا درخواست کنید.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع فضای حالت واردات. قالب: |
پاسخ کامل
پیام پاسخ برای تکمیل فرآیند واردات برای یک فضا.
فیلدها | |
---|---|
space | فضای حالت واردات. |
متناسب
این نوع فیلدهایی ندارد.
نشانه گذاری برای توسعه دهندگان برای مشخص کردن محتوای یک افزونه متنی.
کارت
کارت یک عنصر UI است که می تواند حاوی ابزارک های UI مانند متن و تصاویر باشد.
فیلدها | |
---|---|
header | هدر کارت. یک هدر معمولاً شامل یک عنوان و یک تصویر است. |
sections[] | بخش ها توسط یک تقسیم کننده خط از هم جدا می شوند. |
card_actions[] | اقدامات این کارت |
name | نام کارت |
کاردستی
اقدام کارت عمل مرتبط با کارت است. برای کارت فاکتور ، یک اقدام معمولی خواهد بود: فاکتور ، فاکتور ایمیل را حذف کنید یا فاکتور را در مرورگر باز کنید.
توسط برنامه های گپ Google پشتیبانی نمی شود.
فیلدها | |
---|---|
action_label | برچسب مورد استفاده در مورد منوی اکشن نمایش داده می شود. |
on_click | عمل OnClick برای این مورد اقدام. |
سربرگ کارت
فیلدها | |
---|---|
title | عنوان باید مشخص شود. این هدر دارای ارتفاع ثابت است: اگر هم عنوان و هم زیرنویس مشخص شده باشد ، هر یک یک خط را به خود اختصاص می دهد. اگر فقط عنوان مشخص شده باشد ، هر دو خط را به خود اختصاص می دهد. |
subtitle | زیرنویس هدر کارت. |
image_style | نوع تصویر (به عنوان مثال ، مرز مربع یا مرز دایره ای). |
image_url | URL تصویر در هدر کارت. |
تصویر
Enums | |
---|---|
IMAGE_STYLE_UNSPECIFIED | |
IMAGE | مرز مربع |
AVATAR | مرز دایره ای. |
بخش
یک بخش شامل مجموعه ای از ابزارک ها است که به ترتیب مشخص شده (به صورت عمودی) ارائه می شوند. در تمام سیستم عامل ها ، کارت ها دارای عرض ثابت باریک هستند ، بنابراین در حال حاضر نیازی به خصوصیات چیدمان (به عنوان مثال ، شناور) نیست.
فیلدها | |
---|---|
header | هدر بخش. متن فرمت شده پشتیبانی می شود. برای کسب اطلاعات بیشتر در مورد قالب بندی متن ، به قالب بندی متن در برنامه های گپ Google و قالب بندی متن در افزودنی های فضای کاری Google مراجعه کنید. |
widgets[] | یک بخش باید حداقل یک ویجت داشته باشد. |
CreateCustomemoJireQuest
درخواستی برای ایجاد ایموجی های سفارشی.
فیلدها | |
---|---|
custom_emoji | مورد نیاز. ایموجی های سفارشی برای ایجاد. |
CreatemembershipRequest
برای ایجاد عضویت پیام را درخواست کنید.
فیلدها | |
---|---|
parent | مورد نیاز. نام منابع فضایی که برای ایجاد عضویت برای آن ایجاد می شود. قالب: فضاها/{فضا} |
membership | مورد نیاز. رابطه عضویت برای ایجاد. قسمت هنگامی که یک برنامه چت یک رابطه عضویت برای یک کاربر انسانی ایجاد می کند ، باید از اسکوپ های مجوز خاصی استفاده کند و مقادیر خاصی را برای زمینه های خاص تعیین کند:
دعوت از کاربران خارجی به سازمان فضای کاری که صاحب این فضا است ، نیاز به احراز هویت کاربر دارد. هنگامی که یک برنامه چت یک رابطه عضویت را برای خود ایجاد می کند ، باید به عنوان کاربر تأیید شود و از دامنه |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به دامنه ایجاد عضویت در برنامه یا ایجاد عضویت برای کاربران خارج از سازمان فضای کاری Google Administrator با استفاده از Admin Access پشتیبانی نمی شود. |
createmessagerequest
پیام ایجاد می کند.
فیلدها | |
---|---|
parent | مورد نیاز. نام منبع فضایی که در آن می توانید پیام ایجاد کنید. قالب: |
message | مورد نیاز. بدن پیام |
thread_key | اختیاری. deprecated: به جای آن از |
request_id | اختیاری. شناسه درخواست منحصر به فرد برای این پیام. مشخص کردن یک شناسه درخواست موجود ، پیام ایجاد شده با آن شناسه را به جای ایجاد پیام جدید برمی گرداند. |
message_reply_option | اختیاری. مشخص می کند که آیا یک پیام یک موضوع را شروع می کند یا به یکی پاسخ می دهد. فقط در فضاهای نامگذاری شده پشتیبانی می شود. هنگام پاسخ به تعامل کاربر ، این قسمت نادیده گرفته می شود. برای تعامل در یک موضوع ، پاسخ در همان موضوع ایجاد می شود. در غیر این صورت ، پاسخ به عنوان یک موضوع جدید ایجاد می شود. |
message_id | اختیاری. یک شناسه سفارشی برای یک پیام. اجازه می دهیم برنامه های گپ بدون نیاز به ذخیره شناسه تعیین شده توسط سیستم در نام منبع پیام (که در قسمت مقدار این قسمت باید شرایط زیر را برآورده کند:
برای جزئیات بیشتر ، به یک پیام مراجعه کنید. |
پیام رسانی
نحوه پاسخ به پیام را مشخص می کند. ممکن است کشورهای بیشتری در آینده اضافه شوند.
Enums | |
---|---|
MESSAGE_REPLY_OPTION_UNSPECIFIED | پیش فرض یک موضوع جدید را شروع می کند. با استفاده از این گزینه ، هر thread ID یا که در آن گنجانده شده است نادیده می گیرد. |
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD | پیام را به عنوان پاسخی به موضوع مشخص شده توسط thread ID یا ایجاد می کند. در صورت عدم موفقیت ، پیام به جای آن یک موضوع جدید را شروع می کند. |
REPLY_MESSAGE_OR_FAIL | پیام را به عنوان پاسخی به موضوع مشخص شده توسط thread ID یا ایجاد می کند. اگر از thread_key جدید استفاده شود ، یک موضوع جدید ایجاد می شود. اگر ایجاد پیام از بین برود ، به جای آن یک خطای NOT_FOUND بازگردانده می شود. |
رفیق
واکنشی به یک پیام ایجاد می کند.
فیلدها | |
---|---|
parent | مورد نیاز. پیامی که در آن واکنش ایجاد شده است. قالب: |
reaction | مورد نیاز. واکنش برای ایجاد. |
CreateSpacereQuest
درخواستی برای ایجاد یک فضای نامگذاری شده بدون عضو.
فیلدها | |
---|---|
space | مورد نیاز. زمینه های اگر پیام خطا را |
request_id | اختیاری. یک شناسه منحصر به فرد برای این درخواست. یک UUID تصادفی توصیه می شود. مشخص کردن شناسه درخواست موجود ، فضای ایجاد شده با آن شناسه را به جای ایجاد یک فضای جدید باز می گرداند. مشخص کردن شناسه درخواست موجود از همان برنامه چت با کاربر معتبر متفاوت خطایی را برمی گرداند. |
سفارشی
نمایانگر یک ایموجی سفارشی است .
فیلدها | |
---|---|
name | شناسه نام منبع ایموجی های سفارشی ، که توسط سرور اختصاص داده شده است. قالب: |
uid | فقط خروجی کلید منحصر به فرد برای منبع ایموجی سفارشی. |
emoji_name | اختیاری. تغییرناپذیر. نام توسط کاربر برای ایموجی های سفارشی ، که در سازمان بی نظیر است. هنگام ایجاد ایموجی های سفارشی ، مورد نیاز است ، فقط در غیر این صورت خروجی. نامهای ایموجی باید با استفاده از کلون ها شروع و پایان یابد ، باید حروف کوچک باشد و فقط می تواند حاوی شخصیت های الفبایی ، هیپنوها و زیرزمین ها باشد. برای جدا کردن کلمات باید از Hyphens و زیرکرها استفاده شود و به طور متوالی قابل استفاده نیست. مثال :: |
temporary_image_uri | فقط خروجی یک URL موقت تصویر برای ایموجی های سفارشی ، حداقل برای 10 دقیقه معتبر است. توجه داشته باشید که هنگام ایجاد ایموجی های سفارشی ، این در پاسخ جمع نمی شود. |
payload | اختیاری. فقط ورودی داده های بارگذاری هنگام ایجاد ایموجی های سفارشی مورد نیاز است. |
بار سفارشی
داده های بار برای ایموجی های سفارشی.
فیلدها | |
---|---|
file_content | مورد نیاز. فقط ورودی تصویری که برای ایموجی های سفارشی استفاده می شود. بار بار باید زیر 256 کیلوبایت باشد و ابعاد تصویر باید مربع و بین 64 تا 500 پیکسل باشد. محدودیت ها در معرض تغییر هستند. |
filename | مورد نیاز. فقط ورودی نام پرونده تصویر پسوند پرونده پشتیبانی شده: |
سفارشی
ابرداده حاشیه نویسی برای ایموجی های سفارشی.
فیلدها | |
---|---|
custom_emoji | ایموجی های سفارشی. |
leeletecustomemojirequest
درخواست حذف ایموجی های سفارشی.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع ایموجی های سفارشی برای حذف. قالب: می توانید از نام ایموجی به عنوان نام مستعار برای |
DeletemembershipRequest
درخواست حذف عضویت در یک فضا.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع عضویت برای حذف. برنامه های گپ می توانند عضویت کاربران انسانی یا خود را حذف کنند. برنامه های چت نمی توانند عضویت برنامه های دیگر را حذف کنند. هنگام حذف عضویت انسانی ، به دامنه هنگام حذف عضویت در برنامه ، قالب: |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به دامنه حذف عضویت در برنامه در یک فضا با استفاده از دسترسی مدیر پشتیبانی نمی شود. |
leletemessagerequest
درخواست حذف پیام.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع پیام. قالب: اگر یک شناسه سفارشی را برای پیام خود تنظیم کرده اید ، می توانید از قسمت |
force | اختیاری. هنگامی که فقط در هنگام تأیید اعتبار به عنوان کاربر اعمال می شود. در هنگام تأیید اعتبار به عنوان برنامه چت هیچ تاثیری ندارد. |
deletereactionRequest
واکنشی به یک پیام حذف می کند.
فیلدها | |
---|---|
name | مورد نیاز. نام واکنش برای حذف. قالب: |
leletespacerequest
درخواست حذف یک فضا.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع فضا برای حذف. قالب: |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به دامنه |
حذف metadata
اطلاعات مربوط به یک پیام حذف شده. هنگام تنظیم delete_time
یک پیام حذف می شود.
فیلدها | |
---|---|
deletion_type | نشان می دهد چه کسی پیام را حذف کرده است. |
حذف
چه کسی پیام را حذف کرد و چگونه حذف شد. مقادیر بیشتری ممکن است در آینده اضافه شود. برای جزئیات بیشتر در مورد حذف پیام ها ، ویرایش یا حذف پیام در Google Chat را مشاهده کنید.
Enums | |
---|---|
DELETION_TYPE_UNSPECIFIED | این مقدار بلااستفاده است. |
CREATOR | کاربر پیام خود را حذف کرد. |
SPACE_OWNER | یک مدیر فضا پیام را حذف کرد. |
ADMIN | یک مدیر فضای کاری Google پیام را حذف کرد. سرپرستان می توانند هر پیام را در فضا حذف کنند ، از جمله پیام های ارسال شده توسط هر یک از اعضای فضایی یا برنامه چت. |
APP_MESSAGE_EXPIRY | یک برنامه گپ هنگام انقضا ، پیام خود را حذف کرد. |
CREATOR_VIA_APP | یک برنامه چت پیام را به نمایندگی از خالق (با استفاده از تأیید اعتبار کاربر) حذف کرد. |
SPACE_OWNER_VIA_APP | یک برنامه چت پیام را به نمایندگی از یک مدیر فضا (با استفاده از تأیید اعتبار کاربر) حذف کرد. |
SPACE_MEMBER | یکی از اعضای فضا پیام را حذف کرد. کاربران می توانند پیام های ارسال شده توسط برنامه ها را حذف کنند. |
گفتگو
بسته بندی اطراف بدنه دیالوگ.
فیلدها | |
---|---|
body | فقط ورودی بدنه گفتگو ، که در یک معین ارائه می شود. برنامه های گپ Google از موجودات کارت زیر پشتیبانی نمی کنند: |
DialogAction
حاوی یک گفتگوی و کد وضعیت درخواست است.
فیلدها | |
---|---|
action_status | فقط ورودی وضعیت برای درخواست برای استناد به یا ارسال گفتگو . در صورت لزوم وضعیت و پیام را به کاربران نشان می دهد. به عنوان مثال ، در صورت بروز خطا یا موفقیت. |
action میدانی اتحادیه. عمل برای انجام action فقط می تواند یکی از موارد زیر باشد: | |
dialog | فقط ورودی گفتگو برای درخواست. |
Driendataref
اشاره به داده های پیوست درایو.
فیلدها | |
---|---|
drive_file_id | شناسه پرونده درایو. با API درایو استفاده کنید. |
دیلینکستاتا
داده ها برای پیوندهای Google Drive.
فیلدها | |
---|---|
drive_data_ref | یک Driredataref که به یک پرونده Google Drive اشاره می کند. |
mime_type | نوع MIME منبع Google Drive Linked. |
ایموجی
ایموجی که به عنوان واکنشی به یک پیام استفاده می شود.
فیلدها | |
---|---|
content میدان اتحادیه. مورد نیاز. محتوای ایموجی ها. content می تواند تنها یکی از موارد زیر باشد: | |
unicode | اختیاری. یک ایموجی اساسی که توسط یک رشته یونیکد نشان داده شده است. |
custom_emoji | یک ایموجی سفارشی. |
emojirectionsummary
تعداد افرادی که با یک ایموجی خاص به پیام واکنش نشان دادند.
فیلدها | |
---|---|
emoji | فقط خروجی ایموجی های مرتبط با واکنش. |
reaction_count | فقط خروجی تعداد کل واکنش ها با استفاده از ایموجی های مرتبط. |
FindDirectMessagerequest
درخواستی برای دریافت فضای پیام مستقیم بر اساس منبع کاربر.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع کاربر برای یافتن پیام مستقیم با. قالب: |
GetAttachmentRequest
درخواست دریافت پیوست.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع ضمیمه ، در |
getCustomemoJireQuest
درخواست بازگشت یک ایموجی سفارشی واحد.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع ایموجی های سفارشی. قالب: می توانید از نام ایموجی به عنوان نام مستعار برای |
GetMembershipRequest
درخواست عضویت در یک فضا.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع عضویت برای بازیابی. برای به دست آوردن عضویت خود برنامه با استفاده از تأیید اعتبار کاربر ، می توانید به صورت اختیاری قالب: می توانید از ایمیل کاربر به عنوان نام مستعار برای |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. نیاز به دریافت عضویت در برنامه در یک فضا هنگام استفاده از Admin Access پشتیبانی نمی شود. |
GetMessagerEquest
درخواست دریافت پیام
فیلدها | |
---|---|
name | مورد نیاز. نام منبع پیام. قالب: اگر یک شناسه سفارشی را برای پیام خود تنظیم کرده اید ، می توانید از قسمت |
getSpaceEventRequest
برای دریافت یک رویداد فضایی پیام را درخواست کنید.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع رویداد فضایی. قالب: |
getSpacenotificationatingRequest
برای دریافت تنظیم اطلاع رسانی فضایی ، پیام را درخواست کنید. فقط از دریافت تنظیم اعلان برای کاربر فراخوانی پشتیبانی می کند.
فیلدها | |
---|---|
name | مورد نیاز. قالب: کاربران/{کاربر}/فضاها/{فضا}/Spacenotificationationsing
|
getSpacereadStaterequest
درخواست پیام برای API GetSpacereadState.
فیلدها | |
---|---|
name | مورد نیاز. نام منابع از حالت خوانده شده برای بازیابی. فقط از خواندن حالت خوانده شده برای کاربر فراخوانی پشتیبانی می کند. برای مراجعه به کاربر تماس ، یکی از موارد زیر را تنظیم کنید:
قالب: کاربران/{کاربر}/فضاها/{فضا}/SpacereadState |
GetSpacereQuest
درخواست بازگشت یک فضای واحد.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع فضا ، در قالب: |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به Scopes |
getThreadReadStateRequest
پیام درخواست GetThreadReadStateRequest API.
فیلدها | |
---|---|
name | مورد نیاز. نام منبع موضوع موضوع را برای بازیابی. فقط از خواندن حالت خوانده شده برای کاربر فراخوانی پشتیبانی می کند. برای مراجعه به کاربر تماس ، یکی از موارد زیر را تنظیم کنید:
فرمت: کاربران/{کاربر}/فضاها/{فضا}/موضوع/{موضوع}/ThreadReadState |
گروه
یک گروه Google در Google Chat.
فیلدها | |
---|---|
name | نام منابع برای یک گروه Google. گروهی در گروه های هویت ابری API را نشان می دهد. قالب: گروه ها/{گروه} |
تاریخچه
وضعیت تاریخ برای پیام ها و فضاها. مشخص می کند که چه مدت پیام ها و موضوعات مکالمه پس از ایجاد نگهداری می شوند.
Enums | |
---|---|
HISTORY_STATE_UNSPECIFIED | مقدار پیش فرض استفاده نکنید. |
HISTORY_OFF | تاریخ خاموش. پیام ها و موضوعات به مدت 24 ساعت نگهداری می شوند . |
HISTORY_ON | تاریخ در. قوانین حفظ طاق سازمان مشخص می کند که چه مدت پیام ها و موضوعات نگه داشته می شوند. |
ListCustomeMoJisRequest
درخواست بازگشت لیستی از ایموجی های سفارشی.
فیلدها | |
---|---|
page_size | اختیاری. حداکثر تعداد ایموجی های سفارشی بازگشتند. این سرویس می تواند کمتر از این مقدار ایموجی های سفارشی برگردد. اگر نامشخص باشد ، مقدار پیش فرض 25 است. حداکثر مقدار 200 است. مقادیر بالاتر از 200 به 200 تغییر می یابد. |
page_token | اختیاری. (در صورت از سرگیری از یک پرس و جو قبلی.) نشانه ای از صفحه دریافت شده از لیست قبلی تماس ایموجی سفارشی. این کار را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، مقدار فیلتر باید با تماس ارائه شده با صفحه مطابقت داشته باشد. عبور از یک مقدار متفاوت ممکن است منجر به نتایج غیر منتظره شود. |
filter | اختیاری. یک فیلتر پرس و جو. از فیلتر توسط خالق پشتیبانی می کند. برای فیلتر کردن توسط خالق ، باید یک مقدار معتبر را مشخص کنید. در حال حاضر فقط به عنوان مثال ، پرس و جو زیر ایموجی های سفارشی ایجاد شده توسط تماس گیرنده را برمی گرداند:
نمایش داده شدگان نامعتبر با یک خطای |
پاسخ لیست
پاسخ به لیست ایموجی های سفارشی.
فیلدها | |
---|---|
custom_emojis[] | لیست بدون هماهنگ. لیست ایموجی های سفارشی. |
next_page_token | نشانه ای که می توانید به عنوان |
listmembershipsrequest
درخواست پیام برای لیست عضویت.
فیلدها | |
---|---|
parent | مورد نیاز. نام منبع فضایی که می توانید لیست عضویت را بدست آورید. قالب: فضاها/{فضا} |
page_size | اختیاری. حداکثر تعداد عضویت برای بازگشت. این سرویس ممکن است کمتر از این مقدار برگردد. در صورت نامشخص ، حداکثر 100 عضویت بازگردانده می شوند. حداکثر مقدار 1000 است. اگر از مقدار بیش از 1000 استفاده می کنید ، به طور خودکار به 1000 تغییر می یابد. مقادیر منفی یک خطای |
page_token | اختیاری. یک نشان صفحه ، از یک تماس قبلی برای لیست عضویت دریافت شده است. این پارامتر را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، تمام پارامترهای دیگر ارائه شده باید با تماس ارائه شده با صفحه نمایش مطابقت داشته باشند. انتقال مقادیر مختلف به پارامترهای دیگر ممکن است منجر به نتایج غیر منتظره شود. |
filter | اختیاری. یک فیلتر پرس و جو. شما می توانید عضویت در نقش ( برای فیلتر کردن بر اساس نقش ، برای فیلتر کردن بر اساس نوع ، برای فیلتر کردن توسط هر دو نقش و نوع ، از اپراتور هر دو به عنوان مثال ، نمایش داده های زیر معتبر است:
نمایش داده های زیر نامعتبر است:
نمایش داده شدگان نامعتبر توسط سرور با یک خطای |
show_groups | اختیاری. در صورت |
show_invited | اختیاری. هنگامی که در حال حاضر به تأیید اعتبار کاربر نیاز دارد. |
use_admin_access | اختیاری. در صورت کاربر فراخوانی باید یک مدیر فضای کاری Google با امتیازات مدیریت چت و فضاها باشد. به لیست عضویت در برنامه در یک فضا هنگام استفاده از Admin Access پشتیبانی نمی شود. |
listmembershipsresponse
پاسخ به لیست عضویت در فضا.
فیلدها | |
---|---|
memberships[] | لیست بدون هماهنگ. لیست عضویت در صفحه درخواست شده (یا اول). |
next_page_token | نشانه ای که می توانید به عنوان |
ListMessagesRequest
پیام ها را در فضای مشخص شده لیست می کند ، که کاربر عضو آن است.
فیلدها | |
---|---|
parent | مورد نیاز. نام منبع فضا برای لیست پیام ها از. قالب: |
page_size | اختیاری. حداکثر تعداد پیام های برگشت یافته. این سرویس ممکن است پیام های کمتری از این مقدار بازگرداند. در صورت نامشخص ، حداکثر 25 نفر بازگردانده می شوند. حداکثر مقدار 1000 است. اگر از مقدار بیش از 1000 استفاده می کنید ، به طور خودکار به 1000 تغییر می یابد. مقادیر منفی یک خطای |
page_token | اختیاری. یک صفحه صفحه دریافت شده از تماس پیام های لیست قبلی. این پارامتر را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، تمام پارامترهای دیگر ارائه شده باید با تماس ارائه شده با صفحه نمایش مطابقت داشته باشند. انتقال مقادیر مختلف به پارامترهای دیگر ممکن است منجر به نتایج غیر منتظره شود. |
filter | اختیاری. یک فیلتر پرس و جو. می توانید پیام ها را بر اساس تاریخ ( برای فیلتر کردن پیام ها در تاریخ ایجاد شده ، برای فیلتر کردن بر روی نخ ، برای فیلتر کردن توسط موضوع و تاریخ ، از اپراتور به عنوان مثال ، نمایش داده های زیر معتبر است:
نمایش داده شدگان نامعتبر توسط سرور با یک خطای |
order_by | اختیاری. نحوه سفارش لیست پیام ها. یک مقدار برای سفارش توسط یک عملیات سفارش را مشخص کنید. مقادیر عملیاتی سفارش معتبر به شرح زیر است:
سفارش پیش فرض |
show_deleted | اختیاری. آیا پیام های حذف شده را شامل می شود. پیام های حذف شده شامل زمان حذف شده و ابرداده در مورد حذف آنها هستند ، اما محتوای پیام در دسترس نیست. |
listMessagesResponse
پیام پاسخ برای لیست پیام ها.
فیلدها | |
---|---|
messages[] | لیست پیام ها |
next_page_token | برای بازیابی صفحه بعدی نتایج می توانید یک نشانه را به عنوان |
خطی
واکنش های یک پیام را لیست می کند.
فیلدها | |
---|---|
parent | مورد نیاز. کاربران پیام به آنها واکنش نشان دادند. قالب: |
page_size | اختیاری. حداکثر تعداد واکنشهای برگشت یافته. این سرویس می تواند واکنش های کمتری نسبت به این مقدار بازگرداند. اگر نامشخص باشد ، مقدار پیش فرض 25 است. حداکثر مقدار 200 است. مقادیر بالاتر از 200 به 200 تغییر می یابد. |
page_token | اختیاری. (در صورت از سرگیری از یک پرس و جو قبلی.) یک نشان صفحه دریافت شده از تماس واکنش لیست قبلی. این کار را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، مقدار فیلتر باید با تماس ارائه شده با صفحه مطابقت داشته باشد. عبور از یک مقدار متفاوت ممکن است منجر به نتایج غیر منتظره شود. |
filter | اختیاری. یک فیلتر پرس و جو. می توانید واکنش های emoji ( برای فیلتر کردن واکنش های مختلف برای ایموجی های متعدد یا کاربران ، با اپراتور برای فیلتر کردن واکنش توسط ایموجی و کاربر ، از اپراتور اگر پرس و جو شما از هر دو به عنوان مثال ، نمایش داده های زیر معتبر است:
نمایش داده های زیر نامعتبر است:
نمایش داده شدگان نامعتبر با یک خطای |
پاسخ
پاسخ به درخواست واکنش لیست.
فیلدها | |
---|---|
reactions[] | لیست واکنش ها در صفحه درخواست شده (یا اول). |
next_page_token | نشانه ادامه برای بازیابی صفحه بعدی نتایج. برای آخرین صفحه نتایج خالی است. |
listSpaceEventSrequest
درخواست پیام برای لیست رویدادهای فضایی.
فیلدها | |
---|---|
parent | مورد نیاز. نام منبع فضای چت Google که در آن وقایع رخ داده است. قالب: |
page_size | اختیاری. حداکثر تعداد وقایع فضایی برگشت. این سرویس ممکن است کمتر از این مقدار برگردد. مقادیر منفی یک خطای |
page_token | اختیاری. یک صفحه صفحه ، که از لیست قبلی رویدادهای فضایی دریافت شده است. این کار را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، تمام پارامترهای دیگر ارائه شده برای لیست رویدادهای فضایی باید با تماس ارائه شده با صفحه نمایش مطابقت داشته باشند. انتقال مقادیر مختلف به پارامترهای دیگر ممکن است منجر به نتایج غیر منتظره شود. |
filter | مورد نیاز. یک فیلتر پرس و جو. شما باید حداقل یک نوع رویداد ( به صورت اختیاری ، می توانید با زمان شروع (
برای مشخص کردن زمان شروع یا پایان ، از Equals به عنوان مثال ، نمایش داده های زیر معتبر است:
نمایش داده های زیر نامعتبر است:
نمایش داده شدگان نامعتبر توسط سرور با یک خطای |
فضیلت
پیام پاسخ برای لیست رویدادهای فضایی.
فیلدها | |
---|---|
space_events[] | نتایج به ترتیب زمانی بازگردانده می شوند (قدیمی ترین رویداد اول). توجه: قسمت |
next_page_token | توکن ادامه برای واکشی رویدادهای بیشتر. اگر این قسمت از بین برود ، هیچ صفحه بعدی وجود ندارد. |
ListSpacesRequest
درخواستی برای لیست فضاهایی که تماس گیرنده عضو آن است.
فیلدها | |
---|---|
page_size | اختیاری. حداکثر تعداد فضاها برای بازگشت. این سرویس ممکن است کمتر از این مقدار برگردد. در صورت نامشخص ، حداکثر 100 فضای بازگردانده می شوند. حداکثر مقدار 1000 است. اگر از مقدار بیش از 1000 استفاده می کنید ، به طور خودکار به 1000 تغییر می یابد. مقادیر منفی یک خطای |
page_token | اختیاری. یک صفحه صفحه ، که از تماس فضاهای لیست قبلی دریافت شده است. این پارامتر را برای بازیابی صفحه بعدی ارائه دهید. هنگام پیگیری ، مقدار فیلتر باید با تماس ارائه شده با صفحه مطابقت داشته باشد. عبور از یک مقدار متفاوت ممکن است منجر به نتایج غیر منتظره شود. |
filter | اختیاری. یک فیلتر پرس و جو. می توانید فضاها را بر اساس نوع فضایی ( برای فیلتر کردن بر اساس نوع فضایی ، باید مقدار معتبر Enum مانند به عنوان مثال ، نمایش داده های زیر معتبر است:
نمایش داده شدگان نامعتبر توسط سرور با یک خطای |
لیست
پاسخ درخواست فضاهای لیست.
فیلدها | |
---|---|
spaces[] | لیست فضاهای موجود در صفحه درخواست شده (یا اول). توجه: قسمت |
next_page_token | برای بازیابی صفحه بعدی نتایج می توانید یک نشانه را به عنوان |
کابوس
یک URL همسان در یک پیام گپ. برنامه های چت می توانند URL های همسان را پیش نمایش کنند. برای اطلاعات بیشتر ، به پیوندهای پیش نمایش مراجعه کنید.
فیلدها | |
---|---|
url | فقط خروجی The URL that was matched. |
MeetSpaceLinkData
Data for Meet space links.
فیلدها | |
---|---|
meeting_code | Meeting code of the linked Meet space. |
type | Indicates the type of the Meet space. |
huddle_status | اختیاری. فقط خروجی If the Meet is a Huddle, indicates the status of the huddle. Otherwise, this is unset. |
HuddleStatus
The status of the huddle
Enums | |
---|---|
HUDDLE_STATUS_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
STARTED | The huddle has started. |
ENDED | The huddle has ended. In this case the Meet space URI and identifiers will no longer be valid. |
MISSED | The huddle has been missed. In this case the Meet space URI and identifiers will no longer be valid. |
تایپ کنید
The type of the Meet space.
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
MEETING | The Meet space is a meeting. |
HUDDLE | The Meet space is a huddle. |
عضویت
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
فیلدها | |
---|---|
name | Identifier. Resource name of the membership, assigned by the server. Format: |
state | فقط خروجی State of the membership. |
role | اختیاری. User's role within a Chat space, which determines their permitted actions in the space. This field can only be used as input in |
create_time | اختیاری. تغییرناپذیر. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces. |
delete_time | اختیاری. تغییرناپذیر. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces. |
Union field memberType . Member associated with this membership. Other member types might be supported in the future. memberType can be only one of the following: | |
member | اختیاری. The Google Chat user or app the membership corresponds to. If your Chat app authenticates as a user , the output populates the user |
group_member | اختیاری. The Google Group the membership corresponds to. Reading or mutating memberships for Google Groups requires user authentication . |
MembershipRole
Represents a user's permitted actions in a Chat space. More enum values might be added in the future.
Enums | |
---|---|
MEMBERSHIP_ROLE_UNSPECIFIED | مقدار پیش فرض For users : they aren't a member of the space, but can be invited. For Google Groups : they're always assigned this role (other enum values might be used in the future). |
ROLE_MEMBER | A member of the space. In the Chat UI, this role is called Member. The user has basic permissions, like sending messages to the space. Managers and owners can grant members additional permissions in a space, including:
In direct messages and unnamed group conversations, everyone has this role. |
ROLE_MANAGER | A space owner. In the Chat UI, this role is called Owner. The user has the complete set of space permissions to manage the space, including:
Only supported in To learn more, see Learn more about your role as a space owner or manager . |
MembershipState
Specifies the member's relationship with a space. Other membership states might be supported in the future.
Enums | |
---|---|
MEMBERSHIP_STATE_UNSPECIFIED | مقدار پیش فرض استفاده نکنید. |
JOINED | The user is added to the space, and can participate in the space. |
INVITED | The user is invited to join the space, but hasn't joined it. |
NOT_A_MEMBER | The user doesn't belong to the space and doesn't have a pending invitation to join the space. |
MembershipBatchCreatedEventData
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
فیلدها | |
---|---|
memberships[] | A list of new memberships. |
MembershipBatchDeletedEventData
Event payload for multiple deleted memberships.
Event type: google.workspace.chat.membership.v1.batchDeleted
فیلدها | |
---|---|
memberships[] | A list of deleted memberships. |
MembershipBatchUpdatedEventData
Event payload for multiple updated memberships.
Event type: google.workspace.chat.membership.v1.batchUpdated
فیلدها | |
---|---|
memberships[] | A list of updated memberships. |
MembershipCreatedEventData
Event payload for a new membership.
Event type: google.workspace.chat.membership.v1.created
.
فیلدها | |
---|---|
membership | The new membership. |
MembershipDeletedEventData
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
فیلدها | |
---|---|
membership | The deleted membership. Only the |
MembershipUpdatedEventData
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
فیلدها | |
---|---|
membership | The updated membership. |
پیام
A message in a Google Chat space.
فیلدها | |
---|---|
name | Identifier. Resource name of the message. Format: Where If you set a custom ID when you create a message, you can use this ID to specify the message in a request by replacing |
sender | فقط خروجی The user who created the message. If your Chat app authenticates as a user , the output populates the user |
create_time | اختیاری. تغییرناپذیر. For spaces created in Chat, the time at which the message was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time. |
last_update_time | فقط خروجی The time at which the message was last edited by a user. If the message has never been edited, this field is empty. |
delete_time | فقط خروجی The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty. |
text | اختیاری. Plain-text body of the message. The first link to an image, video, or web page generates a preview chip . You can also @mention a Google Chat user , or everyone in the space. To learn about creating text messages, see Send a message . |
formatted_text | فقط خروجی Contains the message
For more information, see View text formatting sent in a message |
cards[] | Deprecated: Use Rich, formatted, and interactive cards that you can use to display UI elements such as: formatted texts, buttons, and clickable images. Cards are normally displayed below the plain-text body of the message. |
cards_v2[] | اختیاری. An array of cards . Only Chat apps can create cards. If your Chat app authenticates as a user , the messages can't contain cards. To learn how to create a message that contains cards, see Send a message . Design and preview cards with the Card Builder. Open the Card Builder |
annotations[] | فقط خروجی Annotations can be associated with the plain-text body of the message or with chips that link to Google Workspace resources like Google Docs or Sheets with |
thread | The thread the message belongs to. For example usage, see Start or reply to a message thread . |
space | فقط خروجی If your Chat app authenticates as a user , the output only populates the space |
fallback_text | اختیاری. A plain-text description of the message's cards, used when the actual cards can't be displayed—for example, mobile notifications. |
action_response | فقط ورودی Parameters that a Chat app can use to configure how its response is posted. |
argument_text | فقط خروجی Plain-text body of the message with all Chat app mentions stripped out. |
slash_command | فقط خروجی Slash command information, if applicable. |
attachment[] | اختیاری. User-uploaded attachment. |
matched_url | فقط خروجی A URL in |
thread_reply | فقط خروجی When If the space doesn't support reply in threads, this field is always |
client_assigned_message_id | اختیاری. A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the |
emoji_reaction_summaries[] | فقط خروجی The list of emoji reaction summaries on the message. |
private_message_viewer | اختیاری. تغییرناپذیر. Input for creating a message, otherwise output only. The user that can view the message. When set, the message is private and only visible to the specified user and the Chat app. To include this field in your request, you must call the Chat API using app authentication and omit the following: For details, see Send a message privately . |
deletion_metadata | فقط خروجی Information about a deleted message. A message is deleted when |
quoted_message_metadata | اختیاری. Information about a message that another message quotes. When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread. When you update a message, you can't add or replace the For example usage, see Quote another message . |
attached_gifs[] | فقط خروجی GIF images that are attached to the message. |
accessory_widgets[] | اختیاری. One or more interactive widgets that appear at the bottom of a message. You can add accessory widgets to messages that contain text, cards, or both text and cards. Not supported for messages that contain dialogs. For details, see Add interactive widgets at the bottom of a message . Creating a message with accessory widgets requires app authentication . |
MessageBatchCreatedEventData
Event payload for multiple new messages.
Event type: google.workspace.chat.message.v1.batchCreated
فیلدها | |
---|---|
messages[] | A list of new messages. |
MessageBatchDeletedEventData
Event payload for multiple deleted messages.
Event type: google.workspace.chat.message.v1.batchDeleted
فیلدها | |
---|---|
messages[] | A list of deleted messages. |
MessageBatchUpdatedEventData
Event payload for multiple updated messages.
Event type: google.workspace.chat.message.v1.batchUpdated
فیلدها | |
---|---|
messages[] | A list of updated messages. |
MessageCreatedEventData
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
فیلدها | |
---|---|
message | The new message. |
MessageDeletedEventData
Event payload for a deleted message.
Event type: google.workspace.chat.message.v1.deleted
فیلدها | |
---|---|
message | The deleted message. Only the |
MessageUpdatedEventData
Event payload for an updated message.
Event type: google.workspace.chat.message.v1.updated
فیلدها | |
---|---|
message | The updated message. |
QuotedMessageMetadata
Information about a message that another message quotes.
When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread.
When you update a message, you can't add or replace the quotedMessageMetadata
field, but you can remove it.
For example usage, see Quote another message .
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the message that is quoted. Format: |
last_update_time | مورد نیاز. The timestamp when the quoted message was created or when the quoted message was last updated. If the message was edited, use this field, If |
واکنش
A reaction to a message.
فیلدها | |
---|---|
name | Identifier. The resource name of the reaction. Format: |
user | فقط خروجی The user who created the reaction. |
emoji | مورد نیاز. The emoji used in the reaction. |
ReactionBatchCreatedEventData
Event payload for multiple new reactions.
Event type: google.workspace.chat.reaction.v1.batchCreated
فیلدها | |
---|---|
reactions[] | A list of new reactions. |
ReactionBatchDeletedEventData
Event payload for multiple deleted reactions.
Event type: google.workspace.chat.reaction.v1.batchDeleted
فیلدها | |
---|---|
reactions[] | A list of deleted reactions. |
ReactionCreatedEventData
Event payload for a new reaction.
Event type: google.workspace.chat.reaction.v1.created
فیلدها | |
---|---|
reaction | The new reaction. |
ReactionDeletedEventData
Event payload for a deleted reaction.
Type: google.workspace.chat.reaction.v1.deleted
فیلدها | |
---|---|
reaction | The deleted reaction. |
RichLinkMetadata
A rich link to a resource. Rich links can be associated with the plain-text body of the message or represent chips that link to Google Workspace resources like Google Docs or Sheets with start_index
and length
of 0.
فیلدها | |
---|---|
uri | The URI of this link. |
rich_link_type | The rich link type. |
Union field data . Data for the linked resource. data can be only one of the following: | |
drive_link_data | Data for a drive link. |
chat_space_link_data | Data for a chat space link. |
meet_space_link_data | Data for a Meet space link. |
calendar_event_link_data | Data for a Calendar event link. |
RichLinkType
The rich link type. More types might be added in the future.
Enums | |
---|---|
RICH_LINK_TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
DRIVE_FILE | A Google Drive rich link type. |
CHAT_SPACE | A Chat space rich link type. For example, a space smart chip. |
MEET_SPACE | A Meet message rich link type. For example, a Meet chip. |
CALENDAR_EVENT | A Calendar message rich link type. For example, a Calendar chip. |
SearchSpacesRequest
Request to search for a list of spaces based on a query.
فیلدها | |
---|---|
use_admin_access | When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires either the This method currently only supports admin access, thus only |
page_size | The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. |
page_token | A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
query | مورد نیاز. A search query. You can search by using the following parameters:
Across different fields, only Among the same field, The following example queries are valid:
|
order_by | اختیاری. How the list of spaces is ordered. Supported attributes to order by are:
Valid ordering operation values are:
The supported syntax are:
|
SearchSpacesResponse
Response with a list of spaces corresponding to the search spaces request.
فیلدها | |
---|---|
spaces[] | A page of the requested spaces. |
next_page_token | A token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages. |
total_size | The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate. |
SetUpSpaceRequest
Request to create a space and add specified users to it.
فیلدها | |
---|---|
space | مورد نیاز. The To create a space, set To create a group chat, set To create a 1:1 conversation between humans, set To create an 1:1 conversation between a human and the calling Chat app, set If a |
request_id | اختیاری. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error. |
memberships[] | اختیاری. The Google Chat users or groups to invite to join the space. Omit the calling user, as they are added automatically. The set currently allows up to 49 memberships (in addition to the caller). For human membership, the For Google group membership, the Optional when setting Required when setting Required when setting Must be empty when creating a 1:1 conversation between a human and the calling Chat app (when setting |
SlashCommand
Metadata about a slash command in Google Chat.
فیلدها | |
---|---|
command_id | The ID of the slash command. |
SlashCommandMetadata
Annotation metadata for slash commands (/).
فیلدها | |
---|---|
bot | The Chat app whose command was invoked. |
type | The type of slash command. |
command_name | The name of the invoked slash command. |
command_id | The command ID of the invoked slash command. |
triggers_dialog | Indicates whether the slash command is for a dialog. |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
ADD | Add Chat app to space. |
INVOKE | Invoke slash command in space. |
فضا
A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.
فیلدها | |
---|---|
name | Identifier. Resource name of the space. Format: Where |
type | فقط خروجی Deprecated: Use |
space_type | اختیاری. The type of space. Required when creating a space or updating the space type of a space. Output only for other usage. |
single_user_bot_dm | اختیاری. Whether the space is a DM between a Chat app and a single human. |
threaded | فقط خروجی Deprecated: Use |
display_name | اختیاری. The space's display name. Required when creating a space with a For direct messages, this field might be empty. Supports up to 128 characters. |
external_user_allowed | اختیاری. تغییرناپذیر. Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions:
For existing spaces, this field is output only. |
space_threading_state | فقط خروجی The threading state in the Chat space. |
space_details | اختیاری. Details about the space including description and rules. |
space_history_state | اختیاری. The message history state for messages and threads in this space. |
import_mode | اختیاری. Whether this space is created in Creating a space in |
create_time | اختیاری. تغییرناپذیر. For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time. Only populated in the output when |
last_active_time | فقط خروجی Timestamp of the last message in the space. |
admin_installed | فقط خروجی For direct message (DM) spaces with a Chat app, whether the space was created by a Google Workspace administrator. Administrators can install and set up a direct message with a Chat app on behalf of users in their organization. To support admin install, your Chat app must feature direct messaging. |
membership_count | فقط خروجی The count of joined memberships grouped by member type. Populated when the |
access_settings | اختیاری. Specifies the access setting of the space. Only populated when the |
space_uri | فقط خروجی The URI for a user to access the space. |
import_mode_expire_time | فقط خروجی The time when the space will be automatically deleted by the system if it remains in import mode. Each space created in import mode must exit this mode before this expire time using This field is only populated for spaces that were created with import mode. |
customer | اختیاری. تغییرناپذیر. The customer id of the domain of the space. Required only when creating a space with app authentication and In the format For DMs, this field isn't populated. |
Union field space_permission_settings . Represents the permission settings of a space. Only populated when the space_type is SPACE . space_permission_settings can be only one of the following: | |
predefined_permission_settings | اختیاری. فقط ورودی Predefined space permission settings, input only when creating a space. If the field is not set, a collaboration space is created. After you create the space, settings are populated in the Setting predefined permission settings supports:
|
permission_settings | اختیاری. Space permission settings for existing spaces. Input for updating exact space permission settings, where existing permission settings are replaced. Output lists current permission settings. Reading and updating permission settings supports:
|
AccessSettings
Represents the access setting of the space.
فیلدها | |
---|---|
access_state | فقط خروجی Indicates the access state of the space. |
audience | اختیاری. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience . Format: To use the default target audience for the Google Workspace organization, set to Reading the target audience supports:
This field is not populated when using the Setting the target audience requires user authentication . |
AccessState
Represents the access state of the space.
Enums | |
---|---|
ACCESS_STATE_UNSPECIFIED | Access state is unknown or not supported in this API. |
PRIVATE | Only users or Google Groups that have been individually added or invited by other users or Google Workspace administrators can discover and access the space. |
DISCOVERABLE | A space manager has granted a target audience access to the space. Users or Google Groups that have been individually added or invited to the space can also discover and access the space. To learn more, see Make a space discoverable to specific users . Creating discoverable spaces requires user authentication . |
MembershipCount
Represents the count of memberships of a space, grouped into categories.
فیلدها | |
---|---|
joined_direct_human_user_count | فقط خروجی Count of human users that have directly joined the space, not counting users joined by having membership in a joined group. |
joined_group_count | فقط خروجی Count of all groups that have directly joined the space. |
PermissionSetting
Represents a space permission setting.
فیلدها | |
---|---|
managers_allowed | اختیاری. Whether space owners ( |
members_allowed | اختیاری. Whether basic space members ( |
PermissionSettings
Permission settings that you can specify when updating an existing named space.
To set permission settings when creating a space, specify the PredefinedPermissionSettings
field in your request.
فیلدها | |
---|---|
manage_members_and_groups | اختیاری. Setting for managing members and groups in a space. |
modify_space_details | اختیاری. Setting for updating space name, avatar, description and guidelines. |
toggle_history | اختیاری. Setting for toggling space history on and off. |
use_at_mention_all | اختیاری. Setting for using @all in a space. |
manage_apps | اختیاری. Setting for managing apps in a space. |
manage_webhooks | اختیاری. Setting for managing webhooks in a space. |
post_messages | فقط خروجی Setting for posting messages in a space. |
reply_messages | اختیاری. Setting for replying to messages in a space. |
PredefinedPermissionSettings
Predefined permission settings that you can only specify when creating a named space. More settings might be added in the future. For details about permission settings for named spaces, see Learn about spaces .
Enums | |
---|---|
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED | نامشخص استفاده نکنید. |
COLLABORATION_SPACE | Setting to make the space a collaboration space where all members can post messages. |
ANNOUNCEMENT_SPACE | Setting to make the space an announcement space where only space managers can post messages. |
SpaceDetails
Details about the space including description and rules.
فیلدها | |
---|---|
description | اختیاری. A description of the space. For example, describe the space's discussion topic, functional purpose, or participants. Supports up to 150 characters. |
guidelines | اختیاری. The space's rules, expectations, and etiquette. Supports up to 5,000 characters. |
SpaceThreadingState
Specifies the type of threading state in the Chat space.
Enums | |
---|---|
SPACE_THREADING_STATE_UNSPECIFIED | رزرو شده است. |
THREADED_MESSAGES | Named spaces that support message threads. When users respond to a message, they can reply in-thread, which keeps their response in the context of the original message. |
GROUPED_MESSAGES | Named spaces where the conversation is organized by topic. Topics and their replies are grouped together. |
UNTHREADED_MESSAGES | Direct messages (DMs) between two people and group conversations between 3 or more people. |
SpaceType
The type of space. Required when creating or updating a space. Output only for other usage.
Enums | |
---|---|
SPACE_TYPE_UNSPECIFIED | رزرو شده است. |
SPACE | A place where people send messages, share files, and collaborate. A SPACE can include Chat apps. |
GROUP_CHAT | Group conversations between 3 or more people. A GROUP_CHAT can include Chat apps. |
DIRECT_MESSAGE | 1:1 messages between two humans or a human and a Chat app. |
تایپ کنید
Deprecated: Use SpaceType
instead.
Enums | |
---|---|
TYPE_UNSPECIFIED | رزرو شده است. |
ROOM | Conversations between two or more humans. |
DM | 1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this doesn't include direct messages between two humans. |
SpaceBatchUpdatedEventData
Event payload for multiple updates to a space.
Event type: google.workspace.chat.space.v1.batchUpdated
فیلدها | |
---|---|
spaces[] | A list of updated spaces. |
SpaceEvent
An event that represents a change or activity in a Google Chat space. برای کسب اطلاعات بیشتر ، به کار با رویدادهای Google Chat مراجعه کنید.
فیلدها | |
---|---|
name | Resource name of the space event. Format: |
event_time | Time when the event occurred. |
event_type | Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For Supported event types for messages :
Supported event types for memberships :
Supported event types for reactions :
Supported event types about the space :
|
Union field | |
message_created_event_data | Event payload for a new message. Event type: |
message_updated_event_data | Event payload for an updated message. Event type: |
message_deleted_event_data | Event payload for a deleted message. Event type: |
message_batch_created_event_data | Event payload for multiple new messages. Event type: |
message_batch_updated_event_data | Event payload for multiple updated messages. Event type: |
message_batch_deleted_event_data | Event payload for multiple deleted messages. Event type: |
space_updated_event_data | Event payload for a space update. Event type: |
space_batch_updated_event_data | Event payload for multiple updates to a space. Event type: |
membership_created_event_data | Event payload for a new membership. Event type: |
membership_updated_event_data | Event payload for an updated membership. Event type: |
membership_deleted_event_data | Event payload for a deleted membership. Event type: |
membership_batch_created_event_data | Event payload for multiple new memberships. Event type: |
membership_batch_updated_event_data | Event payload for multiple updated memberships. Event type: |
membership_batch_deleted_event_data | Event payload for multiple deleted memberships. Event type: |
reaction_created_event_data | Event payload for a new reaction. Event type: |
reaction_deleted_event_data | Event payload for a deleted reaction. Event type: |
reaction_batch_created_event_data | Event payload for multiple new reactions. Event type: |
reaction_batch_deleted_event_data | Event payload for multiple deleted reactions. Event type: |
SpaceNotificationSetting
The notification setting of a user in a space.
فیلدها | |
---|---|
name | Identifier. The resource name of the space notification setting. Format: |
notification_setting | The notification setting. |
mute_setting | The space notification mute setting. |
MuteSetting
The space notification mute setting types.
Enums | |
---|---|
MUTE_SETTING_UNSPECIFIED | رزرو شده است. |
UNMUTED | The user will receive notifications for the space based on the notification setting. |
MUTED | The user will not receive any notifications for the space, regardless of the notification setting. |
NotificationSetting
The notification setting types. Other types might be supported in the future.
Enums | |
---|---|
NOTIFICATION_SETTING_UNSPECIFIED | رزرو شده است. |
ALL | Notifications are triggered by @mentions, followed threads, first message of new threads. All new threads are automatically followed, unless manually unfollowed by the user. |
MAIN_CONVERSATIONS | The notification is triggered by @mentions, followed threads, first message of new threads. Not available for 1:1 direct messages. |
FOR_YOU | The notification is triggered by @mentions, followed threads. Not available for 1:1 direct messages. |
OFF | Notification is off. |
SpaceReadState
A user's read state within a space, used to identify read and unread messages.
فیلدها | |
---|---|
name | Resource name of the space read state. Format: |
last_read_time | اختیاری. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space. |
SpaceUpdatedEventData
Event payload for an updated space.
Event type: google.workspace.chat.space.v1.updated
فیلدها | |
---|---|
space | The updated space. |
موضوع
A thread in a Google Chat space. For example usage, see Start or reply to a message thread .
If you specify a thread when creating a message, you can set the messageReplyOption
field to determine what happens if no matching thread is found.
فیلدها | |
---|---|
name | Identifier. Resource name of the thread. Example: |
thread_key | اختیاری. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters. This ID is unique to the Chat app that sets it. For example, if multiple Chat apps create a message using the same thread key, the messages are posted in different threads. To reply in a thread created by a person or another Chat app, specify the thread |
ThreadReadState
A user's read state within a thread, used to identify read and unread messages.
فیلدها | |
---|---|
name | Resource name of the thread read state. Format: |
last_read_time | The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread. |
UpdateMembershipRequest
Request message for updating a membership.
فیلدها | |
---|---|
membership | مورد نیاز. The membership to update. Only fields specified by |
update_mask | مورد نیاز. The field paths to update. Separate multiple values with commas or use Currently supported field paths:
|
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the |
UpdateMessageRequest
Request to update a message.
فیلدها | |
---|---|
message | مورد نیاز. Message with fields updated. |
update_mask | مورد نیاز. The field paths to update. Separate multiple values with commas or use Currently supported field paths:
|
allow_missing | اختیاری. If |
UpdateSpaceNotificationSettingRequest
Request to update the space notification settings. Only supports updating notification setting for the calling user.
فیلدها | |
---|---|
space_notification_setting | مورد نیاز. The resource name for the space notification settings must be populated in the form of |
update_mask | مورد نیاز. Supported field paths:
|
UpdateSpaceReadStateRequest
Request message for UpdateSpaceReadState API.
فیلدها | |
---|---|
space_read_state | مورد نیاز. The space read state and fields to update. Only supports updating read state for the calling user. To refer to the calling user, set one of the following:
Format: users/{user}/spaces/{space}/spaceReadState |
update_mask | مورد نیاز. The field paths to update. Currently supported field paths:
When the To mark the space as read, set |
UpdateSpaceRequest
A request to update a single space.
فیلدها | |
---|---|
space | مورد نیاز. Space with fields to be updated. |
update_mask | مورد نیاز. The updated field paths, comma separated if there are multiple. You can update the following fields for a space:
|
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Some |
کاربر
A user in Google Chat. When returned as an output from a request, if your Chat app authenticates as a user , the output for a User
resource only populates the user's name
and type
.
فیلدها | |
---|---|
name | Resource name for a Google Chat Format: For
|
display_name | فقط خروجی The user's display name. |
domain_id | Unique identifier of the user's Google Workspace domain. |
type | User type. |
is_anonymous | فقط خروجی When |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
HUMAN | Human user. |
BOT | Chat app user. |
UserMentionMetadata
Annotation metadata for user mentions (@).
فیلدها | |
---|---|
user | The user mentioned. |
type | The type of user mention. |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
ADD | Add user to space. |
MENTION | Mention user in space. |
WidgetMarkup
A widget is a UI element that presents text and images.
فیلدها | |
---|---|
buttons[] | A list of buttons. Buttons is also |
Union field data . A WidgetMarkup can only have one of the following items. You can use multiple WidgetMarkup fields to display more items. data can be only one of the following: | |
text_paragraph | Display a text paragraph in this widget. |
image | Display an image in this widget. |
key_value | Display a key value item in this widget. |
دکمه
یک دکمه Can be a text button or an image button.
فیلدها | |
---|---|
Union field | |
text_button | A button with text and |
image_button | A button with image and |
FormAction
A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.
فیلدها | |
---|---|
action_method_name | The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior. |
parameters[] | List of action parameters. |
ActionParameter
List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use action method = snooze()
, passing the snooze type and snooze time in the list of string parameters.
فیلدها | |
---|---|
key | The name of the parameter for the action script. |
value | The value of the parameter. |
نماد
The set of supported icons.
Enums | |
---|---|
ICON_UNSPECIFIED | |
AIRPLANE | |
BOOKMARK | |
BUS | |
CAR | |
CLOCK | |
CONFIRMATION_NUMBER_ICON | |
DOLLAR | |
DESCRIPTION | |
EMAIL | |
EVENT_PERFORMER | |
EVENT_SEAT | |
FLIGHT_ARRIVAL | |
FLIGHT_DEPARTURE | |
HOTEL | |
HOTEL_ROOM_TYPE | |
INVITE | |
MAP_PIN | |
MEMBERSHIP | |
MULTIPLE_PEOPLE | |
OFFER | |
PERSON | |
PHONE | |
RESTAURANT_ICON | |
SHOPPING_CART | |
STAR | |
STORE | |
TICKET | |
TRAIN | |
VIDEO_CAMERA | |
VIDEO_PLAY |
تصویر
An image that's specified by a URL and can have an onclick
action.
فیلدها | |
---|---|
image_url | The URL of the image. |
on_click | The |
aspect_ratio | The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image. |
دکمه تصویر
An image button with an onclick
action.
فیلدها | |
---|---|
on_click | The |
name | The name of this |
Union field icons . The icon can be specified by an Icon enum or a URL. icons can be only one of the following: | |
icon | The icon specified by an |
icon_url | The icon specified by a URL. |
KeyValue
A UI element contains a key (label) and a value (content). This element can also contain some actions such as onclick
button.
فیلدها | |
---|---|
top_label | The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
content | The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
content_multiline | If the content should be multiline. |
bottom_label | The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
on_click | The |
Union field icons . At least one of icons, top_label and bottom_label must be defined. icons can be only one of the following: | |
icon | An enum value that's replaced by the Chat API with the corresponding icon image. |
icon_url | The icon specified by a URL. |
Union field control . A control widget. You can set either button or switch_widget , but not both. control can be only one of the following: | |
button | A button that can be clicked to trigger an action. |
OnClick
An onclick
action (for example, open a link).
فیلدها | |
---|---|
Union field | |
action | A form action is triggered by this |
open_link | This |
OpenLink
A link that opens a new window.
فیلدها | |
---|---|
url | The URL to open. |
دکمه متن
A button with text and onclick
action.
فیلدها | |
---|---|
text | The text of the button. |
on_click | The |
TextParagraph
A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .
فیلدها | |
---|---|
text | |
شاخص
-
ChatService
(interface) -
AccessoryWidget
(message) -
ActionResponse
(message) -
ActionResponse.ResponseType
(enum) -
ActionResponse.SelectionItems
(message) -
ActionResponse.UpdatedWidget
(message) -
ActionStatus
(message) -
Annotation
(message) -
AnnotationType
(enum) -
AppCommandMetadata
(message) -
AppCommandMetadata.AppCommandType
(enum) -
AttachedGif
(message) -
Attachment
(message) -
Attachment.Source
(enum) -
AttachmentDataRef
(message) -
CalendarEventLinkData
(message) -
CardWithId
(message) -
ChatSpaceLinkData
(message) -
CompleteImportSpaceRequest
(message) -
CompleteImportSpaceResponse
(message) -
ContextualAddOnMarkup
(message) -
ContextualAddOnMarkup.Card
(message) -
ContextualAddOnMarkup.Card.CardAction
(message) -
ContextualAddOnMarkup.Card.CardHeader
(message) -
ContextualAddOnMarkup.Card.CardHeader.ImageStyle
(enum) -
ContextualAddOnMarkup.Card.Section
(message) -
CreateCustomEmojiRequest
(message) -
CreateMembershipRequest
(message) -
CreateMessageRequest
(message) -
CreateMessageRequest.MessageReplyOption
(enum) -
CreateReactionRequest
(message) -
CreateSpaceRequest
(message) -
CustomEmoji
(message) -
CustomEmoji.CustomEmojiPayload
(message) -
CustomEmojiMetadata
(message) -
DeleteCustomEmojiRequest
(message) -
DeleteMembershipRequest
(message) -
DeleteMessageRequest
(message) -
DeleteReactionRequest
(message) -
DeleteSpaceRequest
(message) -
DeletionMetadata
(message) -
DeletionMetadata.DeletionType
(enum) -
Dialog
(message) -
DialogAction
(message) -
DriveDataRef
(message) -
DriveLinkData
(message) -
Emoji
(message) -
EmojiReactionSummary
(message) -
FindDirectMessageRequest
(message) -
GetAttachmentRequest
(message) -
GetCustomEmojiRequest
(message) -
GetMembershipRequest
(message) -
GetMessageRequest
(message) -
GetSpaceEventRequest
(message) -
GetSpaceNotificationSettingRequest
(message) -
GetSpaceReadStateRequest
(message) -
GetSpaceRequest
(message) -
GetThreadReadStateRequest
(message) -
Group
(message) -
HistoryState
(enum) -
ListCustomEmojisRequest
(message) -
ListCustomEmojisResponse
(message) -
ListMembershipsRequest
(message) -
ListMembershipsResponse
(message) -
ListMessagesRequest
(message) -
ListMessagesResponse
(message) -
ListReactionsRequest
(message) -
ListReactionsResponse
(message) -
ListSpaceEventsRequest
(message) -
ListSpaceEventsResponse
(message) -
ListSpacesRequest
(message) -
ListSpacesResponse
(message) -
MatchedUrl
(message) -
MeetSpaceLinkData
(message) -
MeetSpaceLinkData.HuddleStatus
(enum) -
MeetSpaceLinkData.Type
(enum) -
Membership
(message) -
Membership.MembershipRole
(enum) -
Membership.MembershipState
(enum) -
MembershipBatchCreatedEventData
(message) -
MembershipBatchDeletedEventData
(message) -
MembershipBatchUpdatedEventData
(message) -
MembershipCreatedEventData
(message) -
MembershipDeletedEventData
(message) -
MembershipUpdatedEventData
(message) -
Message
(message) -
MessageBatchCreatedEventData
(message) -
MessageBatchDeletedEventData
(message) -
MessageBatchUpdatedEventData
(message) -
MessageCreatedEventData
(message) -
MessageDeletedEventData
(message) -
MessageUpdatedEventData
(message) -
QuotedMessageMetadata
(message) -
Reaction
(message) -
ReactionBatchCreatedEventData
(message) -
ReactionBatchDeletedEventData
(message) -
ReactionCreatedEventData
(message) -
ReactionDeletedEventData
(message) -
RichLinkMetadata
(message) -
RichLinkMetadata.RichLinkType
(enum) -
SearchSpacesRequest
(message) -
SearchSpacesResponse
(message) -
SetUpSpaceRequest
(message) -
SlashCommand
(message) -
SlashCommandMetadata
(message) -
SlashCommandMetadata.Type
(enum) -
Space
(message) -
Space.AccessSettings
(message) -
Space.AccessSettings.AccessState
(enum) -
Space.MembershipCount
(message) -
Space.PermissionSetting
(message) -
Space.PermissionSettings
(message) -
Space.PredefinedPermissionSettings
(enum) -
Space.SpaceDetails
(message) -
Space.SpaceThreadingState
(enum) -
Space.SpaceType
(enum) -
Space.Type
(enum) -
SpaceBatchUpdatedEventData
(message) -
SpaceEvent
(message) -
SpaceNotificationSetting
(message) -
SpaceNotificationSetting.MuteSetting
(enum) -
SpaceNotificationSetting.NotificationSetting
(enum) -
SpaceReadState
(message) -
SpaceUpdatedEventData
(message) -
Thread
(message) -
ThreadReadState
(message) -
UpdateMembershipRequest
(message) -
UpdateMessageRequest
(message) -
UpdateSpaceNotificationSettingRequest
(message) -
UpdateSpaceReadStateRequest
(message) -
UpdateSpaceRequest
(message) -
User
(message) -
User.Type
(enum) -
UserMentionMetadata
(message) -
UserMentionMetadata.Type
(enum) -
WidgetMarkup
(message) -
WidgetMarkup.Button
(message) -
WidgetMarkup.FormAction
(message) -
WidgetMarkup.FormAction.ActionParameter
(message) -
WidgetMarkup.Icon
(enum) -
WidgetMarkup.Image
(message) -
WidgetMarkup.ImageButton
(message) -
WidgetMarkup.KeyValue
(message) -
WidgetMarkup.OnClick
(message) -
WidgetMarkup.OpenLink
(message) -
WidgetMarkup.TextButton
(message) -
WidgetMarkup.TextParagraph
(message)
ChatService
Enables developers to build Chat apps and integrations on Google Chat Platform.
CompleteImportSpace |
---|
Completes the import process for the specified space and makes it visible to users. Requires user authentication and domain-wide delegation with the authorization scope :
For more information, see Authorize Google Chat apps to import data .
|
CreateCustomEmoji |
---|
Creates a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions . Requires user authentication with the authorization scope :
|
CreateMembership |
---|
Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Supports the following types of authentication :
App authentication is not supported for the following use cases:
For example usage, see:
|
CreateMessage |
---|
Creates a message in a Google Chat space. For an example, see Send a message . Supports the following types of authentication :
Chat attributes the message sender differently depending on the type of authentication that you use in your request. The following image shows how Chat attributes a message when you use app authentication. Chat displays the Chat app as the message sender. The content of the message can contain text ( The following image shows how Chat attributes a message when you use user authentication. Chat displays the user as the message sender and attributes the Chat app to the message by displaying its name. The content of message can only contain text ( The maximum message size, including the message contents, is 32,000 bytes. For webhook requests, the response doesn't contain the full message. The response only populates the
|
CreateReaction |
---|
Creates a reaction and adds it to a message. For an example, see Add a reaction to a message . Requires user authentication with one of the following authorization scopes :
|
CreateSpace |
---|
Creates a space. Can be used to create a named space, or a group chat in Supports the following types of authentication :
When authenticating as an app, the When authenticating as an app, the Chat app is added as a member of the space. However, unlike human authentication, the Chat app is not added as a space manager. By default, the Chat app can be removed from the space by all space members. To allow only space managers to remove the app from a space, set Space membership upon creation depends on whether the space is created in
If you receive the error message
|
DeleteCustomEmoji |
---|
Deletes a custom emoji. By default, users can only delete custom emoji they created. Emoji managers assigned by the administrator can delete any custom emoji in the organization. See Learn about custom emojis in Google Chat . Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions . Requires user authentication with the authorization scope :
|
DeleteMembership |
---|
Deletes a membership. For an example, see Remove a user or a Google Chat app from a space . Supports the following types of authentication :
App authentication is not supported for the following use cases:
To delete memberships for space managers, the requester must be a space manager. If you're using app authentication the Chat app must be the space creator.
|
DeleteMessage |
---|
Deletes a message. For an example, see Delete a message . Supports the following types of authentication :
When using app authentication, requests can only delete messages created by the calling Chat app.
|
DeleteReaction |
---|
Deletes a reaction to a message. For an example, see Delete a reaction . Requires user authentication with one of the following authorization scopes :
|
DeleteSpace |
---|
Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see Delete a space . Supports the following types of authentication :
|
FindDirectMessage |
---|
Returns the existing direct message with the specified user. If no direct message space is found, returns a With app authentication , returns the direct message space between the specified user and the calling Chat app. With user authentication , returns the direct message space between the specified user and the authenticated user. Supports the following types of authentication :
|
GetAttachment |
---|
Gets the metadata of a message attachment. The attachment data is fetched using the media API . For an example, see Get metadata about a message attachment . Requires app authentication with the authorization scope :
|
GetCustomEmoji |
---|
Returns details about a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions . Requires user authentication with one of the following authorization scopes :
|
GetMembership |
---|
Returns details about a membership. For an example, see Get details about a user's or Google Chat app's membership . Supports the following types of authentication :
|
GetMessage |
---|
Returns details about a message. For an example, see Get details about a message . Supports the following types of authentication :
Note: Might return a message from a blocked member or space.
|
GetSpace |
---|
Returns details about a space. For an example, see Get details about a space . Supports the following types of authentication :
App authentication has the following limitations:
|
GetSpaceEvent |
---|
Returns an event from a Google Chat space. The event payload contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated Note: The Supports the following types of authentication with an authorization scope appropriate for reading the requested data:
To get an event, the authenticated caller must be a member of the space. For an example, see Get details about an event from a Google Chat space .
|
GetSpaceNotificationSetting |
---|
Gets the space notification setting. For an example, see Get the caller's space notification setting . Requires user authentication with the authorization scope :
|
GetSpaceReadState |
---|
Returns details about a user's read state within a space, used to identify read and unread messages. For an example, see Get details about a user's space read state . Requires user authentication with one of the following authorization scopes :
|
GetThreadReadState |
---|
Returns details about a user's read state within a thread, used to identify read and unread messages. For an example, see Get details about a user's thread read state . Requires user authentication with one of the following authorization scopes :
|
ListCustomEmojis |
---|
Lists custom emojis visible to the authenticated user. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions . Requires user authentication with one of the following authorization scopes :
|
ListMemberships |
---|
Lists memberships in a space. For an example, see List users and Google Chat apps in a space . Listing memberships with app authentication lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with User authentication lists memberships in spaces that the authenticated user has access to. Supports the following types of authentication :
|
ListMessages |
---|
Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. System messages, like those announcing new space members, aren't included. If you list messages from a space with no messages, the response is an empty object. When using a REST/HTTP interface, the response contains an empty JSON object, Supports the following types of authentication :
|
ListReactions |
---|
Lists reactions to a message. For an example, see List reactions for a message . Requires user authentication with one of the following authorization scopes :
|
ListSpaceEvents |
---|
Lists events from a Google Chat space. For each event, the payload contains the most recent version of the Chat resource. For example, if you list events about new space members, the server returns Supports the following types of authentication with an authorization scope appropriate for reading the requested data:
To list events, the authenticated caller must be a member of the space. For an example, see List events from a Google Chat space .
|
ListSpaces |
---|
Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see List spaces . Supports the following types of authentication :
To list all named spaces by Google Workspace organization, use the
|
SearchSpaces |
---|
Returns a list of spaces in a Google Workspace organization based on an administrator's search. In the request, set Requires user authentication with administrator privileges and one of the following authorization scopes :
|
SetUpSpace |
---|
Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see Set up a space with initial members . To specify the human members to add, add memberships with the appropriate To specify the Google groups to add, add memberships with the appropriate For a named space or group chat, if the caller blocks, or is blocked by some members, or doesn't have permission to add some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive the error message Requires user authentication with one of the following authorization scopes :
|
UpdateMembership |
---|
Updates a membership. For an example, see Update a user's membership in a space . Supports the following types of authentication :
|
UpdateMessage |
---|
Updates a message. There's a difference between the Supports the following types of authentication :
When using app authentication, requests can only update messages created by the calling Chat app.
|
UpdateSpace |
---|
Updates a space. For an example, see Update a space . If you're updating the Supports the following types of authentication :
App authentication has the following limitations:
|
UpdateSpaceNotificationSetting |
---|
Updates the space notification setting. For an example, see Update the caller's space notification setting . Requires user authentication with the authorization scope :
|
UpdateSpaceReadState |
---|
Updates a user's read state within a space, used to identify read and unread messages. For an example, see Update a user's space read state . Requires user authentication with the authorization scope :
|
AccessoryWidget
One or more interactive widgets that appear at the bottom of a message. For details, see Add interactive widgets at the bottom of a message .
فیلدها | |
---|---|
Union field action . The type of action. action can be only one of the following: | |
button_list | A list of buttons. |
ActionResponse
Parameters that a Chat app can use to configure how its response is posted.
فیلدها | |
---|---|
type | فقط ورودی The type of Chat app response. |
url | فقط ورودی URL for users to authenticate or configure. (Only for |
dialog_action | فقط ورودی A response to an interaction event related to a dialog . Must be accompanied by |
updated_widget | فقط ورودی The response of the updated widget. |
ResponseType
The type of Chat app response.
Enums | |
---|---|
TYPE_UNSPECIFIED | Default type that's handled as NEW_MESSAGE . |
NEW_MESSAGE | Post as a new message in the topic. |
UPDATE_MESSAGE | Update the Chat app's message. This is only permitted on a CARD_CLICKED event where the message sender type is BOT . |
UPDATE_USER_MESSAGE_CARDS | Update the cards on a user's message. This is only permitted as a response to a MESSAGE event with a matched url, or a CARD_CLICKED event where the message sender type is HUMAN . Text is ignored. |
REQUEST_CONFIG | Privately ask the user for additional authentication or configuration. |
DIALOG | Presents a dialog . |
UPDATE_WIDGET | Widget text autocomplete options query. |
SelectionItems
List of widget autocomplete results.
فیلدها | |
---|---|
items[] | An array of the SelectionItem objects. |
UpdatedWidget
For selectionInput
widgets, returns autocomplete suggestions for a multiselect menu.
فیلدها | |
---|---|
widget | The ID of the updated widget. The ID must match the one for the widget that triggered the update request. |
Union field updated_widget . The widget updated in response to a user action. updated_widget can be only one of the following: | |
suggestions | List of widget autocomplete results |
ActionStatus
Represents the status for a request to either invoke or submit a dialog .
فیلدها | |
---|---|
status_code | The status code. |
user_facing_message | The message to send users about the status of their request. If unset, a generic message based on the |
حاشیه نویسی
فقط خروجی Annotations can be associated with the plain-text body of the message or with chips that link to Google Workspace resources like Google Docs or Sheets with start_index
and length
of 0. To add basic formatting to a text message, see Format text messages .
Example plain-text message body:
Hello @FooBot how are you!"
The corresponding annotations metadata:
"annotations":[{
"type":"USER_MENTION",
"startIndex":6,
"length":7,
"userMention": {
"user": {
"name":"users/{user}",
"displayName":"FooBot",
"avatarUrl":"https://goo.gl/aeDtrS",
"type":"BOT"
},
"type":"MENTION"
}
}]
فیلدها | |
---|---|
type | The type of this annotation. |
length | Length of the substring in the plain-text message body this annotation corresponds to. If not present, indicates a length of 0. |
start_index | Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to. |
Union field metadata . Additional metadata about the annotation. metadata can be only one of the following: | |
user_mention | The metadata of user mention. |
slash_command | The metadata for a slash command. |
rich_link_metadata | The metadata for a rich link. |
custom_emoji_metadata | The metadata for a custom emoji. |
AnnotationType
Type of the annotation.
Enums | |
---|---|
ANNOTATION_TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
USER_MENTION | A user is mentioned. |
SLASH_COMMAND | A slash command is invoked. |
RICH_LINK | A rich link annotation. |
CUSTOM_EMOJI | A custom emoji annotation. |
AppCommandMetadata
Metadata about a Chat app command .
فیلدها | |
---|---|
app_command_id | The ID for the command specified in the Chat API configuration. |
app_command_type | The type of Chat app command. |
AppCommandType
The type of Chat app command. For details, see Types of Chat app commands .
Enums | |
---|---|
APP_COMMAND_TYPE_UNSPECIFIED | مقدار پیش فرض نامشخص |
SLASH_COMMAND | A slash command. The user sends the command in a Chat message. |
QUICK_COMMAND | A quick command. The user selects the command from the Chat menu in the message reply area. |
AttachedGif
A GIF image that's specified by a URL.
فیلدها | |
---|---|
uri | فقط خروجی The URL that hosts the GIF image. |
پیوست
An attachment in Google Chat.
فیلدها | |
---|---|
name | اختیاری. Resource name of the attachment, in the form |
content_name | فقط خروجی The original file name for the content, not the full path. |
content_type | فقط خروجی The content type (MIME type) of the file. |
thumbnail_uri | فقط خروجی The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content. |
download_uri | فقط خروجی The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content. |
source | فقط خروجی The source of the attachment. |
Union field data_ref . The data reference to the attachment. data_ref can be only one of the following: | |
attachment_data_ref | اختیاری. A reference to the attachment data. This field is used to create or update messages with attachments, or with the media API to download the attachment data. |
drive_data_ref | فقط خروجی A reference to the Google Drive attachment. This field is used with the Google Drive API. |
منبع
The source of the attachment.
Enums | |
---|---|
SOURCE_UNSPECIFIED | رزرو شده است. |
DRIVE_FILE | The file is a Google Drive file. |
UPLOADED_CONTENT | The file is uploaded to Chat. |
AttachmentDataRef
A reference to the attachment data.
فیلدها | |
---|---|
resource_name | اختیاری. The resource name of the attachment data. This field is used with the media API to download the attachment data. |
attachment_upload_token | اختیاری. Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments. |
CalendarEventLinkData
Data for Calendar event links.
فیلدها | |
---|---|
calendar_id | The Calendar identifier of the linked Calendar. |
event_id | The Event identifier of the linked Calendar event. |
CardWithId
A card in a Google Chat message.
Only Chat apps can create cards. If your Chat app authenticates as a user , the message can't contain cards.
Design and preview cards with the Card Builder.
Open the Card Builderفیلدها | |
---|---|
card_id | Required if the message contains multiple cards. A unique identifier for a card in a message. |
card | یک کارت Maximum size is 32 KB. |
ChatSpaceLinkData
Data for Chat space links.
فیلدها | |
---|---|
space | The space of the linked Chat space resource. Format: |
thread | The thread of the linked Chat space resource. Format: |
message | The message of the linked Chat space resource. Format: |
CompleteImportSpaceRequest
Request message for completing the import process for a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the import mode space. Format: |
CompleteImportSpaceResponse
Response message for completing the import process for a space.
فیلدها | |
---|---|
space | The import mode space. |
ContextualAddOnMarkup
This type has no fields.
The markup for developers to specify the contents of a contextual AddOn.
کارت
A card is a UI element that can contain UI widgets such as text and images.
فیلدها | |
---|---|
header | The header of the card. A header usually contains a title and an image. |
sections[] | Sections are separated by a line divider. |
card_actions[] | The actions of this card. |
name | Name of the card. |
CardAction
A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
Not supported by Google Chat apps.
فیلدها | |
---|---|
action_label | The label used to be displayed in the action menu item. |
on_click | The onclick action for this action item. |
سربرگ کارت
فیلدها | |
---|---|
title | The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines. |
subtitle | The subtitle of the card header. |
image_style | The image's type (for example, square border or circular border). |
image_url | The URL of the image in the card header. |
ImageStyle
Enums | |
---|---|
IMAGE_STYLE_UNSPECIFIED | |
IMAGE | Square border. |
AVATAR | Circular border. |
بخش
A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).
فیلدها | |
---|---|
header | The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
widgets[] | A section must contain at least one widget. |
CreateCustomEmojiRequest
A request to create a custom emoji.
فیلدها | |
---|---|
custom_emoji | مورد نیاز. The custom emoji to create. |
CreateMembershipRequest
Request message for creating a membership.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space for which to create the membership. Format: spaces/{space} |
membership | مورد نیاز. The membership relation to create. The When a Chat app creates a membership relation for a human user, it must use certain authorization scopes and set specific values for certain fields:
Inviting users external to the Workspace organization that owns the space requires user authentication . When a Chat app creates a membership relation for itself, it must authenticate as a user and use the |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Creating app memberships or creating memberships for users outside the administrator's Google Workspace organization isn't supported using admin access. |
CreateMessageRequest
Creates a message.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space in which to create a message. Format: |
message | مورد نیاز. Message body. |
thread_key | اختیاری. Deprecated: Use |
request_id | اختیاری. 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. |
message_reply_option | اختیاری. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. When responding to user interactions , this field is ignored. For interactions within a thread, the reply is created in the same thread. Otherwise, the reply is created as a new thread. |
message_id | اختیاری. A custom ID for a message. Lets Chat apps get, update, or delete a message without needing to store the system-assigned ID in the message's resource name (represented in the message The value for this field must meet the following requirements:
For details, see Name a message . |
MessageReplyOption
Specifies how to reply to a message. More states might be added in the future.
Enums | |
---|---|
MESSAGE_REPLY_OPTION_UNSPECIFIED | پیش فرض Starts a new thread. Using this option ignores any thread ID or that's included. |
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD | Creates the message as a reply to the thread specified by thread ID or . 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 . If a new thread_key is used, a new thread is created. If the message creation fails, a NOT_FOUND error is returned instead. |
CreateReactionRequest
Creates a reaction to a message.
فیلدها | |
---|---|
parent | مورد نیاز. The message where the reaction is created. Format: |
reaction | مورد نیاز. The reaction to create. |
CreateSpaceRequest
A request to create a named space with no members.
فیلدها | |
---|---|
space | مورد نیاز. The If you receive the error message The space |
request_id | اختیاری. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error. |
CustomEmoji
Represents a custom emoji .
فیلدها | |
---|---|
name | Identifier. The resource name of the custom emoji, assigned by the server. Format: |
uid | فقط خروجی Unique key for the custom emoji resource. |
emoji_name | اختیاری. تغییرناپذیر. User-provided name for the custom emoji, which is unique within the organization. Required when the custom emoji is created, output only otherwise. Emoji names must start and end with colons, must be lowercase and can only contain alphanumeric characters, hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot be used consecutively. Example: |
temporary_image_uri | فقط خروجی A temporary image URL for the custom emoji, valid for at least 10 minutes. Note that this is not populated in the response when the custom emoji is created. |
payload | اختیاری. فقط ورودی Payload data. Required when the custom emoji is created. |
CustomEmojiPayload
Payload data for the custom emoji.
فیلدها | |
---|---|
file_content | مورد نیاز. فقط ورودی The image used for the custom emoji. The payload must be under 256 KB and the dimension of the image must be square and between 64 and 500 pixels. The restrictions are subject to change. |
filename | مورد نیاز. فقط ورودی The image file name. Supported file extensions: |
CustomEmojiMetadata
Annotation metadata for custom emoji.
فیلدها | |
---|---|
custom_emoji | The custom emoji. |
DeleteCustomEmojiRequest
Request for deleting a custom emoji.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the custom emoji to delete. Format: You can use the emoji name as an alias for |
DeleteMembershipRequest
Request to delete a membership in a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships. When deleting a human membership, requires the When deleting an app membership, requires the Format: |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Deleting app memberships in a space isn't supported using admin access. |
DeleteMessageRequest
Request to delete a message.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the message. Format: If you've set a custom ID for your message, you can use the value from the |
force | اختیاری. When Only applies when authenticating as a user . Has no effect when authenticating as a Chat app . |
DeleteReactionRequest
Deletes a reaction to a message.
فیلدها | |
---|---|
name | مورد نیاز. Name of the reaction to delete. Format: |
DeleteSpaceRequest
Request for deleting a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the space to delete. Format: |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the |
DeletionMetadata
Information about a deleted message. A message is deleted when delete_time
is set.
فیلدها | |
---|---|
deletion_type | Indicates who deleted the message. |
DeletionType
Who deleted the message and how it was deleted. More values may be added in the future. See Edit or delete a message in Google Chat for details on when messages can be deleted.
Enums | |
---|---|
DELETION_TYPE_UNSPECIFIED | This value is unused. |
CREATOR | User deleted their own message. |
SPACE_OWNER | A space manager deleted the message. |
ADMIN | A Google Workspace administrator deleted the message. Administrators can delete any message in the space, including messages sent by any space member or Chat app. |
APP_MESSAGE_EXPIRY | A Chat app deleted its own message when it expired. |
CREATOR_VIA_APP | A Chat app deleted the message on behalf of the creator (using user authentication). |
SPACE_OWNER_VIA_APP | A Chat app deleted the message on behalf of a space manager (using user authentication). |
SPACE_MEMBER | A member of the space deleted the message. Users can delete messages sent by apps. |
گفتگو
Wrapper around the card body of the dialog.
فیلدها | |
---|---|
body | فقط ورودی Body of the dialog, which is rendered in a modal. Google Chat apps don't support the following card entities: |
DialogAction
Contains a dialog and request status code.
فیلدها | |
---|---|
action_status | فقط ورودی Status for a request to either invoke or submit a dialog . Displays a status and message to users, if necessary. For example, in case of an error or success. |
Union field action . Action to perform. action can be only one of the following: | |
dialog | فقط ورودی Dialog for the request. |
DriveDataRef
A reference to the data of a drive attachment.
فیلدها | |
---|---|
drive_file_id | The ID for the drive file. Use with the Drive API. |
DriveLinkData
Data for Google Drive links.
فیلدها | |
---|---|
drive_data_ref | A DriveDataRef which references a Google Drive file. |
mime_type | The mime type of the linked Google Drive resource. |
ایموجی
An emoji that is used as a reaction to a message.
فیلدها | |
---|---|
Union field content . مورد نیاز. The content of the emoji. content can be only one of the following: | |
unicode | اختیاری. A basic emoji represented by a unicode string. |
custom_emoji | A custom emoji. |
EmojiReactionSummary
The number of people who reacted to a message with a specific emoji.
فیلدها | |
---|---|
emoji | فقط خروجی Emoji associated with the reactions. |
reaction_count | فقط خروجی The total number of reactions using the associated emoji. |
FindDirectMessageRequest
A request to get direct message space based on the user resource.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the user to find direct message with. Format: |
GetAttachmentRequest
Request to get an attachment.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the attachment, in the form |
GetCustomEmojiRequest
A request to return a single custom emoji.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the custom emoji. Format: You can use the emoji name as an alias for |
GetMembershipRequest
Request to get a membership of a space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the membership to retrieve. To get the app's own membership by using user authentication , you can optionally use Format: You can use the user's email as an alias for |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Getting app memberships in a space isn't supported when using admin access. |
GetMessageRequest
Request to get a message.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the message. Format: If you've set a custom ID for your message, you can use the value from the |
GetSpaceEventRequest
Request message for getting a space event.
فیلدها | |
---|---|
name | مورد نیاز. The resource name of the space event. Format: |
GetSpaceNotificationSettingRequest
Request message to get space notification setting. Only supports getting notification setting for the calling user.
فیلدها | |
---|---|
name | مورد نیاز. Format: users/{user}/spaces/{space}/spaceNotificationSetting
|
GetSpaceReadStateRequest
Request message for GetSpaceReadState API.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the space read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following:
Format: users/{user}/spaces/{space}/spaceReadState |
GetSpaceRequest
A request to return a single space.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the space, in the form Format: |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the |
GetThreadReadStateRequest
Request message for GetThreadReadStateRequest API.
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the thread read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following:
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState |
گروه
A Google Group in Google Chat.
فیلدها | |
---|---|
name | Resource name for a Google Group. Represents a group in Cloud Identity Groups API. Format: groups/{group} |
HistoryState
The history state for messages and spaces. Specifies how long messages and conversation threads are kept after creation.
Enums | |
---|---|
HISTORY_STATE_UNSPECIFIED | مقدار پیش فرض استفاده نکنید. |
HISTORY_OFF | History off. Messages and threads are kept for 24 hours . |
HISTORY_ON | History on. The organization's Vault retention rules specify for how long messages and threads are kept. |
ListCustomEmojisRequest
A request to return a list of custom emojis.
فیلدها | |
---|---|
page_size | اختیاری. The maximum number of custom emojis returned. The service can return fewer custom emojis than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200. |
page_token | اختیاری. (If resuming from a previous query.) A page token received from a previous list custom emoji call. Provide this to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results. |
filter | اختیاری. A query filter. Supports filtering by creator. To filter by creator, you must specify a valid value. Currently only For example, the following query returns custom emojis created by the caller:
Invalid queries are rejected with an |
ListCustomEmojisResponse
A response to list custom emojis.
فیلدها | |
---|---|
custom_emojis[] | Unordered list. List of custom emojis. |
next_page_token | A token that you can send as |
ListMembershipsRequest
Request message for listing memberships.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space for which to fetch a membership list. Format: spaces/{space} |
page_size | اختیاری. The maximum number of memberships to return. The service might return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. Negative values return an |
page_token | اختیاری. A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
filter | اختیاری. A query filter. You can filter memberships by a member's role ( To filter by role, set To filter by type, set To filter by both role and type, use the Either For example, the following queries are valid:
The following queries are invalid:
Invalid queries are rejected by the server with an |
show_groups | اختیاری. When |
show_invited | اختیاری. When Currently requires user authentication . |
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires either the Listing app memberships in a space isn't supported when using admin access. |
ListMembershipsResponse
Response to list memberships of the space.
فیلدها | |
---|---|
memberships[] | Unordered list. List of memberships in the requested (or first) page. |
next_page_token | A token that you can send as |
ListMessagesRequest
Lists messages in the specified space, that the user is a member of.
فیلدها | |
---|---|
parent | مورد نیاز. The resource name of the space to list messages from. Format: |
page_size | اختیاری. The maximum number of messages returned. The service might return fewer messages than this value. If unspecified, at most 25 are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. Negative values return an |
page_token | اختیاری. A page token received from a previous list messages call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
filter | اختیاری. A query filter. You can filter messages by date ( To filter messages by the date they were created, specify the To filter by thread, specify the To filter by both thread and date, use the For example, the following queries are valid:
Invalid queries are rejected by the server with an |
order_by | اختیاری. How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows:
The default ordering is |
show_deleted | اختیاری. Whether to include deleted messages. Deleted messages include deleted time and metadata about their deletion, but message content is unavailable. |
ListMessagesResponse
Response message for listing messages.
فیلدها | |
---|---|
messages[] | List of messages. |
next_page_token | You can send a token as |
ListReactionsRequest
Lists reactions to a message.
فیلدها | |
---|---|
parent | مورد نیاز. The message users reacted to. Format: |
page_size | اختیاری. The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200. |
page_token | اختیاری. (If resuming from a previous query.) A page token received from a previous list reactions call. Provide this to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results. |
filter | اختیاری. A query filter. You can filter reactions by emoji (either To filter reactions for multiple emojis or users, join similar fields with the To filter reactions by emoji and user, use the If your query uses both For example, the following queries are valid:
The following queries are invalid:
Invalid queries are rejected with an |
ListReactionsResponse
Response to a list reactions request.
فیلدها | |
---|---|
reactions[] | List of reactions in the requested (or first) page. |
next_page_token | Continuation token to retrieve the next page of results. It's empty for the last page of results. |
ListSpaceEventsRequest
Request message for listing space events.
فیلدها | |
---|---|
parent | مورد نیاز. Resource name of the Google Chat space where the events occurred. Format: |
page_size | اختیاری. The maximum number of space events returned. The service might return fewer than this value. Negative values return an |
page_token | اختیاری. A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to list space events must match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
filter | مورد نیاز. A query filter. You must specify at least one event type ( Optionally, you can also filter by start time (
To specify a start or end time, use the equals For example, the following queries are valid:
The following queries are invalid:
Invalid queries are rejected by the server with an |
ListSpaceEventsResponse
Response message for listing space events.
فیلدها | |
---|---|
space_events[] | Results are returned in chronological order (oldest event first). Note: The |
next_page_token | Continuation token used to fetch more events. If this field is omitted, there are no subsequent pages. |
ListSpacesRequest
A request to list the spaces the caller is a member of.
فیلدها | |
---|---|
page_size | اختیاری. 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 1000. If you use a value more than 1000, it's automatically changed to 1000. Negative values return an |
page_token | اختیاری. 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. |
filter | اختیاری. A query filter. You can filter spaces by the space type ( To filter by space type, you must specify valid enum value, such as For example, the following queries are valid:
Invalid queries are rejected by the server with an |
ListSpacesResponse
The response for a list spaces request.
فیلدها | |
---|---|
spaces[] | List of spaces in the requested (or first) page. Note: The |
next_page_token | You can send a token as |
MatchedUrl
A matched URL in a Chat message. Chat apps can preview matched URLs. For more information, see Preview links .
فیلدها | |
---|---|
url | فقط خروجی The URL that was matched. |
MeetSpaceLinkData
Data for Meet space links.
فیلدها | |
---|---|
meeting_code | Meeting code of the linked Meet space. |
type | Indicates the type of the Meet space. |
huddle_status | اختیاری. فقط خروجی If the Meet is a Huddle, indicates the status of the huddle. Otherwise, this is unset. |
HuddleStatus
The status of the huddle
Enums | |
---|---|
HUDDLE_STATUS_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
STARTED | The huddle has started. |
ENDED | The huddle has ended. In this case the Meet space URI and identifiers will no longer be valid. |
MISSED | The huddle has been missed. In this case the Meet space URI and identifiers will no longer be valid. |
تایپ کنید
The type of the Meet space.
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
MEETING | The Meet space is a meeting. |
HUDDLE | The Meet space is a huddle. |
عضویت
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
فیلدها | |
---|---|
name | Identifier. Resource name of the membership, assigned by the server. Format: |
state | فقط خروجی State of the membership. |
role | اختیاری. User's role within a Chat space, which determines their permitted actions in the space. This field can only be used as input in |
create_time | اختیاری. تغییرناپذیر. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces. |
delete_time | اختیاری. تغییرناپذیر. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces. |
Union field memberType . Member associated with this membership. Other member types might be supported in the future. memberType can be only one of the following: | |
member | اختیاری. The Google Chat user or app the membership corresponds to. If your Chat app authenticates as a user , the output populates the user |
group_member | اختیاری. The Google Group the membership corresponds to. Reading or mutating memberships for Google Groups requires user authentication . |
MembershipRole
Represents a user's permitted actions in a Chat space. More enum values might be added in the future.
Enums | |
---|---|
MEMBERSHIP_ROLE_UNSPECIFIED | مقدار پیش فرض For users : they aren't a member of the space, but can be invited. For Google Groups : they're always assigned this role (other enum values might be used in the future). |
ROLE_MEMBER | A member of the space. In the Chat UI, this role is called Member. The user has basic permissions, like sending messages to the space. Managers and owners can grant members additional permissions in a space, including:
In direct messages and unnamed group conversations, everyone has this role. |
ROLE_MANAGER | A space owner. In the Chat UI, this role is called Owner. The user has the complete set of space permissions to manage the space, including:
Only supported in To learn more, see Learn more about your role as a space owner or manager . |
MembershipState
Specifies the member's relationship with a space. Other membership states might be supported in the future.
Enums | |
---|---|
MEMBERSHIP_STATE_UNSPECIFIED | مقدار پیش فرض استفاده نکنید. |
JOINED | The user is added to the space, and can participate in the space. |
INVITED | The user is invited to join the space, but hasn't joined it. |
NOT_A_MEMBER | The user doesn't belong to the space and doesn't have a pending invitation to join the space. |
MembershipBatchCreatedEventData
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
فیلدها | |
---|---|
memberships[] | A list of new memberships. |
MembershipBatchDeletedEventData
Event payload for multiple deleted memberships.
Event type: google.workspace.chat.membership.v1.batchDeleted
فیلدها | |
---|---|
memberships[] | A list of deleted memberships. |
MembershipBatchUpdatedEventData
Event payload for multiple updated memberships.
Event type: google.workspace.chat.membership.v1.batchUpdated
فیلدها | |
---|---|
memberships[] | A list of updated memberships. |
MembershipCreatedEventData
Event payload for a new membership.
Event type: google.workspace.chat.membership.v1.created
.
فیلدها | |
---|---|
membership | The new membership. |
MembershipDeletedEventData
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
فیلدها | |
---|---|
membership | The deleted membership. Only the |
MembershipUpdatedEventData
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
فیلدها | |
---|---|
membership | The updated membership. |
پیام
A message in a Google Chat space.
فیلدها | |
---|---|
name | Identifier. Resource name of the message. Format: Where If you set a custom ID when you create a message, you can use this ID to specify the message in a request by replacing |
sender | فقط خروجی The user who created the message. If your Chat app authenticates as a user , the output populates the user |
create_time | اختیاری. تغییرناپذیر. For spaces created in Chat, the time at which the message was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time. |
last_update_time | فقط خروجی The time at which the message was last edited by a user. If the message has never been edited, this field is empty. |
delete_time | فقط خروجی The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty. |
text | اختیاری. Plain-text body of the message. The first link to an image, video, or web page generates a preview chip . You can also @mention a Google Chat user , or everyone in the space. To learn about creating text messages, see Send a message . |
formatted_text | فقط خروجی Contains the message
For more information, see View text formatting sent in a message |
cards[] | Deprecated: Use Rich, formatted, and interactive cards that you can use to display UI elements such as: formatted texts, buttons, and clickable images. Cards are normally displayed below the plain-text body of the message. |
cards_v2[] | اختیاری. An array of cards . Only Chat apps can create cards. If your Chat app authenticates as a user , the messages can't contain cards. To learn how to create a message that contains cards, see Send a message . Design and preview cards with the Card Builder. Open the Card Builder |
annotations[] | فقط خروجی Annotations can be associated with the plain-text body of the message or with chips that link to Google Workspace resources like Google Docs or Sheets with |
thread | The thread the message belongs to. For example usage, see Start or reply to a message thread . |
space | فقط خروجی If your Chat app authenticates as a user , the output only populates the space |
fallback_text | اختیاری. A plain-text description of the message's cards, used when the actual cards can't be displayed—for example, mobile notifications. |
action_response | فقط ورودی Parameters that a Chat app can use to configure how its response is posted. |
argument_text | فقط خروجی Plain-text body of the message with all Chat app mentions stripped out. |
slash_command | فقط خروجی Slash command information, if applicable. |
attachment[] | اختیاری. User-uploaded attachment. |
matched_url | فقط خروجی A URL in |
thread_reply | فقط خروجی When If the space doesn't support reply in threads, this field is always |
client_assigned_message_id | اختیاری. A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the |
emoji_reaction_summaries[] | فقط خروجی The list of emoji reaction summaries on the message. |
private_message_viewer | اختیاری. تغییرناپذیر. Input for creating a message, otherwise output only. The user that can view the message. When set, the message is private and only visible to the specified user and the Chat app. To include this field in your request, you must call the Chat API using app authentication and omit the following: For details, see Send a message privately . |
deletion_metadata | فقط خروجی Information about a deleted message. A message is deleted when |
quoted_message_metadata | اختیاری. Information about a message that another message quotes. When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread. When you update a message, you can't add or replace the For example usage, see Quote another message . |
attached_gifs[] | فقط خروجی GIF images that are attached to the message. |
accessory_widgets[] | اختیاری. One or more interactive widgets that appear at the bottom of a message. You can add accessory widgets to messages that contain text, cards, or both text and cards. Not supported for messages that contain dialogs. For details, see Add interactive widgets at the bottom of a message . Creating a message with accessory widgets requires app authentication . |
MessageBatchCreatedEventData
Event payload for multiple new messages.
Event type: google.workspace.chat.message.v1.batchCreated
فیلدها | |
---|---|
messages[] | A list of new messages. |
MessageBatchDeletedEventData
Event payload for multiple deleted messages.
Event type: google.workspace.chat.message.v1.batchDeleted
فیلدها | |
---|---|
messages[] | A list of deleted messages. |
MessageBatchUpdatedEventData
Event payload for multiple updated messages.
Event type: google.workspace.chat.message.v1.batchUpdated
فیلدها | |
---|---|
messages[] | A list of updated messages. |
MessageCreatedEventData
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
فیلدها | |
---|---|
message | The new message. |
MessageDeletedEventData
Event payload for a deleted message.
Event type: google.workspace.chat.message.v1.deleted
فیلدها | |
---|---|
message | The deleted message. Only the |
MessageUpdatedEventData
Event payload for an updated message.
Event type: google.workspace.chat.message.v1.updated
فیلدها | |
---|---|
message | The updated message. |
QuotedMessageMetadata
Information about a message that another message quotes.
When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread.
When you update a message, you can't add or replace the quotedMessageMetadata
field, but you can remove it.
For example usage, see Quote another message .
فیلدها | |
---|---|
name | مورد نیاز. Resource name of the message that is quoted. Format: |
last_update_time | مورد نیاز. The timestamp when the quoted message was created or when the quoted message was last updated. If the message was edited, use this field, If |
واکنش
A reaction to a message.
فیلدها | |
---|---|
name | Identifier. The resource name of the reaction. Format: |
user | فقط خروجی The user who created the reaction. |
emoji | مورد نیاز. The emoji used in the reaction. |
ReactionBatchCreatedEventData
Event payload for multiple new reactions.
Event type: google.workspace.chat.reaction.v1.batchCreated
فیلدها | |
---|---|
reactions[] | A list of new reactions. |
ReactionBatchDeletedEventData
Event payload for multiple deleted reactions.
Event type: google.workspace.chat.reaction.v1.batchDeleted
فیلدها | |
---|---|
reactions[] | A list of deleted reactions. |
ReactionCreatedEventData
Event payload for a new reaction.
Event type: google.workspace.chat.reaction.v1.created
فیلدها | |
---|---|
reaction | The new reaction. |
ReactionDeletedEventData
Event payload for a deleted reaction.
Type: google.workspace.chat.reaction.v1.deleted
فیلدها | |
---|---|
reaction | The deleted reaction. |
RichLinkMetadata
A rich link to a resource. Rich links can be associated with the plain-text body of the message or represent chips that link to Google Workspace resources like Google Docs or Sheets with start_index
and length
of 0.
فیلدها | |
---|---|
uri | The URI of this link. |
rich_link_type | The rich link type. |
Union field data . Data for the linked resource. data can be only one of the following: | |
drive_link_data | Data for a drive link. |
chat_space_link_data | Data for a chat space link. |
meet_space_link_data | Data for a Meet space link. |
calendar_event_link_data | Data for a Calendar event link. |
RichLinkType
The rich link type. More types might be added in the future.
Enums | |
---|---|
RICH_LINK_TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
DRIVE_FILE | A Google Drive rich link type. |
CHAT_SPACE | A Chat space rich link type. For example, a space smart chip. |
MEET_SPACE | A Meet message rich link type. For example, a Meet chip. |
CALENDAR_EVENT | A Calendar message rich link type. For example, a Calendar chip. |
SearchSpacesRequest
Request to search for a list of spaces based on a query.
فیلدها | |
---|---|
use_admin_access | When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires either the This method currently only supports admin access, thus only |
page_size | The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000. |
page_token | A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results. |
query | مورد نیاز. A search query. You can search by using the following parameters:
Across different fields, only Among the same field, The following example queries are valid:
|
order_by | اختیاری. How the list of spaces is ordered. Supported attributes to order by are:
Valid ordering operation values are:
The supported syntax are:
|
SearchSpacesResponse
Response with a list of spaces corresponding to the search spaces request.
فیلدها | |
---|---|
spaces[] | A page of the requested spaces. |
next_page_token | A token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages. |
total_size | The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate. |
SetUpSpaceRequest
Request to create a space and add specified users to it.
فیلدها | |
---|---|
space | مورد نیاز. The To create a space, set To create a group chat, set To create a 1:1 conversation between humans, set To create an 1:1 conversation between a human and the calling Chat app, set If a |
request_id | اختیاری. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error. |
memberships[] | اختیاری. The Google Chat users or groups to invite to join the space. Omit the calling user, as they are added automatically. The set currently allows up to 49 memberships (in addition to the caller). For human membership, the For Google group membership, the Optional when setting Required when setting Required when setting Must be empty when creating a 1:1 conversation between a human and the calling Chat app (when setting |
SlashCommand
Metadata about a slash command in Google Chat.
فیلدها | |
---|---|
command_id | The ID of the slash command. |
SlashCommandMetadata
Annotation metadata for slash commands (/).
فیلدها | |
---|---|
bot | The Chat app whose command was invoked. |
type | The type of slash command. |
command_name | The name of the invoked slash command. |
command_id | The command ID of the invoked slash command. |
triggers_dialog | Indicates whether the slash command is for a dialog. |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
ADD | Add Chat app to space. |
INVOKE | Invoke slash command in space. |
فضا
A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.
فیلدها | |
---|---|
name | Identifier. Resource name of the space. Format: Where |
type | فقط خروجی Deprecated: Use |
space_type | اختیاری. The type of space. Required when creating a space or updating the space type of a space. Output only for other usage. |
single_user_bot_dm | اختیاری. Whether the space is a DM between a Chat app and a single human. |
threaded | فقط خروجی Deprecated: Use |
display_name | اختیاری. The space's display name. Required when creating a space with a For direct messages, this field might be empty. Supports up to 128 characters. |
external_user_allowed | اختیاری. تغییرناپذیر. Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions:
For existing spaces, this field is output only. |
space_threading_state | فقط خروجی The threading state in the Chat space. |
space_details | اختیاری. Details about the space including description and rules. |
space_history_state | اختیاری. The message history state for messages and threads in this space. |
import_mode | اختیاری. Whether this space is created in Creating a space in |
create_time | اختیاری. تغییرناپذیر. For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time. Only populated in the output when |
last_active_time | فقط خروجی Timestamp of the last message in the space. |
admin_installed | فقط خروجی For direct message (DM) spaces with a Chat app, whether the space was created by a Google Workspace administrator. Administrators can install and set up a direct message with a Chat app on behalf of users in their organization. To support admin install, your Chat app must feature direct messaging. |
membership_count | فقط خروجی The count of joined memberships grouped by member type. Populated when the |
access_settings | اختیاری. Specifies the access setting of the space. Only populated when the |
space_uri | فقط خروجی The URI for a user to access the space. |
import_mode_expire_time | فقط خروجی The time when the space will be automatically deleted by the system if it remains in import mode. Each space created in import mode must exit this mode before this expire time using This field is only populated for spaces that were created with import mode. |
customer | اختیاری. تغییرناپذیر. The customer id of the domain of the space. Required only when creating a space with app authentication and In the format For DMs, this field isn't populated. |
Union field space_permission_settings . Represents the permission settings of a space. Only populated when the space_type is SPACE . space_permission_settings can be only one of the following: | |
predefined_permission_settings | اختیاری. فقط ورودی Predefined space permission settings, input only when creating a space. If the field is not set, a collaboration space is created. After you create the space, settings are populated in the Setting predefined permission settings supports:
|
permission_settings | اختیاری. Space permission settings for existing spaces. Input for updating exact space permission settings, where existing permission settings are replaced. Output lists current permission settings. Reading and updating permission settings supports:
|
AccessSettings
Represents the access setting of the space.
فیلدها | |
---|---|
access_state | فقط خروجی Indicates the access state of the space. |
audience | اختیاری. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience . Format: To use the default target audience for the Google Workspace organization, set to Reading the target audience supports:
This field is not populated when using the Setting the target audience requires user authentication . |
AccessState
Represents the access state of the space.
Enums | |
---|---|
ACCESS_STATE_UNSPECIFIED | Access state is unknown or not supported in this API. |
PRIVATE | Only users or Google Groups that have been individually added or invited by other users or Google Workspace administrators can discover and access the space. |
DISCOVERABLE | A space manager has granted a target audience access to the space. Users or Google Groups that have been individually added or invited to the space can also discover and access the space. To learn more, see Make a space discoverable to specific users . Creating discoverable spaces requires user authentication . |
MembershipCount
Represents the count of memberships of a space, grouped into categories.
فیلدها | |
---|---|
joined_direct_human_user_count | فقط خروجی Count of human users that have directly joined the space, not counting users joined by having membership in a joined group. |
joined_group_count | فقط خروجی Count of all groups that have directly joined the space. |
PermissionSetting
Represents a space permission setting.
فیلدها | |
---|---|
managers_allowed | اختیاری. Whether space owners ( |
members_allowed | اختیاری. Whether basic space members ( |
PermissionSettings
Permission settings that you can specify when updating an existing named space.
To set permission settings when creating a space, specify the PredefinedPermissionSettings
field in your request.
فیلدها | |
---|---|
manage_members_and_groups | اختیاری. Setting for managing members and groups in a space. |
modify_space_details | اختیاری. Setting for updating space name, avatar, description and guidelines. |
toggle_history | اختیاری. Setting for toggling space history on and off. |
use_at_mention_all | اختیاری. Setting for using @all in a space. |
manage_apps | اختیاری. Setting for managing apps in a space. |
manage_webhooks | اختیاری. Setting for managing webhooks in a space. |
post_messages | فقط خروجی Setting for posting messages in a space. |
reply_messages | اختیاری. Setting for replying to messages in a space. |
PredefinedPermissionSettings
Predefined permission settings that you can only specify when creating a named space. More settings might be added in the future. For details about permission settings for named spaces, see Learn about spaces .
Enums | |
---|---|
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED | نامشخص استفاده نکنید. |
COLLABORATION_SPACE | Setting to make the space a collaboration space where all members can post messages. |
ANNOUNCEMENT_SPACE | Setting to make the space an announcement space where only space managers can post messages. |
SpaceDetails
Details about the space including description and rules.
فیلدها | |
---|---|
description | اختیاری. A description of the space. For example, describe the space's discussion topic, functional purpose, or participants. Supports up to 150 characters. |
guidelines | اختیاری. The space's rules, expectations, and etiquette. Supports up to 5,000 characters. |
SpaceThreadingState
Specifies the type of threading state in the Chat space.
Enums | |
---|---|
SPACE_THREADING_STATE_UNSPECIFIED | رزرو شده است. |
THREADED_MESSAGES | Named spaces that support message threads. When users respond to a message, they can reply in-thread, which keeps their response in the context of the original message. |
GROUPED_MESSAGES | Named spaces where the conversation is organized by topic. Topics and their replies are grouped together. |
UNTHREADED_MESSAGES | Direct messages (DMs) between two people and group conversations between 3 or more people. |
SpaceType
The type of space. Required when creating or updating a space. Output only for other usage.
Enums | |
---|---|
SPACE_TYPE_UNSPECIFIED | رزرو شده است. |
SPACE | A place where people send messages, share files, and collaborate. A SPACE can include Chat apps. |
GROUP_CHAT | Group conversations between 3 or more people. A GROUP_CHAT can include Chat apps. |
DIRECT_MESSAGE | 1:1 messages between two humans or a human and a Chat app. |
تایپ کنید
Deprecated: Use SpaceType
instead.
Enums | |
---|---|
TYPE_UNSPECIFIED | رزرو شده است. |
ROOM | Conversations between two or more humans. |
DM | 1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this doesn't include direct messages between two humans. |
SpaceBatchUpdatedEventData
Event payload for multiple updates to a space.
Event type: google.workspace.chat.space.v1.batchUpdated
فیلدها | |
---|---|
spaces[] | A list of updated spaces. |
SpaceEvent
An event that represents a change or activity in a Google Chat space. برای کسب اطلاعات بیشتر ، به کار با رویدادهای Google Chat مراجعه کنید.
فیلدها | |
---|---|
name | Resource name of the space event. Format: |
event_time | Time when the event occurred. |
event_type | Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For Supported event types for messages :
Supported event types for memberships :
Supported event types for reactions :
Supported event types about the space :
|
Union field | |
message_created_event_data | Event payload for a new message. Event type: |
message_updated_event_data | Event payload for an updated message. Event type: |
message_deleted_event_data | Event payload for a deleted message. Event type: |
message_batch_created_event_data | Event payload for multiple new messages. Event type: |
message_batch_updated_event_data | Event payload for multiple updated messages. Event type: |
message_batch_deleted_event_data | Event payload for multiple deleted messages. Event type: |
space_updated_event_data | Event payload for a space update. Event type: |
space_batch_updated_event_data | Event payload for multiple updates to a space. Event type: |
membership_created_event_data | Event payload for a new membership. Event type: |
membership_updated_event_data | Event payload for an updated membership. Event type: |
membership_deleted_event_data | Event payload for a deleted membership. Event type: |
membership_batch_created_event_data | Event payload for multiple new memberships. Event type: |
membership_batch_updated_event_data | Event payload for multiple updated memberships. Event type: |
membership_batch_deleted_event_data | Event payload for multiple deleted memberships. Event type: |
reaction_created_event_data | Event payload for a new reaction. Event type: |
reaction_deleted_event_data | Event payload for a deleted reaction. Event type: |
reaction_batch_created_event_data | Event payload for multiple new reactions. Event type: |
reaction_batch_deleted_event_data | Event payload for multiple deleted reactions. Event type: |
SpaceNotificationSetting
The notification setting of a user in a space.
فیلدها | |
---|---|
name | Identifier. The resource name of the space notification setting. Format: |
notification_setting | The notification setting. |
mute_setting | The space notification mute setting. |
MuteSetting
The space notification mute setting types.
Enums | |
---|---|
MUTE_SETTING_UNSPECIFIED | رزرو شده است. |
UNMUTED | The user will receive notifications for the space based on the notification setting. |
MUTED | The user will not receive any notifications for the space, regardless of the notification setting. |
NotificationSetting
The notification setting types. Other types might be supported in the future.
Enums | |
---|---|
NOTIFICATION_SETTING_UNSPECIFIED | رزرو شده است. |
ALL | Notifications are triggered by @mentions, followed threads, first message of new threads. All new threads are automatically followed, unless manually unfollowed by the user. |
MAIN_CONVERSATIONS | The notification is triggered by @mentions, followed threads, first message of new threads. Not available for 1:1 direct messages. |
FOR_YOU | The notification is triggered by @mentions, followed threads. Not available for 1:1 direct messages. |
OFF | Notification is off. |
SpaceReadState
A user's read state within a space, used to identify read and unread messages.
فیلدها | |
---|---|
name | Resource name of the space read state. Format: |
last_read_time | اختیاری. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space. |
SpaceUpdatedEventData
Event payload for an updated space.
Event type: google.workspace.chat.space.v1.updated
فیلدها | |
---|---|
space | The updated space. |
موضوع
A thread in a Google Chat space. For example usage, see Start or reply to a message thread .
If you specify a thread when creating a message, you can set the messageReplyOption
field to determine what happens if no matching thread is found.
فیلدها | |
---|---|
name | Identifier. Resource name of the thread. Example: |
thread_key | اختیاری. Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters. This ID is unique to the Chat app that sets it. For example, if multiple Chat apps create a message using the same thread key, the messages are posted in different threads. To reply in a thread created by a person or another Chat app, specify the thread |
ThreadReadState
A user's read state within a thread, used to identify read and unread messages.
فیلدها | |
---|---|
name | Resource name of the thread read state. Format: |
last_read_time | The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread. |
UpdateMembershipRequest
Request message for updating a membership.
فیلدها | |
---|---|
membership | مورد نیاز. The membership to update. Only fields specified by |
update_mask | مورد نیاز. The field paths to update. Separate multiple values with commas or use Currently supported field paths:
|
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the |
UpdateMessageRequest
Request to update a message.
فیلدها | |
---|---|
message | مورد نیاز. Message with fields updated. |
update_mask | مورد نیاز. The field paths to update. Separate multiple values with commas or use Currently supported field paths:
|
allow_missing | اختیاری. If |
UpdateSpaceNotificationSettingRequest
Request to update the space notification settings. Only supports updating notification setting for the calling user.
فیلدها | |
---|---|
space_notification_setting | مورد نیاز. The resource name for the space notification settings must be populated in the form of |
update_mask | مورد نیاز. Supported field paths:
|
UpdateSpaceReadStateRequest
Request message for UpdateSpaceReadState API.
فیلدها | |
---|---|
space_read_state | مورد نیاز. The space read state and fields to update. Only supports updating read state for the calling user. To refer to the calling user, set one of the following:
Format: users/{user}/spaces/{space}/spaceReadState |
update_mask | مورد نیاز. The field paths to update. Currently supported field paths:
When the To mark the space as read, set |
UpdateSpaceRequest
A request to update a single space.
فیلدها | |
---|---|
space | مورد نیاز. Space with fields to be updated. |
update_mask | مورد نیاز. The updated field paths, comma separated if there are multiple. You can update the following fields for a space:
|
use_admin_access | اختیاری. When The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege . Requires the Some |
کاربر
A user in Google Chat. When returned as an output from a request, if your Chat app authenticates as a user , the output for a User
resource only populates the user's name
and type
.
فیلدها | |
---|---|
name | Resource name for a Google Chat Format: For
|
display_name | فقط خروجی The user's display name. |
domain_id | Unique identifier of the user's Google Workspace domain. |
type | User type. |
is_anonymous | فقط خروجی When |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
HUMAN | Human user. |
BOT | Chat app user. |
UserMentionMetadata
Annotation metadata for user mentions (@).
فیلدها | |
---|---|
user | The user mentioned. |
type | The type of user mention. |
تایپ کنید
Enums | |
---|---|
TYPE_UNSPECIFIED | Default value for the enum. استفاده نکنید. |
ADD | Add user to space. |
MENTION | Mention user in space. |
WidgetMarkup
A widget is a UI element that presents text and images.
فیلدها | |
---|---|
buttons[] | A list of buttons. Buttons is also |
Union field data . A WidgetMarkup can only have one of the following items. You can use multiple WidgetMarkup fields to display more items. data can be only one of the following: | |
text_paragraph | Display a text paragraph in this widget. |
image | Display an image in this widget. |
key_value | Display a key value item in this widget. |
دکمه
یک دکمه Can be a text button or an image button.
فیلدها | |
---|---|
Union field | |
text_button | A button with text and |
image_button | A button with image and |
FormAction
A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.
فیلدها | |
---|---|
action_method_name | The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior. |
parameters[] | List of action parameters. |
ActionParameter
List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use action method = snooze()
, passing the snooze type and snooze time in the list of string parameters.
فیلدها | |
---|---|
key | The name of the parameter for the action script. |
value | The value of the parameter. |
نماد
The set of supported icons.
Enums | |
---|---|
ICON_UNSPECIFIED | |
AIRPLANE | |
BOOKMARK | |
BUS | |
CAR | |
CLOCK | |
CONFIRMATION_NUMBER_ICON | |
DOLLAR | |
DESCRIPTION | |
EMAIL | |
EVENT_PERFORMER | |
EVENT_SEAT | |
FLIGHT_ARRIVAL | |
FLIGHT_DEPARTURE | |
HOTEL | |
HOTEL_ROOM_TYPE | |
INVITE | |
MAP_PIN | |
MEMBERSHIP | |
MULTIPLE_PEOPLE | |
OFFER | |
PERSON | |
PHONE | |
RESTAURANT_ICON | |
SHOPPING_CART | |
STAR | |
STORE | |
TICKET | |
TRAIN | |
VIDEO_CAMERA | |
VIDEO_PLAY |
تصویر
An image that's specified by a URL and can have an onclick
action.
فیلدها | |
---|---|
image_url | The URL of the image. |
on_click | The |
aspect_ratio | The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image. |
دکمه تصویر
An image button with an onclick
action.
فیلدها | |
---|---|
on_click | The |
name | The name of this |
Union field icons . The icon can be specified by an Icon enum or a URL. icons can be only one of the following: | |
icon | The icon specified by an |
icon_url | The icon specified by a URL. |
KeyValue
A UI element contains a key (label) and a value (content). This element can also contain some actions such as onclick
button.
فیلدها | |
---|---|
top_label | The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
content | The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
content_multiline | If the content should be multiline. |
bottom_label | The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons . |
on_click | The |
Union field icons . At least one of icons, top_label and bottom_label must be defined. icons can be only one of the following: | |
icon | An enum value that's replaced by the Chat API with the corresponding icon image. |
icon_url | The icon specified by a URL. |
Union field control . A control widget. You can set either button or switch_widget , but not both. control can be only one of the following: | |
button | A button that can be clicked to trigger an action. |
OnClick
An onclick
action (for example, open a link).
فیلدها | |
---|---|
Union field | |
action | A form action is triggered by this |
open_link | This |
OpenLink
A link that opens a new window.
فیلدها | |
---|---|
url | The URL to open. |
دکمه متن
A button with text and onclick
action.
فیلدها | |
---|---|
text | The text of the button. |
on_click | The |
TextParagraph
A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .
فیلدها | |
---|---|
text | |