Skip to content

Commit

Permalink
ci(test: 2024-10-25): new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 25, 2024
1 parent 7db45ac commit 33b0e7b
Show file tree
Hide file tree
Showing 8 changed files with 247 additions and 39 deletions.
44 changes: 38 additions & 6 deletions data/requests/economy/getsteamtransaction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# getSteamTransaction

## Issues
Response schema mismatch:
* Invalid type at ``#/agreement``.
## Request
`GET https://vrchat.com/api/1/Steam/transactions/undefined`
`GET https://vrchat.com/api/1/Steam/transactions/txn_e163ccc8-56eb-4320-8140-7bbcb1815b44`

| Header | Value |
| ------ | ----- |
Expand All @@ -10,14 +13,15 @@


## Response
`404 Not Found`
`200 OK`

| Header | Value |
| ------ | ----- |
| access-control-allow-credentials | `true` |
| cache-control | `private, no-cache` |
| connection | `keep-alive` |
| content-type | `application/json; charset=utf-8` |
| etag | `<redacted>` |
| pragma | `no-cache` |
| server | `cloudflare` |
| transfer-encoding | `chunked` |
Expand All @@ -26,9 +30,37 @@

```jsonc
{
"error": {
"message": "\"transaction not found\"",
"status_code": 404
}
"id": "txn_e163ccc8-56eb-4320-8140-7bbcb1815b44",
"userId": "usr_9439f8cc-1c6b-4dca-9a07-d2eccb570701",
"userDisplayName": "8cf3def6b8cea",
"steam": {
"walletInfo": {
"state": "",
"country": "CA",
"currency": "CAD",
"status": "Active"
},
"steamId": "76561199512069969",
"orderId": "1685842827012",
"steamUrl": "",
"transId": "3254460074228293216"
},
"agreement": "",
"status": "failed",
"sandbox": false,
"subscription": {
"id": "vrchatplus-monthly",
"steamItemId": "4000",
"oculusSku": "vrchat-plus-oculus-monthly",
"amount": 999,
"description": "VRChat Plus (Monthly)",
"period": "month",
"tier": 5
},
"created_at": "2023-06-04T01:40:26.991Z",
"updated_at": "2023-06-04T01:47:17.384Z",
"error": "",
"isGift": false,
"isTokens": false
}
```
34 changes: 34 additions & 0 deletions data/requests/playermoderation/clearallplayermoderations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# clearAllPlayerModerations

## Request
`DELETE https://vrchat.com/api/1/auth/user/playermoderations`

| Header | Value |
| ------ | ----- |
| user-agent | `specification-test/@<unstable> https://github.com/vrchatapi/specification-test/issues/new` |
| cookie | `auth=<redacted>; twoFactorAuth=<redacted>` |


## Response
`200 OK`

| Header | Value |
| ------ | ----- |
| access-control-allow-credentials | `true` |
| cache-control | `private, no-cache` |
| connection | `keep-alive` |
| content-length | `46` |
| content-type | `application/json; charset=utf-8` |
| pragma | `no-cache` |
| server | `cloudflare` |
| vary | `Authorization, Accept-Encoding` |
| x-frame-options | `deny` |

```jsonc
{
"success": {
"message": "OK",
"status_code": 200
}
}
```
40 changes: 40 additions & 0 deletions data/requests/playermoderation/getplayermoderations-with-filter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# getPlayerModerations with filter

## Request
`GET https://vrchat.com/api/1/auth/user/playermoderations?type=unmute`

| Header | Value |
| ------ | ----- |
| user-agent | `specification-test/@<unstable> https://github.com/vrchatapi/specification-test/issues/new` |
| cookie | `auth=<redacted>; twoFactorAuth=<redacted>` |


## Response
`200 OK`

| Header | Value |
| ------ | ----- |
| access-control-allow-credentials | `true` |
| cache-control | `private, no-cache` |
| connection | `keep-alive` |
| content-type | `application/json; charset=utf-8` |
| etag | `<redacted>` |
| pragma | `no-cache` |
| server | `cloudflare` |
| transfer-encoding | `chunked` |
| vary | `Authorization, Accept-Encoding` |
| x-frame-options | `deny` |

```jsonc
[
{
"created": "<unstable>",
"id": "oun_c1644b5b-3ca4-45b4-97c6-a2a0de70d469",
"sourceDisplayName": "8cf3def6b8cea",
"sourceUserId": "usr_9439f8cc-1c6b-4dca-9a07-d2eccb570701",
"targetDisplayName": "tupper",
"targetUserId": "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469",
"type": "unmute"
}
]
```
31 changes: 31 additions & 0 deletions data/requests/playermoderation/getplayermoderations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# getPlayerModerations

## Request
`GET https://vrchat.com/api/1/auth/user/playermoderations`

| Header | Value |
| ------ | ----- |
| user-agent | `specification-test/@<unstable> https://github.com/vrchatapi/specification-test/issues/new` |
| cookie | `auth=<redacted>; twoFactorAuth=<redacted>` |


## Response
`200 OK`

| Header | Value |
| ------ | ----- |
| accept-ranges | `bytes` |
| access-control-allow-credentials | `true` |
| cache-control | `private, no-cache` |
| connection | `keep-alive` |
| content-length | `2` |
| content-type | `application/json; charset=utf-8` |
| etag | `<redacted>` |
| pragma | `no-cache` |
| server | `cloudflare` |
| vary | `Authorization, Accept-Encoding` |
| x-frame-options | `deny` |

```jsonc
[]
```
45 changes: 45 additions & 0 deletions data/requests/playermoderation/moderateuser.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# moderateUser

## Request
`POST https://vrchat.com/api/1/auth/user/playermoderations`

| Header | Value |
| ------ | ----- |
| user-agent | `specification-test/@<unstable> https://github.com/vrchatapi/specification-test/issues/new` |
| content-type | `application/json` |
| cookie | `auth=<redacted>; twoFactorAuth=<redacted>` |

```json
{
"moderated": "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469",
"type": "unmute"
}
```


## Response
`200 OK`

| Header | Value |
| ------ | ----- |
| access-control-allow-credentials | `true` |
| cache-control | `private, no-cache` |
| connection | `keep-alive` |
| content-type | `application/json; charset=utf-8` |
| pragma | `no-cache` |
| server | `cloudflare` |
| transfer-encoding | `chunked` |
| vary | `Authorization, Accept-Encoding` |
| x-frame-options | `deny` |

```jsonc
{
"created": "<unstable: string>",
"id": "oun_c1644b5b-3ca4-45b4-97c6-a2a0de70d469",
"sourceDisplayName": "8cf3def6b8cea",
"sourceUserId": "usr_9439f8cc-1c6b-4dca-9a07-d2eccb570701",
"targetDisplayName": "tupper",
"targetUserId": "usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469",
"type": "unmute"
}
```
24 changes: 24 additions & 0 deletions data/requests/playermoderation/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Playermoderation

## Clear All Player Moderations
⚠️ **This will delete every single player moderation you've ever made.**

* [clearAllPlayerModerations](./clearallplayermoderations.md)
## Search Player Moderations
Returns a list of all player moderations made by **you**.

This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.

* [getPlayerModerations](./getplayermoderations.md)
* [getPlayerModerations with filter](./getplayermoderations-with-filter.md)
## Moderate User
Moderate a user, e.g. unmute them or show their avatar.

Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.

* [moderateUser](./moderateuser.md)
## Unmoderate User
Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.

> Missing coverage.
18 changes: 10 additions & 8 deletions data/requests/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,18 @@ Response schema mismatch:

## [Economy](/data/requests/economy)

#### [getSteamTransaction](/data/requests/economy/getsteamtransaction.md)

Response schema mismatch:
* Invalid type at ``#/agreement``.

#### [getSteamTransactions](/data/requests/economy/getsteamtransactions.md)

Response schema mismatch:
* Invalid type at ``#/0/agreement``,
* Invalid type at ``#/1/agreement``,
* Invalid type at ``#/2/agreement``.

#### [getSteamTransaction](/data/requests/economy/getsteamtransaction.md)


#### [getCurrentSubscriptions](/data/requests/economy/getcurrentsubscriptions.md)


Expand Down Expand Up @@ -281,18 +283,18 @@ Response schema mismatch:



## [Player Moderation](/data/requests/player-moderation)
## [Playermoderation](/data/requests/playermoderation)

#### [getPlayerModerations](/data/requests/player-moderation/getplayermoderations.md)
#### [getPlayerModerations](/data/requests/playermoderation/getplayermoderations.md)


#### [moderateUser](/data/requests/player-moderation/moderateuser.md)
#### [moderateUser](/data/requests/playermoderation/moderateuser.md)


#### [getPlayerModerations with filter](/data/requests/player-moderation/getplayermoderations-with-filter.md)
#### [getPlayerModerations with filter](/data/requests/playermoderation/getplayermoderations-with-filter.md)


#### [clearAllPlayerModerations](/data/requests/player-moderation/clearallplayermoderations.md)
#### [clearAllPlayerModerations](/data/requests/playermoderation/clearallplayermoderations.md)



Expand Down
Loading

0 comments on commit 33b0e7b

Please sign in to comment.