vrchat 2.25.1 → 2.25.2-nightly.2

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