import { ClaimVisibility } from './sudo-profiles-client'; export declare enum FetchOption { /** * Returns Sudos from the local cache only. */ CacheOnly = "cache-only", /** * Fetches Sudos from the backend and ignores any cached entries. */ RemoteOnly = "network-only", /** * Executes the full query against both the cache and your GraphQL server. The *query automatically updates if the result of the server-side * query modifies cached fields. * Provides a fast response while also helping to keep cached data consistent with server data. */ CacheAndRemote = "cache-and-network", /** * Similar to RemoteOnly except the query's result is not stored in the cache */ NoCache = "no-cache", /** * Executes the query against the cache. If all requested data is present in the cache, that data is returned. Otherwise, Apollo Client executes the query against your GraphQL server and returns that data after caching it. * Prioritizes minimizing the number of network requests sent by your application. * This is the default policy */ CacheFirst = "cache-first" } export declare enum ErrorOption { All = "all" } /** * String value. */ export declare class StringClaimValue { value: string | undefined; constructor(val: string); } /** * Blob value represented as a URI. * Typically a file location of the blob * or a file to upload. */ export declare class BlobClaimValue { value: string | undefined; file: ArrayBuffer | undefined; constructor(val?: string, file?: ArrayBuffer); } /** * Represents a claim or identity attribute associated with a Sudo. * @param name Claim name. * @param visibility Claim visibility. * @param value Claim value. */ export declare class Claim { name: string; visibility: ClaimVisibility; value: BlobClaimValue | StringClaimValue; constructor(name: string, visibility: ClaimVisibility, value: BlobClaimValue | StringClaimValue); } /** * Base class for a Sudo */ export declare abstract class Base { id?: string; version: number; createdAt: Date; updatedAt: Date; constructor(id?: string, version?: number, createdAt?: Date, updatedAt?: Date); } /** * Represents a Sudo. * * @param id globally unique identifier of this Sudo. This is generated and set by Sudo service. * @param version current version of this Sudo. * @param createdAt date and time at which this Sudo was created. * @param updatedAt date and time at which this Sudo was last updated. * @param claims claims. * @param metadata arbitrary metadata set by the backend.. */ export declare class Sudo extends Base { private static TITLE; private static FIRST_NAME; private static LAST_NAME; private static LABEL; private static NOTES; private static AVATAR; private static EXTERNAL_ID; private _metadata; private _claims; constructor(id?: string, version?: number, createdAt?: Date, updatedAt?: Date, metadata?: Map, claims?: Map); /** * Title */ get title(): string | undefined; set title(value: string | undefined); /** * First name */ get firstName(): string | undefined; set firstName(value: string | undefined); /** * Last name */ get lastName(): string | undefined; set lastName(value: string | undefined); /** * Label */ get label(): string | undefined; set label(value: string | undefined); /** * Notes. */ get notes(): string | undefined; set notes(value: string | undefined); /** * Avatar image URI. */ get avatar(): URL | undefined; getAvatarFile(): ArrayBuffer | undefined; setAvatar(value: ArrayBuffer): void; /** * External ID associated with this Sudo. */ get externalId(): string | undefined; /** * Claims */ get claims(): Map; set claims(value: Map); }