@stackedapp/types 1.9.16 → 1.9.17
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/stacked-types.d.ts +68 -1
- package/package.json +1 -1
package/dist/stacked-types.d.ts
CHANGED
|
@@ -896,7 +896,74 @@ interface StackedCampaignsServerResponse extends StackedCampaignsBaseResponse {
|
|
|
896
896
|
/** @deprecated use player.stackedData instead */
|
|
897
897
|
playerData?: StackedEntityData;
|
|
898
898
|
}
|
|
899
|
+
type GetOneTimeAuthTokenResponse = {
|
|
900
|
+
token: string;
|
|
901
|
+
};
|
|
902
|
+
type ExchangeOneTimeTokenForSessionTokenResponse = {
|
|
903
|
+
playerId: string;
|
|
904
|
+
gameId: string;
|
|
905
|
+
token: string;
|
|
906
|
+
player: {
|
|
907
|
+
snapshot?: StackedSnapshot;
|
|
908
|
+
data?: StackedEntityData;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
type GenerateStackedLinkTokenResponse = {
|
|
912
|
+
token: string;
|
|
913
|
+
};
|
|
914
|
+
type ExchangeStackedLinkTokenResponse = {
|
|
915
|
+
linked: boolean;
|
|
916
|
+
alreadyLinked: boolean;
|
|
917
|
+
};
|
|
918
|
+
type InitializeUnifiedUserResponse = StackedUserComplete;
|
|
919
|
+
type LinkExternalGameToUnifiedAccountResponse = {
|
|
920
|
+
user?: StackedBaseUser;
|
|
921
|
+
};
|
|
922
|
+
type UnlinkExternalGameFromUnifiedAccountResponse = LinkExternalGameToUnifiedAccountResponse;
|
|
923
|
+
type StartOneTimeAuthResponse = {
|
|
924
|
+
message: string;
|
|
925
|
+
sessionId: string;
|
|
926
|
+
method_id: string;
|
|
927
|
+
};
|
|
928
|
+
type CompleteOneTimeAuthResponse = {
|
|
929
|
+
success: boolean;
|
|
930
|
+
user: StackedUserComplete;
|
|
931
|
+
session_token: string;
|
|
932
|
+
};
|
|
933
|
+
type StartCryptoAuthResponse = {
|
|
934
|
+
challenge: string;
|
|
935
|
+
};
|
|
936
|
+
type CompleteCryptoAuthResponse = {
|
|
937
|
+
success: boolean;
|
|
938
|
+
user: StackedUserComplete;
|
|
939
|
+
session_token: string;
|
|
940
|
+
};
|
|
941
|
+
type DeleteAccountResponse = {
|
|
942
|
+
success: boolean;
|
|
943
|
+
};
|
|
944
|
+
type RemoveAuthMethodResponse = {
|
|
945
|
+
success: boolean;
|
|
946
|
+
};
|
|
947
|
+
type StartOAuthResponse = {
|
|
948
|
+
url: string;
|
|
949
|
+
};
|
|
950
|
+
type StartOAuthAttachResponse = {
|
|
951
|
+
url: string;
|
|
952
|
+
};
|
|
953
|
+
type CompleteOAuthResponse = {
|
|
954
|
+
success: boolean;
|
|
955
|
+
user: StackedUserComplete;
|
|
956
|
+
session_token: string;
|
|
957
|
+
};
|
|
958
|
+
type RemoveOAuthProviderResponse = {
|
|
959
|
+
success: boolean;
|
|
960
|
+
message?: string;
|
|
961
|
+
};
|
|
962
|
+
type SignOutUnifiedUserResponse = {
|
|
963
|
+
success: boolean;
|
|
964
|
+
message?: string;
|
|
965
|
+
};
|
|
899
966
|
|
|
900
967
|
type StackedEnv = IEnv;
|
|
901
968
|
|
|
902
|
-
export type { IClientPlayerData, StackedAppConnection, StackedBaseConditions, StackedBaseOffer, StackedBaseUser, StackedBaseUserExtra, StackedCampaignsResponse, StackedCampaignsServerResponse, StackedClaimableConditions, StackedClaimableTrackers, StackedCompletionConditions, StackedCompletionDynamicTracker, StackedCompletionTrackers, StackedDynamicCondition, StackedDynamicGroup, StackedEntityCurrencies, StackedEntityData, StackedEnv, StackedOffer, StackedOfferTrackers, StackedReward, StackedRewardKind, StackedSnapshot, StackedSnapshotProgress, StackedSocialTrackerAccumulate, StackedSocialTrackerAttach, StackedUser, StackedUserComplete, StackedUserOffer, StackedUserResponse, StackedUserWithApps, UserOfferStatus };
|
|
969
|
+
export type { CompleteCryptoAuthResponse, CompleteOAuthResponse, CompleteOneTimeAuthResponse, DeleteAccountResponse, ExchangeOneTimeTokenForSessionTokenResponse, ExchangeStackedLinkTokenResponse, GenerateStackedLinkTokenResponse, GetOneTimeAuthTokenResponse, IClientPlayerData, InitializeUnifiedUserResponse, LinkExternalGameToUnifiedAccountResponse, RemoveAuthMethodResponse, RemoveOAuthProviderResponse, SignOutUnifiedUserResponse, StackedAppConnection, StackedBaseConditions, StackedBaseOffer, StackedBaseUser, StackedBaseUserExtra, StackedCampaignsResponse, StackedCampaignsServerResponse, StackedClaimableConditions, StackedClaimableTrackers, StackedCompletionConditions, StackedCompletionDynamicTracker, StackedCompletionTrackers, StackedDynamicCondition, StackedDynamicGroup, StackedEntityCurrencies, StackedEntityData, StackedEnv, StackedOffer, StackedOfferTrackers, StackedReward, StackedRewardKind, StackedSnapshot, StackedSnapshotProgress, StackedSocialTrackerAccumulate, StackedSocialTrackerAttach, StackedUser, StackedUserComplete, StackedUserOffer, StackedUserResponse, StackedUserWithApps, StartCryptoAuthResponse, StartOAuthAttachResponse, StartOAuthResponse, StartOneTimeAuthResponse, UnlinkExternalGameFromUnifiedAccountResponse, UserOfferStatus };
|