Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Timeline.yaml with models #400

Merged
merged 6 commits into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
358 changes: 357 additions & 1 deletion doc/specs/schemas/Timeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,364 @@ type: object
properties:
entries:
type: array
items:
oneOf:
- type: object
properties:
type:
type: string
enum:
- follow
date:
type: number
data:
type: object
properties:
u1:
type: string
u2:
type: string
required:
- u1
- u2
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- team-join
date:
type: number
data:
type: object
properties:
userId:
type: string
teamId:
type: string
required:
- userId
- teamId
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- team-create
date:
type: number
data:
type: object
properties:
userId:
type: string
teamId:
type: string
required:
- userId
- teamId
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- forum-post
date:
type: number
data:
type: object
properties:
userId:
type: string
topicId:
type: string
topicName:
type: string
postId:
type: string
required:
- userId
- topicId
- topicName
- postId
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- blog-post
date:
type: number
data:
type: object
properties:
id:
type: string
slug:
type: string
title:
type: string
required:
- id
- slug
- title
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- ublog-post
date:
type: number
data:
type: object
properties:
userId:
type: string
id:
type: string
slug:
type: string
title:
type: string
required:
- userId
- id
- slug
- title
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- tour-join
date:
type: number
data:
type: object
properties:
userId:
type: string
tourId:
type: string
tourName:
type: string
required:
- userId
- tourId
- tourName
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- game-end
date:
type: number
data:
type: object
properties:
fullId:
type: string
opponent:
type: string
win:
type: boolean
perf:
$ref: './PerfType.yaml'
required:
- fullId
- opponent
- win
- perf
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- simul-create
- simul-join
date:
type: number
data:
type: object
properties:
userId:
type: string
simulId:
type: string
simulName:
type: string
required:
- userId
- simulId
- simulName
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- study-like
date:
type: number
data:
type: object
properties:
userId:
type: string
studyId:
type: string
studyName:
type: string
required:
- userId
- studyId
- studyName
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- plan-start
date:
type: number
data:
type: object
properties:
userId:
type: string
required:
- userId
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- plan-renew
date:
type: number
data:
type: object
properties:
userId:
type: string
months:
type: number
required:
- userId
- months
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- ublog-post-like
date:
type: number
data:
type: object
properties:
userId:
type: string
id:
type: string
title:
type: string
required:
- userId
- id
- title
required:
- type
- date
- data
- type: object
properties:
type:
type: string
enum:
- stream-start
date:
type: number
data:
type: object
properties:
id:
type: string
name:
type: string
required:
- id
required:
- type
- date
- data
discriminator:
propertyName: type
users:
type: object
additionalProperties:
type: object
properties:
id:
type: string
name:
type: string
title:
$ref: './Title.yaml'
patron:
type: boolean
required:
- id
- name
example:
{
'entries':
Expand Down Expand Up @@ -77,7 +433,7 @@ example:
},
{
'type': 'stream-start',
'data': { 'userId': 'chess-network', 'title': 'Streamers Battle December !team | lichess.org' },
'data': { 'id': 'chess-network', 'title': 'Streamers Battle December !team | lichess.org' },
'date': 1644232201429,
},
],
Expand Down