Skip to content

Commit

Permalink
Update InstanceID, WorldID regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JU5TDIE committed Sep 25, 2023
1 parent bb6bdbb commit 42f3df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openapi/components/schemas/InstanceID.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type: string
example: 'wrld_ba913a96-fac4-4048-a062-9aa5db092812:12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)'
pattern: '(private|offline|(wrld|wld)_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}:(\d+)(~region\(([\w]+)\))?(~([\w]+)\(usr_([\w-]+)\)((\~canRequestInvite)?)(~region\(([\w].+)\))?~nonce\((.+)\))?)'
example: '12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)'
pattern: '(private|offline|(\d+)(~region\(([\w]+)\))?(~([\w]+)\(usr_([\w-]+)\)((\~canRequestInvite)?)(~region\(([\w].+)\))?~nonce\((.+)\))?)'
title: InstanceID
description: InstanceID can be "offline" on User profiles if you are not friends with that user and "private" if you are friends and user is in private instance.
2 changes: 1 addition & 1 deletion openapi/components/schemas/WorldID.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
example: wrld_ba913a96-fac4-4048-a062-9aa5db092812
pattern: '(^$|offline|(wrld|wld)_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})'
pattern: '(^$|private|offline|(wrld|wld)_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})'
title: WorldID
type: string
description: WorldID be "offline" on User profiles if you are not friends with that user.

0 comments on commit 42f3df2

Please sign in to comment.