Skip to content

Commit 9c6ae63

Browse files
authored
Bye line things (#112)
It has been already gone. Therefore this change cleans up definition of `ThingsEvent` as one of webhook event.
1 parent b4589bc commit 9c6ae63

File tree

1 file changed

+0
-117
lines changed

1 file changed

+0
-117
lines changed

webhook.yml

Lines changed: 0 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ components:
107107
videoPlayComplete: "#/components/schemas/VideoPlayCompleteEvent"
108108
beacon: "#/components/schemas/BeaconEvent"
109109
accountLink: "#/components/schemas/AccountLinkEvent"
110-
things: "#/components/schemas/ThingsEvent"
111110
membership: "#/components/schemas/MembershipEvent"
112111
module: "#/components/schemas/ModuleEvent"
113112
activated: "#/components/schemas/ActivatedEvent"
@@ -747,122 +746,6 @@ components:
747746
type: string
748747
description: "Specified nonce (number used once) when verifying the user ID."
749748

750-
751-
# https://developers.line.biz/en/reference/messaging-api/#scenario-result-event
752-
ThingsEvent:
753-
description: "Indicates that a user linked a device with LINE."
754-
allOf:
755-
- $ref: "#/components/schemas/Event"
756-
- type: object
757-
required:
758-
- replyToken
759-
- things
760-
properties:
761-
replyToken:
762-
type: string
763-
description: "Reply token used to send reply message to this event"
764-
things:
765-
$ref: "#/components/schemas/ThingsContent"
766-
767-
ThingsContent:
768-
type: object
769-
required:
770-
- type
771-
properties:
772-
type:
773-
type: string
774-
description: "Type"
775-
discriminator:
776-
propertyName: type
777-
mapping:
778-
link: "#/components/schemas/LinkThingsContent"
779-
unlink: "#/components/schemas/UnlinkThingsContent"
780-
scenarioResult: "#/components/schemas/ScenarioResultThingsContent"
781-
LinkThingsContent:
782-
allOf:
783-
- $ref: "#/components/schemas/ThingsContent"
784-
- type: object
785-
required:
786-
- deviceId
787-
description: "Indicates that a user linked a device with LINE."
788-
properties:
789-
deviceId:
790-
type: string
791-
description: "Device ID of the device that has been linked with LINE."
792-
UnlinkThingsContent:
793-
allOf:
794-
- $ref: "#/components/schemas/ThingsContent"
795-
- type: object
796-
required:
797-
- deviceId
798-
description: "Indicates that the user unlinked a device from LINE."
799-
properties:
800-
deviceId:
801-
type: string
802-
description: "Device ID of the device that has been linked with LINE."
803-
ScenarioResultThingsContent:
804-
allOf:
805-
- $ref: "#/components/schemas/ThingsContent"
806-
- type: object
807-
required:
808-
- deviceId
809-
- result
810-
description: "This event indicates that an automatic communication scenario has been executed."
811-
properties:
812-
deviceId:
813-
type: string
814-
description: "Device ID of the device that has been linked with LINE."
815-
result:
816-
$ref: "#/components/schemas/ScenarioResult"
817-
ScenarioResult:
818-
externalDocs:
819-
url: https://developers.line.biz/en/reference/messaging-api/#scenario-result-event
820-
required:
821-
- startTime
822-
- endTime
823-
- resultCode
824-
type: object
825-
properties:
826-
scenarioId:
827-
type: string
828-
description: "Scenario ID executed"
829-
revision:
830-
type: integer
831-
description: "Revision number of the scenario set containing the executed scenario"
832-
startTime:
833-
type: integer
834-
format: int64
835-
description: "Timestamp for when execution of scenario action started (milliseconds, LINE app time)"
836-
endTime:
837-
type: integer
838-
format: int64
839-
description: "Timestamp for when execution of scenario was completed (milliseconds, LINE app time)"
840-
resultCode:
841-
type: string
842-
description: "Scenario execution completion status"
843-
actionResults:
844-
description: "Execution result of individual operations specified in action. Only included when things.result.resultCode is success."
845-
type: array
846-
items:
847-
$ref: "#/components/schemas/ActionResult"
848-
bleNotificationPayload:
849-
description: "Data contained in notification."
850-
type: string
851-
errorReason:
852-
description: "Error reason."
853-
type: string
854-
ActionResult:
855-
required:
856-
- type
857-
type: object
858-
properties:
859-
type:
860-
type: string
861-
enum: [ void, binary ]
862-
data:
863-
description: "Base64-encoded binary data"
864-
type: string
865-
866749
# https://developers.line.biz/en/reference/messaging-api/#membership-event
867750
MembershipEvent:
868751
description: "This event indicates that a user has subscribed (joined), unsubscribed (left), or renewed the bot's membership."

0 commit comments

Comments
 (0)