Skip to content

Commit 314e628

Browse files
github-actions[bot]github-actions
andauthored
Codes are generated by openapi (#553)
Co-authored-by: github-actions <github-actions@github.com>
1 parent 5a5e8b2 commit 314e628

25 files changed

+86
-48
lines changed

lib/messaging-api/model/audioMessage.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ import { MessageBase } from "./models";
1919
export type AudioMessage = MessageBase & {
2020
type: "audio";
2121
/**
22+
*
23+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#audio-message">originalContentUrl Documentation</a>
2224
*/
23-
originalContentUrl?: string /**/;
25+
originalContentUrl: string /**/;
2426
/**
27+
*
28+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#audio-message">duration Documentation</a>
2529
*/
26-
duration?: number /**/;
30+
duration: number /**/;
2731
};

lib/messaging-api/model/buttonsTemplate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ export type ButtonsTemplate = TemplateBase & {
3434
title?: string /**/;
3535
/**
3636
*/
37-
text?: string /**/;
37+
text: string /**/;
3838
/**
3939
*/
4040
defaultAction?: Action /**/;
4141
/**
4242
*/
43-
actions?: Array<Action> /**/;
43+
actions: Array<Action> /**/;
4444
};

lib/messaging-api/model/carouselColumn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export type CarouselColumn = {
2727
title?: string /**/;
2828
/**
2929
*/
30-
text?: string /**/;
30+
text: string /**/;
3131
/**
3232
*/
3333
defaultAction?: Action /**/;
3434
/**
3535
*/
36-
actions?: Array<Action> /**/;
36+
actions: Array<Action> /**/;
3737
};

lib/messaging-api/model/carouselTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type CarouselTemplate = TemplateBase & {
1919
type: "carousel";
2020
/**
2121
*/
22-
columns?: Array<CarouselColumn> /**/;
22+
columns: Array<CarouselColumn> /**/;
2323
/**
2424
*/
2525
imageAspectRatio?: string /**/;

lib/messaging-api/model/confirmTemplate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export type ConfirmTemplate = TemplateBase & {
1919
type: "confirm";
2020
/**
2121
*/
22-
text?: string /**/;
22+
text: string /**/;
2323
/**
2424
*/
25-
actions?: Array<Action> /**/;
25+
actions: Array<Action> /**/;
2626
};

lib/messaging-api/model/flexBox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ export type FlexBox = FlexComponentBase & {
2020
type: "box";
2121
/**
2222
*/
23-
layout?: FlexBox.LayoutEnum /**/;
23+
layout: FlexBox.LayoutEnum /**/;
2424
/**
2525
*/
2626
flex?: number /**/;
2727
/**
2828
*/
29-
contents?: Array<FlexComponent> /**/;
29+
contents: Array<FlexComponent> /**/;
3030
/**
3131
*/
3232
spacing?: string /**/;

lib/messaging-api/model/flexButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type FlexButton = FlexComponentBase & {
2828
style?: FlexButton.StyleEnum /**/;
2929
/**
3030
*/
31-
action?: Action /**/;
31+
action: Action /**/;
3232
/**
3333
*/
3434
gravity?: FlexButton.GravityEnum /**/;

lib/messaging-api/model/flexCarousel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export type FlexCarousel = FlexContainerBase & {
1919
type: "carousel";
2020
/**
2121
*/
22-
contents?: Array<FlexBubble> /**/;
22+
contents: Array<FlexBubble> /**/;
2323
};

lib/messaging-api/model/flexIcon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type FlexIcon = FlexComponentBase & {
2020
*
2121
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#icon">url Documentation</a>
2222
*/
23-
url?: string /**/;
23+
url: string /**/;
2424
/**
2525
*
2626
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#icon">size Documentation</a>

lib/messaging-api/model/flexMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export type FlexMessage = MessageBase & {
2323
*
2424
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#flex-message">altText Documentation</a>
2525
*/
26-
altText?: string /**/;
26+
altText: string /**/;
2727
/**
2828
*
2929
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#flex-message">contents Documentation</a>
3030
*/
31-
contents?: FlexContainer /**/;
31+
contents: FlexContainer /**/;
3232
};

lib/messaging-api/model/flexVideo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ export type FlexVideo = FlexComponentBase & {
1919
type: "video";
2020
/**
2121
*/
22-
url?: string /**/;
22+
url: string /**/;
2323
/**
2424
*/
25-
previewUrl?: string /**/;
25+
previewUrl: string /**/;
2626
/**
2727
*/
28-
altContent?: FlexComponent /**/;
28+
altContent: FlexComponent /**/;
2929
/**
3030
*/
3131
aspectRatio?: string /**/;

lib/messaging-api/model/imageCarouselColumn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { Action } from "./action";
1515
export type ImageCarouselColumn = {
1616
/**
1717
*/
18-
imageUrl?: string /**/;
18+
imageUrl: string /**/;
1919
/**
2020
*/
21-
action?: Action /**/;
21+
action: Action /**/;
2222
};

lib/messaging-api/model/imageCarouselTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export type ImageCarouselTemplate = TemplateBase & {
1919
type: "image_carousel";
2020
/**
2121
*/
22-
columns?: Array<ImageCarouselColumn> /**/;
22+
columns: Array<ImageCarouselColumn> /**/;
2323
};

lib/messaging-api/model/imageMessage.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ import { MessageBase } from "./models";
1919
export type ImageMessage = MessageBase & {
2020
type: "image";
2121
/**
22+
*
23+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#image-message">originalContentUrl Documentation</a>
2224
*/
23-
originalContentUrl?: string /**/;
25+
originalContentUrl: string /**/;
2426
/**
27+
*
28+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#image-message">previewImageUrl Documentation</a>
2529
*/
26-
previewImageUrl?: string /**/;
30+
previewImageUrl: string /**/;
2731
};

lib/messaging-api/model/imagemapAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ export type ImagemapActionBase = {
3434
*
3535
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-action-objects">area Documentation</a>
3636
*/
37-
area?: ImagemapArea /**/;
37+
area: ImagemapArea /**/;
3838
};

lib/messaging-api/model/imagemapArea.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
export type ImagemapArea = {
1414
/**
1515
*/
16-
x?: number /**/;
16+
x: number /**/;
1717
/**
1818
*/
19-
y?: number /**/;
19+
y: number /**/;
2020
/**
2121
*/
22-
width?: number /**/;
22+
width: number /**/;
2323
/**
2424
*/
25-
height?: number /**/;
25+
height: number /**/;
2626
};

lib/messaging-api/model/imagemapBaseSize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
export type ImagemapBaseSize = {
1414
/**
1515
*/
16-
height?: number /**/;
16+
height: number /**/;
1717
/**
1818
*/
19-
width?: number /**/;
19+
width: number /**/;
2020
};

lib/messaging-api/model/imagemapMessage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ export type ImagemapMessage = MessageBase & {
2525
*
2626
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">baseUrl Documentation</a>
2727
*/
28-
baseUrl?: string /**/;
28+
baseUrl: string /**/;
2929
/**
3030
*
3131
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">altText Documentation</a>
3232
*/
33-
altText?: string /**/;
33+
altText: string /**/;
3434
/**
3535
*
3636
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">baseSize Documentation</a>
3737
*/
38-
baseSize?: ImagemapBaseSize /**/;
38+
baseSize: ImagemapBaseSize /**/;
3939
/**
4040
*
4141
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">actions Documentation</a>
4242
*/
43-
actions?: Array<ImagemapAction> /**/;
43+
actions: Array<ImagemapAction> /**/;
4444
/**
4545
*
4646
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#imagemap-message">video Documentation</a>

lib/messaging-api/model/locationMessage.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,23 @@ import { MessageBase } from "./models";
1919
export type LocationMessage = MessageBase & {
2020
type: "location";
2121
/**
22+
*
23+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">title Documentation</a>
2224
*/
23-
title?: string /**/;
25+
title: string /**/;
2426
/**
27+
*
28+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">address Documentation</a>
2529
*/
26-
address?: string /**/;
30+
address: string /**/;
2731
/**
32+
*
33+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">latitude Documentation</a>
2834
*/
29-
latitude?: number /**/;
35+
latitude: number /**/;
3036
/**
37+
*
38+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#location-message">longitude Documentation</a>
3139
*/
32-
longitude?: number /**/;
40+
longitude: number /**/;
3341
};

lib/messaging-api/model/messageImagemapAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type MessageImagemapAction = ImagemapActionBase & {
1919
type: "message";
2020
/**
2121
*/
22-
text?: string /**/;
22+
text: string /**/;
2323
/**
2424
*/
2525
label?: string /**/;

lib/messaging-api/model/stickerMessage.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,19 @@ import { MessageBase } from "./models";
1919
export type StickerMessage = MessageBase & {
2020
type: "sticker";
2121
/**
22+
*
23+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#sticker-message">packageId Documentation</a>
2224
*/
23-
packageId?: string /**/;
25+
packageId: string /**/;
2426
/**
27+
*
28+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#sticker-message">stickerId Documentation</a>
2529
*/
26-
stickerId?: string /**/;
30+
stickerId: string /**/;
2731
/**
2832
* Quote token of the message you want to quote.
33+
*
34+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#sticker-message">quoteToken Documentation</a>
2935
*/
3036
quoteToken?: string /**/;
3137
};

lib/messaging-api/model/templateMessage.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ import { MessageBase } from "./models";
2020
export type TemplateMessage = MessageBase & {
2121
type: "template";
2222
/**
23+
*
24+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#template-messages">altText Documentation</a>
2325
*/
24-
altText?: string /**/;
26+
altText: string /**/;
2527
/**
28+
*
29+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#template-messages">template Documentation</a>
2630
*/
27-
template?: Template /**/;
31+
template: Template /**/;
2832
};

lib/messaging-api/model/textMessage.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,19 @@ import { MessageBase } from "./models";
2020
export type TextMessage = MessageBase & {
2121
type: "text";
2222
/**
23+
*
24+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message">text Documentation</a>
2325
*/
24-
text?: string /**/;
26+
text: string /**/;
2527
/**
28+
*
29+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message">emojis Documentation</a>
2630
*/
2731
emojis?: Array<Emoji> /**/;
2832
/**
2933
* Quote token of the message you want to quote.
34+
*
35+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message">quoteToken Documentation</a>
3036
*/
3137
quoteToken?: string /**/;
3238
};

lib/messaging-api/model/uRIImagemapAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type URIImagemapAction = ImagemapActionBase & {
1919
type: "uri";
2020
/**
2121
*/
22-
linkUri?: string /**/;
22+
linkUri: string /**/;
2323
/**
2424
*/
2525
label?: string /**/;

lib/messaging-api/model/videoMessage.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ import { MessageBase } from "./models";
1919
export type VideoMessage = MessageBase & {
2020
type: "video";
2121
/**
22+
*
23+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#video-message">originalContentUrl Documentation</a>
2224
*/
23-
originalContentUrl?: string /**/;
25+
originalContentUrl: string /**/;
2426
/**
27+
*
28+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#video-message">previewImageUrl Documentation</a>
2529
*/
26-
previewImageUrl?: string /**/;
30+
previewImageUrl: string /**/;
2731
/**
32+
*
33+
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#video-message">trackingId Documentation</a>
2834
*/
2935
trackingId?: string /**/;
3036
};

0 commit comments

Comments
 (0)