mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
1348532068
* Update docs - Slack Assistants API, App Home tab, Stream stop blocks * Update README.md * Update package readmes, fix readme integration test * Add npm badges to all package READMEs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add test coverage to all packages * Create CODE_OF_CONDUCT.md * Create pull_request_template.md * Create issue templates * Create config.yml * Add unit tests for errors, singleton, logger, message, modals, gchat utils, and teams markdown Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add a vitest:workspace command * Misc URL fixes * Update CONTRIBUTING.md * Misc fixes, upgrade workflow/serde * Replace PII in integration test data --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
55 lines
1.9 KiB
JSON
55 lines
1.9 KiB
JSON
{
|
|
"botName": "Chat SDK Demo",
|
|
"botUserId": "users/100000000000000000002",
|
|
"mention": {
|
|
"commonEventObject": {
|
|
"userLocale": "en",
|
|
"hostApp": "CHAT",
|
|
"platform": "WEB"
|
|
},
|
|
"chat": {
|
|
"user": {
|
|
"name": "users/100000000000000000001",
|
|
"displayName": "Test User",
|
|
"type": "HUMAN"
|
|
},
|
|
"eventTime": "2025-12-31T23:47:51.749519Z",
|
|
"messagePayload": {
|
|
"space": { "name": "spaces/AAQAJ9CXYcg", "type": "ROOM" },
|
|
"message": {
|
|
"name": "spaces/AAQAJ9CXYcg/messages/kVOtO797ZPI.kVOtO797ZPI",
|
|
"sender": {
|
|
"name": "users/100000000000000000001",
|
|
"displayName": "Test User",
|
|
"type": "HUMAN"
|
|
},
|
|
"text": "@Chat SDK Demo hello",
|
|
"annotations": [
|
|
{
|
|
"type": "USER_MENTION",
|
|
"startIndex": 0,
|
|
"length": 14,
|
|
"userMention": {
|
|
"user": {
|
|
"name": "users/100000000000000000002",
|
|
"type": "BOT"
|
|
},
|
|
"type": "MENTION"
|
|
}
|
|
}
|
|
],
|
|
"thread": { "name": "spaces/AAQAJ9CXYcg/threads/kVOtO797ZPI" },
|
|
"space": { "name": "spaces/AAQAJ9CXYcg" }
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"followUp": {
|
|
"message": {
|
|
"attributes": { "ce-type": "google.workspace.chat.message.v1.created" },
|
|
"data": "eyJtZXNzYWdlIjp7Im5hbWUiOiJzcGFjZXMvQUFRQUo5Q1hZY2cvbWVzc2FnZXMva1ZPdE83OTdaUEkud0xLSS05REx1OHciLCJzZW5kZXIiOnsibmFtZSI6InVzZXJzLzEwMDAwMDAwMDAwMDAwMDAwMDAwMSIsInR5cGUiOiJIVU1BTiJ9LCJ0ZXh0IjoiSGV5IiwidGhyZWFkIjp7Im5hbWUiOiJzcGFjZXMvQUFRQUo5Q1hZY2cvdGhyZWFkcy9rVk90Tzc5N1pQSSJ9LCJzcGFjZSI6eyJuYW1lIjoic3BhY2VzL0FBUUFKOUNYWWNnIn0sInRocmVhZFJlcGx5Ijp0cnVlfX0="
|
|
},
|
|
"subscription": "projects/example-chat-project-123456/subscriptions/chat-messages-push"
|
|
}
|
|
}
|