vrchat 2.25.1 → 2.25.2-nightly.1

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.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.25.1";
9
+ var version = "2.25.2-nightly.1";
10
10
  var homepage = "https://vrchat.community/javascript";
11
11
 
12
12
  // src/lib/metadata.ts
@@ -1687,6 +1687,10 @@ var getInstanceResponseTransformer = async (data) => {
1687
1687
  data = instanceSchemaResponseTransformer(data);
1688
1688
  return data;
1689
1689
  };
1690
+ var updateInstanceResponseTransformer = async (data) => {
1691
+ data = instanceSchemaResponseTransformer(data);
1692
+ return data;
1693
+ };
1690
1694
  var inventorySchemaResponseTransformer = (data) => {
1691
1695
  data.data = data.data.map((item) => inventoryItemSchemaResponseTransformer(item));
1692
1696
  return data;
@@ -4232,6 +4236,26 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
4232
4236
  ...options
4233
4237
  });
4234
4238
  }
4239
+ /**
4240
+ * Update Instance
4241
+ *
4242
+ * Set or remove the calendar event linked to a group instance.
4243
+ *
4244
+ * Updating a group instance requires both the `group-instance-manage` and `group-instance-calendar-link` permissions.
4245
+ *
4246
+ * The event must begin within the next six hours or have ended within the previous six hours.
4247
+ */
4248
+ updateInstance(options) {
4249
+ return (options.client ?? this.client).put({
4250
+ responseTransformer: updateInstanceResponseTransformer,
4251
+ url: "/instances/{worldId}:{instanceId}",
4252
+ ...options,
4253
+ headers: {
4254
+ "Content-Type": "application/json",
4255
+ ...options.headers
4256
+ }
4257
+ });
4258
+ }
4235
4259
  /**
4236
4260
  * Get Instance Short Name
4237
4261
  *