Skip to content

Commit

Permalink
Codes are generated by openapi (#553)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Oct 27, 2023
1 parent 5a5e8b2 commit 314e628
Show file tree
Hide file tree
Showing 25 changed files with 86 additions and 48 deletions.
8 changes: 6 additions & 2 deletions lib/messaging-api/model/audioMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ import { MessageBase } from "./models";
export type AudioMessage = MessageBase & {
type: "audio";
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#audio-message">originalContentUrl Documentation</a>
*/
originalContentUrl?: string /**/;
originalContentUrl: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#audio-message">duration Documentation</a>
*/
duration?: number /**/;
duration: number /**/;
};
4 changes: 2 additions & 2 deletions lib/messaging-api/model/buttonsTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export type ButtonsTemplate = TemplateBase & {
title?: string /**/;
/**
*/
text?: string /**/;
text: string /**/;
/**
*/
defaultAction?: Action /**/;
/**
*/
actions?: Array<Action> /**/;
actions: Array<Action> /**/;
};
4 changes: 2 additions & 2 deletions lib/messaging-api/model/carouselColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export type CarouselColumn = {
title?: string /**/;
/**
*/
text?: string /**/;
text: string /**/;
/**
*/
defaultAction?: Action /**/;
/**
*/
actions?: Array<Action> /**/;
actions: Array<Action> /**/;
};
2 changes: 1 addition & 1 deletion lib/messaging-api/model/carouselTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type CarouselTemplate = TemplateBase & {
type: "carousel";
/**
*/
columns?: Array<CarouselColumn> /**/;
columns: Array<CarouselColumn> /**/;
/**
*/
imageAspectRatio?: string /**/;
Expand Down
4 changes: 2 additions & 2 deletions lib/messaging-api/model/confirmTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export type ConfirmTemplate = TemplateBase & {
type: "confirm";
/**
*/
text?: string /**/;
text: string /**/;
/**
*/
actions?: Array<Action> /**/;
actions: Array<Action> /**/;
};
4 changes: 2 additions & 2 deletions lib/messaging-api/model/flexBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export type FlexBox = FlexComponentBase & {
type: "box";
/**
*/
layout?: FlexBox.LayoutEnum /**/;
layout: FlexBox.LayoutEnum /**/;
/**
*/
flex?: number /**/;
/**
*/
contents?: Array<FlexComponent> /**/;
contents: Array<FlexComponent> /**/;
/**
*/
spacing?: string /**/;
Expand Down
2 changes: 1 addition & 1 deletion lib/messaging-api/model/flexButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type FlexButton = FlexComponentBase & {
style?: FlexButton.StyleEnum /**/;
/**
*/
action?: Action /**/;
action: Action /**/;
/**
*/
gravity?: FlexButton.GravityEnum /**/;
Expand Down
2 changes: 1 addition & 1 deletion lib/messaging-api/model/flexCarousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export type FlexCarousel = FlexContainerBase & {
type: "carousel";
/**
*/
contents?: Array<FlexBubble> /**/;
contents: Array<FlexBubble> /**/;
};
2 changes: 1 addition & 1 deletion lib/messaging-api/model/flexIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type FlexIcon = FlexComponentBase & {
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#icon">url Documentation</a>
*/
url?: string /**/;
url: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#icon">size Documentation</a>
Expand Down
4 changes: 2 additions & 2 deletions lib/messaging-api/model/flexMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export type FlexMessage = MessageBase & {
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#flex-message">altText Documentation</a>
*/
altText?: string /**/;
altText: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#flex-message">contents Documentation</a>
*/
contents?: FlexContainer /**/;
contents: FlexContainer /**/;
};
6 changes: 3 additions & 3 deletions lib/messaging-api/model/flexVideo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export type FlexVideo = FlexComponentBase & {
type: "video";
/**
*/
url?: string /**/;
url: string /**/;
/**
*/
previewUrl?: string /**/;
previewUrl: string /**/;
/**
*/
altContent?: FlexComponent /**/;
altContent: FlexComponent /**/;
/**
*/
aspectRatio?: string /**/;
Expand Down
4 changes: 2 additions & 2 deletions lib/messaging-api/model/imageCarouselColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { Action } from "./action";
export type ImageCarouselColumn = {
/**
*/
imageUrl?: string /**/;
imageUrl: string /**/;
/**
*/
action?: Action /**/;
action: Action /**/;
};
2 changes: 1 addition & 1 deletion lib/messaging-api/model/imageCarouselTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export type ImageCarouselTemplate = TemplateBase & {
type: "image_carousel";
/**
*/
columns?: Array<ImageCarouselColumn> /**/;
columns: Array<ImageCarouselColumn> /**/;
};
8 changes: 6 additions & 2 deletions lib/messaging-api/model/imageMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ import { MessageBase } from "./models";
export type ImageMessage = MessageBase & {
type: "image";
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#image-message">originalContentUrl Documentation</a>
*/
originalContentUrl?: string /**/;
originalContentUrl: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#image-message">previewImageUrl Documentation</a>
*/
previewImageUrl?: string /**/;
previewImageUrl: string /**/;
};
2 changes: 1 addition & 1 deletion lib/messaging-api/model/imagemapAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export type ImagemapActionBase = {
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-action-objects">area Documentation</a>
*/
area?: ImagemapArea /**/;
area: ImagemapArea /**/;
};
8 changes: 4 additions & 4 deletions lib/messaging-api/model/imagemapArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
export type ImagemapArea = {
/**
*/
x?: number /**/;
x: number /**/;
/**
*/
y?: number /**/;
y: number /**/;
/**
*/
width?: number /**/;
width: number /**/;
/**
*/
height?: number /**/;
height: number /**/;
};
4 changes: 2 additions & 2 deletions lib/messaging-api/model/imagemapBaseSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
export type ImagemapBaseSize = {
/**
*/
height?: number /**/;
height: number /**/;
/**
*/
width?: number /**/;
width: number /**/;
};
8 changes: 4 additions & 4 deletions lib/messaging-api/model/imagemapMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ export type ImagemapMessage = MessageBase & {
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">baseUrl Documentation</a>
*/
baseUrl?: string /**/;
baseUrl: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">altText Documentation</a>
*/
altText?: string /**/;
altText: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">baseSize Documentation</a>
*/
baseSize?: ImagemapBaseSize /**/;
baseSize: ImagemapBaseSize /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">actions Documentation</a>
*/
actions?: Array<ImagemapAction> /**/;
actions: Array<ImagemapAction> /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">video Documentation</a>
Expand Down
16 changes: 12 additions & 4 deletions lib/messaging-api/model/locationMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,23 @@ import { MessageBase } from "./models";
export type LocationMessage = MessageBase & {
type: "location";
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">title Documentation</a>
*/
title?: string /**/;
title: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">address Documentation</a>
*/
address?: string /**/;
address: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">latitude Documentation</a>
*/
latitude?: number /**/;
latitude: number /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">longitude Documentation</a>
*/
longitude?: number /**/;
longitude: number /**/;
};
2 changes: 1 addition & 1 deletion lib/messaging-api/model/messageImagemapAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type MessageImagemapAction = ImagemapActionBase & {
type: "message";
/**
*/
text?: string /**/;
text: string /**/;
/**
*/
label?: string /**/;
Expand Down
10 changes: 8 additions & 2 deletions lib/messaging-api/model/stickerMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ import { MessageBase } from "./models";
export type StickerMessage = MessageBase & {
type: "sticker";
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#sticker-message">packageId Documentation</a>
*/
packageId?: string /**/;
packageId: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#sticker-message">stickerId Documentation</a>
*/
stickerId?: string /**/;
stickerId: string /**/;
/**
* Quote token of the message you want to quote.
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#sticker-message">quoteToken Documentation</a>
*/
quoteToken?: string /**/;
};
8 changes: 6 additions & 2 deletions lib/messaging-api/model/templateMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ import { MessageBase } from "./models";
export type TemplateMessage = MessageBase & {
type: "template";
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#template-messages">altText Documentation</a>
*/
altText?: string /**/;
altText: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#template-messages">template Documentation</a>
*/
template?: Template /**/;
template: Template /**/;
};
8 changes: 7 additions & 1 deletion lib/messaging-api/model/textMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ import { MessageBase } from "./models";
export type TextMessage = MessageBase & {
type: "text";
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message">text Documentation</a>
*/
text?: string /**/;
text: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message">emojis Documentation</a>
*/
emojis?: Array<Emoji> /**/;
/**
* Quote token of the message you want to quote.
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message">quoteToken Documentation</a>
*/
quoteToken?: string /**/;
};
2 changes: 1 addition & 1 deletion lib/messaging-api/model/uRIImagemapAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type URIImagemapAction = ImagemapActionBase & {
type: "uri";
/**
*/
linkUri?: string /**/;
linkUri: string /**/;
/**
*/
label?: string /**/;
Expand Down
10 changes: 8 additions & 2 deletions lib/messaging-api/model/videoMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ import { MessageBase } from "./models";
export type VideoMessage = MessageBase & {
type: "video";
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#video-message">originalContentUrl Documentation</a>
*/
originalContentUrl?: string /**/;
originalContentUrl: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#video-message">previewImageUrl Documentation</a>
*/
previewImageUrl?: string /**/;
previewImageUrl: string /**/;
/**
*
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#video-message">trackingId Documentation</a>
*/
trackingId?: string /**/;
};

0 comments on commit 314e628

Please sign in to comment.