@series-inc/rundot-game-sdk 5.10.0 → 5.10.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/{AdsApi-BtvUbkcY.d.ts → AdsApi-DWzdzHg7.d.ts} +43 -0
- package/dist/{chunk-WRQ3NCXC.js → chunk-BMTRYEJO.js} +7 -2
- package/dist/chunk-BMTRYEJO.js.map +1 -0
- package/dist/{chunk-VVVFQ2G3.js → chunk-FDQ6YEQ2.js} +53 -4
- package/dist/chunk-FDQ6YEQ2.js.map +1 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +2 -2
- package/dist/rundot-game-api/index.d.ts +2 -2
- package/dist/rundot-game-api/index.js +2 -2
- package/dist/sandbox/index.js +20 -1
- package/dist/sandbox/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-VVVFQ2G3.js.map +0 -1
- package/dist/chunk-WRQ3NCXC.js.map +0 -1
|
@@ -1278,12 +1278,21 @@ type UgcCustomSortBy = `idx_${string}`;
|
|
|
1278
1278
|
type UgcSortBy = UgcBuiltinSortBy | UgcCustomSortBy;
|
|
1279
1279
|
interface UgcBrowseParams {
|
|
1280
1280
|
contentType?: string;
|
|
1281
|
+
authorId?: string;
|
|
1281
1282
|
cursor?: string;
|
|
1282
1283
|
limit?: number;
|
|
1283
1284
|
sortBy?: UgcSortBy;
|
|
1284
1285
|
sortOrder?: 'asc' | 'desc';
|
|
1285
1286
|
filters?: Record<string, unknown>;
|
|
1286
1287
|
}
|
|
1288
|
+
interface UgcGetManyParams {
|
|
1289
|
+
entryIds: string[];
|
|
1290
|
+
}
|
|
1291
|
+
interface UgcGetManyResponse {
|
|
1292
|
+
entries: Array<UgcEntry & {
|
|
1293
|
+
isLikedByMe?: boolean;
|
|
1294
|
+
}>;
|
|
1295
|
+
}
|
|
1287
1296
|
interface UgcCountParams {
|
|
1288
1297
|
contentType?: string;
|
|
1289
1298
|
filters?: Record<string, unknown>;
|
|
@@ -1303,6 +1312,10 @@ interface UgcReportParams {
|
|
|
1303
1312
|
reason: 'inappropriate' | 'spam' | 'harassment' | 'other';
|
|
1304
1313
|
details?: string;
|
|
1305
1314
|
}
|
|
1315
|
+
interface UgcFollowCounts {
|
|
1316
|
+
followerCount: number;
|
|
1317
|
+
followingCount: number;
|
|
1318
|
+
}
|
|
1306
1319
|
interface UgcApi {
|
|
1307
1320
|
/**
|
|
1308
1321
|
* Create new user-generated content
|
|
@@ -1369,6 +1382,12 @@ interface UgcApi {
|
|
|
1369
1382
|
* @param params Report parameters
|
|
1370
1383
|
*/
|
|
1371
1384
|
report(params: UgcReportParams): Promise<void>;
|
|
1385
|
+
/**
|
|
1386
|
+
* Get multiple entries by ID in a single request
|
|
1387
|
+
* @param params Parameters including array of entry IDs (max 100)
|
|
1388
|
+
* @returns Entries found (with isLikedByMe status)
|
|
1389
|
+
*/
|
|
1390
|
+
getMany(params: UgcGetManyParams): Promise<UgcGetManyResponse>;
|
|
1372
1391
|
/**
|
|
1373
1392
|
* Count entries matching filters
|
|
1374
1393
|
* @param params Count parameters (optional contentType and indexed field filters)
|
|
@@ -1377,6 +1396,30 @@ interface UgcApi {
|
|
|
1377
1396
|
count(params?: UgcCountParams): Promise<{
|
|
1378
1397
|
count: number;
|
|
1379
1398
|
}>;
|
|
1399
|
+
/**
|
|
1400
|
+
* Follow a creator
|
|
1401
|
+
* @param targetProfileId The profile ID of the creator to follow
|
|
1402
|
+
*/
|
|
1403
|
+
follow(targetProfileId: string): Promise<void>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Unfollow a creator
|
|
1406
|
+
* @param targetProfileId The profile ID of the creator to unfollow
|
|
1407
|
+
*/
|
|
1408
|
+
unfollow(targetProfileId: string): Promise<void>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Check if the current user is following a creator
|
|
1411
|
+
* @param targetProfileId The profile ID of the creator to check
|
|
1412
|
+
* @returns Whether the current user is following the creator
|
|
1413
|
+
*/
|
|
1414
|
+
isFollowing(targetProfileId: string): Promise<{
|
|
1415
|
+
isFollowing: boolean;
|
|
1416
|
+
}>;
|
|
1417
|
+
/**
|
|
1418
|
+
* Get follower and following counts for a creator
|
|
1419
|
+
* @param targetProfileId The profile ID of the creator
|
|
1420
|
+
* @returns The follower and following counts
|
|
1421
|
+
*/
|
|
1422
|
+
getFollowCounts(targetProfileId: string): Promise<UgcFollowCounts>;
|
|
1380
1423
|
}
|
|
1381
1424
|
|
|
1382
1425
|
interface PreloaderApi {
|
|
@@ -139,7 +139,12 @@ var RundotGameMessageId = /* @__PURE__ */ ((RundotGameMessageId2) => {
|
|
|
139
139
|
RundotGameMessageId2["H5_UGC_UNLIKE"] = "H5_UGC_UNLIKE";
|
|
140
140
|
RundotGameMessageId2["H5_UGC_RECORD_USE"] = "H5_UGC_RECORD_USE";
|
|
141
141
|
RundotGameMessageId2["H5_UGC_REPORT"] = "H5_UGC_REPORT";
|
|
142
|
+
RundotGameMessageId2["H5_UGC_GET_MANY"] = "H5_UGC_GET_MANY";
|
|
142
143
|
RundotGameMessageId2["H5_UGC_COUNT"] = "H5_UGC_COUNT";
|
|
144
|
+
RundotGameMessageId2["H5_UGC_FOLLOW"] = "H5_UGC_FOLLOW";
|
|
145
|
+
RundotGameMessageId2["H5_UGC_UNFOLLOW"] = "H5_UGC_UNFOLLOW";
|
|
146
|
+
RundotGameMessageId2["H5_UGC_IS_FOLLOWING"] = "H5_UGC_IS_FOLLOWING";
|
|
147
|
+
RundotGameMessageId2["H5_UGC_GET_FOLLOW_COUNTS"] = "H5_UGC_GET_FOLLOW_COUNTS";
|
|
143
148
|
RundotGameMessageId2["H5_IMAGE_GEN_GENERATE"] = "H5_IMAGE_GEN_GENERATE";
|
|
144
149
|
RundotGameMessageId2["H5_PROMPT_LOGIN"] = "H5_PROMPT_LOGIN";
|
|
145
150
|
RundotGameMessageId2["H5_ENTITLEMENT_LIST"] = "H5_ENTITLEMENT_LIST";
|
|
@@ -4767,5 +4772,5 @@ var MockMultiplayerApi = class {
|
|
|
4767
4772
|
};
|
|
4768
4773
|
|
|
4769
4774
|
export { AccessDeniedError, BaseCdnApi, DEFAULT_SHARED_LIB_CDN_BASE, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, FILE_EXTENSION_PATTERN, HapticFeedbackStyle, HostCdnApi, HostDeviceApi, HostEnvironmentApi, HostProfileApi, HostSystemApi, HostTimeApi, MIN_CDN_PATH_SEGMENTS, MODULE_TO_LIBRARY_SPECIFIERS, MockAccessGateApi, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockDeviceApi, MockEntitlementApi, MockEnvironmentApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockMultiplayerApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockShopApi, MockStorageApi, MockSystemApi, MockTimeApi, ROOM_GAME_PHASES, RpcAccessGateApi, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcEntitlementApi, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRoomsApi, RpcSharedAssetsApi, RpcShopApi, RpcStorageApi, RundotGameMessageId, RundotGameRoom, SandboxProfileApi, WsMultiplayerApi, applyAccessGates, base64ToArrayBuffer, base64ToUtf8, createAccessGatedApi, createMockStorageApi, generateId, getLibraryDefinition, hasHostedUrlStructure, initializeAccessGate, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeEntitlements, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeShop, initializeStackNavigation, initializeStorage, initializeSystem, initializeTime, isPacificDaylightTime, parseCdnPathSegments, resolveCollectionItemPrice, setupRoomNotifications };
|
|
4770
|
-
//# sourceMappingURL=chunk-
|
|
4771
|
-
//# sourceMappingURL=chunk-
|
|
4775
|
+
//# sourceMappingURL=chunk-BMTRYEJO.js.map
|
|
4776
|
+
//# sourceMappingURL=chunk-BMTRYEJO.js.map
|