Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 0fa9f7a
Author: Vinyarion <[email protected]>
Date:   Thu Jan 18 12:06:18 2024 -0600

    Update CurrentUserPresence.yaml

commit ee62e4d
Author: Vinyarion <[email protected]>
Date:   Sat Jun 10 21:20:42 2023 -0500

    Change CurrentUserPresence instanceType and status properties to nullable string

commit e350518
Author: Aries <[email protected]>
Date:   Fri Jan 5 09:51:21 2024 -0700

    Update openapi.yaml (vrchatapi#269)

commit 2613589
Author: Miner28_3 <[email protected]>
Date:   Fri Jan 5 00:26:23 2024 +0100

    Group Search API (vrchatapi#268)

    * Group Search API

    * Fix Copy-Pasting issues

commit b461db3
Author: Aries <[email protected]>
Date:   Sat Dec 30 11:02:16 2023 -0700

    Release 1.16.0 (vrchatapi#267)

commit 4a87e10
Author: Miner28_3 <[email protected]>
Date:   Thu Dec 28 19:31:12 2023 +0100

    FIx UnityPackage nullable fields (vrchatapi#266)

commit 46aaca8
Author: Miner28_3 <[email protected]>
Date:   Wed Dec 27 18:11:00 2023 +0100

    Remove all regex patterns and Update API Fields (vrchatapi#264)

    * Update InstanceID, WorldID regex

    * Remove all regex patterns from schemas

    * Remove regex patterns from parameters

    * Add missing params to CurrentUser

    * Update UnityPackage

    * Update World and LimitedWorld (Add UdonProductId)

    * Remove last regex patterns

    ---------

    Co-authored-by: JU5TDIE <[email protected]>

commit 6484025
Author: Rexios <[email protected]>
Date:   Tue Oct 3 22:10:52 2023 -0400

    Release 1.15.0 (vrchatapi#261)

commit 0a25d5f
Author: Rexios <[email protected]>
Date:   Tue Oct 3 18:24:59 2023 -0400

    Don't require unity packages (vrchatapi#260)

commit bb6bdbb
Author: Rexios <[email protected]>
Date:   Thu Sep 21 00:40:39 2023 -0400

    Version bump (vrchatapi#258)

commit 968c565
Author: Rexios <[email protected]>
Date:   Thu Sep 21 00:07:39 2023 -0400

    Add group instance type (vrchatapi#257)

commit dc2cbe2
Author: Rexios <[email protected]>
Date:   Tue Sep 19 15:56:21 2023 -0400

    Bump version (vrchatapi#256)

commit 6f21fa8
Author: Miner28_3 <[email protected]>
Date:   Mon Sep 18 21:20:53 2023 +0200

    Update API Fields (vrchatapi#255)

    * Update LimitedUser to remove fallback

    * Add recommended capacity to world

    * Remove Min-max values from capacity fields

commit d1181fa
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Jul 19 10:41:45 2023 +0200

    chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (vrchatapi#252)

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit de800e0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Jul 13 14:20:30 2023 +0200

    chore(deps): bump semver from 5.7.1 to 5.7.2 (vrchatapi#251)

    Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
    - [Commits](npm/node-semver@v5.7.1...v5.7.2)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit ec59ac0
Author: Vinyarion <[email protected]>
Date:   Fri Jun 16 22:01:05 2023 -0500

    CurrentUserPresence instanceType, platform, and status properties are now nullable strings (vrchatapi#247)

    * Update schema CurrentUser, added schema CurrentUserPresence

    * Updated CurrentUserPresence properties referring to instances

    * Change CurrentUserPresence instanceType and status properties to nullable string

    * CurrentUserStatus properties inatanceType, platform, and status are now nullable strings

    as VRChat is returning empty strings instead of undefined properties

commit 21de7a6
Author: Vinyarion <[email protected]>
Date:   Sat Jun 10 17:42:24 2023 -0500

    Update schema CurrentUser, added schema CurrentUserPresence (vrchatapi#246)

    * Update schema CurrentUser, added schema CurrentUserPresence

    * Updated CurrentUserPresence properties referring to instances
  • Loading branch information
VinyarionHyarmendacil committed Jan 18, 2024
1 parent e91b054 commit bf95930
Show file tree
Hide file tree
Showing 39 changed files with 197 additions and 57 deletions.
5 changes: 0 additions & 5 deletions openapi/components/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ fileId:
schema:
type: string
example: file_00000000-0000-0000-0000-000000000000
pattern: 'file_[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}'
description: Must be a valid file ID.
groupId:
name: groupId
Expand All @@ -76,7 +75,6 @@ groupId:
schema:
type: string
example: grp_00000000-0000-0000-0000-000000000000
pattern: 'grp_[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}'
description: Must be a valid group ID.
groupRoleId:
name: groupRoleId
Expand All @@ -85,7 +83,6 @@ groupRoleId:
schema:
type: string
example: grol_00000000-0000-0000-0000-000000000000
pattern: 'grol_[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}'
description: Must be a valid group role ID.
groupGalleryId:
name: groupGalleryId
Expand All @@ -94,7 +91,6 @@ groupGalleryId:
schema:
type: string
example: ggal_00000000-0000-0000-0000-000000000000
pattern: 'ggal_[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}'
description: Must be a valid group gallery ID.
groupGalleryImageId:
name: groupGalleryImageId
Expand All @@ -103,7 +99,6 @@ groupGalleryImageId:
schema:
type: string
example: ggim_00000000-0000-0000-0000-000000000000
pattern: 'ggim_[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}'
description: Must be a valid group gallery image ID.
versionId:
name: versionId
Expand Down
20 changes: 20 additions & 0 deletions openapi/components/paths/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ info:
description: Group Docs Here
paths:
/groups:
get:
summary: Search Group
description: Searches Groups by name or shortCode
operationId: searchGroups
tags:
- groups
parameters:
- in: query
name: query
schema:
type: string
required: false
description: Query to search for, can be either Group Name or Group shortCode
- $ref: ../parameters.yaml#/offset
- $ref: ../parameters.yaml#/number
responses:
'200':
$ref: ../responses/groups/LimitedGroupListResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
post:
summary: Create Group
description: Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
Expand Down
2 changes: 0 additions & 2 deletions openapi/components/requests/FinishFileDataUploadRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ properties:
deprecated: true
description: 'Always a zero in string form, despite how many parts uploaded.'
maxLength: 1
pattern: '0'
maxParts:
type: string
minLength: 1
Expand All @@ -26,7 +25,6 @@ properties:
default: '0'
example: '0'
maxLength: 1
pattern: '0'
required:
- nextPartNumber
- maxParts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: Returns a list of LimitedGroup objects.
content:
application/json:
schema:
type: array
items:
$ref: ../../schemas/LimitedGroup.yaml
1 change: 0 additions & 1 deletion openapi/components/schemas/AvatarID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: avtr_912d66a4-4714-43b8-8407-7de2cafbf55b
pattern: 'avtr_[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: AvatarID
type: string
30 changes: 30 additions & 0 deletions openapi/components/schemas/CurrentUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ properties:
minimum: 0
example: 7
type: integer
acceptedPrivacyVersion:
minimum: 0
example: 0
type: integer
accountDeletionDate:
format: date
nullable: true
Expand Down Expand Up @@ -35,6 +39,10 @@ properties:
$ref: ./CurrentAvatarImageUrl.yaml
currentAvatarThumbnailImageUrl:
$ref: ./CurrentAvatarThumbnailImageUrl.yaml
currentAvatarTags:
type: array
items:
$ref: ./Tag.yaml
date_joined:
format: date
type: string
Expand All @@ -60,6 +68,14 @@ properties:
type: array
hasBirthday:
type: boolean
hideContentFilterSettings:
type: boolean
userLanguage:
nullable: true
type: string
userLanguageCode:
nullable: true
type: string
hasEmail:
type: boolean
hasLoggedInFromClient:
Expand All @@ -73,6 +89,9 @@ properties:
isFriend:
default: false
type: boolean
last_activity:
format: date-time
type: string
last_login:
format: date-time
type: string
Expand All @@ -84,6 +103,12 @@ properties:
type: string
oculusId:
type: string
googleId:
type: string
picoId:
type: string
viveId:
type: string
offlineFriends:
items:
$ref: ./UserID.yaml
Expand All @@ -97,6 +122,8 @@ properties:
items:
$ref: ./PastDisplayName.yaml
type: array
presence:
$ref: ./CurrentUserPresence.yaml
profilePicOverride:
type: string
state:
Expand Down Expand Up @@ -127,6 +154,9 @@ properties:
type: string
unsubscribe:
type: boolean
updated_at:
format: date-time
type: string
userIcon:
type: string
username:
Expand Down
45 changes: 45 additions & 0 deletions openapi/components/schemas/CurrentUserPresence.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
title: CurrentUserPresence
type: object
properties:
avatarThumbnail:
type: string
nullable: true
displayName:
type: string
groups:
type: array
nullable: true
items:
$ref: ./GroupID.yaml
id:
$ref: ./UserID.yaml
instance:
type: string
nullable: true
instanceType:
type: string
description: either an InstanceType or an empty string
nullable: true
isRejoining:
type: string
nullable: true
platform:
type: string
description: either a Platform or an empty string
nullable: true
profilePicOverride:
type: string
nullable: true
status:
type: string
description: either a UserStatus or empty string
nullable: true
travelingToInstance:
type: string
nullable: true
travelingToWorld:
$ref: ./WorldID.yaml
nullable: true
world:
$ref: ./WorldID.yaml
nullable: true
1 change: 0 additions & 1 deletion openapi/components/schemas/FavoriteGroupID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: fvgrp_8a02a44b-dc3a-4a9a-bc77-77fa37996fc7
pattern: 'fvgrp_[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: FavoriteGroupID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/FavoriteID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: fvrt_9568d189-8776-44a5-a8c8-defc981e44de
pattern: 'fvrt_[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: FavoriteID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/FileID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: file_ce35d830-e20a-4df0-a6d4-5aaef4508044
pattern: 'file_[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: FileID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupAnnouncementID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: gpos_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'gpos_[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: GroupAnnouncementID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupAuditLogID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: gaud_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'gaud_[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: GroupAuditLogID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupDiscriminator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: '1234'
pattern: '^[0-9]{4}$'
title: GroupDiscriminator
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupGalleryID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: ggal_a03a4b55-4ca6-4490-9519-40ba6351a233
pattern: 'ggal_[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: GroupGalleryID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupGalleryImageID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: ggim_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'ggim_[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: GroupGalleryImageID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: grp_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'grp_[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: GroupID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupMemberID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37
pattern: 'gmem_[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: GroupMemberID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupRoleID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: grol_459d3911-f672-44bc-b84d-e54ffe7960fe
pattern: 'grol_[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: GroupRoleID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupShortCode.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: ABC123
pattern: '^[A-Z0-9]{3,6}$'
title: GroupShortCode
type: string
3 changes: 1 addition & 2 deletions openapi/components/schemas/InstanceID.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
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)'
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.
1 change: 1 addition & 0 deletions openapi/components/schemas/InstanceType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ enum:
- hidden
- friends
- private
- group
description: ''
1 change: 0 additions & 1 deletion openapi/components/schemas/InviteMessageID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: invm_24a1c14d-5e24-48e5-90e3-c3f712420ffa
pattern: '(default|invm_[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: InviteMessageID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/License.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ properties:
type: string
description: 'Either a AvatarID, LicenseGroupID, PermissionID or ProductID. This depends on the `forType` field.'
minLength: 1
pattern: '(avtr|lgrp|prms|prod)_[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}'
forType:
$ref: ./LicenseType.yaml
forName:
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/LicenseGroupID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: lgrp_608513da-b213-4e15-80af-bd88c27f0979
pattern: 'lgrp_[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: LicenseGroupID
type: string
49 changes: 49 additions & 0 deletions openapi/components/schemas/LimitedGroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
title: LimitedGroup
type: object
properties:
id:
$ref: ./GroupID.yaml
name:
type: string
shortCode:
$ref: ./GroupShortCode.yaml
discriminator:
$ref: ./GroupDiscriminator.yaml
description:
type: string
iconUrl:
type: string
nullable: true
bannerUrl:
type: string
nullable: true
ownerId:
$ref: ./UserID.yaml
rules:
type: string
nullable: true
iconId:
type: string
nullable: true
bannerId:
type: string
nullable: true
memberCount:
type: integer
tags:
description: ' '
type: array
items:
$ref: ./Tag.yaml
createdAt:
type: string
format: date-time
membershipStatus:
$ref: ./GroupMemberStatus.yaml
isSearchable:
type: boolean
galleries:
description: ' '
type: array
items:
$ref: ./GroupGallery.yaml
1 change: 0 additions & 1 deletion openapi/components/schemas/LimitedUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ required:
- statusDescription
- currentAvatarImageUrl
- currentAvatarThumbnailImageUrl
- fallbackAvatar
- developerType
- last_platform
- status
Expand Down
9 changes: 7 additions & 2 deletions openapi/components/schemas/LimitedWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ properties:
type: string
capacity:
example: 8
maximum: 40
minimum: 0
type: integer
recommendedCapacity:
example: 16
type: integer
created_at:
format: date-time
Expand Down Expand Up @@ -72,6 +73,10 @@ properties:
updated_at:
format: date-time
type: string
udonProducts:
type: array
items:
$ref: ./UdonProductId.yaml
required:
- id
- name
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/NotificationID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: not_00000000-0000-0000-0000-000000000000
pattern: '(not|frq)_[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: NotificationID
type: string
Loading

0 comments on commit bf95930

Please sign in to comment.