vrchat 2.20.7-nightly.31 → 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/index.js CHANGED
@@ -12,7 +12,7 @@ var Keyv__default = /*#__PURE__*/_interopDefault(Keyv);
12
12
 
13
13
  // package.json
14
14
  var displayName = "VRChat.js";
15
- var version = "2.20.7-nightly.31";
15
+ var version = "2.20.7-nightly.32";
16
16
  var homepage = "https://vrchat.community/javascript";
17
17
 
18
18
  // src/lib/metadata.ts
@@ -1240,6 +1240,8 @@ var followGroupCalendarEventResponseTransformer = async (data) => {
1240
1240
  };
1241
1241
  var apiConfigSchemaResponseTransformer = (data) => {
1242
1242
  data["dis-countdown"] = new Date(data["dis-countdown"]);
1243
+ data.economyPauseEnd = new Date(data.economyPauseEnd);
1244
+ data.economyPauseStart = new Date(data.economyPauseStart);
1243
1245
  return data;
1244
1246
  };
1245
1247
  var getConfigResponseTransformer = async (data) => {
@@ -1550,6 +1552,12 @@ var getGroupMembersResponseTransformer = async (data) => {
1550
1552
  data = data.map((item) => groupMemberSchemaResponseTransformer(item));
1551
1553
  return data;
1552
1554
  };
1555
+ var searchGroupMembersResponseTransformer = async (data) => {
1556
+ if (data.results) {
1557
+ data.results = data.results.map((item) => groupMemberSchemaResponseTransformer(item));
1558
+ }
1559
+ return data;
1560
+ };
1553
1561
  var groupLimitedMemberSchemaResponseTransformer = (data) => {
1554
1562
  if (data.bannedAt) {
1555
1563
  data.bannedAt = new Date(data.bannedAt);
@@ -1873,10 +1881,22 @@ var propSchemaResponseTransformer = (data) => {
1873
1881
  data._updated_at = new Date(data._updated_at);
1874
1882
  return data;
1875
1883
  };
1884
+ var listPropsResponseTransformer = async (data) => {
1885
+ data = data.map((item) => propSchemaResponseTransformer(item));
1886
+ return data;
1887
+ };
1888
+ var createPropResponseTransformer = async (data) => {
1889
+ data = propSchemaResponseTransformer(data);
1890
+ return data;
1891
+ };
1876
1892
  var getPropResponseTransformer = async (data) => {
1877
1893
  data = propSchemaResponseTransformer(data);
1878
1894
  return data;
1879
1895
  };
1896
+ var updatePropResponseTransformer = async (data) => {
1897
+ data = propSchemaResponseTransformer(data);
1898
+ return data;
1899
+ };
1880
1900
  var requestInviteResponseTransformer = async (data) => {
1881
1901
  data = notificationSchemaResponseTransformer(data);
1882
1902
  return data;
@@ -1984,10 +2004,18 @@ var getUserGroupsResponseTransformer = async (data) => {
1984
2004
  data = data.map((item) => limitedUserGroupsSchemaResponseTransformer(item));
1985
2005
  return data;
1986
2006
  };
2007
+ var getInvitedGroupsResponseTransformer = async (data) => {
2008
+ data = data.map((item) => groupSchemaResponseTransformer(item));
2009
+ return data;
2010
+ };
1987
2011
  var getUserGroupRequestsResponseTransformer = async (data) => {
1988
2012
  data = data.map((item) => groupSchemaResponseTransformer(item));
1989
2013
  return data;
1990
2014
  };
2015
+ var getBlockedGroupsResponseTransformer = async (data) => {
2016
+ data = data.map((item) => groupSchemaResponseTransformer(item));
2017
+ return data;
2018
+ };
1991
2019
  var getUserGroupInstancesResponseTransformer = async (data) => {
1992
2020
  if (data.fetchedAt) {
1993
2021
  data.fetchedAt = new Date(data.fetchedAt);
@@ -2140,6 +2168,29 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
2140
2168
  ...options
2141
2169
  });
2142
2170
  }
2171
+ /**
2172
+ * Get Content Agreement Status
2173
+ *
2174
+ * Returns the agreement status of the currently authenticated user for the given agreementCode, contentId, and version.
2175
+ */
2176
+ getContentAgreementStatus(options) {
2177
+ return (options.client ?? this.client).get({ url: "/agreement", ...options });
2178
+ }
2179
+ /**
2180
+ * Submit Content Agreement
2181
+ *
2182
+ * Returns the agreement of the currently authenticated user for the given agreementCode, contentId, and version.
2183
+ */
2184
+ submitContentAgreement(options) {
2185
+ return (options?.client ?? this.client).post({
2186
+ url: "/agreement",
2187
+ ...options,
2188
+ headers: {
2189
+ "Content-Type": "application/json",
2190
+ ...options?.headers
2191
+ }
2192
+ });
2193
+ }
2143
2194
  /**
2144
2195
  * Get File Version Analysis
2145
2196
  *
@@ -2164,6 +2215,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
2164
2215
  getFileAnalysisStandard(options) {
2165
2216
  return (options.client ?? this.client).get({ url: "/analysis/{fileId}/{versionId}/standard", ...options });
2166
2217
  }
2218
+ /**
2219
+ * Update Asset Review Notes
2220
+ *
2221
+ * Update notes regarding an asset review.
2222
+ */
2223
+ updateAssetReviewNotes(options) {
2224
+ return (options.client ?? this.client).put({
2225
+ url: "/assetReview/{assetReviewId}/notes",
2226
+ ...options,
2227
+ headers: {
2228
+ "Content-Type": "application/json",
2229
+ ...options.headers
2230
+ }
2231
+ });
2232
+ }
2167
2233
  /**
2168
2234
  * Verify Auth Token
2169
2235
  *
@@ -3154,6 +3220,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
3154
3220
  ...options
3155
3221
  });
3156
3222
  }
3223
+ /**
3224
+ * Set Group Gallery File Order
3225
+ *
3226
+ * Set the order of the files in a group gallery
3227
+ */
3228
+ setGroupGalleryFileOrder(options) {
3229
+ return (options?.client ?? this.client).put({
3230
+ url: "/files/order",
3231
+ ...options,
3232
+ headers: {
3233
+ "Content-Type": "application/json",
3234
+ ...options?.headers
3235
+ }
3236
+ });
3237
+ }
3157
3238
  /**
3158
3239
  * Upload gallery image
3159
3240
  *
@@ -3281,6 +3362,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
3281
3362
  }
3282
3363
  });
3283
3364
  }
3365
+ /**
3366
+ * Get Group Audit Log Entry Types
3367
+ *
3368
+ * Returns a list of audit log entry types for which the group has entries.
3369
+ */
3370
+ getGroupAuditLogEntryTypes(options) {
3371
+ return (options.client ?? this.client).get({ url: "/groups/{groupId}/auditLogTypes", ...options });
3372
+ }
3284
3373
  /**
3285
3374
  * Get Group Audit Logs
3286
3375
  *
@@ -3333,6 +3422,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
3333
3422
  ...options
3334
3423
  });
3335
3424
  }
3425
+ /**
3426
+ * Block Group
3427
+ *
3428
+ * Blocks a Group for the current user. To unblock a group, call kickGroupMember (DELETE /groups/{groupId}/members/{userId}).
3429
+ */
3430
+ blockGroup(options) {
3431
+ return (options.client ?? this.client).post({ url: "/groups/{groupId}/block", ...options });
3432
+ }
3336
3433
  /**
3337
3434
  * Create Group Gallery
3338
3435
  *
@@ -3448,6 +3545,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
3448
3545
  }
3449
3546
  });
3450
3547
  }
3548
+ /**
3549
+ * Decline Invite from Group
3550
+ *
3551
+ * Declines an invite to the user from a group.
3552
+ */
3553
+ declineGroupInvite(options) {
3554
+ return (options.client ?? this.client).put({
3555
+ url: "/groups/{groupId}/invites",
3556
+ ...options,
3557
+ headers: {
3558
+ "Content-Type": "application/json",
3559
+ ...options.headers
3560
+ }
3561
+ });
3562
+ }
3451
3563
  /**
3452
3564
  * Delete User Invite
3453
3565
  *
@@ -3465,7 +3577,11 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
3465
3577
  return (options.client ?? this.client).post({
3466
3578
  responseTransformer: joinGroupResponseTransformer,
3467
3579
  url: "/groups/{groupId}/join",
3468
- ...options
3580
+ ...options,
3581
+ headers: {
3582
+ "Content-Type": "application/json",
3583
+ ...options.headers
3584
+ }
3469
3585
  });
3470
3586
  }
3471
3587
  /**
@@ -3489,10 +3605,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
3489
3605
  ...options
3490
3606
  });
3491
3607
  }
3608
+ /**
3609
+ * Search Group Members
3610
+ *
3611
+ * Search for members in the group by displayName.
3612
+ */
3613
+ searchGroupMembers(options) {
3614
+ return (options.client ?? this.client).get({
3615
+ responseTransformer: searchGroupMembersResponseTransformer,
3616
+ url: "/groups/{groupId}/members/search",
3617
+ ...options
3618
+ });
3619
+ }
3492
3620
  /**
3493
3621
  * Kick Group Member
3494
3622
  *
3495
- * Kicks a Group Member from the Group. The current user must have the "Remove Group Members" permission.
3623
+ * Kicks a Group Member from the Group. The current user must have the "Remove Group Members" permission. Also used for unblocking groups.
3496
3624
  */
3497
3625
  kickGroupMember(options) {
3498
3626
  return (options.client ?? this.client).delete({ url: "/groups/{groupId}/members/{userId}", ...options });
@@ -3709,6 +3837,37 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
3709
3837
  }
3710
3838
  });
3711
3839
  }
3840
+ /**
3841
+ * Cancel Group Transfer
3842
+ *
3843
+ * Cancel a Group Transfer.
3844
+ */
3845
+ cancelGroupTransfer(options) {
3846
+ return (options.client ?? this.client).delete({ url: "/groups/{groupId}/transfer", ...options });
3847
+ }
3848
+ /**
3849
+ * Get Group Transferability
3850
+ *
3851
+ * Returns the transferability of the group to a given user.
3852
+ */
3853
+ getGroupTransferability(options) {
3854
+ return (options.client ?? this.client).get({ url: "/groups/{groupId}/transfer", ...options });
3855
+ }
3856
+ /**
3857
+ * Initiate or Accept Group Transfer
3858
+ *
3859
+ * 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.
3860
+ */
3861
+ initiateOrAcceptGroupTransfer(options) {
3862
+ return (options.client ?? this.client).post({
3863
+ url: "/groups/{groupId}/transfer",
3864
+ ...options,
3865
+ headers: {
3866
+ "Content-Type": "application/json",
3867
+ ...options.headers
3868
+ }
3869
+ });
3870
+ }
3712
3871
  /**
3713
3872
  * Check API Health
3714
3873
  *
@@ -4429,6 +4588,42 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
4429
4588
  ...options
4430
4589
  });
4431
4590
  }
4591
+ /**
4592
+ * List Props
4593
+ *
4594
+ * Returns a list Prop objects.
4595
+ */
4596
+ listProps(options) {
4597
+ return (options.client ?? this.client).get({
4598
+ responseTransformer: listPropsResponseTransformer,
4599
+ url: "/props",
4600
+ ...options
4601
+ });
4602
+ }
4603
+ /**
4604
+ * Create Prop
4605
+ *
4606
+ * Create a Prop and return the new Prop object.
4607
+ */
4608
+ createProp(options) {
4609
+ return (options.client ?? this.client).post({
4610
+ responseTransformer: createPropResponseTransformer,
4611
+ url: "/props",
4612
+ ...options,
4613
+ headers: {
4614
+ "Content-Type": "application/json",
4615
+ ...options.headers
4616
+ }
4617
+ });
4618
+ }
4619
+ /**
4620
+ * Delete Prop
4621
+ *
4622
+ * Delete a Prop.
4623
+ */
4624
+ deleteProp(options) {
4625
+ return (options.client ?? this.client).delete({ url: "/props/{propId}", ...options });
4626
+ }
4432
4627
  /**
4433
4628
  * Get Prop
4434
4629
  *
@@ -4441,6 +4636,46 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
4441
4636
  ...options
4442
4637
  });
4443
4638
  }
4639
+ /**
4640
+ * Update Prop
4641
+ *
4642
+ * 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.
4643
+ */
4644
+ updateProp(options) {
4645
+ return (options.client ?? this.client).put({
4646
+ responseTransformer: updatePropResponseTransformer,
4647
+ url: "/props/{propId}",
4648
+ ...options,
4649
+ headers: {
4650
+ "Content-Type": "application/json",
4651
+ ...options.headers
4652
+ }
4653
+ });
4654
+ }
4655
+ /**
4656
+ * Unpublish Prop
4657
+ *
4658
+ * Unpublish a Prop and return the updated PropPublishStatus object.
4659
+ */
4660
+ unpublishProp(options) {
4661
+ return (options.client ?? this.client).delete({ url: "/props/{propId}/publish", ...options });
4662
+ }
4663
+ /**
4664
+ * Get Prop Publish Status
4665
+ *
4666
+ * Returns a PropPublishStatus object.
4667
+ */
4668
+ getPropPublishStatus(options) {
4669
+ return (options.client ?? this.client).get({ url: "/props/{propId}/publish", ...options });
4670
+ }
4671
+ /**
4672
+ * Publish Prop
4673
+ *
4674
+ * Publish a Prop and return the updated PropPublishStatus object.
4675
+ */
4676
+ publishProp(options) {
4677
+ return (options.client ?? this.client).put({ url: "/props/{propId}/publish", ...options });
4678
+ }
4444
4679
  /**
4445
4680
  * Request Invite
4446
4681
  *
@@ -4819,6 +5054,26 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
4819
5054
  ...options
4820
5055
  });
4821
5056
  }
5057
+ /**
5058
+ * Get User Group Invited
5059
+ *
5060
+ * Returns a list of Groups the user has been invited to.
5061
+ */
5062
+ getInvitedGroups(options) {
5063
+ return (options.client ?? this.client).get({
5064
+ responseTransformer: getInvitedGroupsResponseTransformer,
5065
+ url: "/users/{userId}/groups/invited",
5066
+ ...options
5067
+ });
5068
+ }
5069
+ /**
5070
+ * Get user's permissions for all joined groups.
5071
+ *
5072
+ * Returns a mapping of GroupIDs to arrays of GroupPermissions.
5073
+ */
5074
+ getUserAllGroupPermissions(options) {
5075
+ return (options.client ?? this.client).get({ url: "/users/{userId}/groups/permissions", ...options });
5076
+ }
4822
5077
  /**
4823
5078
  * Get user's current represented group
4824
5079
  *
@@ -4839,6 +5094,18 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
4839
5094
  ...options
4840
5095
  });
4841
5096
  }
5097
+ /**
5098
+ * Get User Group Blocks
5099
+ *
5100
+ * Returns a list of Groups the user has blocked.
5101
+ */
5102
+ getBlockedGroups(options) {
5103
+ return (options.client ?? this.client).get({
5104
+ responseTransformer: getBlockedGroupsResponseTransformer,
5105
+ url: "/users/{userId}/groups/userblocked",
5106
+ ...options
5107
+ });
5108
+ }
4842
5109
  /**
4843
5110
  * Get User Group Instances
4844
5111
  *
@@ -4891,6 +5158,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
4891
5158
  ...options
4892
5159
  });
4893
5160
  }
5161
+ /**
5162
+ * Delete All User Persistence Data
5163
+ *
5164
+ * Deletes all of the user's persistence data for every world.
5165
+ */
5166
+ deleteAllUserPersistenceData(options) {
5167
+ return (options.client ?? this.client).delete({ url: "/users/{userId}/persist", ...options });
5168
+ }
4894
5169
  /**
4895
5170
  * Remove User Tags
4896
5171
  *