import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { IdentityMetrics } from "./identitymetrics.js";
/**
 * Custom JSON metadata stored with the identity.
 */
export type Metadata = {};
export type Identity = {
    /**
     * Unique identity identifier assigned by ORQ. Returned as `_id` for
     *
     * @remarks
     *  compatibility with the v1 identity API.
     */
    id: string;
    /**
     * Customer-provided stable identifier for this identity. This value is
     *
     * @remarks
     *  required on create and is unique within the workspace.
     */
    externalId: string;
    /**
     * Workspace that owns the identity.
     */
    workspaceId: string;
    /**
     * Human-readable display name for the identity.
     */
    displayName?: string | undefined;
    /**
     * Email address associated with the identity.
     */
    email?: string | undefined;
    /**
     * URL of the identity avatar image.
     */
    avatarUrl?: string | undefined;
    /**
     * Free-form labels used to organize and filter identities.
     */
    tags?: Array<string> | undefined;
    /**
     * Custom JSON metadata stored with the identity.
     */
    metadata?: Metadata | undefined;
    /**
     * ISO timestamp for when the identity was created.
     */
    created: string;
    /**
     * ISO timestamp for when the identity was last updated.
     */
    updated: string;
    /**
     * Optional usage and cost metrics. Present only when requested with
     *
     * @remarks
     *  `include_metrics`.
     */
    metrics?: IdentityMetrics | undefined;
};
/** @internal */
export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
/** @internal */
export declare const Identity$inboundSchema: z.ZodType<Identity, z.ZodTypeDef, unknown>;
export declare function identityFromJSON(jsonString: string): SafeParseResult<Identity, SDKValidationError>;
//# sourceMappingURL=identity.d.ts.map