vrchat 2.22.7 → 2.22.8
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-DrFefMm4.d.mts → client-BJzpZmBf.d.mts} +1908 -457
- package/dist/{client-DrFefMm4.d.ts → client-BJzpZmBf.d.ts} +1908 -457
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +447 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +447 -28
- 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 +3 -2
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.22.
|
|
9
|
+
var version = "2.22.8";
|
|
10
10
|
var homepage = "https://vrchat.community/javascript";
|
|
11
11
|
|
|
12
12
|
// src/lib/metadata.ts
|
|
@@ -1169,6 +1169,9 @@ var calendarEventSchemaResponseTransformer = (data) => {
|
|
|
1169
1169
|
if (data.deletedAt) {
|
|
1170
1170
|
data.deletedAt = new Date(data.deletedAt);
|
|
1171
1171
|
}
|
|
1172
|
+
if (data.durationInMs) {
|
|
1173
|
+
data.durationInMs = BigInt(data.durationInMs.toString());
|
|
1174
|
+
}
|
|
1172
1175
|
data.endsAt = new Date(data.endsAt);
|
|
1173
1176
|
data.startsAt = new Date(data.startsAt);
|
|
1174
1177
|
if (data.updatedAt) {
|
|
@@ -1244,8 +1247,12 @@ var getConfigResponseTransformer = async (data) => {
|
|
|
1244
1247
|
};
|
|
1245
1248
|
var productPurchaseSchemaResponseTransformer = (data) => {
|
|
1246
1249
|
data.purchaseDate = new Date(data.purchaseDate);
|
|
1247
|
-
|
|
1248
|
-
|
|
1250
|
+
if (data.purchaseEndDate) {
|
|
1251
|
+
data.purchaseEndDate = new Date(data.purchaseEndDate);
|
|
1252
|
+
}
|
|
1253
|
+
if (data.purchaseStartDate) {
|
|
1254
|
+
data.purchaseStartDate = new Date(data.purchaseStartDate);
|
|
1255
|
+
}
|
|
1249
1256
|
return data;
|
|
1250
1257
|
};
|
|
1251
1258
|
var purchaseProductListingResponseTransformer = async (data) => {
|
|
@@ -1256,22 +1263,38 @@ var getProductPurchasesResponseTransformer = async (data) => {
|
|
|
1256
1263
|
data = data.map((item) => productPurchaseSchemaResponseTransformer(item));
|
|
1257
1264
|
return data;
|
|
1258
1265
|
};
|
|
1266
|
+
var getProductPurchaseResponseTransformer = async (data) => {
|
|
1267
|
+
data = productPurchaseSchemaResponseTransformer(data);
|
|
1268
|
+
return data;
|
|
1269
|
+
};
|
|
1259
1270
|
var storeSchemaResponseTransformer = (data) => {
|
|
1271
|
+
if (data.created) {
|
|
1272
|
+
data.created = new Date(data.created);
|
|
1273
|
+
}
|
|
1260
1274
|
if (data.listings) {
|
|
1261
1275
|
data.listings = data.listings.map((item) => productListingSchemaResponseTransformer(item));
|
|
1262
1276
|
}
|
|
1263
1277
|
if (data.shelves) {
|
|
1264
1278
|
data.shelves = data.shelves.map((item) => storeShelfSchemaResponseTransformer(item));
|
|
1265
1279
|
}
|
|
1280
|
+
if (data.updated) {
|
|
1281
|
+
data.updated = new Date(data.updated);
|
|
1282
|
+
}
|
|
1266
1283
|
return data;
|
|
1267
1284
|
};
|
|
1268
1285
|
var productListingSchemaResponseTransformer = (data) => {
|
|
1286
|
+
if (data.created) {
|
|
1287
|
+
data.created = new Date(data.created);
|
|
1288
|
+
}
|
|
1269
1289
|
if (data.hydratedProducts) {
|
|
1270
1290
|
data.hydratedProducts = data.hydratedProducts.map((item) => productSchemaResponseTransformer(item));
|
|
1271
1291
|
}
|
|
1272
1292
|
if (data.listingVariants) {
|
|
1273
1293
|
data.listingVariants = data.listingVariants.map((item) => productListingVariantSchemaResponseTransformer(item));
|
|
1274
1294
|
}
|
|
1295
|
+
if (data.updated) {
|
|
1296
|
+
data.updated = new Date(data.updated);
|
|
1297
|
+
}
|
|
1275
1298
|
if (data.whenToExpire) {
|
|
1276
1299
|
data.whenToExpire = new Date(data.whenToExpire);
|
|
1277
1300
|
}
|
|
@@ -1310,6 +1333,10 @@ var getStoreShelvesResponseTransformer = async (data) => {
|
|
|
1310
1333
|
data = data.map((item) => storeShelfSchemaResponseTransformer(item));
|
|
1311
1334
|
return data;
|
|
1312
1335
|
};
|
|
1336
|
+
var listStoresResponseTransformer = async (data) => {
|
|
1337
|
+
data = data.map((item) => storeSchemaResponseTransformer(item));
|
|
1338
|
+
return data;
|
|
1339
|
+
};
|
|
1313
1340
|
var fileSchemaResponseTransformer = (data) => {
|
|
1314
1341
|
data.versions = data.versions.map((item) => fileVersionSchemaResponseTransformer(item));
|
|
1315
1342
|
return data;
|
|
@@ -1552,27 +1579,12 @@ var searchGroupMembersResponseTransformer = async (data) => {
|
|
|
1552
1579
|
}
|
|
1553
1580
|
return data;
|
|
1554
1581
|
};
|
|
1555
|
-
var groupLimitedMemberSchemaResponseTransformer = (data) => {
|
|
1556
|
-
if (data.bannedAt) {
|
|
1557
|
-
data.bannedAt = new Date(data.bannedAt);
|
|
1558
|
-
}
|
|
1559
|
-
if (data.createdAt) {
|
|
1560
|
-
data.createdAt = new Date(data.createdAt);
|
|
1561
|
-
}
|
|
1562
|
-
if (data.joinedAt) {
|
|
1563
|
-
data.joinedAt = new Date(data.joinedAt);
|
|
1564
|
-
}
|
|
1565
|
-
if (data.lastPostReadAt) {
|
|
1566
|
-
data.lastPostReadAt = new Date(data.lastPostReadAt);
|
|
1567
|
-
}
|
|
1568
|
-
return data;
|
|
1569
|
-
};
|
|
1570
1582
|
var getGroupMemberResponseTransformer = async (data) => {
|
|
1571
|
-
data =
|
|
1583
|
+
data = groupMemberSchemaResponseTransformer(data);
|
|
1572
1584
|
return data;
|
|
1573
1585
|
};
|
|
1574
1586
|
var updateGroupMemberResponseTransformer = async (data) => {
|
|
1575
|
-
data =
|
|
1587
|
+
data = groupMemberSchemaResponseTransformer(data);
|
|
1576
1588
|
return data;
|
|
1577
1589
|
};
|
|
1578
1590
|
var groupPostSchemaResponseTransformer = (data) => {
|
|
@@ -1787,18 +1799,30 @@ var getJamResponseTransformer = async (data) => {
|
|
|
1787
1799
|
data = jamSchemaResponseTransformer(data);
|
|
1788
1800
|
return data;
|
|
1789
1801
|
};
|
|
1790
|
-
var
|
|
1802
|
+
var jamSubmissionSchemaResponseTransformer = (data) => {
|
|
1791
1803
|
data.created_at = new Date(data.created_at);
|
|
1792
1804
|
return data;
|
|
1793
1805
|
};
|
|
1794
1806
|
var getJamSubmissionsResponseTransformer = async (data) => {
|
|
1795
|
-
data = data.map((item) =>
|
|
1807
|
+
data = data.map((item) => jamSubmissionSchemaResponseTransformer(item));
|
|
1808
|
+
return data;
|
|
1809
|
+
};
|
|
1810
|
+
var submitJamContentResponseTransformer = async (data) => {
|
|
1811
|
+
data = jamSubmissionSchemaResponseTransformer(data);
|
|
1812
|
+
return data;
|
|
1813
|
+
};
|
|
1814
|
+
var createProductListingDirectResponseTransformer = async (data) => {
|
|
1815
|
+
data = productListingSchemaResponseTransformer(data);
|
|
1796
1816
|
return data;
|
|
1797
1817
|
};
|
|
1798
1818
|
var getProductListingResponseTransformer = async (data) => {
|
|
1799
1819
|
data = productListingSchemaResponseTransformer(data);
|
|
1800
1820
|
return data;
|
|
1801
1821
|
};
|
|
1822
|
+
var updateProductListingDirectResponseTransformer = async (data) => {
|
|
1823
|
+
data = productListingSchemaResponseTransformer(data);
|
|
1824
|
+
return data;
|
|
1825
|
+
};
|
|
1802
1826
|
var inviteMessageSchemaResponseTransformer = (data) => {
|
|
1803
1827
|
data.updatedAt = new Date(data.updatedAt);
|
|
1804
1828
|
return data;
|
|
@@ -1866,10 +1890,28 @@ var editPrintResponseTransformer = async (data) => {
|
|
|
1866
1890
|
data = printSchemaResponseTransformer(data);
|
|
1867
1891
|
return data;
|
|
1868
1892
|
};
|
|
1893
|
+
var createProductResponseTransformer = async (data) => {
|
|
1894
|
+
data = productSchemaResponseTransformer(data);
|
|
1895
|
+
return data;
|
|
1896
|
+
};
|
|
1869
1897
|
var getProductListingAlternateResponseTransformer = async (data) => {
|
|
1870
1898
|
data = productListingSchemaResponseTransformer(data);
|
|
1871
1899
|
return data;
|
|
1872
1900
|
};
|
|
1901
|
+
var updateProductResponseTransformer = async (data) => {
|
|
1902
|
+
data = productSchemaResponseTransformer(data);
|
|
1903
|
+
return data;
|
|
1904
|
+
};
|
|
1905
|
+
var publicProfileSchemaResponseTransformer = (data) => {
|
|
1906
|
+
if (data.badges) {
|
|
1907
|
+
data.badges = data.badges.map((item) => badgeSchemaResponseTransformer(item));
|
|
1908
|
+
}
|
|
1909
|
+
return data;
|
|
1910
|
+
};
|
|
1911
|
+
var getPublicProfileResponseTransformer = async (data) => {
|
|
1912
|
+
data = publicProfileSchemaResponseTransformer(data);
|
|
1913
|
+
return data;
|
|
1914
|
+
};
|
|
1873
1915
|
var propSchemaResponseTransformer = (data) => {
|
|
1874
1916
|
data._created_at = new Date(data._created_at);
|
|
1875
1917
|
data._updated_at = new Date(data._updated_at);
|
|
@@ -1899,6 +1941,28 @@ var requestInviteWithPhotoResponseTransformer = async (data) => {
|
|
|
1899
1941
|
data = notificationSchemaResponseTransformer(data);
|
|
1900
1942
|
return data;
|
|
1901
1943
|
};
|
|
1944
|
+
var rewardRedemptionResultSchemaResponseTransformer = (data) => {
|
|
1945
|
+
data.redeemedRewards = data.redeemedRewards.map((item) => rewardRedemptionSchemaResponseTransformer(item));
|
|
1946
|
+
return data;
|
|
1947
|
+
};
|
|
1948
|
+
var rewardRedemptionSchemaResponseTransformer = (data) => {
|
|
1949
|
+
if (data.data.badge) {
|
|
1950
|
+
data.data.badge = rewardBadgeSchemaResponseTransformer(data.data.badge);
|
|
1951
|
+
}
|
|
1952
|
+
if (data.data.item) {
|
|
1953
|
+
data.data.item = inventoryTemplateSchemaResponseTransformer(data.data.item);
|
|
1954
|
+
}
|
|
1955
|
+
return data;
|
|
1956
|
+
};
|
|
1957
|
+
var rewardBadgeSchemaResponseTransformer = (data) => {
|
|
1958
|
+
data.createdAt = new Date(data.createdAt);
|
|
1959
|
+
data.updatedAt = new Date(data.updatedAt);
|
|
1960
|
+
return data;
|
|
1961
|
+
};
|
|
1962
|
+
var redeemRewardResponseTransformer = async (data) => {
|
|
1963
|
+
data = data.map((item) => rewardRedemptionResultSchemaResponseTransformer(item));
|
|
1964
|
+
return data;
|
|
1965
|
+
};
|
|
1902
1966
|
var tiliaStatusSchemaResponseTransformer = (data) => {
|
|
1903
1967
|
if (data.plannedOfflineWindowEnd) {
|
|
1904
1968
|
data.plannedOfflineWindowEnd = new Date(data.plannedOfflineWindowEnd);
|
|
@@ -1924,12 +1988,55 @@ var economyAccountSchemaResponseTransformer = (data) => {
|
|
|
1924
1988
|
if (data.accountActivatedOn) {
|
|
1925
1989
|
data.accountActivatedOn = new Date(data.accountActivatedOn);
|
|
1926
1990
|
}
|
|
1991
|
+
if (data.accountSellerRegisteredOn) {
|
|
1992
|
+
data.accountSellerRegisteredOn = new Date(data.accountSellerRegisteredOn);
|
|
1993
|
+
}
|
|
1927
1994
|
return data;
|
|
1928
1995
|
};
|
|
1929
1996
|
var getEconomyAccountResponseTransformer = async (data) => {
|
|
1930
1997
|
data = economyAccountSchemaResponseTransformer(data);
|
|
1931
1998
|
return data;
|
|
1932
1999
|
};
|
|
2000
|
+
var economyPayoutListSchemaResponseTransformer = (data) => {
|
|
2001
|
+
data.payouts = data.payouts.map((item) => economyPayoutSchemaResponseTransformer(item));
|
|
2002
|
+
return data;
|
|
2003
|
+
};
|
|
2004
|
+
var economyPayoutSchemaResponseTransformer = (data) => {
|
|
2005
|
+
data.paymentCreated = new Date(data.paymentCreated);
|
|
2006
|
+
data.paymentUpdated = new Date(data.paymentUpdated);
|
|
2007
|
+
if (data.reversalDate) {
|
|
2008
|
+
data.reversalDate = new Date(data.reversalDate);
|
|
2009
|
+
}
|
|
2010
|
+
return data;
|
|
2011
|
+
};
|
|
2012
|
+
var getEconomyPayoutsResponseTransformer = async (data) => {
|
|
2013
|
+
data = economyPayoutListSchemaResponseTransformer(data);
|
|
2014
|
+
return data;
|
|
2015
|
+
};
|
|
2016
|
+
var economyPayoutStatusSchemaResponseTransformer = (data) => {
|
|
2017
|
+
if (data.activePayout) {
|
|
2018
|
+
data.activePayout = economyPayoutSchemaResponseTransformer(data.activePayout);
|
|
2019
|
+
}
|
|
2020
|
+
return data;
|
|
2021
|
+
};
|
|
2022
|
+
var getEconomyPayoutStatusResponseTransformer = async (data) => {
|
|
2023
|
+
data = economyPayoutStatusSchemaResponseTransformer(data);
|
|
2024
|
+
return data;
|
|
2025
|
+
};
|
|
2026
|
+
var productPurchaseHistorySchemaResponseTransformer = (data) => {
|
|
2027
|
+
data.endDate = new Date(data.endDate);
|
|
2028
|
+
data.startDate = new Date(data.startDate);
|
|
2029
|
+
data.transactions = data.transactions.map((item) => productPurchaseRecordSchemaResponseTransformer(item));
|
|
2030
|
+
return data;
|
|
2031
|
+
};
|
|
2032
|
+
var productPurchaseRecordSchemaResponseTransformer = (data) => {
|
|
2033
|
+
data.date = new Date(data.date);
|
|
2034
|
+
return data;
|
|
2035
|
+
};
|
|
2036
|
+
var getProductPurchaseHistoryResponseTransformer = async (data) => {
|
|
2037
|
+
data = productPurchaseHistorySchemaResponseTransformer(data);
|
|
2038
|
+
return data;
|
|
2039
|
+
};
|
|
1933
2040
|
var friendResponseTransformer = async (data) => {
|
|
1934
2041
|
data = notificationSchemaResponseTransformer(data);
|
|
1935
2042
|
return data;
|
|
@@ -1942,6 +2049,10 @@ var getProductListingsResponseTransformer = async (data) => {
|
|
|
1942
2049
|
data = data.map((item) => productListingSchemaResponseTransformer(item));
|
|
1943
2050
|
return data;
|
|
1944
2051
|
};
|
|
2052
|
+
var listUserProductsResponseTransformer = async (data) => {
|
|
2053
|
+
data = data.map((item) => productSchemaResponseTransformer(item));
|
|
2054
|
+
return data;
|
|
2055
|
+
};
|
|
1945
2056
|
var userNoteSchemaResponseTransformer = (data) => {
|
|
1946
2057
|
data.createdAt = new Date(data.createdAt);
|
|
1947
2058
|
return data;
|
|
@@ -2092,6 +2203,14 @@ var updateWorldResponseTransformer = async (data) => {
|
|
|
2092
2203
|
data = worldSchemaResponseTransformer(data);
|
|
2093
2204
|
return data;
|
|
2094
2205
|
};
|
|
2206
|
+
var addWorldTagsResponseTransformer = async (data) => {
|
|
2207
|
+
data = worldSchemaResponseTransformer(data);
|
|
2208
|
+
return data;
|
|
2209
|
+
};
|
|
2210
|
+
var removeWorldTagsResponseTransformer = async (data) => {
|
|
2211
|
+
data = worldSchemaResponseTransformer(data);
|
|
2212
|
+
return data;
|
|
2213
|
+
};
|
|
2095
2214
|
var getWorldInstanceResponseTransformer = async (data) => {
|
|
2096
2215
|
data = instanceSchemaResponseTransformer(data);
|
|
2097
2216
|
return data;
|
|
@@ -2945,6 +3064,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
2945
3064
|
getActiveLicenses(options) {
|
|
2946
3065
|
return (options?.client ?? this.client).get({ url: "/economy/licenses/active", ...options });
|
|
2947
3066
|
}
|
|
3067
|
+
/**
|
|
3068
|
+
* Get Earnings Metrics
|
|
3069
|
+
*
|
|
3070
|
+
* Gets earnings totals and breakdown metrics for the currently authenticated user.
|
|
3071
|
+
*/
|
|
3072
|
+
getEarningsMetrics(options) {
|
|
3073
|
+
return (options.client ?? this.client).get({ url: "/economy/metrics/earnings", ...options });
|
|
3074
|
+
}
|
|
2948
3075
|
/**
|
|
2949
3076
|
* Purchase Product Listing
|
|
2950
3077
|
*
|
|
@@ -2973,6 +3100,34 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
2973
3100
|
...options
|
|
2974
3101
|
});
|
|
2975
3102
|
}
|
|
3103
|
+
/**
|
|
3104
|
+
* Get Product Purchase
|
|
3105
|
+
*
|
|
3106
|
+
* Gets a single product purchase
|
|
3107
|
+
*/
|
|
3108
|
+
getProductPurchase(options) {
|
|
3109
|
+
return (options.client ?? this.client).get({
|
|
3110
|
+
responseTransformer: getProductPurchaseResponseTransformer,
|
|
3111
|
+
url: "/economy/purchases/{productPurchaseId}",
|
|
3112
|
+
...options
|
|
3113
|
+
});
|
|
3114
|
+
}
|
|
3115
|
+
/**
|
|
3116
|
+
* Get Product Purchase Stacks
|
|
3117
|
+
*
|
|
3118
|
+
* Gets stacks for a product purchase
|
|
3119
|
+
*/
|
|
3120
|
+
getProductPurchaseStacks(options) {
|
|
3121
|
+
return (options.client ?? this.client).get({ url: "/economy/purchases/{productPurchaseId}/stacks", ...options });
|
|
3122
|
+
}
|
|
3123
|
+
/**
|
|
3124
|
+
* Get Seller Eligibility
|
|
3125
|
+
*
|
|
3126
|
+
* Get the eligibility of the currently authenticated user to become a seller
|
|
3127
|
+
*/
|
|
3128
|
+
getSellerEligibility(options) {
|
|
3129
|
+
return (options?.client ?? this.client).get({ url: "/economy/seller/eligibility", ...options });
|
|
3130
|
+
}
|
|
2976
3131
|
/**
|
|
2977
3132
|
* Get Store
|
|
2978
3133
|
*
|
|
@@ -2997,6 +3152,18 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
2997
3152
|
...options
|
|
2998
3153
|
});
|
|
2999
3154
|
}
|
|
3155
|
+
/**
|
|
3156
|
+
* List Stores
|
|
3157
|
+
*
|
|
3158
|
+
* Lists stores, optionally filtered to a seller and adjusted for management views.
|
|
3159
|
+
*/
|
|
3160
|
+
listStores(options) {
|
|
3161
|
+
return (options?.client ?? this.client).get({
|
|
3162
|
+
responseTransformer: listStoresResponseTransformer,
|
|
3163
|
+
url: "/economy/stores",
|
|
3164
|
+
...options
|
|
3165
|
+
});
|
|
3166
|
+
}
|
|
3000
3167
|
/**
|
|
3001
3168
|
* Clear Favorite Group
|
|
3002
3169
|
*
|
|
@@ -3163,7 +3330,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3163
3330
|
*
|
|
3164
3331
|
* **Version Note:** Version 0 is always when the file was created. The real data is usually always located in version 1 and up.
|
|
3165
3332
|
*
|
|
3166
|
-
* **Extension Note:** Files are not guaranteed to have a file extensions. UnityPackage files tends to have it, images through this endpoint do not. You are responsible for appending file extension from the `extension` field when
|
|
3333
|
+
* **Extension Note:** Files are not guaranteed to have a file extensions. UnityPackage files tends to have it, images through this endpoint do not. You are responsible for appending file extension from the `extension` field when necessary.
|
|
3167
3334
|
*/
|
|
3168
3335
|
downloadFileVersion(options) {
|
|
3169
3336
|
return (options.client ?? this.client).get({ url: "/file/{fileId}/{versionId}", ...options });
|
|
@@ -3622,7 +3789,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3622
3789
|
/**
|
|
3623
3790
|
* Get Group Member
|
|
3624
3791
|
*
|
|
3625
|
-
* Returns a
|
|
3792
|
+
* Returns a GroupMember.
|
|
3626
3793
|
*/
|
|
3627
3794
|
getGroupMember(options) {
|
|
3628
3795
|
return (options.client ?? this.client).get({
|
|
@@ -3850,7 +4017,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3850
4017
|
/**
|
|
3851
4018
|
* Initiate or Accept Group Transfer
|
|
3852
4019
|
*
|
|
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
|
|
4020
|
+
* 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 targeted by a pending transfer, no body is required.
|
|
3854
4021
|
*/
|
|
3855
4022
|
initiateOrAcceptGroupTransfer(options) {
|
|
3856
4023
|
return (options.client ?? this.client).post({
|
|
@@ -4242,7 +4409,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4242
4409
|
/**
|
|
4243
4410
|
* Show jam submissions
|
|
4244
4411
|
*
|
|
4245
|
-
* Returns all submissions of a jam.
|
|
4412
|
+
* Returns all submissions of a jam. Can filter by contentId (for world or avatar jams) or submitterId (for a participant).
|
|
4246
4413
|
*/
|
|
4247
4414
|
getJamSubmissions(options) {
|
|
4248
4415
|
return (options.client ?? this.client).get({
|
|
@@ -4251,6 +4418,30 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4251
4418
|
...options
|
|
4252
4419
|
});
|
|
4253
4420
|
}
|
|
4421
|
+
/**
|
|
4422
|
+
* Submit Jam Content
|
|
4423
|
+
*
|
|
4424
|
+
* Submits content to a jam. The content must have been uploaded by the submitter, and both the content upload and jam submission must be made within the jam's designated times.
|
|
4425
|
+
*/
|
|
4426
|
+
submitJamContent(options) {
|
|
4427
|
+
return (options.client ?? this.client).post({
|
|
4428
|
+
responseTransformer: submitJamContentResponseTransformer,
|
|
4429
|
+
url: "/jams/{jamId}/submissions",
|
|
4430
|
+
...options,
|
|
4431
|
+
headers: {
|
|
4432
|
+
"Content-Type": "application/json",
|
|
4433
|
+
...options.headers
|
|
4434
|
+
}
|
|
4435
|
+
});
|
|
4436
|
+
}
|
|
4437
|
+
/**
|
|
4438
|
+
* Delete Jam Submission
|
|
4439
|
+
*
|
|
4440
|
+
* Withdraws a content submission from a jam.
|
|
4441
|
+
*/
|
|
4442
|
+
deleteJamSubmission(options) {
|
|
4443
|
+
return (options.client ?? this.client).delete({ url: "/jams/{jamId}/submissions/{jamSubmissionId}", ...options });
|
|
4444
|
+
}
|
|
4254
4445
|
/**
|
|
4255
4446
|
* Download JavaScript
|
|
4256
4447
|
*
|
|
@@ -4267,6 +4458,30 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4267
4458
|
getLicenseGroup(options) {
|
|
4268
4459
|
return (options.client ?? this.client).get({ url: "/licenseGroups/{licenseGroupId}", ...options });
|
|
4269
4460
|
}
|
|
4461
|
+
/**
|
|
4462
|
+
* Create Product Listing
|
|
4463
|
+
*
|
|
4464
|
+
* Creates a listing and returns the new ProductListing object. The request body is based on observed fields and may be incomplete.
|
|
4465
|
+
*/
|
|
4466
|
+
createProductListingDirect(options) {
|
|
4467
|
+
return (options.client ?? this.client).post({
|
|
4468
|
+
responseTransformer: createProductListingDirectResponseTransformer,
|
|
4469
|
+
url: "/listing",
|
|
4470
|
+
...options,
|
|
4471
|
+
headers: {
|
|
4472
|
+
"Content-Type": "application/json",
|
|
4473
|
+
...options.headers
|
|
4474
|
+
}
|
|
4475
|
+
});
|
|
4476
|
+
}
|
|
4477
|
+
/**
|
|
4478
|
+
* Delete Product Listing
|
|
4479
|
+
*
|
|
4480
|
+
* Deletes a listing.
|
|
4481
|
+
*/
|
|
4482
|
+
deleteProductListingDirect(options) {
|
|
4483
|
+
return (options.client ?? this.client).delete({ url: "/listing/{productId}", ...options });
|
|
4484
|
+
}
|
|
4270
4485
|
/**
|
|
4271
4486
|
* Get Product Listing
|
|
4272
4487
|
*
|
|
@@ -4279,6 +4494,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4279
4494
|
...options
|
|
4280
4495
|
});
|
|
4281
4496
|
}
|
|
4497
|
+
/**
|
|
4498
|
+
* Update Product Listing
|
|
4499
|
+
*
|
|
4500
|
+
* Updates the active state of a listing. Setting `active` to `true` publishes the listing, while `false` unpublishes it.
|
|
4501
|
+
*/
|
|
4502
|
+
updateProductListingDirect(options) {
|
|
4503
|
+
return (options.client ?? this.client).put({
|
|
4504
|
+
responseTransformer: updateProductListingDirectResponseTransformer,
|
|
4505
|
+
url: "/listing/{productId}",
|
|
4506
|
+
...options,
|
|
4507
|
+
headers: {
|
|
4508
|
+
"Content-Type": "application/json",
|
|
4509
|
+
...options.headers
|
|
4510
|
+
}
|
|
4511
|
+
});
|
|
4512
|
+
}
|
|
4282
4513
|
/**
|
|
4283
4514
|
* Logout
|
|
4284
4515
|
*
|
|
@@ -4568,6 +4799,30 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4568
4799
|
}
|
|
4569
4800
|
});
|
|
4570
4801
|
}
|
|
4802
|
+
/**
|
|
4803
|
+
* Create Product
|
|
4804
|
+
*
|
|
4805
|
+
* Creates a product and returns the new Product object.
|
|
4806
|
+
*/
|
|
4807
|
+
createProduct(options) {
|
|
4808
|
+
return (options.client ?? this.client).post({
|
|
4809
|
+
responseTransformer: createProductResponseTransformer,
|
|
4810
|
+
url: "/products",
|
|
4811
|
+
...options,
|
|
4812
|
+
headers: {
|
|
4813
|
+
"Content-Type": "application/json",
|
|
4814
|
+
...options.headers
|
|
4815
|
+
}
|
|
4816
|
+
});
|
|
4817
|
+
}
|
|
4818
|
+
/**
|
|
4819
|
+
* Delete Product
|
|
4820
|
+
*
|
|
4821
|
+
* Deletes a product.
|
|
4822
|
+
*/
|
|
4823
|
+
deleteProduct(options) {
|
|
4824
|
+
return (options.client ?? this.client).delete({ url: "/products/{productId}", ...options });
|
|
4825
|
+
}
|
|
4571
4826
|
/**
|
|
4572
4827
|
* Get Product Listing (alternate)
|
|
4573
4828
|
*
|
|
@@ -4582,6 +4837,42 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4582
4837
|
...options
|
|
4583
4838
|
});
|
|
4584
4839
|
}
|
|
4840
|
+
/**
|
|
4841
|
+
* Update Product
|
|
4842
|
+
*
|
|
4843
|
+
* Updates a product and returns the updated Product object.
|
|
4844
|
+
*/
|
|
4845
|
+
updateProduct(options) {
|
|
4846
|
+
return (options.client ?? this.client).put({
|
|
4847
|
+
responseTransformer: updateProductResponseTransformer,
|
|
4848
|
+
url: "/products/{productId}",
|
|
4849
|
+
...options,
|
|
4850
|
+
headers: {
|
|
4851
|
+
"Content-Type": "application/json",
|
|
4852
|
+
...options.headers
|
|
4853
|
+
}
|
|
4854
|
+
});
|
|
4855
|
+
}
|
|
4856
|
+
/**
|
|
4857
|
+
* Get Public Profile
|
|
4858
|
+
*
|
|
4859
|
+
* Get a user's public profile information.
|
|
4860
|
+
*/
|
|
4861
|
+
getPublicProfile(options) {
|
|
4862
|
+
return (options.client ?? this.client).get({
|
|
4863
|
+
responseTransformer: getPublicProfileResponseTransformer,
|
|
4864
|
+
url: "/profile/{userId}",
|
|
4865
|
+
...options
|
|
4866
|
+
});
|
|
4867
|
+
}
|
|
4868
|
+
/**
|
|
4869
|
+
* Get Private Profile
|
|
4870
|
+
*
|
|
4871
|
+
* Get profile information visible to the currently authenticated user.
|
|
4872
|
+
*/
|
|
4873
|
+
getPrivateProfile(options) {
|
|
4874
|
+
return (options.client ?? this.client).get({ url: "/profile/{userId}/private", ...options });
|
|
4875
|
+
}
|
|
4585
4876
|
/**
|
|
4586
4877
|
* List Props
|
|
4587
4878
|
*
|
|
@@ -4703,6 +4994,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4703
4994
|
}
|
|
4704
4995
|
});
|
|
4705
4996
|
}
|
|
4997
|
+
/**
|
|
4998
|
+
* Redeem Reward
|
|
4999
|
+
*
|
|
5000
|
+
* Redeem a reward for the currently logged in user.
|
|
5001
|
+
*/
|
|
5002
|
+
redeemReward(options) {
|
|
5003
|
+
return (options.client ?? this.client).post({
|
|
5004
|
+
responseTransformer: redeemRewardResponseTransformer,
|
|
5005
|
+
url: "/reward/redeem",
|
|
5006
|
+
...options,
|
|
5007
|
+
headers: {
|
|
5008
|
+
"Content-Type": "application/json",
|
|
5009
|
+
...options.headers
|
|
5010
|
+
}
|
|
5011
|
+
});
|
|
5012
|
+
}
|
|
4706
5013
|
/**
|
|
4707
5014
|
* List Subscriptions
|
|
4708
5015
|
*
|
|
@@ -4793,6 +5100,50 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4793
5100
|
...options
|
|
4794
5101
|
});
|
|
4795
5102
|
}
|
|
5103
|
+
/**
|
|
5104
|
+
* Get Economy Balances
|
|
5105
|
+
*
|
|
5106
|
+
* Gets the combined balances for a user.
|
|
5107
|
+
*/
|
|
5108
|
+
getEconomyBalances(options) {
|
|
5109
|
+
return (options.client ?? this.client).get({ url: "/user/{userId}/economy/balances", ...options });
|
|
5110
|
+
}
|
|
5111
|
+
/**
|
|
5112
|
+
* Get Economy Payouts
|
|
5113
|
+
*
|
|
5114
|
+
* Gets the payout history for a user.
|
|
5115
|
+
*/
|
|
5116
|
+
getEconomyPayouts(options) {
|
|
5117
|
+
return (options.client ?? this.client).get({
|
|
5118
|
+
responseTransformer: getEconomyPayoutsResponseTransformer,
|
|
5119
|
+
url: "/user/{userId}/economy/payouts/list",
|
|
5120
|
+
...options
|
|
5121
|
+
});
|
|
5122
|
+
}
|
|
5123
|
+
/**
|
|
5124
|
+
* Get Economy Payout Status
|
|
5125
|
+
*
|
|
5126
|
+
* Gets the current payout status and eligibility information for a user.
|
|
5127
|
+
*/
|
|
5128
|
+
getEconomyPayoutStatus(options) {
|
|
5129
|
+
return (options.client ?? this.client).get({
|
|
5130
|
+
responseTransformer: getEconomyPayoutStatusResponseTransformer,
|
|
5131
|
+
url: "/user/{userId}/economy/payouts/status",
|
|
5132
|
+
...options
|
|
5133
|
+
});
|
|
5134
|
+
}
|
|
5135
|
+
/**
|
|
5136
|
+
* Get Product Purchase History
|
|
5137
|
+
*
|
|
5138
|
+
* Gets a history of product purchases
|
|
5139
|
+
*/
|
|
5140
|
+
getProductPurchaseHistory(options) {
|
|
5141
|
+
return (options.client ?? this.client).get({
|
|
5142
|
+
responseTransformer: getProductPurchaseHistoryResponseTransformer,
|
|
5143
|
+
url: "/user/{userId}/economy/transactions",
|
|
5144
|
+
...options
|
|
5145
|
+
});
|
|
5146
|
+
}
|
|
4796
5147
|
/**
|
|
4797
5148
|
* Delete Friend Request
|
|
4798
5149
|
*
|
|
@@ -4845,6 +5196,26 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4845
5196
|
...options
|
|
4846
5197
|
});
|
|
4847
5198
|
}
|
|
5199
|
+
/**
|
|
5200
|
+
* List User Products
|
|
5201
|
+
*
|
|
5202
|
+
* Gets the products of a given user.
|
|
5203
|
+
*/
|
|
5204
|
+
listUserProducts(options) {
|
|
5205
|
+
return (options.client ?? this.client).get({
|
|
5206
|
+
responseTransformer: listUserProductsResponseTransformer,
|
|
5207
|
+
url: "/user/{userId}/products",
|
|
5208
|
+
...options
|
|
5209
|
+
});
|
|
5210
|
+
}
|
|
5211
|
+
/**
|
|
5212
|
+
* Get User Tilia KYC
|
|
5213
|
+
*
|
|
5214
|
+
* Gets KYC status details for a user's Tilia account.
|
|
5215
|
+
*/
|
|
5216
|
+
getUserTiliaKyc(options) {
|
|
5217
|
+
return (options.client ?? this.client).get({ url: "/user/{userId}/tilia/kyc", ...options });
|
|
5218
|
+
}
|
|
4848
5219
|
/**
|
|
4849
5220
|
* Get Tilia TOS Agreement Status
|
|
4850
5221
|
*
|
|
@@ -5003,7 +5374,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5003
5374
|
});
|
|
5004
5375
|
}
|
|
5005
5376
|
/**
|
|
5006
|
-
* Get User Credits
|
|
5377
|
+
* Get User Credits Eligibility
|
|
5007
5378
|
*
|
|
5008
5379
|
* Get the user's eligibility status for subscriptions based on available credits.
|
|
5009
5380
|
*/
|
|
@@ -5177,13 +5548,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5177
5548
|
});
|
|
5178
5549
|
}
|
|
5179
5550
|
/**
|
|
5180
|
-
* Get User Subscription
|
|
5551
|
+
* Get User Subscription Eligibility
|
|
5181
5552
|
*
|
|
5182
5553
|
* Get the user's eligibility status for subscriptions.
|
|
5183
5554
|
*/
|
|
5184
5555
|
getUserSubscriptionEligible(options) {
|
|
5185
5556
|
return (options.client ?? this.client).get({ url: "/users/{userId}/subscription/eligible", ...options });
|
|
5186
5557
|
}
|
|
5558
|
+
/**
|
|
5559
|
+
* Get User Tutorial Status
|
|
5560
|
+
*
|
|
5561
|
+
* Gets the status of completed or outstanding tutorials for the specified user.
|
|
5562
|
+
*/
|
|
5563
|
+
getUserTutorialStatus(options) {
|
|
5564
|
+
return (options.client ?? this.client).get({ url: "/users/{userId}/tutorial", ...options });
|
|
5565
|
+
}
|
|
5187
5566
|
/**
|
|
5188
5567
|
* Delete User Persistence
|
|
5189
5568
|
*
|
|
@@ -5328,6 +5707,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5328
5707
|
}
|
|
5329
5708
|
});
|
|
5330
5709
|
}
|
|
5710
|
+
/**
|
|
5711
|
+
* Add World Tags
|
|
5712
|
+
*
|
|
5713
|
+
* Adds tags to the world's profile
|
|
5714
|
+
*/
|
|
5715
|
+
addWorldTags(options) {
|
|
5716
|
+
return (options.client ?? this.client).post({
|
|
5717
|
+
responseTransformer: addWorldTagsResponseTransformer,
|
|
5718
|
+
url: "/worlds/{worldId}/addTags",
|
|
5719
|
+
...options,
|
|
5720
|
+
headers: {
|
|
5721
|
+
"Content-Type": "application/json",
|
|
5722
|
+
...options.headers
|
|
5723
|
+
}
|
|
5724
|
+
});
|
|
5725
|
+
}
|
|
5331
5726
|
/**
|
|
5332
5727
|
* Get World Metadata
|
|
5333
5728
|
*
|
|
@@ -5338,6 +5733,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5338
5733
|
getWorldMetadata(options) {
|
|
5339
5734
|
return (options.client ?? this.client).get({ url: "/worlds/{worldId}/metadata", ...options });
|
|
5340
5735
|
}
|
|
5736
|
+
/**
|
|
5737
|
+
* Delete World Platform
|
|
5738
|
+
*
|
|
5739
|
+
* Deletes a world platform.
|
|
5740
|
+
*/
|
|
5741
|
+
deleteWorldPlatform(options) {
|
|
5742
|
+
return (options.client ?? this.client).delete({ url: "/worlds/{worldId}/platform/{publishedPlatform}", ...options });
|
|
5743
|
+
}
|
|
5341
5744
|
/**
|
|
5342
5745
|
* Unpublish World
|
|
5343
5746
|
*
|
|
@@ -5362,6 +5765,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5362
5765
|
publishWorld(options) {
|
|
5363
5766
|
return (options.client ?? this.client).put({ url: "/worlds/{worldId}/publish", ...options });
|
|
5364
5767
|
}
|
|
5768
|
+
/**
|
|
5769
|
+
* Remove World Tags
|
|
5770
|
+
*
|
|
5771
|
+
* Removes tags from the world's profile
|
|
5772
|
+
*/
|
|
5773
|
+
removeWorldTags(options) {
|
|
5774
|
+
return (options.client ?? this.client).post({
|
|
5775
|
+
responseTransformer: removeWorldTagsResponseTransformer,
|
|
5776
|
+
url: "/worlds/{worldId}/removeTags",
|
|
5777
|
+
...options,
|
|
5778
|
+
headers: {
|
|
5779
|
+
"Content-Type": "application/json",
|
|
5780
|
+
...options.headers
|
|
5781
|
+
}
|
|
5782
|
+
});
|
|
5783
|
+
}
|
|
5365
5784
|
/**
|
|
5366
5785
|
* Get World Instance
|
|
5367
5786
|
*
|