@holochain/client
Advanced tools
Comparing version 0.12.5 to 0.12.6
@@ -9,3 +9,3 @@ /// <reference types="node" /> | ||
*/ | ||
export declare type AttachAppInterfaceRequest = { | ||
export type AttachAppInterfaceRequest = { | ||
port: number; | ||
@@ -16,3 +16,3 @@ }; | ||
*/ | ||
export declare type AttachAppInterfaceResponse = { | ||
export type AttachAppInterfaceResponse = { | ||
port: number; | ||
@@ -23,3 +23,3 @@ }; | ||
*/ | ||
export declare type EnableAppRequest = { | ||
export type EnableAppRequest = { | ||
installed_app_id: InstalledAppId; | ||
@@ -30,3 +30,3 @@ }; | ||
*/ | ||
export declare type EnableAppResponse = { | ||
export type EnableAppResponse = { | ||
app: AppInfo; | ||
@@ -38,3 +38,3 @@ errors: Array<[CellId, string]>; | ||
*/ | ||
export declare type DeactivationReason = { | ||
export type DeactivationReason = { | ||
never_activated: null; | ||
@@ -51,3 +51,3 @@ } | { | ||
*/ | ||
export declare type PausedAppReason = { | ||
export type PausedAppReason = { | ||
error: string; | ||
@@ -58,3 +58,3 @@ }; | ||
*/ | ||
export declare type DisabledAppReason = { | ||
export type DisabledAppReason = { | ||
never_started: null; | ||
@@ -69,3 +69,3 @@ } | { | ||
*/ | ||
export declare type InstalledAppInfoStatus = { | ||
export type InstalledAppInfoStatus = { | ||
paused: { | ||
@@ -119,3 +119,3 @@ reason: PausedAppReason; | ||
*/ | ||
export declare type CellInfo = { | ||
export type CellInfo = { | ||
[CellType.Provisioned]: ProvisionedCell; | ||
@@ -130,3 +130,3 @@ } | { | ||
*/ | ||
export declare type AppInfo = { | ||
export type AppInfo = { | ||
agent_pub_key: AgentPubKey; | ||
@@ -140,7 +140,7 @@ installed_app_id: InstalledAppId; | ||
*/ | ||
export declare type MembraneProof = Buffer; | ||
export type MembraneProof = Buffer; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DisableAppRequest = { | ||
export type DisableAppRequest = { | ||
installed_app_id: InstalledAppId; | ||
@@ -151,7 +151,7 @@ }; | ||
*/ | ||
export declare type DisableAppResponse = null; | ||
export type DisableAppResponse = null; | ||
/** | ||
* @public | ||
*/ | ||
export declare type StartAppRequest = { | ||
export type StartAppRequest = { | ||
installed_app_id: InstalledAppId; | ||
@@ -162,7 +162,7 @@ }; | ||
*/ | ||
export declare type StartAppResponse = boolean; | ||
export type StartAppResponse = boolean; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DumpStateRequest = { | ||
export type DumpStateRequest = { | ||
cell_id: CellId; | ||
@@ -173,7 +173,7 @@ }; | ||
*/ | ||
export declare type DumpStateResponse = any; | ||
export type DumpStateResponse = any; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DumpFullStateRequest = { | ||
export type DumpFullStateRequest = { | ||
cell_id: CellId; | ||
@@ -185,15 +185,15 @@ dht_ops_cursor: number | undefined; | ||
*/ | ||
export declare type DumpFullStateResponse = FullStateDump; | ||
export type DumpFullStateResponse = FullStateDump; | ||
/** | ||
* @public | ||
*/ | ||
export declare type GenerateAgentPubKeyRequest = void; | ||
export type GenerateAgentPubKeyRequest = void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type GenerateAgentPubKeyResponse = AgentPubKey; | ||
export type GenerateAgentPubKeyResponse = AgentPubKey; | ||
/** | ||
* @public | ||
*/ | ||
export declare type RegisterDnaRequest = { | ||
export type RegisterDnaRequest = { | ||
modifiers?: { | ||
@@ -207,7 +207,7 @@ network_seed?: string; | ||
*/ | ||
export declare type RegisterDnaResponse = HoloHash; | ||
export type RegisterDnaResponse = HoloHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DnaModifiers = { | ||
export type DnaModifiers = { | ||
network_seed: NetworkSeed; | ||
@@ -221,11 +221,11 @@ properties: DnaProperties; | ||
*/ | ||
export declare type FunctionName = string; | ||
export type FunctionName = string; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ZomeName = string; | ||
export type ZomeName = string; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ZomeDefinition = [ | ||
export type ZomeDefinition = [ | ||
ZomeName, | ||
@@ -240,11 +240,11 @@ { | ||
*/ | ||
export declare type IntegrityZome = ZomeDefinition; | ||
export type IntegrityZome = ZomeDefinition; | ||
/** | ||
* @public | ||
*/ | ||
export declare type CoordinatorZome = ZomeDefinition; | ||
export type CoordinatorZome = ZomeDefinition; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DnaDefinition = { | ||
export type DnaDefinition = { | ||
name: string; | ||
@@ -258,11 +258,11 @@ modifiers: DnaModifiers; | ||
*/ | ||
export declare type GetDnaDefinitionRequest = DnaHash; | ||
export type GetDnaDefinitionRequest = DnaHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type GetDnaDefinitionResponse = DnaDefinition; | ||
export type GetDnaDefinitionResponse = DnaDefinition; | ||
/** | ||
* @public | ||
*/ | ||
export declare type UninstallAppRequest = { | ||
export type UninstallAppRequest = { | ||
installed_app_id: InstalledAppId; | ||
@@ -273,11 +273,11 @@ }; | ||
*/ | ||
export declare type UninstallAppResponse = null; | ||
export type UninstallAppResponse = null; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ResourceBytes = Uint8Array; | ||
export type ResourceBytes = Uint8Array; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ResourceMap = { | ||
export type ResourceMap = { | ||
[key: string]: ResourceBytes; | ||
@@ -320,3 +320,3 @@ }; | ||
*/ | ||
export declare type Location = { | ||
export type Location = { | ||
/** | ||
@@ -340,7 +340,7 @@ * Expect file to be part of this bundle | ||
*/ | ||
export declare type DnaVersionSpec = Array<HoloHashB64>; | ||
export type DnaVersionSpec = Array<HoloHashB64>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DnaVersionFlexible = { | ||
export type DnaVersionFlexible = { | ||
singleton: HoloHashB64; | ||
@@ -353,3 +353,3 @@ } | { | ||
*/ | ||
export declare type AppRoleDnaManifest = { | ||
export type AppRoleDnaManifest = { | ||
clone_limit?: number; | ||
@@ -362,3 +362,3 @@ modifiers?: Partial<DnaModifiers>; | ||
*/ | ||
export declare type AppRoleManifest = { | ||
export type AppRoleManifest = { | ||
name: RoleName; | ||
@@ -371,3 +371,3 @@ provisioning?: CellProvisioning; | ||
*/ | ||
export declare type AppManifest = { | ||
export type AppManifest = { | ||
manifest_version: string; | ||
@@ -381,3 +381,3 @@ name: string; | ||
*/ | ||
export declare type AppBundle = { | ||
export type AppBundle = { | ||
manifest: AppManifest; | ||
@@ -389,3 +389,3 @@ resources: ResourceMap; | ||
*/ | ||
export declare type AppBundleSource = { | ||
export type AppBundleSource = { | ||
bundle: AppBundle; | ||
@@ -398,7 +398,7 @@ } | { | ||
*/ | ||
export declare type NetworkSeed = string; | ||
export type NetworkSeed = string; | ||
/** | ||
* @public | ||
*/ | ||
export declare type InstallAppRequest = { | ||
export type InstallAppRequest = { | ||
agent_key: AgentPubKey; | ||
@@ -414,27 +414,27 @@ installed_app_id?: InstalledAppId; | ||
*/ | ||
export declare type InstallAppResponse = AppInfo; | ||
export type InstallAppResponse = AppInfo; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListDnasRequest = void; | ||
export type ListDnasRequest = void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListDnasResponse = Array<string>; | ||
export type ListDnasResponse = Array<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListCellIdsRequest = void; | ||
export type ListCellIdsRequest = void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListCellIdsResponse = Array<CellId>; | ||
export type ListCellIdsResponse = Array<CellId>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListActiveAppsRequest = void; | ||
export type ListActiveAppsRequest = void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListActiveAppsResponse = Array<InstalledAppId>; | ||
export type ListActiveAppsResponse = Array<InstalledAppId>; | ||
/** | ||
@@ -453,3 +453,3 @@ * @public | ||
*/ | ||
export declare type ListAppsRequest = { | ||
export type ListAppsRequest = { | ||
status_filter?: AppStatusFilter; | ||
@@ -460,11 +460,11 @@ }; | ||
*/ | ||
export declare type ListAppsResponse = Array<AppInfo>; | ||
export type ListAppsResponse = Array<AppInfo>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListAppInterfacesRequest = void; | ||
export type ListAppInterfacesRequest = void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ListAppInterfacesResponse = Array<number>; | ||
export type ListAppInterfacesResponse = Array<number>; | ||
/** | ||
@@ -475,7 +475,7 @@ * This type is meant to be opaque | ||
*/ | ||
export declare type AgentInfoSigned = unknown; | ||
export type AgentInfoSigned = unknown; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AgentInfoRequest = { | ||
export type AgentInfoRequest = { | ||
cell_id: CellId | null; | ||
@@ -486,7 +486,7 @@ }; | ||
*/ | ||
export declare type AgentInfoResponse = Array<AgentInfoSigned>; | ||
export type AgentInfoResponse = Array<AgentInfoSigned>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AddAgentInfoRequest = { | ||
export type AddAgentInfoRequest = { | ||
agent_infos: Array<AgentInfoSigned>; | ||
@@ -497,11 +497,11 @@ }; | ||
*/ | ||
export declare type AddAgentInfoResponse = any; | ||
export type AddAgentInfoResponse = any; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DeleteCloneCellRequest = DisableCloneCellRequest; | ||
export type DeleteCloneCellRequest = DisableCloneCellRequest; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DeleteCloneCellResponse = void; | ||
export type DeleteCloneCellResponse = void; | ||
/** | ||
@@ -524,7 +524,7 @@ * @public | ||
*/ | ||
export declare type GrantZomeCallCapabilityResponse = void; | ||
export type GrantZomeCallCapabilityResponse = void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type InstallAppDnaPayload = { | ||
export type InstallAppDnaPayload = { | ||
hash: HoloHash; | ||
@@ -537,7 +537,7 @@ role_name: RoleName; | ||
*/ | ||
export declare type ZomeLocation = Location; | ||
export type ZomeLocation = Location; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ZomeManifest = { | ||
export type ZomeManifest = { | ||
name: string; | ||
@@ -549,3 +549,3 @@ hash?: string; | ||
*/ | ||
export declare type DnaManifest = { | ||
export type DnaManifest = { | ||
/** | ||
@@ -576,3 +576,3 @@ * Currently one "1" is supported | ||
*/ | ||
export declare type DnaBundle = { | ||
export type DnaBundle = { | ||
manifest: DnaManifest; | ||
@@ -584,3 +584,3 @@ resources: ResourceMap; | ||
*/ | ||
export declare type DnaSource = { | ||
export type DnaSource = { | ||
hash: HoloHash; | ||
@@ -595,3 +595,3 @@ } | { | ||
*/ | ||
export declare type Zomes = Array<[string, { | ||
export type Zomes = Array<[string, { | ||
wasm_hash: Array<HoloHash>; | ||
@@ -602,3 +602,3 @@ }]>; | ||
*/ | ||
export declare type WasmCode = [HoloHash, { | ||
export type WasmCode = [HoloHash, { | ||
code: Array<number>; | ||
@@ -605,0 +605,0 @@ }]; |
@@ -8,7 +8,7 @@ import { UnsubscribeFunction } from "emittery"; | ||
*/ | ||
export declare type NonProvenanceCallZomeRequest = Omit<CallZomeRequest, "provenance">; | ||
export type NonProvenanceCallZomeRequest = Omit<CallZomeRequest, "provenance">; | ||
/** | ||
* @public | ||
*/ | ||
export declare type RoleNameCallZomeRequest = Omit<NonProvenanceCallZomeRequest, "cell_id"> & { | ||
export type RoleNameCallZomeRequest = Omit<NonProvenanceCallZomeRequest, "cell_id"> & { | ||
role_name: RoleName; | ||
@@ -19,3 +19,3 @@ }; | ||
*/ | ||
export declare type RoleNameCallZomeRequestSigned = Omit<CallZomeRequestSigned, "cell_id"> & { | ||
export type RoleNameCallZomeRequestSigned = Omit<CallZomeRequestSigned, "cell_id"> & { | ||
role_name: RoleName; | ||
@@ -26,15 +26,15 @@ }; | ||
*/ | ||
export declare type AppAgentCallZomeRequest = NonProvenanceCallZomeRequest | RoleNameCallZomeRequest | CallZomeRequestSigned | RoleNameCallZomeRequestSigned; | ||
export type AppAgentCallZomeRequest = NonProvenanceCallZomeRequest | RoleNameCallZomeRequest | CallZomeRequestSigned | RoleNameCallZomeRequestSigned; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AppCreateCloneCellRequest = Omit<CreateCloneCellRequest, "app_id">; | ||
export type AppCreateCloneCellRequest = Omit<CreateCloneCellRequest, "app_id">; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AppEnableCloneCellRequest = Omit<EnableCloneCellRequest, "app_id">; | ||
export type AppEnableCloneCellRequest = Omit<EnableCloneCellRequest, "app_id">; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AppDisableCloneCellRequest = Omit<DisableCloneCellRequest, "app_id">; | ||
export type AppDisableCloneCellRequest = Omit<DisableCloneCellRequest, "app_id">; | ||
/** | ||
@@ -41,0 +41,0 @@ * @public |
@@ -7,3 +7,3 @@ import { AgentPubKey, CellId, DnaHash, DnaProperties, InstalledAppId, NetworkInfo, RoleName, Timestamp } from "../../types.js"; | ||
*/ | ||
export declare type CallZomeRequestGeneric<Payload> = { | ||
export type CallZomeRequestGeneric<Payload> = { | ||
cell_id: CellId; | ||
@@ -18,15 +18,15 @@ zome_name: ZomeName; | ||
*/ | ||
export declare type CallZomeRequest = CallZomeRequestGeneric<any>; | ||
export type CallZomeRequest = CallZomeRequestGeneric<any>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type CallZomeResponseGeneric<Payload> = Payload; | ||
export type CallZomeResponseGeneric<Payload> = Payload; | ||
/** | ||
* @public | ||
*/ | ||
export declare type CallZomeResponse = CallZomeResponseGeneric<any>; | ||
export type CallZomeResponse = CallZomeResponseGeneric<any>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AppInfoRequest = { | ||
export type AppInfoRequest = { | ||
installed_app_id: InstalledAppId; | ||
@@ -37,3 +37,3 @@ }; | ||
*/ | ||
export declare type AppInfoResponse = AppInfo; | ||
export type AppInfoResponse = AppInfo; | ||
/** | ||
@@ -89,3 +89,3 @@ * @public | ||
*/ | ||
export declare type CreateCloneCellResponse = ClonedCell; | ||
export type CreateCloneCellResponse = ClonedCell; | ||
/** | ||
@@ -107,11 +107,11 @@ * @public | ||
*/ | ||
export declare type DisableCloneCellResponse = void; | ||
export type DisableCloneCellResponse = void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type EnableCloneCellRequest = DisableCloneCellRequest; | ||
export type EnableCloneCellRequest = DisableCloneCellRequest; | ||
/** | ||
* @public | ||
*/ | ||
export declare type EnableCloneCellResponse = CreateCloneCellResponse; | ||
export type EnableCloneCellResponse = CreateCloneCellResponse; | ||
/** | ||
@@ -136,3 +136,3 @@ * @public | ||
*/ | ||
export declare type Signal = { | ||
export type Signal = { | ||
[SignalType.App]: EncodedAppSignal; | ||
@@ -145,3 +145,3 @@ } | { | ||
*/ | ||
export declare type EncodedAppSignal = { | ||
export type EncodedAppSignal = { | ||
cell_id: CellId; | ||
@@ -154,3 +154,3 @@ zome_name: string; | ||
*/ | ||
export declare type AppSignal = { | ||
export type AppSignal = { | ||
cell_id: CellId; | ||
@@ -163,7 +163,7 @@ zome_name: string; | ||
*/ | ||
export declare type AppSignalCb = (signal: AppSignal) => void; | ||
export type AppSignalCb = (signal: AppSignal) => void; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NetworkInfoResponse = NetworkInfo[]; | ||
export type NetworkInfoResponse = NetworkInfo[]; | ||
/** | ||
@@ -170,0 +170,0 @@ * @public |
@@ -5,3 +5,3 @@ import { hashZomeCall } from "@holochain/serialization"; | ||
import nacl from "tweetnacl"; | ||
import { getLauncherEnvironment, isLauncher, signZomeCallTauri, } from "../../environments/launcher.js"; | ||
import { getHostZomeCallSigner, getLauncherEnvironment, isLauncher, signZomeCallTauri, } from "../../environments/launcher.js"; | ||
import { encodeHashToBase64 } from "../../utils/base64.js"; | ||
@@ -91,6 +91,10 @@ import { WsClient } from "../client.js"; | ||
} | ||
const signedZomeCall = isLauncher | ||
? await signZomeCallTauri(request) | ||
: await signZomeCall(request); | ||
return signedZomeCall; | ||
const hostSigner = getHostZomeCallSigner(); | ||
if (hostSigner) { | ||
return hostSigner.signZomeCall(request); | ||
} | ||
else if (isLauncher) { | ||
return signZomeCallTauri(request); | ||
} | ||
return signZomeCall(request); | ||
}, | ||
@@ -97,0 +101,0 @@ output: (response) => decode(response), |
@@ -6,3 +6,3 @@ import { RoleName } from "../types.js"; | ||
*/ | ||
export declare type Transformer<ReqI, ReqO, ResI, ResO> = { | ||
export type Transformer<ReqI, ReqO, ResI, ResO> = { | ||
input: (req: ReqI) => ReqO; | ||
@@ -14,11 +14,11 @@ output: (res: ResI) => ResO; | ||
*/ | ||
export declare type Requester<Req, Res> = (req: Req, timeout?: number) => Promise<Res>; | ||
export type Requester<Req, Res> = (req: Req, timeout?: number) => Promise<Res>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type RequesterUnit<Res> = () => Promise<Res>; | ||
export type RequesterUnit<Res> = () => Promise<Res>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type Tagged<T> = { | ||
export type Tagged<T> = { | ||
type: string; | ||
@@ -25,0 +25,0 @@ data: T; |
@@ -7,3 +7,3 @@ import nacl from "tweetnacl"; | ||
*/ | ||
export declare type Nonce256Bit = Uint8Array; | ||
export type Nonce256Bit = Uint8Array; | ||
/** | ||
@@ -10,0 +10,0 @@ * @public |
@@ -8,8 +8,14 @@ import { InstalledAppId } from "../types.js"; | ||
} | ||
export interface HostZomeCallSigner { | ||
signZomeCall: (request: CallZomeRequest) => Promise<CallZomeRequestSigned>; | ||
} | ||
declare const __HC_LAUNCHER_ENV__ = "__HC_LAUNCHER_ENV__"; | ||
declare const __HC_ZOME_CALL_SIGNER__ = "__HC_ZOME_CALL_SIGNER__"; | ||
export declare const isLauncher: boolean; | ||
export declare const getLauncherEnvironment: () => LauncherEnvironment | undefined; | ||
export declare const getHostZomeCallSigner: () => HostZomeCallSigner | undefined; | ||
declare global { | ||
interface Window { | ||
[__HC_LAUNCHER_ENV__]: LauncherEnvironment | undefined; | ||
[__HC_ZOME_CALL_SIGNER__]?: HostZomeCallSigner; | ||
} | ||
@@ -16,0 +22,0 @@ } |
@@ -5,4 +5,6 @@ import { invoke } from "@tauri-apps/api/tauri"; | ||
const __HC_LAUNCHER_ENV__ = "__HC_LAUNCHER_ENV__"; | ||
const __HC_ZOME_CALL_SIGNER__ = "__HC_ZOME_CALL_SIGNER__"; | ||
export const isLauncher = typeof window === "object" && __HC_LAUNCHER_ENV__ in window; | ||
export const getLauncherEnvironment = () => isLauncher ? window[__HC_LAUNCHER_ENV__] : undefined; | ||
export const getHostZomeCallSigner = () => globalThis.window && globalThis.window[__HC_ZOME_CALL_SIGNER__]; | ||
export const signZomeCallTauri = async (request) => { | ||
@@ -9,0 +11,0 @@ const zomeCallUnsigned = { |
@@ -13,3 +13,3 @@ import { AgentPubKey, DnaHash, EntryHash, ActionHash, HoloHashed, Signature, Timestamp } from "../types.js"; | ||
*/ | ||
export declare type ActionHashed = HoloHashed<Action>; | ||
export type ActionHashed = HoloHashed<Action>; | ||
/** | ||
@@ -33,7 +33,7 @@ * @public | ||
*/ | ||
export declare type Action = Dna | AgentValidationPkg | InitZomesComplete | CreateLink | DeleteLink | OpenChain | CloseChain | Delete | NewEntryAction; | ||
export type Action = Dna | AgentValidationPkg | InitZomesComplete | CreateLink | DeleteLink | OpenChain | CloseChain | Delete | NewEntryAction; | ||
/** | ||
* @public | ||
*/ | ||
export declare type NewEntryAction = Create | Update; | ||
export type NewEntryAction = Create | Update; | ||
/** | ||
@@ -40,0 +40,0 @@ * @public |
@@ -6,3 +6,3 @@ import { FunctionName, ZomeName } from "../api/index.js"; | ||
*/ | ||
export declare type CapSecret = Uint8Array; | ||
export type CapSecret = Uint8Array; | ||
/** | ||
@@ -26,3 +26,3 @@ * @public | ||
*/ | ||
export declare type GrantedFunctions = { | ||
export type GrantedFunctions = { | ||
[GrantedFunctionsType.All]: null; | ||
@@ -43,3 +43,3 @@ } | { | ||
*/ | ||
export declare type CapAccess = "Unrestricted" | { | ||
export type CapAccess = "Unrestricted" | { | ||
Transferable: { | ||
@@ -57,3 +57,3 @@ secret: CapSecret; | ||
*/ | ||
export declare type CapGrant = { | ||
export type CapGrant = { | ||
ChainAuthor: AgentPubKey; | ||
@@ -60,0 +60,0 @@ } | { |
@@ -31,3 +31,3 @@ import { ActionHash, AgentPubKey, EntryHash, Signature, Timestamp } from "../types.js"; | ||
*/ | ||
export declare type ActionBase = { | ||
export type ActionBase = { | ||
Create: CreateBase; | ||
@@ -54,11 +54,11 @@ } | { | ||
*/ | ||
export declare type CounterSigningAgents = Array<[AgentPubKey, Array<Role>]>; | ||
export type CounterSigningAgents = Array<[AgentPubKey, Array<Role>]>; | ||
/** | ||
* @public | ||
*/ | ||
export declare type PreflightBytes = Uint8Array; | ||
export type PreflightBytes = Uint8Array; | ||
/** | ||
* @public | ||
*/ | ||
export declare type Role = number; | ||
export type Role = number; | ||
/** | ||
@@ -65,0 +65,0 @@ * @public |
@@ -21,3 +21,3 @@ import { Signature } from "../types.js"; | ||
*/ | ||
export declare type DhtOp = { | ||
export type DhtOp = { | ||
[DhtOpType.StoreRecord]: [Signature, Action, Entry | undefined]; | ||
@@ -24,0 +24,0 @@ } | { |
@@ -7,3 +7,3 @@ import { CapClaim, ZomeCallCapGrant } from "./capabilities.js"; | ||
*/ | ||
export declare type EntryVisibility = { | ||
export type EntryVisibility = { | ||
Public: null; | ||
@@ -16,3 +16,3 @@ } | { | ||
*/ | ||
export declare type AppEntryDef = { | ||
export type AppEntryDef = { | ||
entry_index: number; | ||
@@ -25,3 +25,3 @@ zome_index: number; | ||
*/ | ||
export declare type EntryType = "Agent" | { | ||
export type EntryType = "Agent" | { | ||
App: AppEntryDef; | ||
@@ -39,2 +39,2 @@ } | "CapClaim" | "CapGrant"; | ||
*/ | ||
export declare type Entry = EntryContent<"Agent", AgentPubKey> | EntryContent<"App", Uint8Array> | EntryContent<"CounterSign", [CounterSigningSessionData, Uint8Array]> | EntryContent<"CapGrant", ZomeCallCapGrant> | EntryContent<"CapClaim", CapClaim>; | ||
export type Entry = EntryContent<"Agent", AgentPubKey> | EntryContent<"App", Uint8Array> | EntryContent<"CounterSign", [CounterSigningSessionData, Uint8Array]> | EntryContent<"CapGrant", ZomeCallCapGrant> | EntryContent<"CapClaim", CapClaim>; |
@@ -6,3 +6,3 @@ import { SignedActionHashed } from "./action.js"; | ||
*/ | ||
export declare type Record = { | ||
export type Record = { | ||
signed_action: SignedActionHashed; | ||
@@ -14,3 +14,3 @@ entry: RecordEntry; | ||
*/ | ||
export declare type RecordEntry = { | ||
export type RecordEntry = { | ||
Present: Entry; | ||
@@ -17,0 +17,0 @@ } | { |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.33.7" | ||
"packageVersion": "7.39.4" | ||
} | ||
] | ||
} |
/** | ||
* @public | ||
*/ | ||
export declare type HoloHash = Uint8Array; | ||
export type HoloHash = Uint8Array; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AgentPubKey = HoloHash; | ||
export type AgentPubKey = HoloHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DnaHash = HoloHash; | ||
export type DnaHash = HoloHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type WasmHash = HoloHash; | ||
export type WasmHash = HoloHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type EntryHash = HoloHash; | ||
export type EntryHash = HoloHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ActionHash = HoloHash; | ||
export type ActionHash = HoloHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AnyDhtHash = HoloHash; | ||
export type AnyDhtHash = HoloHash; | ||
/** | ||
* @public | ||
*/ | ||
export declare type KitsuneAgent = Uint8Array; | ||
export type KitsuneAgent = Uint8Array; | ||
/** | ||
* @public | ||
*/ | ||
export declare type KitsuneSpace = Uint8Array; | ||
export type KitsuneSpace = Uint8Array; | ||
/** Base64 hash types */ | ||
@@ -41,51 +41,51 @@ /** | ||
*/ | ||
export declare type HoloHashB64 = string; | ||
export type HoloHashB64 = string; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AgentPubKeyB64 = HoloHashB64; | ||
export type AgentPubKeyB64 = HoloHashB64; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DnaHashB64 = HoloHashB64; | ||
export type DnaHashB64 = HoloHashB64; | ||
/** | ||
* @public | ||
*/ | ||
export declare type WasmHashB64 = HoloHashB64; | ||
export type WasmHashB64 = HoloHashB64; | ||
/** | ||
* @public | ||
*/ | ||
export declare type EntryHashB64 = HoloHashB64; | ||
export type EntryHashB64 = HoloHashB64; | ||
/** | ||
* @public | ||
*/ | ||
export declare type ActionHashB64 = HoloHashB64; | ||
export type ActionHashB64 = HoloHashB64; | ||
/** | ||
* @public | ||
*/ | ||
export declare type AnyDhtHashB64 = HoloHashB64; | ||
export type AnyDhtHashB64 = HoloHashB64; | ||
/** | ||
* @public | ||
*/ | ||
export declare type InstalledAppId = string; | ||
export type InstalledAppId = string; | ||
/** | ||
* @public | ||
*/ | ||
export declare type Signature = Uint8Array; | ||
export type Signature = Uint8Array; | ||
/** | ||
* @public | ||
*/ | ||
export declare type CellId = [DnaHash, AgentPubKey]; | ||
export type CellId = [DnaHash, AgentPubKey]; | ||
/** | ||
* @public | ||
*/ | ||
export declare type DnaProperties = any; | ||
export type DnaProperties = any; | ||
/** | ||
* @public | ||
*/ | ||
export declare type RoleName = string; | ||
export type RoleName = string; | ||
/** | ||
* @public | ||
*/ | ||
export declare type InstalledCell = { | ||
export type InstalledCell = { | ||
cell_id: CellId; | ||
@@ -97,3 +97,3 @@ role_name: RoleName; | ||
*/ | ||
export declare type Timestamp = number; | ||
export type Timestamp = number; | ||
/** | ||
@@ -100,0 +100,0 @@ * @public |
{ | ||
"name": "@holochain/client", | ||
"version": "0.12.5", | ||
"version": "0.12.6", | ||
"description": "A JavaScript client for the Holochain Conductor API", | ||
@@ -5,0 +5,0 @@ "author": "Holochain Foundation <info@holochain.org> (http://holochain.org)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3116
96544