Skip to content

Commit

Permalink
Add age verification and some other stuff (#403)
Browse files Browse the repository at this point in the history
* Add age verification and some other stuff

* Remove reportOptions from reportReasons
  • Loading branch information
jellejurre authored Nov 7, 2024
1 parent 71f9d3f commit 57f919f
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 3 deletions.
40 changes: 40 additions & 0 deletions openapi/components/schemas/APIConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ properties:
description: VRChat's office address
minLength: 1
type: string
ageVerificationP:
type: boolean
ageVerificationStatusVisible:
type: boolean
announcements:
type: array
description: Public Announcements
Expand Down Expand Up @@ -43,6 +47,28 @@ properties:
type: array
items:
type: string
avatarPerfLimiter:
type: object
properties:
AndroidMobile:
$ref: './PerformanceLimiterInfo.yaml'
PC:
$ref: './PerformanceLimiterInfo.yaml'
Pico:
$ref: './PerformanceLimiterInfo.yaml'
Quest:
$ref: './PerformanceLimiterInfo.yaml'
XRElite:
$ref: './PerformanceLimiterInfo.yaml'
iOSMobile:
$ref: './PerformanceLimiterInfo.yaml'
required:
- AndroidMobile
- PC
- Pico
- Quest
- XRElite
- iOSMobile
buildVersionTag:
description: Build tag of the API server
minLength: 1
Expand Down Expand Up @@ -136,6 +162,8 @@ properties:
type: integer
defaultAvatar:
$ref: ./AvatarID.yaml
defaultStickerSet:
type: string
deploymentGroup:
$ref: ./DeploymentGroup.yaml
devLanguageCodes:
Expand Down Expand Up @@ -359,6 +387,8 @@ properties:
$ref: './ReportCategory.yaml'
chat:
$ref: './ReportCategory.yaml'
emoji:
$ref: './ReportCategory.yaml'
environment:
$ref: './ReportCategory.yaml'
groupstore:
Expand All @@ -367,6 +397,8 @@ properties:
$ref: './ReportCategory.yaml'
text:
$ref: './ReportCategory.yaml'
sticker:
$ref: './ReportCategory.yaml'
warnings:
$ref: './ReportCategory.yaml'
worldimage:
Expand Down Expand Up @@ -482,6 +514,9 @@ properties:
description: VRChat's support email
minLength: 1
type: string
supportFormUrl:
description: VRChat's support form
type: string
timekeeping:
type: boolean
description: Unknown
Expand Down Expand Up @@ -547,12 +582,15 @@ required:
- VoiceEnableDegradation
- VoiceEnableReceiverLimiting
- address
- ageVerificationP
- ageVerificationStatusVisible
- announcements
- analyticsSegment_NewUI_PctOfUsers
- analyticsSegment_NewUI_Salt
- appName
- availableLanguageCodes
- availableLanguages
- avatarPerfLimiter
- buildVersionTag
- chatboxLogBufferSeconds
- clientApiKey
Expand All @@ -566,6 +604,7 @@ required:
- copyrightEmail
- currentTOSVersion
- defaultAvatar
- defaultStickerSet
- deploymentGroup
- devSdkUrl
- devSdkVersion
Expand Down Expand Up @@ -614,6 +653,7 @@ required:
- serverName
- stringHostUrlList
- supportEmail
- supportFormUrl
- timekeeping
- timeOutWorldId
- tutorialWorldId
Expand Down
13 changes: 11 additions & 2 deletions openapi/components/schemas/CurrentUser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
title: CurrentUser
type: object
properties:
acceptedTOSVersion:
minimum: 0
Expand All @@ -22,6 +24,10 @@ properties:
type: array
items:
$ref: ./UserID.yaml
ageVerificationStatus:
type: string
ageVerified:
type: boolean
allowAvatarCopying:
type: boolean
badges:
Expand Down Expand Up @@ -91,6 +97,8 @@ properties:
$ref: ./WorldID.yaml
id:
$ref: ./UserID.yaml
isAdult:
type: boolean
isBoopingEnabled:
default: true
type: boolean
Expand Down Expand Up @@ -232,5 +240,6 @@ required:
- date_joined
- isFriend
- friendKey
title: CurrentUser
type: object
- isAdult
- ageVerificationStatus
- ageVerified
5 changes: 5 additions & 0 deletions openapi/components/schemas/FavoritedWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ properties:
updated_at:
format: date-time
type: string
urlList:
type: array
items:
type: string
udonProducts:
type: array
items:
Expand Down Expand Up @@ -120,6 +124,7 @@ required:
- publicationDate
- labsPublicationDate
- unityPackages
- urlList
- popularity
- heat
- occupants
Expand Down
5 changes: 4 additions & 1 deletion openapi/components/schemas/Instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ properties:
default: true
example: true
type: boolean
ageGate:
nullable: true
type: string
canRequestInvite:
default: true
example: true
Expand Down Expand Up @@ -59,7 +62,7 @@ properties:
platforms:
$ref: ./InstancePlatforms.yaml
playerPersistenceEnabled:
type: string
type: boolean
nullable: true
region:
$ref: ./InstanceRegion.yaml
Expand Down
12 changes: 12 additions & 0 deletions openapi/components/schemas/PerformanceLimiterInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
title: PerformanceLimiterInfo
type: object
description: Info about the performance limits on a platform
properties:
allowed:
type: boolean
maxSeats:
type: integer
description: Maximum amount of seats. -1 means no limit.
required:
- allowed
- maxSeats
3 changes: 3 additions & 0 deletions openapi/components/schemas/User.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
title: User
type: object
properties:
ageVerificationStatus:
type: string
allowAvatarCopying:
type: boolean
default: true
Expand Down Expand Up @@ -96,6 +98,7 @@ properties:
worldId:
$ref: ./WorldID.yaml
required:
- ageVerificationStatus
- allowAvatarCopying
- bio
- bioLinks
Expand Down
4 changes: 4 additions & 0 deletions openapi/components/schemas/World.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ properties:
updated_at:
format: date-time
type: string
urlList:
type: array
items:
type: string
version:
default: 0
example: 68
Expand Down

0 comments on commit 57f919f

Please sign in to comment.