import * as types from "../types"; import Client from "../Client"; export function create( client: Client, playId: string, params: { permission: string | types.Permission; userId?: string; ttl?: number; trait?: string; reserveEndpoint?: boolean; forceAssignTo?: string; } ) { return client.call("POST", `/plays/${playId}/tokens`, JSON.stringify(params)); } // delete /plays/:id/tokens/purge