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.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.22.
|
|
15
|
+
var version = "2.22.8";
|
|
16
16
|
var homepage = "https://vrchat.community/javascript";
|
|
17
17
|
|
|
18
18
|
// src/lib/metadata.ts
|
|
@@ -1175,6 +1175,9 @@ var calendarEventSchemaResponseTransformer = (data) => {
|
|
|
1175
1175
|
if (data.deletedAt) {
|
|
1176
1176
|
data.deletedAt = new Date(data.deletedAt);
|
|
1177
1177
|
}
|
|
1178
|
+
if (data.durationInMs) {
|
|
1179
|
+
data.durationInMs = BigInt(data.durationInMs.toString());
|
|
1180
|
+
}
|
|
1178
1181
|
data.endsAt = new Date(data.endsAt);
|
|
1179
1182
|
data.startsAt = new Date(data.startsAt);
|
|
1180
1183
|
if (data.updatedAt) {
|
|
@@ -1250,8 +1253,12 @@ var getConfigResponseTransformer = async (data) => {
|
|
|
1250
1253
|
};
|
|
1251
1254
|
var productPurchaseSchemaResponseTransformer = (data) => {
|
|
1252
1255
|
data.purchaseDate = new Date(data.purchaseDate);
|
|
1253
|
-
|
|
1254
|
-
|
|
1256
|
+
if (data.purchaseEndDate) {
|
|
1257
|
+
data.purchaseEndDate = new Date(data.purchaseEndDate);
|
|
1258
|
+
}
|
|
1259
|
+
if (data.purchaseStartDate) {
|
|
1260
|
+
data.purchaseStartDate = new Date(data.purchaseStartDate);
|
|
1261
|
+
}
|
|
1255
1262
|
return data;
|
|
1256
1263
|
};
|
|
1257
1264
|
var purchaseProductListingResponseTransformer = async (data) => {
|
|
@@ -1262,22 +1269,38 @@ var getProductPurchasesResponseTransformer = async (data) => {
|
|
|
1262
1269
|
data = data.map((item) => productPurchaseSchemaResponseTransformer(item));
|
|
1263
1270
|
return data;
|
|
1264
1271
|
};
|
|
1272
|
+
var getProductPurchaseResponseTransformer = async (data) => {
|
|
1273
|
+
data = productPurchaseSchemaResponseTransformer(data);
|
|
1274
|
+
return data;
|
|
1275
|
+
};
|
|
1265
1276
|
var storeSchemaResponseTransformer = (data) => {
|
|
1277
|
+
if (data.created) {
|
|
1278
|
+
data.created = new Date(data.created);
|
|
1279
|
+
}
|
|
1266
1280
|
if (data.listings) {
|
|
1267
1281
|
data.listings = data.listings.map((item) => productListingSchemaResponseTransformer(item));
|
|
1268
1282
|
}
|
|
1269
1283
|
if (data.shelves) {
|
|
1270
1284
|
data.shelves = data.shelves.map((item) => storeShelfSchemaResponseTransformer(item));
|
|
1271
1285
|
}
|
|
1286
|
+
if (data.updated) {
|
|
1287
|
+
data.updated = new Date(data.updated);
|
|
1288
|
+
}
|
|
1272
1289
|
return data;
|
|
1273
1290
|
};
|
|
1274
1291
|
var productListingSchemaResponseTransformer = (data) => {
|
|
1292
|
+
if (data.created) {
|
|
1293
|
+
data.created = new Date(data.created);
|
|
1294
|
+
}
|
|
1275
1295
|
if (data.hydratedProducts) {
|
|
1276
1296
|
data.hydratedProducts = data.hydratedProducts.map((item) => productSchemaResponseTransformer(item));
|
|
1277
1297
|
}
|
|
1278
1298
|
if (data.listingVariants) {
|
|
1279
1299
|
data.listingVariants = data.listingVariants.map((item) => productListingVariantSchemaResponseTransformer(item));
|
|
1280
1300
|
}
|
|
1301
|
+
if (data.updated) {
|
|
1302
|
+
data.updated = new Date(data.updated);
|
|
1303
|
+
}
|
|
1281
1304
|
if (data.whenToExpire) {
|
|
1282
1305
|
data.whenToExpire = new Date(data.whenToExpire);
|
|
1283
1306
|
}
|
|
@@ -1316,6 +1339,10 @@ var getStoreShelvesResponseTransformer = async (data) => {
|
|
|
1316
1339
|
data = data.map((item) => storeShelfSchemaResponseTransformer(item));
|
|
1317
1340
|
return data;
|
|
1318
1341
|
};
|
|
1342
|
+
var listStoresResponseTransformer = async (data) => {
|
|
1343
|
+
data = data.map((item) => storeSchemaResponseTransformer(item));
|
|
1344
|
+
return data;
|
|
1345
|
+
};
|
|
1319
1346
|
var fileSchemaResponseTransformer = (data) => {
|
|
1320
1347
|
data.versions = data.versions.map((item) => fileVersionSchemaResponseTransformer(item));
|
|
1321
1348
|
return data;
|
|
@@ -1558,27 +1585,12 @@ var searchGroupMembersResponseTransformer = async (data) => {
|
|
|
1558
1585
|
}
|
|
1559
1586
|
return data;
|
|
1560
1587
|
};
|
|
1561
|
-
var groupLimitedMemberSchemaResponseTransformer = (data) => {
|
|
1562
|
-
if (data.bannedAt) {
|
|
1563
|
-
data.bannedAt = new Date(data.bannedAt);
|
|
1564
|
-
}
|
|
1565
|
-
if (data.createdAt) {
|
|
1566
|
-
data.createdAt = new Date(data.createdAt);
|
|
1567
|
-
}
|
|
1568
|
-
if (data.joinedAt) {
|
|
1569
|
-
data.joinedAt = new Date(data.joinedAt);
|
|
1570
|
-
}
|
|
1571
|
-
if (data.lastPostReadAt) {
|
|
1572
|
-
data.lastPostReadAt = new Date(data.lastPostReadAt);
|
|
1573
|
-
}
|
|
1574
|
-
return data;
|
|
1575
|
-
};
|
|
1576
1588
|
var getGroupMemberResponseTransformer = async (data) => {
|
|
1577
|
-
data =
|
|
1589
|
+
data = groupMemberSchemaResponseTransformer(data);
|
|
1578
1590
|
return data;
|
|
1579
1591
|
};
|
|
1580
1592
|
var updateGroupMemberResponseTransformer = async (data) => {
|
|
1581
|
-
data =
|
|
1593
|
+
data = groupMemberSchemaResponseTransformer(data);
|
|
1582
1594
|
return data;
|
|
1583
1595
|
};
|
|
1584
1596
|
var groupPostSchemaResponseTransformer = (data) => {
|
|
@@ -1793,18 +1805,30 @@ var getJamResponseTransformer = async (data) => {
|
|
|
1793
1805
|
data = jamSchemaResponseTransformer(data);
|
|
1794
1806
|
return data;
|
|
1795
1807
|
};
|
|
1796
|
-
var
|
|
1808
|
+
var jamSubmissionSchemaResponseTransformer = (data) => {
|
|
1797
1809
|
data.created_at = new Date(data.created_at);
|
|
1798
1810
|
return data;
|
|
1799
1811
|
};
|
|
1800
1812
|
var getJamSubmissionsResponseTransformer = async (data) => {
|
|
1801
|
-
data = data.map((item) =>
|
|
1813
|
+
data = data.map((item) => jamSubmissionSchemaResponseTransformer(item));
|
|
1814
|
+
return data;
|
|
1815
|
+
};
|
|
1816
|
+
var submitJamContentResponseTransformer = async (data) => {
|
|
1817
|
+
data = jamSubmissionSchemaResponseTransformer(data);
|
|
1818
|
+
return data;
|
|
1819
|
+
};
|
|
1820
|
+
var createProductListingDirectResponseTransformer = async (data) => {
|
|
1821
|
+
data = productListingSchemaResponseTransformer(data);
|
|
1802
1822
|
return data;
|
|
1803
1823
|
};
|
|
1804
1824
|
var getProductListingResponseTransformer = async (data) => {
|
|
1805
1825
|
data = productListingSchemaResponseTransformer(data);
|
|
1806
1826
|
return data;
|
|
1807
1827
|
};
|
|
1828
|
+
var updateProductListingDirectResponseTransformer = async (data) => {
|
|
1829
|
+
data = productListingSchemaResponseTransformer(data);
|
|
1830
|
+
return data;
|
|
1831
|
+
};
|
|
1808
1832
|
var inviteMessageSchemaResponseTransformer = (data) => {
|
|
1809
1833
|
data.updatedAt = new Date(data.updatedAt);
|
|
1810
1834
|
return data;
|
|
@@ -1872,10 +1896,28 @@ var editPrintResponseTransformer = async (data) => {
|
|
|
1872
1896
|
data = printSchemaResponseTransformer(data);
|
|
1873
1897
|
return data;
|
|
1874
1898
|
};
|
|
1899
|
+
var createProductResponseTransformer = async (data) => {
|
|
1900
|
+
data = productSchemaResponseTransformer(data);
|
|
1901
|
+
return data;
|
|
1902
|
+
};
|
|
1875
1903
|
var getProductListingAlternateResponseTransformer = async (data) => {
|
|
1876
1904
|
data = productListingSchemaResponseTransformer(data);
|
|
1877
1905
|
return data;
|
|
1878
1906
|
};
|
|
1907
|
+
var updateProductResponseTransformer = async (data) => {
|
|
1908
|
+
data = productSchemaResponseTransformer(data);
|
|
1909
|
+
return data;
|
|
1910
|
+
};
|
|
1911
|
+
var publicProfileSchemaResponseTransformer = (data) => {
|
|
1912
|
+
if (data.badges) {
|
|
1913
|
+
data.badges = data.badges.map((item) => badgeSchemaResponseTransformer(item));
|
|
1914
|
+
}
|
|
1915
|
+
return data;
|
|
1916
|
+
};
|
|
1917
|
+
var getPublicProfileResponseTransformer = async (data) => {
|
|
1918
|
+
data = publicProfileSchemaResponseTransformer(data);
|
|
1919
|
+
return data;
|
|
1920
|
+
};
|
|
1879
1921
|
var propSchemaResponseTransformer = (data) => {
|
|
1880
1922
|
data._created_at = new Date(data._created_at);
|
|
1881
1923
|
data._updated_at = new Date(data._updated_at);
|
|
@@ -1905,6 +1947,28 @@ var requestInviteWithPhotoResponseTransformer = async (data) => {
|
|
|
1905
1947
|
data = notificationSchemaResponseTransformer(data);
|
|
1906
1948
|
return data;
|
|
1907
1949
|
};
|
|
1950
|
+
var rewardRedemptionResultSchemaResponseTransformer = (data) => {
|
|
1951
|
+
data.redeemedRewards = data.redeemedRewards.map((item) => rewardRedemptionSchemaResponseTransformer(item));
|
|
1952
|
+
return data;
|
|
1953
|
+
};
|
|
1954
|
+
var rewardRedemptionSchemaResponseTransformer = (data) => {
|
|
1955
|
+
if (data.data.badge) {
|
|
1956
|
+
data.data.badge = rewardBadgeSchemaResponseTransformer(data.data.badge);
|
|
1957
|
+
}
|
|
1958
|
+
if (data.data.item) {
|
|
1959
|
+
data.data.item = inventoryTemplateSchemaResponseTransformer(data.data.item);
|
|
1960
|
+
}
|
|
1961
|
+
return data;
|
|
1962
|
+
};
|
|
1963
|
+
var rewardBadgeSchemaResponseTransformer = (data) => {
|
|
1964
|
+
data.createdAt = new Date(data.createdAt);
|
|
1965
|
+
data.updatedAt = new Date(data.updatedAt);
|
|
1966
|
+
return data;
|
|
1967
|
+
};
|
|
1968
|
+
var redeemRewardResponseTransformer = async (data) => {
|
|
1969
|
+
data = data.map((item) => rewardRedemptionResultSchemaResponseTransformer(item));
|
|
1970
|
+
return data;
|
|
1971
|
+
};
|
|
1908
1972
|
var tiliaStatusSchemaResponseTransformer = (data) => {
|
|
1909
1973
|
if (data.plannedOfflineWindowEnd) {
|
|
1910
1974
|
data.plannedOfflineWindowEnd = new Date(data.plannedOfflineWindowEnd);
|
|
@@ -1930,12 +1994,55 @@ var economyAccountSchemaResponseTransformer = (data) => {
|
|
|
1930
1994
|
if (data.accountActivatedOn) {
|
|
1931
1995
|
data.accountActivatedOn = new Date(data.accountActivatedOn);
|
|
1932
1996
|
}
|
|
1997
|
+
if (data.accountSellerRegisteredOn) {
|
|
1998
|
+
data.accountSellerRegisteredOn = new Date(data.accountSellerRegisteredOn);
|
|
1999
|
+
}
|
|
1933
2000
|
return data;
|
|
1934
2001
|
};
|
|
1935
2002
|
var getEconomyAccountResponseTransformer = async (data) => {
|
|
1936
2003
|
data = economyAccountSchemaResponseTransformer(data);
|
|
1937
2004
|
return data;
|
|
1938
2005
|
};
|
|
2006
|
+
var economyPayoutListSchemaResponseTransformer = (data) => {
|
|
2007
|
+
data.payouts = data.payouts.map((item) => economyPayoutSchemaResponseTransformer(item));
|
|
2008
|
+
return data;
|
|
2009
|
+
};
|
|
2010
|
+
var economyPayoutSchemaResponseTransformer = (data) => {
|
|
2011
|
+
data.paymentCreated = new Date(data.paymentCreated);
|
|
2012
|
+
data.paymentUpdated = new Date(data.paymentUpdated);
|
|
2013
|
+
if (data.reversalDate) {
|
|
2014
|
+
data.reversalDate = new Date(data.reversalDate);
|
|
2015
|
+
}
|
|
2016
|
+
return data;
|
|
2017
|
+
};
|
|
2018
|
+
var getEconomyPayoutsResponseTransformer = async (data) => {
|
|
2019
|
+
data = economyPayoutListSchemaResponseTransformer(data);
|
|
2020
|
+
return data;
|
|
2021
|
+
};
|
|
2022
|
+
var economyPayoutStatusSchemaResponseTransformer = (data) => {
|
|
2023
|
+
if (data.activePayout) {
|
|
2024
|
+
data.activePayout = economyPayoutSchemaResponseTransformer(data.activePayout);
|
|
2025
|
+
}
|
|
2026
|
+
return data;
|
|
2027
|
+
};
|
|
2028
|
+
var getEconomyPayoutStatusResponseTransformer = async (data) => {
|
|
2029
|
+
data = economyPayoutStatusSchemaResponseTransformer(data);
|
|
2030
|
+
return data;
|
|
2031
|
+
};
|
|
2032
|
+
var productPurchaseHistorySchemaResponseTransformer = (data) => {
|
|
2033
|
+
data.endDate = new Date(data.endDate);
|
|
2034
|
+
data.startDate = new Date(data.startDate);
|
|
2035
|
+
data.transactions = data.transactions.map((item) => productPurchaseRecordSchemaResponseTransformer(item));
|
|
2036
|
+
return data;
|
|
2037
|
+
};
|
|
2038
|
+
var productPurchaseRecordSchemaResponseTransformer = (data) => {
|
|
2039
|
+
data.date = new Date(data.date);
|
|
2040
|
+
return data;
|
|
2041
|
+
};
|
|
2042
|
+
var getProductPurchaseHistoryResponseTransformer = async (data) => {
|
|
2043
|
+
data = productPurchaseHistorySchemaResponseTransformer(data);
|
|
2044
|
+
return data;
|
|
2045
|
+
};
|
|
1939
2046
|
var friendResponseTransformer = async (data) => {
|
|
1940
2047
|
data = notificationSchemaResponseTransformer(data);
|
|
1941
2048
|
return data;
|
|
@@ -1948,6 +2055,10 @@ var getProductListingsResponseTransformer = async (data) => {
|
|
|
1948
2055
|
data = data.map((item) => productListingSchemaResponseTransformer(item));
|
|
1949
2056
|
return data;
|
|
1950
2057
|
};
|
|
2058
|
+
var listUserProductsResponseTransformer = async (data) => {
|
|
2059
|
+
data = data.map((item) => productSchemaResponseTransformer(item));
|
|
2060
|
+
return data;
|
|
2061
|
+
};
|
|
1951
2062
|
var userNoteSchemaResponseTransformer = (data) => {
|
|
1952
2063
|
data.createdAt = new Date(data.createdAt);
|
|
1953
2064
|
return data;
|
|
@@ -2098,6 +2209,14 @@ var updateWorldResponseTransformer = async (data) => {
|
|
|
2098
2209
|
data = worldSchemaResponseTransformer(data);
|
|
2099
2210
|
return data;
|
|
2100
2211
|
};
|
|
2212
|
+
var addWorldTagsResponseTransformer = async (data) => {
|
|
2213
|
+
data = worldSchemaResponseTransformer(data);
|
|
2214
|
+
return data;
|
|
2215
|
+
};
|
|
2216
|
+
var removeWorldTagsResponseTransformer = async (data) => {
|
|
2217
|
+
data = worldSchemaResponseTransformer(data);
|
|
2218
|
+
return data;
|
|
2219
|
+
};
|
|
2101
2220
|
var getWorldInstanceResponseTransformer = async (data) => {
|
|
2102
2221
|
data = instanceSchemaResponseTransformer(data);
|
|
2103
2222
|
return data;
|
|
@@ -2951,6 +3070,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
2951
3070
|
getActiveLicenses(options) {
|
|
2952
3071
|
return (options?.client ?? this.client).get({ url: "/economy/licenses/active", ...options });
|
|
2953
3072
|
}
|
|
3073
|
+
/**
|
|
3074
|
+
* Get Earnings Metrics
|
|
3075
|
+
*
|
|
3076
|
+
* Gets earnings totals and breakdown metrics for the currently authenticated user.
|
|
3077
|
+
*/
|
|
3078
|
+
getEarningsMetrics(options) {
|
|
3079
|
+
return (options.client ?? this.client).get({ url: "/economy/metrics/earnings", ...options });
|
|
3080
|
+
}
|
|
2954
3081
|
/**
|
|
2955
3082
|
* Purchase Product Listing
|
|
2956
3083
|
*
|
|
@@ -2979,6 +3106,34 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
2979
3106
|
...options
|
|
2980
3107
|
});
|
|
2981
3108
|
}
|
|
3109
|
+
/**
|
|
3110
|
+
* Get Product Purchase
|
|
3111
|
+
*
|
|
3112
|
+
* Gets a single product purchase
|
|
3113
|
+
*/
|
|
3114
|
+
getProductPurchase(options) {
|
|
3115
|
+
return (options.client ?? this.client).get({
|
|
3116
|
+
responseTransformer: getProductPurchaseResponseTransformer,
|
|
3117
|
+
url: "/economy/purchases/{productPurchaseId}",
|
|
3118
|
+
...options
|
|
3119
|
+
});
|
|
3120
|
+
}
|
|
3121
|
+
/**
|
|
3122
|
+
* Get Product Purchase Stacks
|
|
3123
|
+
*
|
|
3124
|
+
* Gets stacks for a product purchase
|
|
3125
|
+
*/
|
|
3126
|
+
getProductPurchaseStacks(options) {
|
|
3127
|
+
return (options.client ?? this.client).get({ url: "/economy/purchases/{productPurchaseId}/stacks", ...options });
|
|
3128
|
+
}
|
|
3129
|
+
/**
|
|
3130
|
+
* Get Seller Eligibility
|
|
3131
|
+
*
|
|
3132
|
+
* Get the eligibility of the currently authenticated user to become a seller
|
|
3133
|
+
*/
|
|
3134
|
+
getSellerEligibility(options) {
|
|
3135
|
+
return (options?.client ?? this.client).get({ url: "/economy/seller/eligibility", ...options });
|
|
3136
|
+
}
|
|
2982
3137
|
/**
|
|
2983
3138
|
* Get Store
|
|
2984
3139
|
*
|
|
@@ -3003,6 +3158,18 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3003
3158
|
...options
|
|
3004
3159
|
});
|
|
3005
3160
|
}
|
|
3161
|
+
/**
|
|
3162
|
+
* List Stores
|
|
3163
|
+
*
|
|
3164
|
+
* Lists stores, optionally filtered to a seller and adjusted for management views.
|
|
3165
|
+
*/
|
|
3166
|
+
listStores(options) {
|
|
3167
|
+
return (options?.client ?? this.client).get({
|
|
3168
|
+
responseTransformer: listStoresResponseTransformer,
|
|
3169
|
+
url: "/economy/stores",
|
|
3170
|
+
...options
|
|
3171
|
+
});
|
|
3172
|
+
}
|
|
3006
3173
|
/**
|
|
3007
3174
|
* Clear Favorite Group
|
|
3008
3175
|
*
|
|
@@ -3169,7 +3336,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3169
3336
|
*
|
|
3170
3337
|
* **Version Note:** Version 0 is always when the file was created. The real data is usually always located in version 1 and up.
|
|
3171
3338
|
*
|
|
3172
|
-
* **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
|
|
3339
|
+
* **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.
|
|
3173
3340
|
*/
|
|
3174
3341
|
downloadFileVersion(options) {
|
|
3175
3342
|
return (options.client ?? this.client).get({ url: "/file/{fileId}/{versionId}", ...options });
|
|
@@ -3628,7 +3795,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3628
3795
|
/**
|
|
3629
3796
|
* Get Group Member
|
|
3630
3797
|
*
|
|
3631
|
-
* Returns a
|
|
3798
|
+
* Returns a GroupMember.
|
|
3632
3799
|
*/
|
|
3633
3800
|
getGroupMember(options) {
|
|
3634
3801
|
return (options.client ?? this.client).get({
|
|
@@ -3856,7 +4023,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
3856
4023
|
/**
|
|
3857
4024
|
* Initiate or Accept Group Transfer
|
|
3858
4025
|
*
|
|
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
|
|
4026
|
+
* 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.
|
|
3860
4027
|
*/
|
|
3861
4028
|
initiateOrAcceptGroupTransfer(options) {
|
|
3862
4029
|
return (options.client ?? this.client).post({
|
|
@@ -4248,7 +4415,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4248
4415
|
/**
|
|
4249
4416
|
* Show jam submissions
|
|
4250
4417
|
*
|
|
4251
|
-
* Returns all submissions of a jam.
|
|
4418
|
+
* Returns all submissions of a jam. Can filter by contentId (for world or avatar jams) or submitterId (for a participant).
|
|
4252
4419
|
*/
|
|
4253
4420
|
getJamSubmissions(options) {
|
|
4254
4421
|
return (options.client ?? this.client).get({
|
|
@@ -4257,6 +4424,30 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4257
4424
|
...options
|
|
4258
4425
|
});
|
|
4259
4426
|
}
|
|
4427
|
+
/**
|
|
4428
|
+
* Submit Jam Content
|
|
4429
|
+
*
|
|
4430
|
+
* 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.
|
|
4431
|
+
*/
|
|
4432
|
+
submitJamContent(options) {
|
|
4433
|
+
return (options.client ?? this.client).post({
|
|
4434
|
+
responseTransformer: submitJamContentResponseTransformer,
|
|
4435
|
+
url: "/jams/{jamId}/submissions",
|
|
4436
|
+
...options,
|
|
4437
|
+
headers: {
|
|
4438
|
+
"Content-Type": "application/json",
|
|
4439
|
+
...options.headers
|
|
4440
|
+
}
|
|
4441
|
+
});
|
|
4442
|
+
}
|
|
4443
|
+
/**
|
|
4444
|
+
* Delete Jam Submission
|
|
4445
|
+
*
|
|
4446
|
+
* Withdraws a content submission from a jam.
|
|
4447
|
+
*/
|
|
4448
|
+
deleteJamSubmission(options) {
|
|
4449
|
+
return (options.client ?? this.client).delete({ url: "/jams/{jamId}/submissions/{jamSubmissionId}", ...options });
|
|
4450
|
+
}
|
|
4260
4451
|
/**
|
|
4261
4452
|
* Download JavaScript
|
|
4262
4453
|
*
|
|
@@ -4273,6 +4464,30 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4273
4464
|
getLicenseGroup(options) {
|
|
4274
4465
|
return (options.client ?? this.client).get({ url: "/licenseGroups/{licenseGroupId}", ...options });
|
|
4275
4466
|
}
|
|
4467
|
+
/**
|
|
4468
|
+
* Create Product Listing
|
|
4469
|
+
*
|
|
4470
|
+
* Creates a listing and returns the new ProductListing object. The request body is based on observed fields and may be incomplete.
|
|
4471
|
+
*/
|
|
4472
|
+
createProductListingDirect(options) {
|
|
4473
|
+
return (options.client ?? this.client).post({
|
|
4474
|
+
responseTransformer: createProductListingDirectResponseTransformer,
|
|
4475
|
+
url: "/listing",
|
|
4476
|
+
...options,
|
|
4477
|
+
headers: {
|
|
4478
|
+
"Content-Type": "application/json",
|
|
4479
|
+
...options.headers
|
|
4480
|
+
}
|
|
4481
|
+
});
|
|
4482
|
+
}
|
|
4483
|
+
/**
|
|
4484
|
+
* Delete Product Listing
|
|
4485
|
+
*
|
|
4486
|
+
* Deletes a listing.
|
|
4487
|
+
*/
|
|
4488
|
+
deleteProductListingDirect(options) {
|
|
4489
|
+
return (options.client ?? this.client).delete({ url: "/listing/{productId}", ...options });
|
|
4490
|
+
}
|
|
4276
4491
|
/**
|
|
4277
4492
|
* Get Product Listing
|
|
4278
4493
|
*
|
|
@@ -4285,6 +4500,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4285
4500
|
...options
|
|
4286
4501
|
});
|
|
4287
4502
|
}
|
|
4503
|
+
/**
|
|
4504
|
+
* Update Product Listing
|
|
4505
|
+
*
|
|
4506
|
+
* Updates the active state of a listing. Setting `active` to `true` publishes the listing, while `false` unpublishes it.
|
|
4507
|
+
*/
|
|
4508
|
+
updateProductListingDirect(options) {
|
|
4509
|
+
return (options.client ?? this.client).put({
|
|
4510
|
+
responseTransformer: updateProductListingDirectResponseTransformer,
|
|
4511
|
+
url: "/listing/{productId}",
|
|
4512
|
+
...options,
|
|
4513
|
+
headers: {
|
|
4514
|
+
"Content-Type": "application/json",
|
|
4515
|
+
...options.headers
|
|
4516
|
+
}
|
|
4517
|
+
});
|
|
4518
|
+
}
|
|
4288
4519
|
/**
|
|
4289
4520
|
* Logout
|
|
4290
4521
|
*
|
|
@@ -4574,6 +4805,30 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4574
4805
|
}
|
|
4575
4806
|
});
|
|
4576
4807
|
}
|
|
4808
|
+
/**
|
|
4809
|
+
* Create Product
|
|
4810
|
+
*
|
|
4811
|
+
* Creates a product and returns the new Product object.
|
|
4812
|
+
*/
|
|
4813
|
+
createProduct(options) {
|
|
4814
|
+
return (options.client ?? this.client).post({
|
|
4815
|
+
responseTransformer: createProductResponseTransformer,
|
|
4816
|
+
url: "/products",
|
|
4817
|
+
...options,
|
|
4818
|
+
headers: {
|
|
4819
|
+
"Content-Type": "application/json",
|
|
4820
|
+
...options.headers
|
|
4821
|
+
}
|
|
4822
|
+
});
|
|
4823
|
+
}
|
|
4824
|
+
/**
|
|
4825
|
+
* Delete Product
|
|
4826
|
+
*
|
|
4827
|
+
* Deletes a product.
|
|
4828
|
+
*/
|
|
4829
|
+
deleteProduct(options) {
|
|
4830
|
+
return (options.client ?? this.client).delete({ url: "/products/{productId}", ...options });
|
|
4831
|
+
}
|
|
4577
4832
|
/**
|
|
4578
4833
|
* Get Product Listing (alternate)
|
|
4579
4834
|
*
|
|
@@ -4588,6 +4843,42 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4588
4843
|
...options
|
|
4589
4844
|
});
|
|
4590
4845
|
}
|
|
4846
|
+
/**
|
|
4847
|
+
* Update Product
|
|
4848
|
+
*
|
|
4849
|
+
* Updates a product and returns the updated Product object.
|
|
4850
|
+
*/
|
|
4851
|
+
updateProduct(options) {
|
|
4852
|
+
return (options.client ?? this.client).put({
|
|
4853
|
+
responseTransformer: updateProductResponseTransformer,
|
|
4854
|
+
url: "/products/{productId}",
|
|
4855
|
+
...options,
|
|
4856
|
+
headers: {
|
|
4857
|
+
"Content-Type": "application/json",
|
|
4858
|
+
...options.headers
|
|
4859
|
+
}
|
|
4860
|
+
});
|
|
4861
|
+
}
|
|
4862
|
+
/**
|
|
4863
|
+
* Get Public Profile
|
|
4864
|
+
*
|
|
4865
|
+
* Get a user's public profile information.
|
|
4866
|
+
*/
|
|
4867
|
+
getPublicProfile(options) {
|
|
4868
|
+
return (options.client ?? this.client).get({
|
|
4869
|
+
responseTransformer: getPublicProfileResponseTransformer,
|
|
4870
|
+
url: "/profile/{userId}",
|
|
4871
|
+
...options
|
|
4872
|
+
});
|
|
4873
|
+
}
|
|
4874
|
+
/**
|
|
4875
|
+
* Get Private Profile
|
|
4876
|
+
*
|
|
4877
|
+
* Get profile information visible to the currently authenticated user.
|
|
4878
|
+
*/
|
|
4879
|
+
getPrivateProfile(options) {
|
|
4880
|
+
return (options.client ?? this.client).get({ url: "/profile/{userId}/private", ...options });
|
|
4881
|
+
}
|
|
4591
4882
|
/**
|
|
4592
4883
|
* List Props
|
|
4593
4884
|
*
|
|
@@ -4709,6 +5000,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4709
5000
|
}
|
|
4710
5001
|
});
|
|
4711
5002
|
}
|
|
5003
|
+
/**
|
|
5004
|
+
* Redeem Reward
|
|
5005
|
+
*
|
|
5006
|
+
* Redeem a reward for the currently logged in user.
|
|
5007
|
+
*/
|
|
5008
|
+
redeemReward(options) {
|
|
5009
|
+
return (options.client ?? this.client).post({
|
|
5010
|
+
responseTransformer: redeemRewardResponseTransformer,
|
|
5011
|
+
url: "/reward/redeem",
|
|
5012
|
+
...options,
|
|
5013
|
+
headers: {
|
|
5014
|
+
"Content-Type": "application/json",
|
|
5015
|
+
...options.headers
|
|
5016
|
+
}
|
|
5017
|
+
});
|
|
5018
|
+
}
|
|
4712
5019
|
/**
|
|
4713
5020
|
* List Subscriptions
|
|
4714
5021
|
*
|
|
@@ -4799,6 +5106,50 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4799
5106
|
...options
|
|
4800
5107
|
});
|
|
4801
5108
|
}
|
|
5109
|
+
/**
|
|
5110
|
+
* Get Economy Balances
|
|
5111
|
+
*
|
|
5112
|
+
* Gets the combined balances for a user.
|
|
5113
|
+
*/
|
|
5114
|
+
getEconomyBalances(options) {
|
|
5115
|
+
return (options.client ?? this.client).get({ url: "/user/{userId}/economy/balances", ...options });
|
|
5116
|
+
}
|
|
5117
|
+
/**
|
|
5118
|
+
* Get Economy Payouts
|
|
5119
|
+
*
|
|
5120
|
+
* Gets the payout history for a user.
|
|
5121
|
+
*/
|
|
5122
|
+
getEconomyPayouts(options) {
|
|
5123
|
+
return (options.client ?? this.client).get({
|
|
5124
|
+
responseTransformer: getEconomyPayoutsResponseTransformer,
|
|
5125
|
+
url: "/user/{userId}/economy/payouts/list",
|
|
5126
|
+
...options
|
|
5127
|
+
});
|
|
5128
|
+
}
|
|
5129
|
+
/**
|
|
5130
|
+
* Get Economy Payout Status
|
|
5131
|
+
*
|
|
5132
|
+
* Gets the current payout status and eligibility information for a user.
|
|
5133
|
+
*/
|
|
5134
|
+
getEconomyPayoutStatus(options) {
|
|
5135
|
+
return (options.client ?? this.client).get({
|
|
5136
|
+
responseTransformer: getEconomyPayoutStatusResponseTransformer,
|
|
5137
|
+
url: "/user/{userId}/economy/payouts/status",
|
|
5138
|
+
...options
|
|
5139
|
+
});
|
|
5140
|
+
}
|
|
5141
|
+
/**
|
|
5142
|
+
* Get Product Purchase History
|
|
5143
|
+
*
|
|
5144
|
+
* Gets a history of product purchases
|
|
5145
|
+
*/
|
|
5146
|
+
getProductPurchaseHistory(options) {
|
|
5147
|
+
return (options.client ?? this.client).get({
|
|
5148
|
+
responseTransformer: getProductPurchaseHistoryResponseTransformer,
|
|
5149
|
+
url: "/user/{userId}/economy/transactions",
|
|
5150
|
+
...options
|
|
5151
|
+
});
|
|
5152
|
+
}
|
|
4802
5153
|
/**
|
|
4803
5154
|
* Delete Friend Request
|
|
4804
5155
|
*
|
|
@@ -4851,6 +5202,26 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
4851
5202
|
...options
|
|
4852
5203
|
});
|
|
4853
5204
|
}
|
|
5205
|
+
/**
|
|
5206
|
+
* List User Products
|
|
5207
|
+
*
|
|
5208
|
+
* Gets the products of a given user.
|
|
5209
|
+
*/
|
|
5210
|
+
listUserProducts(options) {
|
|
5211
|
+
return (options.client ?? this.client).get({
|
|
5212
|
+
responseTransformer: listUserProductsResponseTransformer,
|
|
5213
|
+
url: "/user/{userId}/products",
|
|
5214
|
+
...options
|
|
5215
|
+
});
|
|
5216
|
+
}
|
|
5217
|
+
/**
|
|
5218
|
+
* Get User Tilia KYC
|
|
5219
|
+
*
|
|
5220
|
+
* Gets KYC status details for a user's Tilia account.
|
|
5221
|
+
*/
|
|
5222
|
+
getUserTiliaKyc(options) {
|
|
5223
|
+
return (options.client ?? this.client).get({ url: "/user/{userId}/tilia/kyc", ...options });
|
|
5224
|
+
}
|
|
4854
5225
|
/**
|
|
4855
5226
|
* Get Tilia TOS Agreement Status
|
|
4856
5227
|
*
|
|
@@ -5009,7 +5380,7 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5009
5380
|
});
|
|
5010
5381
|
}
|
|
5011
5382
|
/**
|
|
5012
|
-
* Get User Credits
|
|
5383
|
+
* Get User Credits Eligibility
|
|
5013
5384
|
*
|
|
5014
5385
|
* Get the user's eligibility status for subscriptions based on available credits.
|
|
5015
5386
|
*/
|
|
@@ -5183,13 +5554,21 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5183
5554
|
});
|
|
5184
5555
|
}
|
|
5185
5556
|
/**
|
|
5186
|
-
* Get User Subscription
|
|
5557
|
+
* Get User Subscription Eligibility
|
|
5187
5558
|
*
|
|
5188
5559
|
* Get the user's eligibility status for subscriptions.
|
|
5189
5560
|
*/
|
|
5190
5561
|
getUserSubscriptionEligible(options) {
|
|
5191
5562
|
return (options.client ?? this.client).get({ url: "/users/{userId}/subscription/eligible", ...options });
|
|
5192
5563
|
}
|
|
5564
|
+
/**
|
|
5565
|
+
* Get User Tutorial Status
|
|
5566
|
+
*
|
|
5567
|
+
* Gets the status of completed or outstanding tutorials for the specified user.
|
|
5568
|
+
*/
|
|
5569
|
+
getUserTutorialStatus(options) {
|
|
5570
|
+
return (options.client ?? this.client).get({ url: "/users/{userId}/tutorial", ...options });
|
|
5571
|
+
}
|
|
5193
5572
|
/**
|
|
5194
5573
|
* Delete User Persistence
|
|
5195
5574
|
*
|
|
@@ -5334,6 +5713,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5334
5713
|
}
|
|
5335
5714
|
});
|
|
5336
5715
|
}
|
|
5716
|
+
/**
|
|
5717
|
+
* Add World Tags
|
|
5718
|
+
*
|
|
5719
|
+
* Adds tags to the world's profile
|
|
5720
|
+
*/
|
|
5721
|
+
addWorldTags(options) {
|
|
5722
|
+
return (options.client ?? this.client).post({
|
|
5723
|
+
responseTransformer: addWorldTagsResponseTransformer,
|
|
5724
|
+
url: "/worlds/{worldId}/addTags",
|
|
5725
|
+
...options,
|
|
5726
|
+
headers: {
|
|
5727
|
+
"Content-Type": "application/json",
|
|
5728
|
+
...options.headers
|
|
5729
|
+
}
|
|
5730
|
+
});
|
|
5731
|
+
}
|
|
5337
5732
|
/**
|
|
5338
5733
|
* Get World Metadata
|
|
5339
5734
|
*
|
|
@@ -5344,6 +5739,14 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5344
5739
|
getWorldMetadata(options) {
|
|
5345
5740
|
return (options.client ?? this.client).get({ url: "/worlds/{worldId}/metadata", ...options });
|
|
5346
5741
|
}
|
|
5742
|
+
/**
|
|
5743
|
+
* Delete World Platform
|
|
5744
|
+
*
|
|
5745
|
+
* Deletes a world platform.
|
|
5746
|
+
*/
|
|
5747
|
+
deleteWorldPlatform(options) {
|
|
5748
|
+
return (options.client ?? this.client).delete({ url: "/worlds/{worldId}/platform/{publishedPlatform}", ...options });
|
|
5749
|
+
}
|
|
5347
5750
|
/**
|
|
5348
5751
|
* Unpublish World
|
|
5349
5752
|
*
|
|
@@ -5368,6 +5771,22 @@ var VRChatInternal = class _VRChatInternal extends HeyApiClient {
|
|
|
5368
5771
|
publishWorld(options) {
|
|
5369
5772
|
return (options.client ?? this.client).put({ url: "/worlds/{worldId}/publish", ...options });
|
|
5370
5773
|
}
|
|
5774
|
+
/**
|
|
5775
|
+
* Remove World Tags
|
|
5776
|
+
*
|
|
5777
|
+
* Removes tags from the world's profile
|
|
5778
|
+
*/
|
|
5779
|
+
removeWorldTags(options) {
|
|
5780
|
+
return (options.client ?? this.client).post({
|
|
5781
|
+
responseTransformer: removeWorldTagsResponseTransformer,
|
|
5782
|
+
url: "/worlds/{worldId}/removeTags",
|
|
5783
|
+
...options,
|
|
5784
|
+
headers: {
|
|
5785
|
+
"Content-Type": "application/json",
|
|
5786
|
+
...options.headers
|
|
5787
|
+
}
|
|
5788
|
+
});
|
|
5789
|
+
}
|
|
5371
5790
|
/**
|
|
5372
5791
|
* Get World Instance
|
|
5373
5792
|
*
|