From 6d4ab844cc2b95f7b5bdeb3b44b49e31cbadd61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 17 Sep 2023 03:35:36 +0900 Subject: [PATCH] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/schemas/content.yaml | 18 ++-- dist/compatible/schemas/instruction.yaml | 130 +++++++++++++++++++++++ dist/compatible/schemas/tweet.yaml | 5 - dist/docs/schemas/content.yaml | 18 ++-- dist/docs/schemas/instruction.yaml | 130 +++++++++++++++++++++++ dist/docs/schemas/tweet.yaml | 5 - 6 files changed, 284 insertions(+), 22 deletions(-) diff --git a/dist/compatible/schemas/content.yaml b/dist/compatible/schemas/content.yaml index ccadf95..46cfeb0 100644 --- a/dist/compatible/schemas/content.yaml +++ b/dist/compatible/schemas/content.yaml @@ -1,5 +1,14 @@ components: schemas: + ClientEventInfo: + properties: + component: + type: string + details: + additionalProperties: true + type: object + element: + type: string ContentEntryType: enum: - TimelineTimelineItem @@ -54,13 +63,11 @@ components: $ref: ./typename.yaml#/components/schemas/TypeName result: $ref: ./tweet.yaml#/components/schemas/TweetUnion - required: - - result + required: null ModuleEntry: properties: clientEventInfo: - additionalProperties: true - type: object + $ref: '#/components/schemas/ClientEventInfo' itemContent: $ref: '#/components/schemas/ItemContentUnion' required: @@ -116,8 +123,7 @@ components: __typename: $ref: ./typename.yaml#/components/schemas/TypeName clientEventInfo: - additionalProperties: true - type: object + $ref: '#/components/schemas/ClientEventInfo' entryType: $ref: '#/components/schemas/ContentEntryType' feedbackInfo: diff --git a/dist/compatible/schemas/instruction.yaml b/dist/compatible/schemas/instruction.yaml index 90a112a..5269f21 100644 --- a/dist/compatible/schemas/instruction.yaml +++ b/dist/compatible/schemas/instruction.yaml @@ -1,5 +1,42 @@ components: schemas: + Callback: + properties: + endpoint: + format: uri + type: string + required: + - endpoint + CoverCta: + properties: + Text: + type: string + buttonStyle: + enum: + - Primary + type: string + callbacks: + items: + $ref: '#/components/schemas/Callback' + type: array + clientEventInfo: + $ref: '#/components/schemas/CtaClientEventInfo' + ctaBehavior: + $ref: '#/components/schemas/TimelineCoverBehavior' + required: + - text + - ctaBehavior + - callbacks + - clientEventInfo + - buttonStyle + CtaClientEventInfo: + properties: + action: + enum: + - primary_cta + type: string + required: + - action InstructionType: enum: - TimelineAddEntries @@ -9,6 +46,7 @@ components: - TimelineReplaceEntry - TimelineShowAlert - TimelineTerminateTimeline + - TimelineShowCover type: string InstructionUnion: discriminator: @@ -19,6 +57,7 @@ components: TimelinePinEntry: '#/components/schemas/TimelinePinEntry' TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry' TimelineShowAlert: '#/components/schemas/TimelineShowAlert' + TimelineShowCover: '#/components/schemas/TimelineShowCover' TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline' propertyName: type oneOf: @@ -29,6 +68,47 @@ components: - $ref: '#/components/schemas/TimelineReplaceEntry' - $ref: '#/components/schemas/TimelineShowAlert' - $ref: '#/components/schemas/TimelineTerminateTimeline' + - $ref: '#/components/schemas/TimelineShowCover' + Text: + properties: + entities: + items: + $ref: '#/components/schemas/TextEntity' + type: array + text: + type: string + required: + - text + - entities + TextEntity: + properties: + fromIndex: + type: integer + ref: + $ref: '#/components/schemas/TextEntityRef' + toIndex: + type: integer + required: + - fromIndex + - toIndex + - ref + TextEntityRef: + properties: + type: + enum: + - TimelineUrl + type: string + url: + format: uri + type: string + urlType: + enum: + - ExternalUrl + type: string + required: + - type + - url + - urlType TimelineAddEntries: properties: entries: @@ -76,6 +156,44 @@ components: $ref: '#/components/schemas/InstructionType' required: - type + TimelineCoverBehavior: + properties: + type: + enum: + - TimelineCoverBehaviorDismiss + type: string + required: + - type + TimelineHalfCover: + properties: + dismissible: + type: boolean + halfCoverDisplayType: + enum: + - Cover + type: string + impressionCallbacks: + items: + $ref: '#/components/schemas/Callback' + type: array + primaryCoverCta: + $ref: '#/components/schemas/CoverCta' + primaryText: + $ref: '#/components/schemas/Text' + secondaryText: + $ref: '#/components/schemas/Text' + type: + enum: + - TimelineHalfCover + type: string + required: + - type + - halfCoverDisplayType + - primaryText + - primaryCoverCta + - secondaryText + - impressionCallbacks + - dismissible TimelinePinEntry: properties: entry: @@ -137,6 +255,18 @@ components: - type - usersResults - richText + TimelineShowCover: + properties: + clientEventInfo: + $ref: ./content.yaml#/components/schemas/ClientEventInfo + cover: + $ref: '#/components/schemas/TimelineHalfCover' + type: + $ref: '#/components/schemas/InstructionType' + required: + - type + - clientEventInfo + - cover TimelineTerminateTimeline: properties: direction: diff --git a/dist/compatible/schemas/tweet.yaml b/dist/compatible/schemas/tweet.yaml index 454ee82..77c9fa7 100644 --- a/dist/compatible/schemas/tweet.yaml +++ b/dist/compatible/schemas/tweet.yaml @@ -269,11 +269,8 @@ components: $ref: '#/components/schemas/TweetView' required: - rest_id - - core - edit_control - is_translatable - - source - - legacy - views TweetCard: properties: @@ -498,8 +495,6 @@ components: enum: - Available type: string - required: - - status mediaStats: properties: viewCount: diff --git a/dist/docs/schemas/content.yaml b/dist/docs/schemas/content.yaml index ccadf95..46cfeb0 100644 --- a/dist/docs/schemas/content.yaml +++ b/dist/docs/schemas/content.yaml @@ -1,5 +1,14 @@ components: schemas: + ClientEventInfo: + properties: + component: + type: string + details: + additionalProperties: true + type: object + element: + type: string ContentEntryType: enum: - TimelineTimelineItem @@ -54,13 +63,11 @@ components: $ref: ./typename.yaml#/components/schemas/TypeName result: $ref: ./tweet.yaml#/components/schemas/TweetUnion - required: - - result + required: null ModuleEntry: properties: clientEventInfo: - additionalProperties: true - type: object + $ref: '#/components/schemas/ClientEventInfo' itemContent: $ref: '#/components/schemas/ItemContentUnion' required: @@ -116,8 +123,7 @@ components: __typename: $ref: ./typename.yaml#/components/schemas/TypeName clientEventInfo: - additionalProperties: true - type: object + $ref: '#/components/schemas/ClientEventInfo' entryType: $ref: '#/components/schemas/ContentEntryType' feedbackInfo: diff --git a/dist/docs/schemas/instruction.yaml b/dist/docs/schemas/instruction.yaml index 90a112a..5269f21 100644 --- a/dist/docs/schemas/instruction.yaml +++ b/dist/docs/schemas/instruction.yaml @@ -1,5 +1,42 @@ components: schemas: + Callback: + properties: + endpoint: + format: uri + type: string + required: + - endpoint + CoverCta: + properties: + Text: + type: string + buttonStyle: + enum: + - Primary + type: string + callbacks: + items: + $ref: '#/components/schemas/Callback' + type: array + clientEventInfo: + $ref: '#/components/schemas/CtaClientEventInfo' + ctaBehavior: + $ref: '#/components/schemas/TimelineCoverBehavior' + required: + - text + - ctaBehavior + - callbacks + - clientEventInfo + - buttonStyle + CtaClientEventInfo: + properties: + action: + enum: + - primary_cta + type: string + required: + - action InstructionType: enum: - TimelineAddEntries @@ -9,6 +46,7 @@ components: - TimelineReplaceEntry - TimelineShowAlert - TimelineTerminateTimeline + - TimelineShowCover type: string InstructionUnion: discriminator: @@ -19,6 +57,7 @@ components: TimelinePinEntry: '#/components/schemas/TimelinePinEntry' TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry' TimelineShowAlert: '#/components/schemas/TimelineShowAlert' + TimelineShowCover: '#/components/schemas/TimelineShowCover' TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline' propertyName: type oneOf: @@ -29,6 +68,47 @@ components: - $ref: '#/components/schemas/TimelineReplaceEntry' - $ref: '#/components/schemas/TimelineShowAlert' - $ref: '#/components/schemas/TimelineTerminateTimeline' + - $ref: '#/components/schemas/TimelineShowCover' + Text: + properties: + entities: + items: + $ref: '#/components/schemas/TextEntity' + type: array + text: + type: string + required: + - text + - entities + TextEntity: + properties: + fromIndex: + type: integer + ref: + $ref: '#/components/schemas/TextEntityRef' + toIndex: + type: integer + required: + - fromIndex + - toIndex + - ref + TextEntityRef: + properties: + type: + enum: + - TimelineUrl + type: string + url: + format: uri + type: string + urlType: + enum: + - ExternalUrl + type: string + required: + - type + - url + - urlType TimelineAddEntries: properties: entries: @@ -76,6 +156,44 @@ components: $ref: '#/components/schemas/InstructionType' required: - type + TimelineCoverBehavior: + properties: + type: + enum: + - TimelineCoverBehaviorDismiss + type: string + required: + - type + TimelineHalfCover: + properties: + dismissible: + type: boolean + halfCoverDisplayType: + enum: + - Cover + type: string + impressionCallbacks: + items: + $ref: '#/components/schemas/Callback' + type: array + primaryCoverCta: + $ref: '#/components/schemas/CoverCta' + primaryText: + $ref: '#/components/schemas/Text' + secondaryText: + $ref: '#/components/schemas/Text' + type: + enum: + - TimelineHalfCover + type: string + required: + - type + - halfCoverDisplayType + - primaryText + - primaryCoverCta + - secondaryText + - impressionCallbacks + - dismissible TimelinePinEntry: properties: entry: @@ -137,6 +255,18 @@ components: - type - usersResults - richText + TimelineShowCover: + properties: + clientEventInfo: + $ref: ./content.yaml#/components/schemas/ClientEventInfo + cover: + $ref: '#/components/schemas/TimelineHalfCover' + type: + $ref: '#/components/schemas/InstructionType' + required: + - type + - clientEventInfo + - cover TimelineTerminateTimeline: properties: direction: diff --git a/dist/docs/schemas/tweet.yaml b/dist/docs/schemas/tweet.yaml index 454ee82..77c9fa7 100644 --- a/dist/docs/schemas/tweet.yaml +++ b/dist/docs/schemas/tweet.yaml @@ -269,11 +269,8 @@ components: $ref: '#/components/schemas/TweetView' required: - rest_id - - core - edit_control - is_translatable - - source - - legacy - views TweetCard: properties: @@ -498,8 +495,6 @@ components: enum: - Available type: string - required: - - status mediaStats: properties: viewCount: