Skip to content

Commit

Permalink
Codes are generated by openapi (#695)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
github-actions[bot] and github-actions authored Feb 5, 2024
1 parent 5446c7c commit 07b89d0
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/messaging-api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ model/cameraRollAction.ts
model/carouselColumn.ts
model/carouselTemplate.ts
model/chatReference.ts
model/clipboardAction.ts
model/clipboardImagemapAction.ts
model/confirmTemplate.ts
model/createRichMenuAliasRequest.ts
model/datetimePickerAction.ts
Expand Down
2 changes: 2 additions & 0 deletions lib/messaging-api/model/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import { CameraAction } from "./models";
import { CameraRollAction } from "./models";
import { ClipboardAction } from "./models";
import { DatetimePickerAction } from "./models";
import { LocationAction } from "./models";
import { MessageAction } from "./models";
Expand All @@ -22,6 +23,7 @@ import { URIAction } from "./models";
export type Action =
| CameraAction // camera
| CameraRollAction // cameraRoll
| ClipboardAction // clipboard
| DatetimePickerAction // datetimepicker
| LocationAction // location
| MessageAction // message
Expand Down
25 changes: 25 additions & 0 deletions lib/messaging-api/model/clipboardAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* LINE Messaging API
* This document describes LINE Messaging API.
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { Action } from "./action";

import { ActionBase } from "./models";

export type ClipboardAction = ActionBase & {
type: "clipboard";
/**
* Text that is copied to the clipboard. Max character limit: 1000
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#clipboard-action">clipboardText Documentation</a>
*/
clipboardText: string /**/;
};
31 changes: 31 additions & 0 deletions lib/messaging-api/model/clipboardImagemapAction.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* LINE Messaging API
* This document describes LINE Messaging API.
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { ImagemapAction } from "./imagemapAction";
import { ImagemapArea } from "./imagemapArea";

import { ImagemapActionBase } from "./models";

export type ClipboardImagemapAction = ImagemapActionBase & {
type: "clipboard";
/**
* Text that is copied to the clipboard. Max character limit: 1000
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-clipboard-action-object">clipboardText Documentation</a>
*/
clipboardText: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-clipboard-action-object">label Documentation</a>
*/
label?: string /**/;
};
2 changes: 2 additions & 0 deletions lib/messaging-api/model/imagemapAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@

import { ImagemapArea } from "./imagemapArea";

import { ClipboardImagemapAction } from "./models";
import { MessageImagemapAction } from "./models";
import { URIImagemapAction } from "./models";

export type ImagemapAction =
| ClipboardImagemapAction // clipboard
| MessageImagemapAction // message
| URIImagemapAction // uri
| UnknownImagemapAction;
Expand Down
2 changes: 2 additions & 0 deletions lib/messaging-api/model/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export * from "./cameraRollAction";
export * from "./carouselColumn";
export * from "./carouselTemplate";
export * from "./chatReference";
export * from "./clipboardAction";
export * from "./clipboardImagemapAction";
export * from "./confirmTemplate";
export * from "./createRichMenuAliasRequest";
export * from "./datetimePickerAction";
Expand Down
2 changes: 1 addition & 1 deletion line-openapi
Submodule line-openapi updated 1 files
+38 −0 messaging-api.yml

0 comments on commit 07b89d0

Please sign in to comment.