Skip to content

Commit 1ba09af

Browse files
github-actions[bot]github-actions
andauthored
Codes are generated by openapi (#558)
Co-authored-by: github-actions <github-actions@github.com>
1 parent 23dc71b commit 1ba09af

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

lib/webhook/model/callbackRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export type CallbackRequest = {
2121
*
2222
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#request-body">destination Documentation</a>
2323
*/
24-
destination?: string /**/;
24+
destination: string /**/;
2525
/**
2626
* Array of webhook event objects. The LINE Platform may send an empty array that doesn\'t include a webhook event object to confirm communication.
2727
*
2828
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#request-body">events Documentation</a>
2929
*/
30-
events?: Array<Event> /**/;
30+
events: Array<Event> /**/;
3131
};

lib/webhook/model/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export type EventBase = {
6565
/**
6666
* Type of the event
6767
*/
68-
type?: string /**/;
68+
type: string /**/;
6969
/**
7070
*/
7171
source?: Source /**/;

lib/webhook/model/imageSet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type ImageSet = {
1414
/**
1515
* Image set ID. Only included when multiple images are sent simultaneously.
1616
*/
17-
id?: string /**/;
17+
id: string /**/;
1818
/**
1919
* An index starting from 1, indicating the image number in a set of images sent simultaneously. Only included when multiple images are sent simultaneously. However, it won\'t be included if the sender is using LINE 11.15 or earlier for Android.
2020
*/

lib/webhook/model/mentionee.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type MentioneeBase = {
2828
*
2929
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#wh-text">type Documentation</a>
3030
*/
31-
type?: string /**/;
31+
type: string /**/;
3232
/**
3333
* Index position of the user mention for a character in text, with the first character being at position 0.
3434
*

lib/webhook/model/messageContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type MessageContentBase = {
3838
*
3939
* @see <a href="https://developers.line.biz/en/reference/messaging-api/#message-event">type Documentation</a>
4040
*/
41-
type?: string /**/;
41+
type: string /**/;
4242
/**
4343
* Message ID
4444
*

lib/webhook/model/messageEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type MessageEvent = EventBase & {
2828
replyToken?: string /**/;
2929
/**
3030
*/
31-
message?: MessageContent /**/;
31+
message: MessageContent /**/;
3232
};
3333

3434
export namespace MessageEvent {}

lib/webhook/model/moduleContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ export type ModuleContentBase = {
2626
/**
2727
* Type
2828
*/
29-
type?: string /**/;
29+
type: string /**/;
3030
};

lib/webhook/model/postbackEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type PostbackEvent = EventBase & {
2929
replyToken?: string /**/;
3030
/**
3131
*/
32-
postback?: PostbackContent /**/;
32+
postback: PostbackContent /**/;
3333
};
3434

3535
export namespace PostbackEvent {}

lib/webhook/model/thingsContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export type ThingsContentBase = {
2828
/**
2929
* Type
3030
*/
31-
type?: string /**/;
31+
type: string /**/;
3232
};

lib/webhook/model/unsendEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type UnsendEvent = EventBase & {
2525
type: "unsend";
2626
/**
2727
*/
28-
unsend?: UnsendDetail /**/;
28+
unsend: UnsendDetail /**/;
2929
};
3030

3131
export namespace UnsendEvent {}

0 commit comments

Comments
 (0)