@@ -1944,6 +1944,7 @@ export type Sender = {
19441944 * - [Message action](https://developers.line.biz/en/reference/messaging-api/#message-action)
19451945 * - [URI action](https://developers.line.biz/en/reference/messaging-api/#uri-action)
19461946 * - [Datetime picker action](https://developers.line.biz/en/reference/messaging-api/#datetime-picker-action)
1947+ * - [Rich menu switch action](https://developers.line.biz/en/reference/messaging-api/#richmenu-switch-action)
19471948 * - [Camera action](https://developers.line.biz/en/reference/messaging-api/#camera-action)
19481949 * - [Camera roll action](https://developers.line.biz/en/reference/messaging-api/#camera-roll-action)
19491950 * - [Location action](https://developers.line.biz/en/reference/messaging-api/#location-action)
@@ -1953,6 +1954,7 @@ export type Action<ExtraFields = { label: string }> = (
19531954 | MessageAction
19541955 | URIAction
19551956 | DatetimePickerAction
1957+ | RichMenuSwitchAction
19561958 | { type : "camera" }
19571959 | { type : "cameraRoll" }
19581960 | { type : "location" }
@@ -2081,6 +2083,28 @@ export type Size = {
20812083 height : number ;
20822084} ;
20832085
2086+ /**
2087+ * When a control associated with this action is tapped, the URI specified in
2088+ * the `uri` property is opened.
2089+ */
2090+ export type RichMenuSwitchAction = {
2091+ type : "richmenuswitch" ;
2092+ /**
2093+ * Action label. Optional for rich menus. Read when the user's device accessibility feature is enabled.
2094+ * Max character limit: 20. Supported on LINE for iOS 8.2.0 or later.
2095+ */
2096+ label ?: string ;
2097+ /**
2098+ * Rich menu alias ID to switch to.
2099+ */
2100+ richMenuAliasId : string ;
2101+ /**
2102+ * String returned by the postback.data property of the postback event via a webhook
2103+ * Max character limit: 300
2104+ */
2105+ data : string ;
2106+ } ;
2107+
20842108/**
20852109 * Rich menus consist of either of these objects.
20862110 *
0 commit comments