Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

§
expireTime?: Date
[src]

Input only. Optional expiration time.

§
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.

§
token?: string
[src]

Required. Value of the token to create. Opaque to Play Games and assumed to be non-stable (encrypted with key rotation).

§
ttl?: number
[src]

Input only. Optional time-to-live.