@holochain/client 0.16.3 → 0.16.5
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.
- package/lib/hdk/link.d.ts +25 -1
- package/package.json +1 -1
package/lib/hdk/link.d.ts
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
|
-
import { ActionHash, EntryHash, ExternalHash } from "../types.js";
|
|
1
|
+
import { ActionHash, AgentPubKey, EntryHash, ExternalHash, Timestamp } from "../types.js";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export type AnyLinkableHash = EntryHash | ActionHash | ExternalHash;
|
|
6
|
+
/**
|
|
7
|
+
* An internal zome index within the DNA, from 0 to 255.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export type ZomeIndex = number;
|
|
12
|
+
/**
|
|
13
|
+
* An internal link type index within the DNA, from 0 to 255.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type LinkType = number;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface Link {
|
|
22
|
+
author: AgentPubKey;
|
|
23
|
+
target: AnyLinkableHash;
|
|
24
|
+
timestamp: Timestamp;
|
|
25
|
+
zome_index: ZomeIndex;
|
|
26
|
+
link_type: LinkType;
|
|
27
|
+
tag: Uint8Array;
|
|
28
|
+
create_link_hash: ActionHash;
|
|
29
|
+
}
|
package/package.json
CHANGED