vrchat 2.20.7-nightly.30 → 2.20.7-nightly.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-B3gfv2M1.d.mts → client-JjkmMGls.d.mts} +1400 -169
- package/dist/{client-B3gfv2M1.d.ts → client-JjkmMGls.d.ts} +1400 -169
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +278 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +278 -3
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/websocket.d.mts +1 -1
- package/dist/websocket.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { TOTP } from 'totp-generator';
|
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
8
|
var displayName = "VRChat.js";
|
|
9
|
-
var version = "2.20.7-nightly.
|
|
9
|
+
var version = "2.20.7-nightly.32";
|
|
10
10
|
var homepage = "https://vrchat.community/javascript";
|
|
11
11
|
|
|
12
12
|
// src/lib/metadata.ts
|
|
@@ -1234,6 +1234,8 @@ var followGroupCalendarEventResponseTransformer = async (data) => {
|
|
|
1234
1234
|
};
|
|
1235
1235
|
var apiConfigSchemaResponseTransformer = (data) => {
|
|
1236
1236
|
data["dis-countdown"] = new Date(data["dis-countdown"]);
|
|
1237
|
+
data.economyPauseEnd = new Date(data.economyPauseEnd);
|
|
1238
|
+
data.economyPauseStart = new Date(data.economyPauseStart);
|
|
1237
1239
|
return data;
|
|
1238
1240
|
};
|
|
1239
1241
|
var getConfigResponseTransformer = async (data) => {
|
|
@@ -1544,6 +1546,12 @@ var getGroupMembersResponseTransformer = async (data) => {
|
|
|
1544
1546
|
data = data.map((item) => groupMemberSchemaResponseTransformer(item));
|
|
1545
1547
|
return data;
|
|
1546
1548
|
};
|
|
1549
|
+
var searchGroupMembersResponseTransformer = async (data) => {
|
|
1550
|
+
if (data.results) {
|
|
1551
|
+
data.results = data.results.map((item) => groupMemberSchemaResponseTransformer(item));
|
|
1552
|
+
}
|
|
1553
|
+
return data;
|
|
1554
|
+
};
|
|
1547
1555
|
var groupLimitedMemberSchemaResponseTransformer = (data) => {
|
|
1548
1556
|
if (data.bannedAt) {
|
|
1549
1557
|
data.bannedAt = new Date(data.bannedAt);
|
|
@@ -1867,10 +1875,22 @@ var propSchemaResponseTransformer = (data) => {
|
|
|
1867
1875
|
data._updated_at = new Date(data._updated_at);
|
|
1868
1876
|
return data;
|
|
1869
1877
|
};
|
|
1878
|
+
var listPropsResponseTransformer = async (data) => {
|
|
1879
|
+
data = data.map((item) => propSchemaResponseTransformer(item));
|
|
1880
|
+
return data;
|
|
1881
|
+
};
|
|
1882
|
+
var createPropResponseTransformer = async (data) => {
|
|
1883
|
+
data = propSchemaResponseTransformer(data);
|
|
1884
|
+
return data;
|
|
1885
|
+
};
|
|
1870
1886
|
var getPropResponseTransformer = async (data) => {
|
|
1871
1887
|
data = propSchemaResponseTransformer(data);
|
|
1872
1888
|
return data;
|
|
1873
1889
|
};
|
|
1890
|
+
var updatePropResponseTransformer = async (data) => {
|
|
1891
|
+
data = propSchemaResponseTransformer(data);
|
|
1892
|
+
return data;
|
|
1893
|
+
};
|
|
1874
1894
|
var requestInviteResponseTransformer = async (data) => {
|
|
1875
1895
|
data = notificationSchemaResponseTransformer(data);
|
|
1876
1896
|
return data;
|
|
@@ -1978,10 +1998,18 @@ var getUserGroupsResponseTransformer = async (data) => {
|
|
|
1978
1998
|
data = data.map((item) => limitedUserGroupsSchemaResponseTransformer(item));
|
|
1979
1999
|
return data;
|
|
1980
2000
|
};
|
|
2001
|
+
var getInvitedGroupsResponseTransformer = async (data) => {
|
|
2002
|
+
data = data.map((item) => groupSchemaResponseTransformer(item));
|
|
2003
|
+
return data;
|
|
2004
|
+
};
|
|
1981
2005
|
var getUserGroupRequestsResponseTransformer = async (data) => {
|
|
1982
2006
|
data = data.map((item) => groupSchemaResponseTransformer(item));
|
|
1983
2007
|
return data;
|
|
1984
2008
|
};
|
|
2009
|
+
var getBlockedGroupsResponseTransformer = async (data) => {
|
|
2010
|
+
data = data.map((item) => groupSchemaResponseTransformer(item));
|
|
2011
|
+
return data;
|
|
2012
|
+
};
|
|
1985
2013
|
var getUserGroupInstancesResponseTransformer = async (data) => {
|
|
1986
2014
|
if (data.fetchedAt) {
|
|
1987
2015
|
data.fetchedAt = new Date(data.fetchedAt);
|
|
@@ -2134,6 +2162,29 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
2134
2162
|
...options
|
|
2135
2163
|
});
|
|
2136
2164
|
}
|
|
2165
|
+
/**
|
|
2166
|
+
* Get Content Agreement Status
|
|
2167
|
+
*
|
|
2168
|
+
* Returns the agreement status of the currently authenticated user for the given agreementCode, contentId, and version.
|
|
2169
|
+
*/
|
|
2170
|
+
getContentAgreementStatus(options) {
|
|
2171
|
+
return (options.client ?? this.client).get({ url: "/agreement", ...options });
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Submit Content Agreement
|
|
2175
|
+
*
|
|
2176
|
+
* Returns the agreement of the currently authenticated user for the given agreementCode, contentId, and version.
|
|
2177
|
+
*/
|
|
2178
|
+
submitContentAgreement(options) {
|
|
2179
|
+
return (options?.client ?? this.client).post({
|
|
2180
|
+
url: "/agreement",
|
|
2181
|
+
...options,
|
|
2182
|
+
headers: {
|
|
2183
|
+
"Content-Type": "application/json",
|
|
2184
|
+
...options?.headers
|
|
2185
|
+
}
|
|
2186
|
+
});
|
|
2187
|
+
}
|
|
2137
2188
|
/**
|
|
2138
2189
|
* Get File Version Analysis
|
|
2139
2190
|
*
|
|
@@ -2158,6 +2209,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
2158
2209
|
getFileAnalysisStandard(options) {
|
|
2159
2210
|
return (options.client ?? this.client).get({ url: "/analysis/{fileId}/{versionId}/standard", ...options });
|
|
2160
2211
|
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Update Asset Review Notes
|
|
2214
|
+
*
|
|
2215
|
+
* Update notes regarding an asset review.
|
|
2216
|
+
*/
|
|
2217
|
+
updateAssetReviewNotes(options) {
|
|
2218
|
+
return (options.client ?? this.client).put({
|
|
2219
|
+
url: "/assetReview/{assetReviewId}/notes",
|
|
2220
|
+
...options,
|
|
2221
|
+
headers: {
|
|
2222
|
+
"Content-Type": "application/json",
|
|
2223
|
+
...options.headers
|
|
2224
|
+
}
|
|
2225
|
+
});
|
|
2226
|
+
}
|
|
2161
2227
|
/**
|
|
2162
2228
|
* Verify Auth Token
|
|
2163
2229
|
*
|
|
@@ -3148,6 +3214,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3148
3214
|
...options
|
|
3149
3215
|
});
|
|
3150
3216
|
}
|
|
3217
|
+
/**
|
|
3218
|
+
* Set Group Gallery File Order
|
|
3219
|
+
*
|
|
3220
|
+
* Set the order of the files in a group gallery
|
|
3221
|
+
*/
|
|
3222
|
+
setGroupGalleryFileOrder(options) {
|
|
3223
|
+
return (options?.client ?? this.client).put({
|
|
3224
|
+
url: "/files/order",
|
|
3225
|
+
...options,
|
|
3226
|
+
headers: {
|
|
3227
|
+
"Content-Type": "application/json",
|
|
3228
|
+
...options?.headers
|
|
3229
|
+
}
|
|
3230
|
+
});
|
|
3231
|
+
}
|
|
3151
3232
|
/**
|
|
3152
3233
|
* Upload gallery image
|
|
3153
3234
|
*
|
|
@@ -3275,6 +3356,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3275
3356
|
}
|
|
3276
3357
|
});
|
|
3277
3358
|
}
|
|
3359
|
+
/**
|
|
3360
|
+
* Get Group Audit Log Entry Types
|
|
3361
|
+
*
|
|
3362
|
+
* Returns a list of audit log entry types for which the group has entries.
|
|
3363
|
+
*/
|
|
3364
|
+
getGroupAuditLogEntryTypes(options) {
|
|
3365
|
+
return (options.client ?? this.client).get({ url: "/groups/{groupId}/auditLogTypes", ...options });
|
|
3366
|
+
}
|
|
3278
3367
|
/**
|
|
3279
3368
|
* Get Group Audit Logs
|
|
3280
3369
|
*
|
|
@@ -3327,6 +3416,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3327
3416
|
...options
|
|
3328
3417
|
});
|
|
3329
3418
|
}
|
|
3419
|
+
/**
|
|
3420
|
+
* Block Group
|
|
3421
|
+
*
|
|
3422
|
+
* Blocks a Group for the current user. To unblock a group, call kickGroupMember (DELETE /groups/{groupId}/members/{userId}).
|
|
3423
|
+
*/
|
|
3424
|
+
blockGroup(options) {
|
|
3425
|
+
return (options.client ?? this.client).post({ url: "/groups/{groupId}/block", ...options });
|
|
3426
|
+
}
|
|
3330
3427
|
/**
|
|
3331
3428
|
* Create Group Gallery
|
|
3332
3429
|
*
|
|
@@ -3442,6 +3539,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3442
3539
|
}
|
|
3443
3540
|
});
|
|
3444
3541
|
}
|
|
3542
|
+
/**
|
|
3543
|
+
* Decline Invite from Group
|
|
3544
|
+
*
|
|
3545
|
+
* Declines an invite to the user from a group.
|
|
3546
|
+
*/
|
|
3547
|
+
declineGroupInvite(options) {
|
|
3548
|
+
return (options.client ?? this.client).put({
|
|
3549
|
+
url: "/groups/{groupId}/invites",
|
|
3550
|
+
...options,
|
|
3551
|
+
headers: {
|
|
3552
|
+
"Content-Type": "application/json",
|
|
3553
|
+
...options.headers
|
|
3554
|
+
}
|
|
3555
|
+
});
|
|
3556
|
+
}
|
|
3445
3557
|
/**
|
|
3446
3558
|
* Delete User Invite
|
|
3447
3559
|
*
|
|
@@ -3459,7 +3571,11 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3459
3571
|
return (options.client ?? this.client).post({
|
|
3460
3572
|
responseTransformer: joinGroupResponseTransformer,
|
|
3461
3573
|
url: "/groups/{groupId}/join",
|
|
3462
|
-
...options
|
|
3574
|
+
...options,
|
|
3575
|
+
headers: {
|
|
3576
|
+
"Content-Type": "application/json",
|
|
3577
|
+
...options.headers
|
|
3578
|
+
}
|
|
3463
3579
|
});
|
|
3464
3580
|
}
|
|
3465
3581
|
/**
|
|
@@ -3483,10 +3599,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3483
3599
|
...options
|
|
3484
3600
|
});
|
|
3485
3601
|
}
|
|
3602
|
+
/**
|
|
3603
|
+
* Search Group Members
|
|
3604
|
+
*
|
|
3605
|
+
* Search for members in the group by displayName.
|
|
3606
|
+
*/
|
|
3607
|
+
searchGroupMembers(options) {
|
|
3608
|
+
return (options.client ?? this.client).get({
|
|
3609
|
+
responseTransformer: searchGroupMembersResponseTransformer,
|
|
3610
|
+
url: "/groups/{groupId}/members/search",
|
|
3611
|
+
...options
|
|
3612
|
+
});
|
|
3613
|
+
}
|
|
3486
3614
|
/**
|
|
3487
3615
|
* Kick Group Member
|
|
3488
3616
|
*
|
|
3489
|
-
* Kicks a Group Member from the Group. The current user must have the "Remove Group Members" permission.
|
|
3617
|
+
* Kicks a Group Member from the Group. The current user must have the "Remove Group Members" permission. Also used for unblocking groups.
|
|
3490
3618
|
*/
|
|
3491
3619
|
kickGroupMember(options) {
|
|
3492
3620
|
return (options.client ?? this.client).delete({ url: "/groups/{groupId}/members/{userId}", ...options });
|
|
@@ -3703,6 +3831,37 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3703
3831
|
}
|
|
3704
3832
|
});
|
|
3705
3833
|
}
|
|
3834
|
+
/**
|
|
3835
|
+
* Cancel Group Transfer
|
|
3836
|
+
*
|
|
3837
|
+
* Cancel a Group Transfer.
|
|
3838
|
+
*/
|
|
3839
|
+
cancelGroupTransfer(options) {
|
|
3840
|
+
return (options.client ?? this.client).delete({ url: "/groups/{groupId}/transfer", ...options });
|
|
3841
|
+
}
|
|
3842
|
+
/**
|
|
3843
|
+
* Get Group Transferability
|
|
3844
|
+
*
|
|
3845
|
+
* Returns the transferability of the group to a given user.
|
|
3846
|
+
*/
|
|
3847
|
+
getGroupTransferability(options) {
|
|
3848
|
+
return (options.client ?? this.client).get({ url: "/groups/{groupId}/transfer", ...options });
|
|
3849
|
+
}
|
|
3850
|
+
/**
|
|
3851
|
+
* Initiate or Accept Group Transfer
|
|
3852
|
+
*
|
|
3853
|
+
* To initiate, must be logged in as the current owner and specify the transferTargetId in the body. To accept, must be logged in as the user targetted by a pending transfer, no body is required.
|
|
3854
|
+
*/
|
|
3855
|
+
initiateOrAcceptGroupTransfer(options) {
|
|
3856
|
+
return (options.client ?? this.client).post({
|
|
3857
|
+
url: "/groups/{groupId}/transfer",
|
|
3858
|
+
...options,
|
|
3859
|
+
headers: {
|
|
3860
|
+
"Content-Type": "application/json",
|
|
3861
|
+
...options.headers
|
|
3862
|
+
}
|
|
3863
|
+
});
|
|
3864
|
+
}
|
|
3706
3865
|
/**
|
|
3707
3866
|
* Check API Health
|
|
3708
3867
|
*
|
|
@@ -4423,6 +4582,42 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4423
4582
|
...options
|
|
4424
4583
|
});
|
|
4425
4584
|
}
|
|
4585
|
+
/**
|
|
4586
|
+
* List Props
|
|
4587
|
+
*
|
|
4588
|
+
* Returns a list Prop objects.
|
|
4589
|
+
*/
|
|
4590
|
+
listProps(options) {
|
|
4591
|
+
return (options.client ?? this.client).get({
|
|
4592
|
+
responseTransformer: listPropsResponseTransformer,
|
|
4593
|
+
url: "/props",
|
|
4594
|
+
...options
|
|
4595
|
+
});
|
|
4596
|
+
}
|
|
4597
|
+
/**
|
|
4598
|
+
* Create Prop
|
|
4599
|
+
*
|
|
4600
|
+
* Create a Prop and return the new Prop object.
|
|
4601
|
+
*/
|
|
4602
|
+
createProp(options) {
|
|
4603
|
+
return (options.client ?? this.client).post({
|
|
4604
|
+
responseTransformer: createPropResponseTransformer,
|
|
4605
|
+
url: "/props",
|
|
4606
|
+
...options,
|
|
4607
|
+
headers: {
|
|
4608
|
+
"Content-Type": "application/json",
|
|
4609
|
+
...options.headers
|
|
4610
|
+
}
|
|
4611
|
+
});
|
|
4612
|
+
}
|
|
4613
|
+
/**
|
|
4614
|
+
* Delete Prop
|
|
4615
|
+
*
|
|
4616
|
+
* Delete a Prop.
|
|
4617
|
+
*/
|
|
4618
|
+
deleteProp(options) {
|
|
4619
|
+
return (options.client ?? this.client).delete({ url: "/props/{propId}", ...options });
|
|
4620
|
+
}
|
|
4426
4621
|
/**
|
|
4427
4622
|
* Get Prop
|
|
4428
4623
|
*
|
|
@@ -4435,6 +4630,46 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4435
4630
|
...options
|
|
4436
4631
|
});
|
|
4437
4632
|
}
|
|
4633
|
+
/**
|
|
4634
|
+
* Update Prop
|
|
4635
|
+
*
|
|
4636
|
+
* Updates a Prop and returns the updated Prop object. When updating the asset bundle, all of `name`, `assetUrl`, `platform`, `unityVersion`, `assetVersion`, `spawnType`, and `worldPlacementMask` must be present, as well as `propSignature` if this value is not blank.
|
|
4637
|
+
*/
|
|
4638
|
+
updateProp(options) {
|
|
4639
|
+
return (options.client ?? this.client).put({
|
|
4640
|
+
responseTransformer: updatePropResponseTransformer,
|
|
4641
|
+
url: "/props/{propId}",
|
|
4642
|
+
...options,
|
|
4643
|
+
headers: {
|
|
4644
|
+
"Content-Type": "application/json",
|
|
4645
|
+
...options.headers
|
|
4646
|
+
}
|
|
4647
|
+
});
|
|
4648
|
+
}
|
|
4649
|
+
/**
|
|
4650
|
+
* Unpublish Prop
|
|
4651
|
+
*
|
|
4652
|
+
* Unpublish a Prop and return the updated PropPublishStatus object.
|
|
4653
|
+
*/
|
|
4654
|
+
unpublishProp(options) {
|
|
4655
|
+
return (options.client ?? this.client).delete({ url: "/props/{propId}/publish", ...options });
|
|
4656
|
+
}
|
|
4657
|
+
/**
|
|
4658
|
+
* Get Prop Publish Status
|
|
4659
|
+
*
|
|
4660
|
+
* Returns a PropPublishStatus object.
|
|
4661
|
+
*/
|
|
4662
|
+
getPropPublishStatus(options) {
|
|
4663
|
+
return (options.client ?? this.client).get({ url: "/props/{propId}/publish", ...options });
|
|
4664
|
+
}
|
|
4665
|
+
/**
|
|
4666
|
+
* Publish Prop
|
|
4667
|
+
*
|
|
4668
|
+
* Publish a Prop and return the updated PropPublishStatus object.
|
|
4669
|
+
*/
|
|
4670
|
+
publishProp(options) {
|
|
4671
|
+
return (options.client ?? this.client).put({ url: "/props/{propId}/publish", ...options });
|
|
4672
|
+
}
|
|
4438
4673
|
/**
|
|
4439
4674
|
* Request Invite
|
|
4440
4675
|
*
|
|
@@ -4813,6 +5048,26 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4813
5048
|
...options
|
|
4814
5049
|
});
|
|
4815
5050
|
}
|
|
5051
|
+
/**
|
|
5052
|
+
* Get User Group Invited
|
|
5053
|
+
*
|
|
5054
|
+
* Returns a list of Groups the user has been invited to.
|
|
5055
|
+
*/
|
|
5056
|
+
getInvitedGroups(options) {
|
|
5057
|
+
return (options.client ?? this.client).get({
|
|
5058
|
+
responseTransformer: getInvitedGroupsResponseTransformer,
|
|
5059
|
+
url: "/users/{userId}/groups/invited",
|
|
5060
|
+
...options
|
|
5061
|
+
});
|
|
5062
|
+
}
|
|
5063
|
+
/**
|
|
5064
|
+
* Get user's permissions for all joined groups.
|
|
5065
|
+
*
|
|
5066
|
+
* Returns a mapping of GroupIDs to arrays of GroupPermissions.
|
|
5067
|
+
*/
|
|
5068
|
+
getUserAllGroupPermissions(options) {
|
|
5069
|
+
return (options.client ?? this.client).get({ url: "/users/{userId}/groups/permissions", ...options });
|
|
5070
|
+
}
|
|
4816
5071
|
/**
|
|
4817
5072
|
* Get user's current represented group
|
|
4818
5073
|
*
|
|
@@ -4833,6 +5088,18 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4833
5088
|
...options
|
|
4834
5089
|
});
|
|
4835
5090
|
}
|
|
5091
|
+
/**
|
|
5092
|
+
* Get User Group Blocks
|
|
5093
|
+
*
|
|
5094
|
+
* Returns a list of Groups the user has blocked.
|
|
5095
|
+
*/
|
|
5096
|
+
getBlockedGroups(options) {
|
|
5097
|
+
return (options.client ?? this.client).get({
|
|
5098
|
+
responseTransformer: getBlockedGroupsResponseTransformer,
|
|
5099
|
+
url: "/users/{userId}/groups/userblocked",
|
|
5100
|
+
...options
|
|
5101
|
+
});
|
|
5102
|
+
}
|
|
4836
5103
|
/**
|
|
4837
5104
|
* Get User Group Instances
|
|
4838
5105
|
*
|
|
@@ -4885,6 +5152,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4885
5152
|
...options
|
|
4886
5153
|
});
|
|
4887
5154
|
}
|
|
5155
|
+
/**
|
|
5156
|
+
* Delete All User Persistence Data
|
|
5157
|
+
*
|
|
5158
|
+
* Deletes all of the user's persistence data for every world.
|
|
5159
|
+
*/
|
|
5160
|
+
deleteAllUserPersistenceData(options) {
|
|
5161
|
+
return (options.client ?? this.client).delete({ url: "/users/{userId}/persist", ...options });
|
|
5162
|
+
}
|
|
4888
5163
|
/**
|
|
4889
5164
|
* Remove User Tags
|
|
4890
5165
|
*
|