@series-inc/rundot-game-sdk 5.6.0-beta.2 → 5.6.0-beta4
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-i2N9JwQ6.d.ts → AdsApi-B6wYxaGq.d.ts} +18 -1
- package/dist/{chunk-4RKEVS37.js → chunk-EIVN4CFG.js} +3 -31
- package/dist/chunk-EIVN4CFG.js.map +1 -0
- package/dist/{chunk-BSR2DVTV.js → chunk-LWRCIQM2.js} +13 -4
- package/dist/chunk-LWRCIQM2.js.map +1 -0
- package/dist/index.d.ts +3 -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 -2
- package/dist/sandbox/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-4RKEVS37.js.map +0 -1
- package/dist/chunk-BSR2DVTV.js.map +0 -1
|
@@ -1188,11 +1188,20 @@ interface UgcListParams {
|
|
|
1188
1188
|
cursor?: string;
|
|
1189
1189
|
limit?: number;
|
|
1190
1190
|
}
|
|
1191
|
+
type UgcBuiltinSortBy = 'recent' | 'mostLiked' | 'mostUsed';
|
|
1192
|
+
type UgcCustomSortBy = `idx_${string}`;
|
|
1193
|
+
type UgcSortBy = UgcBuiltinSortBy | UgcCustomSortBy;
|
|
1191
1194
|
interface UgcBrowseParams {
|
|
1192
1195
|
contentType?: string;
|
|
1193
1196
|
cursor?: string;
|
|
1194
1197
|
limit?: number;
|
|
1195
|
-
sortBy?:
|
|
1198
|
+
sortBy?: UgcSortBy;
|
|
1199
|
+
sortOrder?: 'asc' | 'desc';
|
|
1200
|
+
filters?: Record<string, unknown>;
|
|
1201
|
+
}
|
|
1202
|
+
interface UgcCountParams {
|
|
1203
|
+
contentType?: string;
|
|
1204
|
+
filters?: Record<string, unknown>;
|
|
1196
1205
|
}
|
|
1197
1206
|
interface UgcListResponse {
|
|
1198
1207
|
entries: UgcEntry[];
|
|
@@ -1275,6 +1284,14 @@ interface UgcApi {
|
|
|
1275
1284
|
* @param params Report parameters
|
|
1276
1285
|
*/
|
|
1277
1286
|
report(params: UgcReportParams): Promise<void>;
|
|
1287
|
+
/**
|
|
1288
|
+
* Count entries matching filters
|
|
1289
|
+
* @param params Count parameters (optional contentType and indexed field filters)
|
|
1290
|
+
* @returns The count of matching entries
|
|
1291
|
+
*/
|
|
1292
|
+
count(params?: UgcCountParams): Promise<{
|
|
1293
|
+
count: number;
|
|
1294
|
+
}>;
|
|
1278
1295
|
}
|
|
1279
1296
|
|
|
1280
1297
|
interface PreloaderApi {
|
|
@@ -139,6 +139,7 @@ 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_COUNT"] = "H5_UGC_COUNT";
|
|
142
143
|
RundotGameMessageId2["H5_IMAGE_GEN_GENERATE"] = "H5_IMAGE_GEN_GENERATE";
|
|
143
144
|
RundotGameMessageId2["H5_PROMPT_LOGIN"] = "H5_PROMPT_LOGIN";
|
|
144
145
|
RundotGameMessageId2["H5_ENTITLEMENT_LIST"] = "H5_ENTITLEMENT_LIST";
|
|
@@ -3885,35 +3886,6 @@ function applyAccessGates(host) {
|
|
|
3885
3886
|
"authenticated_18plus",
|
|
3886
3887
|
gateConfig
|
|
3887
3888
|
);
|
|
3888
|
-
host.simulation = createAccessGatedApi(
|
|
3889
|
-
host.simulation,
|
|
3890
|
-
[
|
|
3891
|
-
"getStateAsync",
|
|
3892
|
-
"getConfigAsync",
|
|
3893
|
-
"executeRecipeAsync",
|
|
3894
|
-
"getActiveRunsAsync",
|
|
3895
|
-
"collectRecipeAsync",
|
|
3896
|
-
"executeScopedRecipeAsync",
|
|
3897
|
-
"triggerRecipeChainAsync",
|
|
3898
|
-
"getAvailableRecipesAsync",
|
|
3899
|
-
"getRecipeRequirementsAsync",
|
|
3900
|
-
"getBatchRecipeRequirementsAsync",
|
|
3901
|
-
"resolveFieldValueAsync",
|
|
3902
|
-
"getEntityMetadataAsync",
|
|
3903
|
-
"getSlotContainersAsync",
|
|
3904
|
-
"getSlotAssignmentsAsync",
|
|
3905
|
-
"assignItemToSlotAsync",
|
|
3906
|
-
"removeItemFromSlotAsync",
|
|
3907
|
-
"getAvailableItemsAsync",
|
|
3908
|
-
"calculatePowerPreviewAsync",
|
|
3909
|
-
"validateSlotAssignmentAsync",
|
|
3910
|
-
"executeBatchOperationsAsync",
|
|
3911
|
-
"subscribeAsync",
|
|
3912
|
-
"resetStateAsync"
|
|
3913
|
-
],
|
|
3914
|
-
"authenticated_18plus",
|
|
3915
|
-
gateConfig
|
|
3916
|
-
);
|
|
3917
3889
|
}
|
|
3918
3890
|
|
|
3919
3891
|
// src/access-gate/RpcAccessGateApi.ts
|
|
@@ -3992,5 +3964,5 @@ function initializeAccessGate(rundotGameApi, host) {
|
|
|
3992
3964
|
}
|
|
3993
3965
|
|
|
3994
3966
|
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, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSocialApi, MockStorageApi, MockSystemApi, MockTimeApi, PackageType, ROOM_GAME_PHASES, RpcAccessGateApi, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcEntitlementApi, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRoomsApi, RpcSharedAssetsApi, RpcStorageApi, RundotGameMessageId, RundotGameRoom, SandboxProfileApi, 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, initializeStackNavigation, initializeStorage, initializeSystem, initializeTime, isPacificDaylightTime, parseCdnPathSegments, setupRoomNotifications };
|
|
3995
|
-
//# sourceMappingURL=chunk-
|
|
3996
|
-
//# sourceMappingURL=chunk-
|
|
3967
|
+
//# sourceMappingURL=chunk-EIVN4CFG.js.map
|
|
3968
|
+
//# sourceMappingURL=chunk-EIVN4CFG.js.map
|