LinkPersonaRequest
import type { LinkPersonaRequest } from "https://googleapis.deno.dev/v1/games:v1.ts";
Request to link an in-game account with a PGS principal (encoded in the session id).
interface LinkPersonaRequest {
cardinalityConstraint?: "ONE_PERSONA_TO_ONE_PLAYER";
conflictingLinksResolutionPolicy?: "KEEP_EXISTING_LINKS" | "CREATE_NEW_LINK";
expireTime?: Date;
persona?: string;
sessionId?: string;
token?: string;
ttl?: number;
}§Properties
§
cardinalityConstraint?: "ONE_PERSONA_TO_ONE_PLAYER"
[src]Required. Cardinality constraint to observe when linking a persona to a player in the scope of a game.
§
conflictingLinksResolutionPolicy?: "KEEP_EXISTING_LINKS" | "CREATE_NEW_LINK"
[src]Required. Resolution policy to apply when the linking of a persona to a player would result in violating the specified cardinality constraint.
§
persona?: string
[src]Required. Stable identifier of the in-game account. Please refrain from re-using the same persona for different games.
§
sessionId?: string
[src]Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application.