Skip to content

Commit 07b89d0

Browse files
github-actions[bot]github-actions
and
github-actions
authored
Codes are generated by openapi (#695)
In the Messaging API, we've added the [clipboard action](https://developers.line.biz/en/reference/messaging-api/#clipboard-action) for users to copy text to the clipboard. This new feature allows users to more easily copy coupon codes and other text. news: https://developers.line.biz/en/news/2024/02/05/messaging-api-updated/ Note only the latest app(version >= `14.0.0`) supports this feature. Please update your LINE app to try this feature. Co-authored-by: github-actions <[email protected]>
1 parent 5446c7c commit 07b89d0

File tree

7 files changed

+65
-1
lines changed

7 files changed

+65
-1
lines changed

lib/messaging-api/.openapi-generator/FILES

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ model/cameraRollAction.ts
2222
model/carouselColumn.ts
2323
model/carouselTemplate.ts
2424
model/chatReference.ts
25+
model/clipboardAction.ts
26+
model/clipboardImagemapAction.ts
2527
model/confirmTemplate.ts
2628
model/createRichMenuAliasRequest.ts
2729
model/datetimePickerAction.ts

lib/messaging-api/model/action.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import { CameraAction } from "./models";
1414
import { CameraRollAction } from "./models";
15+
import { ClipboardAction } from "./models";
1516
import { DatetimePickerAction } from "./models";
1617
import { LocationAction } from "./models";
1718
import { MessageAction } from "./models";
@@ -22,6 +23,7 @@ import { URIAction } from "./models";
2223
export type Action =
2324
| CameraAction // camera
2425
| CameraRollAction // cameraRoll
26+
| ClipboardAction // clipboard
2527
| DatetimePickerAction // datetimepicker
2628
| LocationAction // location
2729
| MessageAction // message
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* LINE Messaging API
3+
* This document describes LINE Messaging API.
4+
*
5+
* The version of the OpenAPI document: 0.0.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { Action } from "./action";
14+
15+
import { ActionBase } from "./models";
16+
17+
export type ClipboardAction = ActionBase & {
18+
type: "clipboard";
19+
/**
20+
* Text that is copied to the clipboard. Max character limit: 1000
21+
*
22+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#clipboard-action">clipboardText Documentation</a>
23+
*/
24+
clipboardText: string /**/;
25+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* LINE Messaging API
3+
* This document describes LINE Messaging API.
4+
*
5+
* The version of the OpenAPI document: 0.0.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { ImagemapAction } from "./imagemapAction";
14+
import { ImagemapArea } from "./imagemapArea";
15+
16+
import { ImagemapActionBase } from "./models";
17+
18+
export type ClipboardImagemapAction = ImagemapActionBase & {
19+
type: "clipboard";
20+
/**
21+
* Text that is copied to the clipboard. Max character limit: 1000
22+
*
23+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-clipboard-action-object">clipboardText Documentation</a>
24+
*/
25+
clipboardText: string /**/;
26+
/**
27+
*
28+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-clipboard-action-object">label Documentation</a>
29+
*/
30+
label?: string /**/;
31+
};

lib/messaging-api/model/imagemapAction.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212

1313
import { ImagemapArea } from "./imagemapArea";
1414

15+
import { ClipboardImagemapAction } from "./models";
1516
import { MessageImagemapAction } from "./models";
1617
import { URIImagemapAction } from "./models";
1718

1819
export type ImagemapAction =
20+
| ClipboardImagemapAction // clipboard
1921
| MessageImagemapAction // message
2022
| URIImagemapAction // uri
2123
| UnknownImagemapAction;

lib/messaging-api/model/models.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export * from "./cameraRollAction";
1717
export * from "./carouselColumn";
1818
export * from "./carouselTemplate";
1919
export * from "./chatReference";
20+
export * from "./clipboardAction";
21+
export * from "./clipboardImagemapAction";
2022
export * from "./confirmTemplate";
2123
export * from "./createRichMenuAliasRequest";
2224
export * from "./datetimePickerAction";

line-openapi

0 commit comments

Comments
 (0)