friend-connect
Version:
**BEFORE YOU USE THIS TOOL, PLEASE READ THE FOLLOWING: WE _AS CONTRIBUTORS_ ARE NOT RESPONSIBLE FOR ANY DAMAGE OR LOSS CAUSED BY THIS APP. USE AN ALT ACCOUNT, JUST IN CASE THERE IS AN ISSUE WITH THIS METHOD.**
222 lines (221 loc) • 8.99 kB
JavaScript
var RewardType;
(function (RewardType) {
/**
* An unknown and unsupported reward type was configured.
*/
RewardType[RewardType["invalid"] = 0] = "invalid";
/**
* An unknown and unsupported reward type was configured.
*/
RewardType[RewardType["Gamerscore"] = 1] = "Gamerscore";
/**
* The reward is defined and delivered by the title.
*/
RewardType[RewardType["inApp"] = 2] = "inApp";
/**
* The reward is a digital asset.
*/
RewardType[RewardType["Art"] = 3] = "Art";
})(RewardType || (RewardType = {}));
var ProgressState;
(function (ProgressState) {
/**
* The achievement progression is in an unknown state.
*/
ProgressState[ProgressState["Invalid"] = 0] = "Invalid";
/**
* The achievement has been unlocked.
*/
ProgressState[ProgressState["Achieved"] = 1] = "Achieved";
/**
* The achievement is locked but the user has made progress toward unlocking it.
*/
ProgressState[ProgressState["InProgress"] = 2] = "InProgress";
/**
* The achievement is locked and the user has not made any progress toward unlocking it.
*/
ProgressState[ProgressState["NotStarted"] = 3] = "NotStarted";
})(ProgressState || (ProgressState = {}));
var MediaAssetType;
(function (MediaAssetType) {
/**
* The achievement icon.
*/
MediaAssetType[MediaAssetType["icon"] = 0] = "icon";
/**
* The digital art asset.
*/
MediaAssetType[MediaAssetType["art"] = 1] = "art";
})(MediaAssetType || (MediaAssetType = {}));
var AchievementType;
(function (AchievementType) {
/**
* An unknown and unsupported achievement type.
*/
AchievementType[AchievementType["invalid"] = 0] = "invalid";
/**
* An achievement that has no end-date and can be unlocked at any time.
*/
AchievementType[AchievementType["persistent"] = 1] = "persistent";
/**
* An achievement that has a specific time window during which it can be unlocked.
*/
AchievementType[AchievementType["challenge"] = 2] = "challenge";
})(AchievementType || (AchievementType = {}));
/**
* @url https://docs.microsoft.com/en-us/gaming/gdk/_content/gc/reference/live/rest/enums/gvr-enum-gamecliptypes
*/
var GameClipType;
(function (GameClipType) {
/**
* Game clip type is unknown or not set. (not valid for upload)
*/
GameClipType[GameClipType["None"] = 0] = "None";
/**
* Game clip does not include asset data - only metadata. (for future use)
*/
GameClipType[GameClipType["MetadataOnly"] = 1] = "MetadataOnly";
/**
* Game clip is initiated by a developer/title.
*/
GameClipType[GameClipType["DeveloperInitiated"] = 2] = "DeveloperInitiated";
})(GameClipType || (GameClipType = {}));
/**
* @url https://docs.microsoft.com/en-us/gaming/gdk/_content/gc/reference/live/rest/enums/gvr-enum-gameclipsource
*/
var GameClipSource;
(function (GameClipSource) {
/**
* Game clip source is unknown or not set. (not valid for upload)
*/
GameClipSource[GameClipSource["None"] = 0] = "None";
/**
* Game clip originated by the Xbox console platform.
*/
GameClipSource[GameClipSource["Console"] = 1] = "Console";
/**
* Game clip originated by a title.
*/
GameClipSource[GameClipSource["TitleDirect"] = 2] = "TitleDirect";
/**
* Game clip is an achievement type.
*/
GameClipSource[GameClipSource["Intermediate"] = 3] = "Intermediate";
/**
* Game clip is from an intermediate app like an editor.
*/
GameClipSource[GameClipSource["UserInitiated"] = 4] = "UserInitiated";
})(GameClipSource || (GameClipSource = {}));
/**
* @url https://docs.microsoft.com/en-us/gaming/gdk/_content/gc/reference/live/rest/enums/gvr-enum-gameclipvisibility
*/
var GameClipVisibility;
(function (GameClipVisibility) {
/**
* Visibility is not specified. This is an invalid value in most cases.
*/
GameClipVisibility[GameClipVisibility["None"] = 0] = "None";
/**
* Game clip visibility determined by Xbox LIVE privacy settings.
*/
GameClipVisibility[GameClipVisibility["Default"] = 1] = "Default";
/**
* Game clip is only available to the original XUID that created it.
*/
GameClipVisibility[GameClipVisibility["Owner"] = 2] = "Owner";
/**
* Game clip is only available for the original Title that created it.
*/
GameClipVisibility[GameClipVisibility["Title"] = 3] = "Title";
/**
* Game clip is available for anyone in Xbox LIVE.
*/
GameClipVisibility[GameClipVisibility["Public"] = 4] = "Public";
})(GameClipVisibility || (GameClipVisibility = {}));
/**
* @url https://docs.microsoft.com/en-us/gaming/gdk/_content/gc/reference/live/rest/enums/gvr-enum-thumbnailsource
*/
var ThumbnailSource;
(function (ThumbnailSource) {
/**
* A Large and Small sized thumbnail are generated from the 3 second point in the clip.
*/
ThumbnailSource[ThumbnailSource["Default"] = 0] = "Default";
/**
* A Large and Small sized thumbnail are generated from the value specified in the InitialUploadRequest for the clip.
*/
ThumbnailSource[ThumbnailSource["Offset"] = 1] = "Offset";
/**
* Thumbnails are generated and uploaded independent of the GameClips service.
*/
ThumbnailSource[ThumbnailSource["Upload"] = 2] = "Upload";
})(ThumbnailSource || (ThumbnailSource = {}));
/**
* @url https://docs.microsoft.com/en-us/gaming/gdk/_content/gc/reference/live/rest/enums/privacy-enum-permissionid
*/
var PermissionId;
(function (PermissionId) {
/**
* Check whether or not the user can send a message with text content to the target user
*/
PermissionId[PermissionId["CommunicateUsingText"] = 0] = "CommunicateUsingText";
/**
* Check whether or not the user can communicate using video with the target user
*/
PermissionId[PermissionId["CommunicateUsingVideo"] = 1] = "CommunicateUsingVideo";
/**
* Check whether or not the user can communicate using voice with the target user
*/
PermissionId[PermissionId["CommunicateUsingVoice"] = 2] = "CommunicateUsingVoice";
/**
* Check whether or not the user can view the profile of the target user
*/
PermissionId[PermissionId["ViewTargetProfile"] = 3] = "ViewTargetProfile";
/**
* Check whether or not the user can view the game history of the target user
*/
PermissionId[PermissionId["ViewTargetGameHistory"] = 4] = "ViewTargetGameHistory";
/**
* Check whether or not the user can view the detailed video watching history of the target user
*/
PermissionId[PermissionId["ViewTargetVideoHistory"] = 5] = "ViewTargetVideoHistory";
/**
* Check whether or not the user can view the detailed music listening history of the target user
*/
PermissionId[PermissionId["ViewTargetMusicHistory"] = 6] = "ViewTargetMusicHistory";
/**
* Check whether or not the user can view the exercise info of the target user
*/
PermissionId[PermissionId["ViewTargetExerciseInfo"] = 7] = "ViewTargetExerciseInfo";
/**
* Check whether or not the user can view the online status of the target user
*/
PermissionId[PermissionId["ViewTargetPresence"] = 8] = "ViewTargetPresence";
/**
* Check whether or not the user can view the details of the targets video status (extended online presence)
*/
PermissionId[PermissionId["ViewTargetVideoStatus"] = 9] = "ViewTargetVideoStatus";
/**
* Check whether or not the user can view the details of the targets music status (extended online presence)
*/
PermissionId[PermissionId["ViewTargetMusicStatus"] = 10] = "ViewTargetMusicStatus";
/**
* Check whether or not the user can view the user-created content of other users
*/
PermissionId[PermissionId["ViewTargetUserCreatedContent"] = 11] = "ViewTargetUserCreatedContent";
})(PermissionId || (PermissionId = {}));
const VerifyStringResultCodes = {
0: "Success",
1: "Offensive string",
2: "String too long",
3: "Unknown error",
};
var ErrorCodes;
(function (ErrorCodes) {
ErrorCodes[ErrorCodes["E_GAMERUNTIME_NOT_INITIALIZED"] = 2300838144] = "E_GAMERUNTIME_NOT_INITIALIZED";
ErrorCodes[ErrorCodes["E_GAMERUNTIME_DLL_NOT_FOUND"] = 2300838145] = "E_GAMERUNTIME_DLL_NOT_FOUND";
ErrorCodes[ErrorCodes["E_GAMERUNTIME_VERSION_MISMATCH"] = 2300838146] = "E_GAMERUNTIME_VERSION_MISMATCH";
ErrorCodes[ErrorCodes["E_GAMERUNTIME_WINDOW_NOT_FOREGROUND"] = 2300838147] = "E_GAMERUNTIME_WINDOW_NOT_FOREGROUND";
ErrorCodes[ErrorCodes["E_GAMERUNTIME_SUSPENDED"] = 2300838148] = "E_GAMERUNTIME_SUSPENDED";
})(ErrorCodes || (ErrorCodes = {}));
export {};