UNPKG

@holochain/client

Version:

A JavaScript client for the Holochain Conductor API

52 lines (51 loc) 1.27 kB
import { CapClaim, ZomeCallCapGrant } from "./capabilities.js"; import { AgentPubKey } from "../types.js"; import { CounterSigningSessionData } from "./countersigning.js"; import { SignedActionHashed } from "./action.js"; /** * @public */ export type EntryVisibility = "Public" | "Private"; /** * @public */ export type AppEntryDef = { entry_index: number; zome_index: number; visibility: EntryVisibility; }; /** * @public */ export type EntryType = "Agent" | { App: AppEntryDef; } | "CapClaim" | "CapGrant"; /** * @public */ export interface EntryContent<E extends string, C> { entry_type: E; entry: C; } /** * @public */ export type Entry = EntryContent<"Agent", AgentPubKey> | EntryContent<"App", Uint8Array> | EntryContent<"CounterSign", [CounterSigningSessionData, Uint8Array]> | EntryContent<"CapGrant", ZomeCallCapGrant> | EntryContent<"CapClaim", CapClaim>; /** * @public */ export declare enum EntryDhtStatus { Live = "live", Dead = "dead" } /** * @public */ export interface EntryDetails { entry: Entry; actions: Array<SignedActionHashed>; rejected_actions: Array<SignedActionHashed>; deletes: Array<SignedActionHashed>; updates: Array<SignedActionHashed>; entry_dht_status: EntryDhtStatus; }