@ddd-qc/cell-proxy 0.32.6 → 0.32.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,15 +2,6 @@ import { Timestamp, AppEntryDef, Link } from '@holochain/client';
|
|
|
2
2
|
type AgentArray = Uint8Array;
|
|
3
3
|
type EntryArray = Uint8Array;
|
|
4
4
|
type ActionArray = Uint8Array;
|
|
5
|
-
export interface CallAppTipInput {
|
|
6
|
-
appTip: Uint8Array;
|
|
7
|
-
recipient: AgentArray;
|
|
8
|
-
zomeName: string;
|
|
9
|
-
}
|
|
10
|
-
export interface CastTipInput {
|
|
11
|
-
tip: TipProtocol;
|
|
12
|
-
peers: AgentArray[];
|
|
13
|
-
}
|
|
14
5
|
export declare enum ValidatedBy {
|
|
15
6
|
None = "None",
|
|
16
7
|
Me = "Me",
|
|
@@ -99,7 +90,8 @@ export declare enum TipProtocolType {
|
|
|
99
90
|
Pong = "Pong",
|
|
100
91
|
Entry = "Entry",
|
|
101
92
|
Link = "Link",
|
|
102
|
-
|
|
93
|
+
AppCustom = "AppCustom",
|
|
94
|
+
AppValue = "AppValue"
|
|
103
95
|
}
|
|
104
96
|
export type TipProtocolVariantPing = {
|
|
105
97
|
Ping: AgentArray;
|
|
@@ -113,9 +105,21 @@ export type TipProtocolVariantEntry = {
|
|
|
113
105
|
export type TipProtocolVariantLink = {
|
|
114
106
|
Link: LinkPulse;
|
|
115
107
|
};
|
|
116
|
-
export type
|
|
117
|
-
|
|
108
|
+
export type TipProtocolVariantAppCustom = {
|
|
109
|
+
AppCustom: Uint8Array;
|
|
110
|
+
};
|
|
111
|
+
export type TipProtocolVariantAppValue = {
|
|
112
|
+
AppValue: [string, string];
|
|
118
113
|
};
|
|
119
|
-
export type TipProtocol = TipProtocolVariantPing | TipProtocolVariantPong | TipProtocolVariantEntry | TipProtocolVariantLink |
|
|
114
|
+
export type TipProtocol = TipProtocolVariantPing | TipProtocolVariantPong | TipProtocolVariantEntry | TipProtocolVariantLink | TipProtocolVariantAppCustom | TipProtocolVariantAppValue;
|
|
115
|
+
export interface CastTipInput {
|
|
116
|
+
tip: TipProtocol;
|
|
117
|
+
peers: AgentArray[];
|
|
118
|
+
}
|
|
119
|
+
export interface SynchronizeTipInput {
|
|
120
|
+
tip: TipProtocol;
|
|
121
|
+
recipient: AgentArray;
|
|
122
|
+
zomeName: string;
|
|
123
|
+
}
|
|
120
124
|
export {};
|
|
121
125
|
//# sourceMappingURL=zomeSignals.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zomeSignals.types.d.ts","sourceRoot":"","sources":["../src/zomeSignals.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAMkM,SAAS,EAqBjM,WAAW,EAOuC,IAAI,EAKtE,MAAM,mBAAmB,CAAC;AAK3B,KAAK,UAAU,GAAG,UAAU,CAAC;AAM7B,KAAK,UAAU,GAAG,UAAU,CAAC;AAE7B,KAAK,WAAW,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"zomeSignals.types.d.ts","sourceRoot":"","sources":["../src/zomeSignals.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAMkM,SAAS,EAqBjM,WAAW,EAOuC,IAAI,EAKtE,MAAM,mBAAmB,CAAC;AAK3B,KAAK,UAAU,GAAG,UAAU,CAAC;AAM7B,KAAK,UAAU,GAAG,UAAU,CAAC;AAE7B,KAAK,WAAW,GAAG,UAAU,CAAC;AAyB9B,oBAAY,WAAW;IACtB,IAAI,SAAS;IACb,EAAE,OAAO;IACT,OAAO,YAAY;CACnB;AAGD,oBAAY,eAAe;IAC1B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CACjB;AACD,MAAM,MAAM,wBAAwB,GAAG;IAAC,MAAM,EAAE,OAAO,CAAA;CAAC,CAAA;AACxD,MAAM,MAAM,wBAAwB,GAAG;IAAC,MAAM,EAAE,OAAO,CAAA;CAAC,CAAA;AACxD,MAA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AAC,CAAA;AACrE,MAAM,MAAM,WAAW,GACpB,sBAAsB,GAAG,sBAAsB,GAAG,uBAAuB,GAAG,sBAAsB,GAAG,2BAA2B,GAAG,0BAA0B,CAAC;AAEjK,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,WAAW,CAAA;IAChB,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAA;IAChB,SAAS,EAAE,UAAU,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -23,6 +23,7 @@ export var TipProtocolType;
|
|
|
23
23
|
TipProtocolType["Pong"] = "Pong";
|
|
24
24
|
TipProtocolType["Entry"] = "Entry";
|
|
25
25
|
TipProtocolType["Link"] = "Link";
|
|
26
|
-
TipProtocolType["
|
|
26
|
+
TipProtocolType["AppCustom"] = "AppCustom";
|
|
27
|
+
TipProtocolType["AppValue"] = "AppValue";
|
|
27
28
|
})(TipProtocolType || (TipProtocolType = {}));
|
|
28
29
|
//# sourceMappingURL=zomeSignals.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zomeSignals.types.js","sourceRoot":"","sources":["../src/zomeSignals.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zomeSignals.types.js","sourceRoot":"","sources":["../src/zomeSignals.types.ts"],"names":[],"mappings":"AAgFA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,wBAAS,CAAA;IACT,kCAAmB,CAAA;AACpB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAGD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AAClB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAiCD,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,yCAAe,CAAA;IACf,uCAAa,CAAA;IACb,qCAAW,CAAA;AACZ,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC;AAuCD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IAC1B,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;AACtB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\n// @ts-ignore\nimport {\n/** api/common.ts */\n// @ts-ignore\nWebsocketConnectionOptions, WsClientOptions, HolochainError, CloneIdHelper,\n/** types.ts */\n// @ts-ignore\nKitsuneAgent, KitsuneSpace, HoloHashB64, AgentPubKeyB64, DnaHashB64, WasmHashB64, EntryHashB64, ActionHashB64, AnyDhtHashB64, InstalledAppId, Signature, CellId, DnaProperties, RoleName, InstalledCell, Timestamp, Duration, HoloHashed, FetchPoolInfo,\n/** hdk/action.ts */\n// @ts-ignore\nSignedAction, SignedActionHashed, RegisterAgentActivity, ActionHashed, ActionType, Action, NewEntryAction, Dna, AgentValidationPkg, InitZomesComplete, CreateLink, DeleteLink, OpenChain, CloseChain, Update, Delete, Create,\n/** hdk/capabilities.ts */\n// @ts-ignore\nCapSecret, CapClaim, GrantedFunctionsType, GrantedFunctions, ZomeCallCapGrant, CapAccess, CapGrant,\n///** hdk/countersigning.ts */\n//CounterSigningSessionData,\n//PreflightRequest,\n//CounterSigningSessionTimes,\n//ActionBase,\n//CounterSigningAgents,\n//PreflightBytes,\n//Role,\n//CountersigningAgentState,\n/** hdk/dht-ops.ts */\n// @ts-ignore\nChainOpType, DhtOp, WarrantOp, ChainOp, Warrant, ChainIntegrityWarrant, ValidationType, ActionHashAndSig,\n/** hdk/entry.ts */\n// @ts-ignore\nEntryVisibility, AppEntryDef, EntryType, EntryContent, Entry,\n/** hdk/record.ts */\n// @ts-ignore\nRecord as HcRecord, RecordEntry as HcRecordEntry,\n/** hdk/link.ts */\n//AnyLinkableHash,\n// @ts-ignore\nZomeIndex, LinkType, LinkTag, RateWeight, RateBucketId, RateUnits, Link,\n/** api/admin/types.ts */\n// @ts-ignore\n// YamlProperties\nZomes, WasmCode, DisabledAppReason, AppInfoStatus, StemCell, ProvisionedCell, ClonedCell, CellType, CellInfo, AppInfo, MembraneProof, MemproofMap, RoleSettingsMap, RoleSettings, DnaModifiersOpt, DnaModifiers, FunctionName, ZomeName, ZomeDefinition, IntegrityZome, CoordinatorZome, DnaDefinition, ResourceBytes, ResourceMap, CellProvisioningStrategy, CellProvisioning, DnaVersionSpec, DnaVersionFlexible, AppRoleDnaManifest, AppRoleManifest, AppManifest, AppBundle, AppBundleSource, NetworkSeed, AppStatusFilter, AppInterfaceInfo, AgentInfoSigned, ZomeLocation, DnaManifest,\n} from '@holochain/client';\n\n\n/// Simple Hashes\n// @ts-ignore\ntype AgentArray = Uint8Array;\n// @ts-ignore\ntype DnaArray = Uint8Array;\n// @ts-ignore\ntype WasmArray = Uint8Array;\n// @ts-ignore\ntype EntryArray = Uint8Array;\n// @ts-ignore\ntype ActionArray = Uint8Array;\n// @ts-ignore\ntype AnyDhtArray = Uint8Array;\n// @ts-ignore\ntype AnyLinkableArray = Uint8Array;\n// @ts-ignore\ntype ExternalArray = Uint8Array;\n\n// @ts-ignore\nimport {\n/** Common */\n// @ts-ignore\nDhtOpHashB64, DhtOpHash,\n/** DnaFile */\n// @ts-ignore\nDnaFile, DnaDef,\n/** entry-details */\n// @ts-ignore\nEntryDetails, RecordDetails, Details, DetailsType, EntryDhtStatus,\n/** Validation */\n// @ts-ignore\nValidationStatus, ValidationReceipt,\n} from '@holochain-open-dev/core-types';\n\n/** ValidationStatus */\nexport enum ValidatedBy {\n\tNone = 'None',\n\tMe = 'Me',\n\tNetwork = 'Network',\n}\n\n/** Bool: True if state change just happened (real-time) */\nexport enum StateChangeType {\n\tCreate = 'Create',\n\tUpdate = 'Update',\n\tDelete = 'Delete',\n}\nexport type StateChangeVariantCreate = {Create: boolean}\nexport type StateChangeVariantUpdate = {Update: boolean}\nexport type StateChangeVariantDelete = {Delete: boolean}\nexport type StateChange = \n | StateChangeVariantCreate | StateChangeVariantUpdate | StateChangeVariantDelete;\n\n/** */\nexport interface LinkPulse {\n link: Link\n state: StateChange\n validation: ValidatedBy\n}\n\nexport interface EntryPulse {\n state: StateChange\n validation: ValidatedBy\n orig_ah?: ActionArray\n ah: ActionArray\n eh: EntryArray\n ts: Timestamp\n author: AgentArray\n def: AppEntryDef\n bytes: Uint8Array\n}\n\n/** */\nexport interface ZomeSignal {\n from: AgentArray\n pulses: ZomeSignalProtocol[]\n}\n\n/** */\nexport enum ZomeSignalProtocolType {\n\tSystem = 'System',\n\tEntry = 'Entry',\n\tLink = 'Link',\n\tTip = 'Tip',\n}\nexport type ZomeSignalProtocolVariantSystem = {System: SystemAttestation}\nexport type ZomeSignalProtocolVariantEntry = {Entry: EntryPulse}\nexport type ZomeSignalProtocolVariantLink = {Link: LinkPulse}\nexport type ZomeSignalProtocolVariantTip = {Tip: TipProtocol}\nexport type ZomeSignalProtocol = \n | ZomeSignalProtocolVariantSystem | ZomeSignalProtocolVariantEntry | ZomeSignalProtocolVariantLink | ZomeSignalProtocolVariantTip;\n\n/** App-agnostic attestation */\nexport type SystemAttestationVariantPostCommitLink = {\n type: \"PostCommitLink\"\n link_type: number\n is_delete: boolean\n succeeded: boolean\n}\nexport type SystemAttestationVariantPostCommitEntry = {\n type: \"PostCommitEntry\"\n app_entry_type: string\n is_delete: boolean\n succeeded: boolean\n}\nexport type SystemAttestationVariantSelfCallStart = {\n type: \"SelfCallStart\"\n zome_name: string\n fn_name: string\n}\nexport type SystemAttestationVariantSelfCallEnd = {\n type: \"SelfCallEnd\"\n zome_name: string\n fn_name: string\n succeeded: boolean\n}\nexport type SystemAttestation =\n | SystemAttestationVariantPostCommitLink\n | SystemAttestationVariantPostCommitEntry\n | SystemAttestationVariantSelfCallStart\n | SystemAttestationVariantSelfCallEnd;\n\n/** Protocol used by UI ONLY to send data to other agents */\nexport enum TipProtocolType {\n\tPing = 'Ping',\n\tPong = 'Pong',\n\tEntry = 'Entry',\n\tLink = 'Link',\n\tAppCustom = 'AppCustom',\n\tAppValue = 'AppValue',\n}\nexport type TipProtocolVariantPing = {Ping: AgentArray}\nexport type TipProtocolVariantPong = {Pong: AgentArray}\nexport type TipProtocolVariantEntry = {Entry: EntryPulse}\nexport type TipProtocolVariantLink = {Link: LinkPulse}\nexport type TipProtocolVariantAppCustom = {AppCustom: Uint8Array}\nexport type TipProtocolVariantAppValue = {AppValue: [string, string]}\nexport type TipProtocol = \n | TipProtocolVariantPing | TipProtocolVariantPong | TipProtocolVariantEntry | TipProtocolVariantLink | TipProtocolVariantAppCustom | TipProtocolVariantAppValue;\n\nexport interface CastTipInput {\n tip: TipProtocol\n peers: AgentArray[]\n}\n\nexport interface SynchronizeTipInput {\n tip: TipProtocol\n recipient: AgentArray\n zomeName: string\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-qc/cell-proxy",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.8",
|
|
4
4
|
"description": "Proxy classes and helpers for managing a Holochain AppWebsocket",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"typescript": "~5.5.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@holochain/client": "
|
|
31
|
+
"@holochain/client": "^0.19.1",
|
|
32
32
|
"@bitgo/blake2b": "^3.2.4",
|
|
33
33
|
"libsodium-wrappers-sumo": "^0.7.15",
|
|
34
34
|
"js-base64": "^3.7.5",
|