@@ -600,4 +600,38 @@ export declare namespace workshop {
600600 export function getItems ( items : Array < bigint > , queryConfig ?: WorkshopItemQueryConfig | undefined | null ) : Promise < WorkshopItemsResult >
601601 export function getAllItems ( page : number , queryType : UGCQueryType , itemType : UGCType , creatorAppId : number , consumerAppId : number , queryConfig ?: WorkshopItemQueryConfig | undefined | null ) : Promise < WorkshopPaginatedResult >
602602 export function getUserItems ( page : number , accountId : number , listType : UserListType , itemType : UGCType , sortOrder : UserListOrder , appIds : AppIDs , queryConfig ?: WorkshopItemQueryConfig | undefined | null ) : Promise < WorkshopPaginatedResult >
603+ /**
604+ * Start tracking playtime on a set of workshop items.
605+ *
606+ * When your app shuts down, playtime tracking will automatically stop.
607+ *
608+ * @param itemIds - The array of workshop items you want to start tracking. (Maximum of 100 items.)
609+ * @returns Promise that resolves when the operation completes
610+ *
611+ * {@link https://partner.steamgames.com/doc/api/ISteamUGC#StartPlaytimeTracking}
612+ */
613+ export function startPlaytimeTracking ( itemIds : Array < bigint > ) : Promise < void >
614+ /**
615+ * Stop tracking playtime on a set of workshop items.
616+ *
617+ * This will increment the number of "playtime" sessions for those items by one.
618+ * When your app shuts down, playtime tracking will automatically stop.
619+ *
620+ * @param itemIds - The array of workshop items you want to stop tracking. (Maximum of 100 items.)
621+ * @returns Promise that resolves when the operation completes
622+ *
623+ * {@link https://partner.steamgames.com/doc/api/ISteamUGC#StopPlaytimeTracking}
624+ */
625+ export function stopPlaytimeTracking ( itemIds : Array < bigint > ) : Promise < void >
626+ /**
627+ * Stop tracking playtime of all workshop items.
628+ *
629+ * When your app shuts down, playtime tracking will automatically stop.
630+ * This will increment the number of "playtime" sessions for all items that were being tracked by one.
631+ *
632+ * @returns Promise that resolves when the operation completes
633+ *
634+ * {@link https://partner.steamgames.com/doc/api/ISteamUGC#StopPlaytimeTrackingForAllItems}
635+ */
636+ export function stopPlaytimeTrackingForAllItems ( ) : Promise < void >
603637}
0 commit comments