|
957 | 957 | } |
958 | 958 | } |
959 | 959 | }, |
960 | | - "revision": "20231114", |
| 960 | + "revision": "20231121", |
961 | 961 | "rootUrl": "https://chat.googleapis.com/", |
962 | 962 | "schemas": { |
963 | 963 | "ActionParameter": { |
|
981 | 981 | "properties": { |
982 | 982 | "dialogAction": { |
983 | 983 | "$ref": "DialogAction", |
984 | | - "description": "Input only. A response to an event related to a [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be accompanied by `ResponseType.Dialog`." |
| 984 | + "description": "Input only. A response to an interaction event related to a [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be accompanied by `ResponseType.Dialog`." |
985 | 985 | }, |
986 | 986 | "type": { |
987 | 987 | "description": "Input only. The type of Chat app response.", |
|
991 | 991 | "UPDATE_MESSAGE", |
992 | 992 | "UPDATE_USER_MESSAGE_CARDS", |
993 | 993 | "REQUEST_CONFIG", |
994 | | - "DIALOG" |
| 994 | + "DIALOG", |
| 995 | + "UPDATE_WIDGET" |
995 | 996 | ], |
996 | 997 | "enumDescriptions": [ |
997 | 998 | "Default type that's handled as `NEW_MESSAGE`.", |
998 | 999 | "Post as a new message in the topic.", |
999 | 1000 | "Update the Chat app's message. This is only permitted on a `CARD_CLICKED` event where the message sender type is `BOT`.", |
1000 | 1001 | "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.", |
1001 | 1002 | "Privately ask the user for additional authentication or configuration.", |
1002 | | - "Presents a [dialog](https://developers.google.com/chat/how-tos/dialogs)." |
| 1003 | + "Presents a [dialog](https://developers.google.com/chat/how-tos/dialogs).", |
| 1004 | + "Widget text autocomplete options query." |
1003 | 1005 | ], |
1004 | 1006 | "type": "string" |
1005 | 1007 | }, |
| 1008 | + "updatedWidget": { |
| 1009 | + "$ref": "UpdatedWidget", |
| 1010 | + "description": "Input only. The response of the updated widget." |
| 1011 | + }, |
1006 | 1012 | "url": { |
1007 | 1013 | "description": "Input only. URL for users to authenticate or configure. (Only for `REQUEST_CONFIG` response types.)", |
1008 | 1014 | "type": "string" |
|
1561 | 1567 | "MESSAGE", |
1562 | 1568 | "ADDED_TO_SPACE", |
1563 | 1569 | "REMOVED_FROM_SPACE", |
1564 | | - "CARD_CLICKED" |
| 1570 | + "CARD_CLICKED", |
| 1571 | + "WIDGET_UPDATED" |
1565 | 1572 | ], |
1566 | 1573 | "enumDescriptions": [ |
1567 | 1574 | "Default value for the enum. DO NOT USE.", |
1568 | 1575 | "A user sends the Chat app a message, or invokes the Chat app in a space.", |
1569 | 1576 | "A user adds the Chat app to a space, or a Google Workspace administrator installs the Chat app in direct message spaces for users in their organization.", |
1570 | 1577 | "A user removes the Chat app from a space.", |
1571 | | - "A user clicks an interactive element of a card or dialog from a Chat app, such as a button. If a user interacts with a dialog, the `CARD_CLICKED` interaction event's `isDialogEvent` field is set to `true` and includes a [`DialogEventType`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType)." |
| 1578 | + "A user clicks an interactive element of a card or dialog from a Chat app, such as a button. If a user interacts with a dialog, the `CARD_CLICKED` interaction event's `isDialogEvent` field is set to `true` and includes a [`DialogEventType`](https://developers.google.com/chat/api/reference/rest/v1/DialogEventType).", |
| 1579 | + "A user updates a widget in a card message or dialog." |
1572 | 1580 | ], |
1573 | 1581 | "type": "string" |
1574 | 1582 | }, |
|
3310 | 3318 | }, |
3311 | 3319 | "type": "object" |
3312 | 3320 | }, |
| 3321 | + "SelectionItems": { |
| 3322 | + "description": "List of widget autocomplete results.", |
| 3323 | + "id": "SelectionItems", |
| 3324 | + "properties": { |
| 3325 | + "items": { |
| 3326 | + "description": "An array of the SelectionItem objects.", |
| 3327 | + "items": { |
| 3328 | + "$ref": "GoogleAppsCardV1SelectionItem" |
| 3329 | + }, |
| 3330 | + "type": "array" |
| 3331 | + } |
| 3332 | + }, |
| 3333 | + "type": "object" |
| 3334 | + }, |
3313 | 3335 | "SetUpSpaceRequest": { |
3314 | 3336 | "id": "SetUpSpaceRequest", |
3315 | 3337 | "properties": { |
|
3622 | 3644 | }, |
3623 | 3645 | "type": "object" |
3624 | 3646 | }, |
| 3647 | + "UpdatedWidget": { |
| 3648 | + "description": "The response of the updated widget. Used to provide autocomplete options for a widget.", |
| 3649 | + "id": "UpdatedWidget", |
| 3650 | + "properties": { |
| 3651 | + "suggestions": { |
| 3652 | + "$ref": "SelectionItems", |
| 3653 | + "description": "List of widget autocomplete results" |
| 3654 | + }, |
| 3655 | + "widget": { |
| 3656 | + "description": "The ID of the updated widget. The ID must match the one for the widget that triggered the update request.", |
| 3657 | + "type": "string" |
| 3658 | + } |
| 3659 | + }, |
| 3660 | + "type": "object" |
| 3661 | + }, |
3625 | 3662 | "UploadAttachmentRequest": { |
3626 | 3663 | "id": "UploadAttachmentRequest", |
3627 | 3664 | "properties": { |
|
0 commit comments