@community-fabs/playfab-web-sdk 1.193.250606-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/LICENSE +201 -0
- package/README.md +32 -0
- package/dist/Addon.d.ts +731 -0
- package/dist/Addon.js +8 -0
- package/dist/Addon.js.map +1 -0
- package/dist/Admin.d.ts +5675 -0
- package/dist/Admin.js +8 -0
- package/dist/Admin.js.map +1 -0
- package/dist/Authentication.d.ts +136 -0
- package/dist/Authentication.js +8 -0
- package/dist/Authentication.js.map +1 -0
- package/dist/Client.d.ts +6398 -0
- package/dist/Client.js +8 -0
- package/dist/Client.js.map +1 -0
- package/dist/CloudScript.d.ts +679 -0
- package/dist/CloudScript.js +8 -0
- package/dist/CloudScript.js.map +1 -0
- package/dist/Data.d.ts +347 -0
- package/dist/Data.js +8 -0
- package/dist/Data.js.map +1 -0
- package/dist/Economy.d.ts +2910 -0
- package/dist/Economy.js +8 -0
- package/dist/Economy.js.map +1 -0
- package/dist/Events.d.ts +494 -0
- package/dist/Events.js +8 -0
- package/dist/Events.js.map +1 -0
- package/dist/Experimentation.d.ts +504 -0
- package/dist/Experimentation.js +8 -0
- package/dist/Experimentation.js.map +1 -0
- package/dist/Groups.d.ts +785 -0
- package/dist/Groups.js +8 -0
- package/dist/Groups.js.map +1 -0
- package/dist/Insights.d.ts +167 -0
- package/dist/Insights.js +8 -0
- package/dist/Insights.js.map +1 -0
- package/dist/Localization.d.ts +23 -0
- package/dist/Localization.js +8 -0
- package/dist/Localization.js.map +1 -0
- package/dist/Matchmaker.d.ts +271 -0
- package/dist/Matchmaker.js +8 -0
- package/dist/Matchmaker.js.map +1 -0
- package/dist/Multiplayer.d.ts +5587 -0
- package/dist/Multiplayer.js +8 -0
- package/dist/Multiplayer.js.map +1 -0
- package/dist/PlayFabCommon-Dnp_xHg5.d.ts +68 -0
- package/dist/Profiles.d.ts +422 -0
- package/dist/Profiles.js +8 -0
- package/dist/Profiles.js.map +1 -0
- package/dist/Progression.d.ts +862 -0
- package/dist/Progression.js +8 -0
- package/dist/Progression.js.map +1 -0
- package/dist/Server.d.ts +5551 -0
- package/dist/Server.js +8 -0
- package/dist/Server.js.map +1 -0
- package/dist/chunk-3DU2LYBT.js +2673 -0
- package/dist/chunk-3DU2LYBT.js.map +1 -0
- package/dist/chunk-6OZSERVG.js +198 -0
- package/dist/chunk-6OZSERVG.js.map +1 -0
- package/dist/chunk-BD7SF6AA.js +357 -0
- package/dist/chunk-BD7SF6AA.js.map +1 -0
- package/dist/chunk-CPJ6FMQ3.js +421 -0
- package/dist/chunk-CPJ6FMQ3.js.map +1 -0
- package/dist/chunk-IFBBLD7Q.js +2477 -0
- package/dist/chunk-IFBBLD7Q.js.map +1 -0
- package/dist/chunk-J2KKGAWN.js +2387 -0
- package/dist/chunk-J2KKGAWN.js.map +1 -0
- package/dist/chunk-K2I6VCQK.js +270 -0
- package/dist/chunk-K2I6VCQK.js.map +1 -0
- package/dist/chunk-MHSKIHSG.js +22 -0
- package/dist/chunk-MHSKIHSG.js.map +1 -0
- package/dist/chunk-MQZCB76F.js +82 -0
- package/dist/chunk-MQZCB76F.js.map +1 -0
- package/dist/chunk-OZLGFCPU.js +421 -0
- package/dist/chunk-OZLGFCPU.js.map +1 -0
- package/dist/chunk-P4FCADAY.js +175 -0
- package/dist/chunk-P4FCADAY.js.map +1 -0
- package/dist/chunk-QHQBHTHP.js +76 -0
- package/dist/chunk-QHQBHTHP.js.map +1 -0
- package/dist/chunk-QJRCYM7I.js +82 -0
- package/dist/chunk-QJRCYM7I.js.map +1 -0
- package/dist/chunk-RVBFE5D5.js +237 -0
- package/dist/chunk-RVBFE5D5.js.map +1 -0
- package/dist/chunk-SF5NNTLE.js +225 -0
- package/dist/chunk-SF5NNTLE.js.map +1 -0
- package/dist/chunk-SZJQBNVS.js +197 -0
- package/dist/chunk-SZJQBNVS.js.map +1 -0
- package/dist/chunk-WBPWV6H3.js +2970 -0
- package/dist/chunk-WBPWV6H3.js.map +1 -0
- package/dist/chunk-YI4OQ74L.js +1048 -0
- package/dist/chunk-YI4OQ74L.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
interface IPlayFabRequestCommon {
|
|
2
|
+
}
|
|
3
|
+
interface IPlayFabError {
|
|
4
|
+
code: number;
|
|
5
|
+
status: string;
|
|
6
|
+
error: string;
|
|
7
|
+
errorCode: number;
|
|
8
|
+
errorMessage: string;
|
|
9
|
+
errorDetails?: Record<string, string[]>;
|
|
10
|
+
request?: any;
|
|
11
|
+
retryAfterSeconds?: number;
|
|
12
|
+
}
|
|
13
|
+
interface IPlayFabResultCommon extends IPlayFabError {
|
|
14
|
+
}
|
|
15
|
+
interface EmptyResponse extends IPlayFabResultCommon {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface ISettings {
|
|
19
|
+
/** You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website) */
|
|
20
|
+
titleId: string;
|
|
21
|
+
/** For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website) */
|
|
22
|
+
developerSecretKey: string;
|
|
23
|
+
productionServerUrl: string;
|
|
24
|
+
/** Headers to apply to every request */
|
|
25
|
+
globalHeaders?: Record<string, string>;
|
|
26
|
+
/** The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this */
|
|
27
|
+
verticalName?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type AuthContext = {
|
|
31
|
+
PlayFabId: string | null;
|
|
32
|
+
EntityId: string | null;
|
|
33
|
+
EntityType: string | null;
|
|
34
|
+
SessionTicket: string | null;
|
|
35
|
+
EntityToken: string | null;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
declare class PlayFabCommon {
|
|
39
|
+
buildIdentifier: string;
|
|
40
|
+
requestGetParams: {
|
|
41
|
+
readonly sdk: string;
|
|
42
|
+
};
|
|
43
|
+
errorTitleId: string;
|
|
44
|
+
private _context;
|
|
45
|
+
constructor(settings?: Partial<ISettings> | undefined);
|
|
46
|
+
get settings(): ISettings;
|
|
47
|
+
get authenticationContext(): AuthContext;
|
|
48
|
+
get sessionTicket(): string | null;
|
|
49
|
+
set sessionTicket(value: string | null);
|
|
50
|
+
get entityToken(): string | null;
|
|
51
|
+
set entityToken(value: string | null);
|
|
52
|
+
GetServerUrl(): string;
|
|
53
|
+
InjectHeaders(xhr: XMLHttpRequest, headersObj: Record<string, string> | undefined): void;
|
|
54
|
+
ExecuteRequest<T extends IPlayFabResultCommon>(url: string, body: any, authkey: string | null, authValue: string | null, extraHeaders?: Record<string, string>): Promise<{
|
|
55
|
+
data: T;
|
|
56
|
+
}>;
|
|
57
|
+
UpdateAuthenticationContext(currentAuthContext: AuthContext, result: any): AuthContext;
|
|
58
|
+
GetAuthInfo(request: any, authKey: string): {
|
|
59
|
+
authKey: string;
|
|
60
|
+
authValue: any;
|
|
61
|
+
authError: string;
|
|
62
|
+
};
|
|
63
|
+
ExecuteRequestWrapper<T extends IPlayFabResultCommon>(apiURL: string, request: any, authKey: string | null, extraHeaders?: Record<string, string>): Promise<T>;
|
|
64
|
+
GenerateErrorReport(error: IPlayFabError | null): string;
|
|
65
|
+
ForgetAllCredentials(): void;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { type EmptyResponse as E, type IPlayFabRequestCommon as I, PlayFabCommon as P, type IPlayFabResultCommon as a };
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import { I as IPlayFabRequestCommon, a as IPlayFabResultCommon, P as PlayFabCommon } from './PlayFabCommon-Dnp_xHg5.js';
|
|
2
|
+
|
|
3
|
+
interface EntityDataObject {
|
|
4
|
+
/** Un-escaped JSON object, if DataAsObject is true. */
|
|
5
|
+
DataObject?: any;
|
|
6
|
+
/** Escaped string JSON body of the object, if DataAsObject is default or false. */
|
|
7
|
+
EscapedDataObject?: string;
|
|
8
|
+
/** Name of this object. */
|
|
9
|
+
ObjectName?: string;
|
|
10
|
+
}
|
|
11
|
+
interface EntityKey {
|
|
12
|
+
/** Unique ID of the entity. */
|
|
13
|
+
Id: string;
|
|
14
|
+
/** Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types */
|
|
15
|
+
Type?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Alternate name for Type.
|
|
18
|
+
* @deprecated Please use Type instead.
|
|
19
|
+
*/
|
|
20
|
+
TypeString?: string;
|
|
21
|
+
}
|
|
22
|
+
interface EntityLineage {
|
|
23
|
+
/** The Character Id of the associated entity. */
|
|
24
|
+
CharacterId?: string;
|
|
25
|
+
/** The Group Id of the associated entity. */
|
|
26
|
+
GroupId?: string;
|
|
27
|
+
/** The Master Player Account Id of the associated entity. */
|
|
28
|
+
MasterPlayerAccountId?: string;
|
|
29
|
+
/** The Namespace Id of the associated entity. */
|
|
30
|
+
NamespaceId?: string;
|
|
31
|
+
/** The Title Id of the associated entity. */
|
|
32
|
+
TitleId?: string;
|
|
33
|
+
/** The Title Player Account Id of the associated entity. */
|
|
34
|
+
TitlePlayerAccountId?: string;
|
|
35
|
+
}
|
|
36
|
+
interface EntityPermissionStatement {
|
|
37
|
+
/** The action this statement effects. May be 'Read', 'Write' or '*' for both read and write. */
|
|
38
|
+
Action: string;
|
|
39
|
+
/** A comment about the statement. Intended solely for bookkeeping and debugging. */
|
|
40
|
+
Comment?: string;
|
|
41
|
+
/** Additional conditions to be applied for entity resources. */
|
|
42
|
+
Condition?: any;
|
|
43
|
+
/** The effect this statement will have. It may be either Allow or Deny */
|
|
44
|
+
Effect: string;
|
|
45
|
+
/** The principal this statement will effect. */
|
|
46
|
+
Principal: any;
|
|
47
|
+
/** The resource this statements effects. Similar to 'pfrn:data--title![Title ID]/Profile/*' */
|
|
48
|
+
Resource: string;
|
|
49
|
+
}
|
|
50
|
+
interface EntityProfileBody {
|
|
51
|
+
/** Avatar URL for the entity. */
|
|
52
|
+
AvatarUrl?: string;
|
|
53
|
+
/** The creation time of this profile in UTC. */
|
|
54
|
+
Created: string;
|
|
55
|
+
/**
|
|
56
|
+
* The display name of the entity. This field may serve different purposes for different entity types. i.e.: for a title
|
|
57
|
+
* player account it could represent the display name of the player, whereas on a character it could be character's name.
|
|
58
|
+
*/
|
|
59
|
+
DisplayName?: string;
|
|
60
|
+
/** The entity id and type. */
|
|
61
|
+
Entity?: EntityKey;
|
|
62
|
+
/** The chain of responsibility for this entity. Use Lineage. */
|
|
63
|
+
EntityChain?: string;
|
|
64
|
+
/** The experiment variants of this profile. */
|
|
65
|
+
ExperimentVariants?: string[];
|
|
66
|
+
/** The files on this profile. */
|
|
67
|
+
Files?: Record<string, EntityProfileFileMetadata>;
|
|
68
|
+
/** The language on this profile. */
|
|
69
|
+
Language?: string;
|
|
70
|
+
/** The lineage of this profile. */
|
|
71
|
+
Lineage?: EntityLineage;
|
|
72
|
+
/** The objects on this profile. */
|
|
73
|
+
Objects?: Record<string, EntityDataObject>;
|
|
74
|
+
/**
|
|
75
|
+
* The permissions that govern access to this entity profile and its properties. Only includes permissions set on this
|
|
76
|
+
* profile, not global statements from titles and namespaces.
|
|
77
|
+
*/
|
|
78
|
+
Permissions?: EntityPermissionStatement[];
|
|
79
|
+
/** The statistics on this profile. */
|
|
80
|
+
Statistics?: Record<string, EntityStatisticValue>;
|
|
81
|
+
/**
|
|
82
|
+
* The version number of the profile in persistent storage at the time of the read. Used for optional optimistic
|
|
83
|
+
* concurrency during update.
|
|
84
|
+
*/
|
|
85
|
+
VersionNumber: number;
|
|
86
|
+
}
|
|
87
|
+
interface EntityProfileFileMetadata {
|
|
88
|
+
/** Checksum value for the file, can be used to check if the file on the server has changed. */
|
|
89
|
+
Checksum?: string;
|
|
90
|
+
/** Name of the file */
|
|
91
|
+
FileName?: string;
|
|
92
|
+
/** Last UTC time the file was modified */
|
|
93
|
+
LastModified: string;
|
|
94
|
+
/** Storage service's reported byte count */
|
|
95
|
+
Size: number;
|
|
96
|
+
}
|
|
97
|
+
interface EntityStatisticValue {
|
|
98
|
+
/** Metadata associated with the Statistic. */
|
|
99
|
+
Metadata?: string;
|
|
100
|
+
/** Statistic name */
|
|
101
|
+
Name?: string;
|
|
102
|
+
/** Statistic scores */
|
|
103
|
+
Scores?: string[];
|
|
104
|
+
/** Statistic version */
|
|
105
|
+
Version: number;
|
|
106
|
+
}
|
|
107
|
+
interface GetEntityProfileRequest extends IPlayFabRequestCommon {
|
|
108
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
109
|
+
CustomTags?: Record<string, string | null>;
|
|
110
|
+
/**
|
|
111
|
+
* Determines whether the objects will be returned as an escaped JSON string or as a un-escaped JSON object. Default is
|
|
112
|
+
* JSON string.
|
|
113
|
+
*/
|
|
114
|
+
DataAsObject?: boolean;
|
|
115
|
+
/** The optional entity to perform this action on. Defaults to the currently logged in entity. */
|
|
116
|
+
Entity?: EntityKey;
|
|
117
|
+
}
|
|
118
|
+
interface GetEntityProfileResponse extends IPlayFabResultCommon {
|
|
119
|
+
/** Entity profile */
|
|
120
|
+
Profile?: EntityProfileBody;
|
|
121
|
+
}
|
|
122
|
+
interface GetEntityProfilesRequest extends IPlayFabRequestCommon {
|
|
123
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
124
|
+
CustomTags?: Record<string, string | null>;
|
|
125
|
+
/**
|
|
126
|
+
* Determines whether the objects will be returned as an escaped JSON string or as a un-escaped JSON object. Default is
|
|
127
|
+
* JSON string.
|
|
128
|
+
*/
|
|
129
|
+
DataAsObject?: boolean;
|
|
130
|
+
/** Entity keys of the profiles to load. Must be between 1 and 25 */
|
|
131
|
+
Entities: EntityKey[];
|
|
132
|
+
}
|
|
133
|
+
interface GetEntityProfilesResponse extends IPlayFabResultCommon {
|
|
134
|
+
/** Entity profiles */
|
|
135
|
+
Profiles?: EntityProfileBody[];
|
|
136
|
+
}
|
|
137
|
+
interface GetGlobalPolicyRequest extends IPlayFabRequestCommon {
|
|
138
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
139
|
+
CustomTags?: Record<string, string | null>;
|
|
140
|
+
/** The optional entity to perform this action on. Defaults to the currently logged in entity. */
|
|
141
|
+
Entity?: EntityKey;
|
|
142
|
+
}
|
|
143
|
+
interface GetGlobalPolicyResponse extends IPlayFabResultCommon {
|
|
144
|
+
/** The permissions that govern access to all entities under this title or namespace. */
|
|
145
|
+
Permissions?: EntityPermissionStatement[];
|
|
146
|
+
}
|
|
147
|
+
interface GetTitlePlayersFromMasterPlayerAccountIdsRequest extends IPlayFabRequestCommon {
|
|
148
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
149
|
+
CustomTags?: Record<string, string | null>;
|
|
150
|
+
/** Master player account ids. */
|
|
151
|
+
MasterPlayerAccountIds: string[];
|
|
152
|
+
/** Id of title to get players from. */
|
|
153
|
+
TitleId?: string;
|
|
154
|
+
}
|
|
155
|
+
interface GetTitlePlayersFromMasterPlayerAccountIdsResponse extends IPlayFabResultCommon {
|
|
156
|
+
/** Optional id of title to get players from, required if calling using a master_player_account. */
|
|
157
|
+
TitleId?: string;
|
|
158
|
+
/** Dictionary of master player ids mapped to title player entity keys and id pairs */
|
|
159
|
+
TitlePlayerAccounts?: Record<string, EntityKey>;
|
|
160
|
+
}
|
|
161
|
+
interface GetTitlePlayersFromProviderIDsResponse extends IPlayFabResultCommon {
|
|
162
|
+
/**
|
|
163
|
+
* Dictionary of provider identifiers mapped to title_player_account lineage. Missing lineage indicates the player either
|
|
164
|
+
* doesn't exist or doesn't play the requested title.
|
|
165
|
+
*/
|
|
166
|
+
TitlePlayerAccounts?: Record<string, EntityLineage>;
|
|
167
|
+
}
|
|
168
|
+
interface GetTitlePlayersFromXboxLiveIDsRequest extends IPlayFabRequestCommon {
|
|
169
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
170
|
+
CustomTags?: Record<string, string | null>;
|
|
171
|
+
/** Xbox Sandbox the players had on their Xbox tokens. */
|
|
172
|
+
Sandbox: string;
|
|
173
|
+
/** Optional ID of title to get players from, required if calling using a master_player_account. */
|
|
174
|
+
TitleId?: string;
|
|
175
|
+
/** List of Xbox Live XUIDs */
|
|
176
|
+
XboxLiveIds: string[];
|
|
177
|
+
}
|
|
178
|
+
interface SetAvatarUrlRequest extends IPlayFabRequestCommon {
|
|
179
|
+
/** URL of the avatar image. If empty, it removes the existing avatar URL */
|
|
180
|
+
AvatarUrl: string;
|
|
181
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
182
|
+
CustomTags?: Record<string, string | null>;
|
|
183
|
+
/** The optional entity to perform this action on. Defaults to the currently logged in entity. */
|
|
184
|
+
Entity?: EntityKey;
|
|
185
|
+
/** The expected version of the profile to perform this update on */
|
|
186
|
+
ProfileVersion?: number;
|
|
187
|
+
}
|
|
188
|
+
interface SetAvatarUrlResponse extends IPlayFabResultCommon {
|
|
189
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
190
|
+
CustomTags?: Record<string, string | null>;
|
|
191
|
+
/** The optional entity to perform this action on. Defaults to the currently logged in entity. */
|
|
192
|
+
Entity?: EntityKey;
|
|
193
|
+
/** The type of operation that occurred on the profile's avatar URL */
|
|
194
|
+
OperationResult?: string;
|
|
195
|
+
/** The updated version of the profile after the avatar URL update */
|
|
196
|
+
ProfileVersion?: number;
|
|
197
|
+
}
|
|
198
|
+
interface SetDisplayNameRequest extends IPlayFabRequestCommon {
|
|
199
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
200
|
+
CustomTags?: Record<string, string | null>;
|
|
201
|
+
/** The new value to be set on Entity Profile's display name */
|
|
202
|
+
DisplayName?: string;
|
|
203
|
+
/** The optional entity to perform this action on. Defaults to the currently logged in entity. */
|
|
204
|
+
Entity?: EntityKey;
|
|
205
|
+
/** The expected version of a profile to perform this update on */
|
|
206
|
+
ExpectedVersion?: number;
|
|
207
|
+
}
|
|
208
|
+
interface SetDisplayNameResponse extends IPlayFabResultCommon {
|
|
209
|
+
/** The type of operation that occured on the profile's display name */
|
|
210
|
+
OperationResult?: string;
|
|
211
|
+
/** The updated version of the profile after the display name update */
|
|
212
|
+
VersionNumber?: number;
|
|
213
|
+
}
|
|
214
|
+
interface SetEntityProfilePolicyRequest extends IPlayFabRequestCommon {
|
|
215
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
216
|
+
CustomTags?: Record<string, string | null>;
|
|
217
|
+
/** The entity to perform this action on. */
|
|
218
|
+
Entity: EntityKey;
|
|
219
|
+
/** The statements to include in the access policy. */
|
|
220
|
+
Statements: EntityPermissionStatement[];
|
|
221
|
+
}
|
|
222
|
+
interface SetEntityProfilePolicyResponse extends IPlayFabResultCommon {
|
|
223
|
+
/**
|
|
224
|
+
* The permissions that govern access to this entity profile and its properties. Only includes permissions set on this
|
|
225
|
+
* profile, not global statements from titles and namespaces.
|
|
226
|
+
*/
|
|
227
|
+
Permissions?: EntityPermissionStatement[];
|
|
228
|
+
}
|
|
229
|
+
interface SetGlobalPolicyRequest extends IPlayFabRequestCommon {
|
|
230
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
231
|
+
CustomTags?: Record<string, string | null>;
|
|
232
|
+
/** The permissions that govern access to all entities under this title or namespace. */
|
|
233
|
+
Permissions?: EntityPermissionStatement[];
|
|
234
|
+
}
|
|
235
|
+
interface SetGlobalPolicyResponse extends IPlayFabResultCommon {
|
|
236
|
+
}
|
|
237
|
+
interface SetProfileLanguageRequest extends IPlayFabRequestCommon {
|
|
238
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
|
239
|
+
CustomTags?: Record<string, string | null>;
|
|
240
|
+
/** The optional entity to perform this action on. Defaults to the currently logged in entity. */
|
|
241
|
+
Entity?: EntityKey;
|
|
242
|
+
/** The expected version of a profile to perform this update on */
|
|
243
|
+
ExpectedVersion?: number;
|
|
244
|
+
/** The language to set on the given entity. Deletes the profile's language if passed in a null string. */
|
|
245
|
+
Language?: string;
|
|
246
|
+
}
|
|
247
|
+
interface SetProfileLanguageResponse extends IPlayFabResultCommon {
|
|
248
|
+
/** The type of operation that occured on the profile's language */
|
|
249
|
+
OperationResult?: string;
|
|
250
|
+
/** The updated version of the profile after the language update */
|
|
251
|
+
VersionNumber?: number;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare class PlayFabProfilesApi extends PlayFabCommon {
|
|
255
|
+
/**
|
|
256
|
+
* Gets the global title access policy
|
|
257
|
+
*
|
|
258
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getglobalpolicy Microsoft Documentation}
|
|
259
|
+
* @example
|
|
260
|
+
* await profileClient.GetGlobalPolicy({});
|
|
261
|
+
*/
|
|
262
|
+
GetGlobalPolicy(request: GetGlobalPolicyRequest, extraHeaders?: Record<string, string>): Promise<GetGlobalPolicyResponse>;
|
|
263
|
+
/**
|
|
264
|
+
* Retrieves the entity's profile.
|
|
265
|
+
*
|
|
266
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofile Microsoft Documentation}
|
|
267
|
+
* @example
|
|
268
|
+
* await profileClient.GetProfile({
|
|
269
|
+
* "Entity": {
|
|
270
|
+
* "Id": "1234567787392",
|
|
271
|
+
* "Type": "title_player_account",
|
|
272
|
+
* "TypeString": "title_player_account"
|
|
273
|
+
* }
|
|
274
|
+
* });
|
|
275
|
+
*/
|
|
276
|
+
GetProfile(request: GetEntityProfileRequest, extraHeaders?: Record<string, string>): Promise<GetEntityProfileResponse>;
|
|
277
|
+
/**
|
|
278
|
+
* Retrieves the entity's profile.
|
|
279
|
+
*
|
|
280
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofiles Microsoft Documentation}
|
|
281
|
+
* @example
|
|
282
|
+
* await profileClient.GetProfiles({
|
|
283
|
+
* "Entities": [
|
|
284
|
+
* {
|
|
285
|
+
* "Id": "1234567787392",
|
|
286
|
+
* "Type": "title_player_account",
|
|
287
|
+
* "TypeString": "title_player_account"
|
|
288
|
+
* },
|
|
289
|
+
* {
|
|
290
|
+
* "Id": "42434567785265",
|
|
291
|
+
* "Type": "title_player_account",
|
|
292
|
+
* "TypeString": "title_player_account"
|
|
293
|
+
* }
|
|
294
|
+
* ]
|
|
295
|
+
* });
|
|
296
|
+
*/
|
|
297
|
+
GetProfiles(request: GetEntityProfilesRequest, extraHeaders?: Record<string, string>): Promise<GetEntityProfilesResponse>;
|
|
298
|
+
/**
|
|
299
|
+
* Retrieves the title player accounts associated with the given master player account.
|
|
300
|
+
*
|
|
301
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfrommasterplayeraccountids Microsoft Documentation}
|
|
302
|
+
* @example
|
|
303
|
+
* await profileClient.GetTitlePlayersFromMasterPlayerAccountIds({
|
|
304
|
+
* "MasterPlayerAccountIds": [
|
|
305
|
+
* "1233455677"
|
|
306
|
+
* ],
|
|
307
|
+
* "TitleId": "abc123"
|
|
308
|
+
* });
|
|
309
|
+
*/
|
|
310
|
+
GetTitlePlayersFromMasterPlayerAccountIds(request: GetTitlePlayersFromMasterPlayerAccountIdsRequest, extraHeaders?: Record<string, string>): Promise<GetTitlePlayersFromMasterPlayerAccountIdsResponse>;
|
|
311
|
+
/**
|
|
312
|
+
* Retrieves the title player accounts associated with the given XUIDs.
|
|
313
|
+
*
|
|
314
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfromxboxliveids Microsoft Documentation}
|
|
315
|
+
* @example
|
|
316
|
+
* await profileClient.GetTitlePlayersFromXboxLiveIDs({
|
|
317
|
+
* "XboxLiveIds": [
|
|
318
|
+
* "1233455677"
|
|
319
|
+
* ],
|
|
320
|
+
* "Sandbox": "RETAIL"
|
|
321
|
+
* });
|
|
322
|
+
*/
|
|
323
|
+
GetTitlePlayersFromXboxLiveIDs(request: GetTitlePlayersFromXboxLiveIDsRequest, extraHeaders?: Record<string, string>): Promise<GetTitlePlayersFromProviderIDsResponse>;
|
|
324
|
+
/**
|
|
325
|
+
* Update the avatar url of the entity
|
|
326
|
+
*
|
|
327
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setavatarurl Microsoft Documentation}
|
|
328
|
+
* @example
|
|
329
|
+
* await profileClient.SetAvatarUrl({
|
|
330
|
+
* "AvatarUrl": "https://test.com/image.png",
|
|
331
|
+
* "ProfileVersion": 123,
|
|
332
|
+
* "Entity": {
|
|
333
|
+
* "Id": "90901000",
|
|
334
|
+
* "Type": "title_player_account",
|
|
335
|
+
* "TypeString": "title_player_account"
|
|
336
|
+
* }
|
|
337
|
+
* });
|
|
338
|
+
*/
|
|
339
|
+
SetAvatarUrl(request: SetAvatarUrlRequest, extraHeaders?: Record<string, string>): Promise<SetAvatarUrlResponse>;
|
|
340
|
+
/**
|
|
341
|
+
* Update the display name of the entity
|
|
342
|
+
*
|
|
343
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setdisplayname Microsoft Documentation}
|
|
344
|
+
* @example
|
|
345
|
+
* await profileClient.SetDisplayName({
|
|
346
|
+
* "DisplayName": "My new display name",
|
|
347
|
+
* "ExpectedVersion": 123,
|
|
348
|
+
* "Entity": {
|
|
349
|
+
* "Id": "90901000",
|
|
350
|
+
* "Type": "title_player_account",
|
|
351
|
+
* "TypeString": "title_player_account"
|
|
352
|
+
* }
|
|
353
|
+
* });
|
|
354
|
+
*/
|
|
355
|
+
SetDisplayName(request: SetDisplayNameRequest, extraHeaders?: Record<string, string>): Promise<SetDisplayNameResponse>;
|
|
356
|
+
/**
|
|
357
|
+
* Sets the global title access policy
|
|
358
|
+
*
|
|
359
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setglobalpolicy Microsoft Documentation}
|
|
360
|
+
* @example
|
|
361
|
+
* await profileClient.SetGlobalPolicy({
|
|
362
|
+
* "Permissions": [
|
|
363
|
+
* {
|
|
364
|
+
* "Resource": "pfrn:data--title_player_account!90901000/Profile/SomethingCool",
|
|
365
|
+
* "Action": "*",
|
|
366
|
+
* "Effect": "Allow",
|
|
367
|
+
* "Principal": {
|
|
368
|
+
* "ChildOf": {
|
|
369
|
+
* "EntityType": "[SELF]"
|
|
370
|
+
* }
|
|
371
|
+
* },
|
|
372
|
+
* "Comment": "An example policy"
|
|
373
|
+
* }
|
|
374
|
+
* ]
|
|
375
|
+
* });
|
|
376
|
+
*/
|
|
377
|
+
SetGlobalPolicy(request: SetGlobalPolicyRequest, extraHeaders?: Record<string, string>): Promise<SetGlobalPolicyResponse>;
|
|
378
|
+
/**
|
|
379
|
+
* Updates the entity's language. The precedence hierarchy for communication to the player is Title Player Account
|
|
380
|
+
* language, Master Player Account language, and then title default language if the first two aren't set or supported.
|
|
381
|
+
*
|
|
382
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilelanguage Microsoft Documentation}
|
|
383
|
+
* @example
|
|
384
|
+
* await profileClient.SetProfileLanguage({
|
|
385
|
+
* "Language": "en",
|
|
386
|
+
* "ExpectedVersion": 123,
|
|
387
|
+
* "Entity": {
|
|
388
|
+
* "Id": "1234",
|
|
389
|
+
* "Type": "title_player_account",
|
|
390
|
+
* "TypeString": "title_player_account"
|
|
391
|
+
* }
|
|
392
|
+
* });
|
|
393
|
+
*/
|
|
394
|
+
SetProfileLanguage(request: SetProfileLanguageRequest, extraHeaders?: Record<string, string>): Promise<SetProfileLanguageResponse>;
|
|
395
|
+
/**
|
|
396
|
+
* Sets the profiles access policy
|
|
397
|
+
*
|
|
398
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilepolicy Microsoft Documentation}
|
|
399
|
+
* @example
|
|
400
|
+
* await profileClient.SetProfilePolicy({
|
|
401
|
+
* "Statements": [
|
|
402
|
+
* {
|
|
403
|
+
* "Resource": "pfrn:data--*!*\/Profile/Files/avatar.png",
|
|
404
|
+
* "Action": "Read",
|
|
405
|
+
* "Effect": "Allow",
|
|
406
|
+
* "Principal": {
|
|
407
|
+
* "FriendOf": "true"
|
|
408
|
+
* },
|
|
409
|
+
* "Comment": "Allow my friends to read my avatar"
|
|
410
|
+
* }
|
|
411
|
+
* ],
|
|
412
|
+
* "Entity": {
|
|
413
|
+
* "Id": "90901000",
|
|
414
|
+
* "Type": "title_player_account",
|
|
415
|
+
* "TypeString": "title_player_account"
|
|
416
|
+
* }
|
|
417
|
+
* });
|
|
418
|
+
*/
|
|
419
|
+
SetProfilePolicy(request: SetEntityProfilePolicyRequest, extraHeaders?: Record<string, string>): Promise<SetEntityProfilePolicyResponse>;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export { PlayFabProfilesApi as default };
|
package/dist/Profiles.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|