@holochain/client 0.16.2 → 0.16.3

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.
@@ -6,7 +6,7 @@ import { DisableCloneCellRequest } from "../index.js";
6
6
  * @public
7
7
  */
8
8
  export type AttachAppInterfaceRequest = {
9
- port: number;
9
+ port?: number;
10
10
  };
11
11
  /**
12
12
  * @public
@@ -38,12 +38,22 @@ export interface ZomeCallCapGrant {
38
38
  /**
39
39
  * @public
40
40
  */
41
- export type CapAccess = "Unrestricted" | {
42
- Transferable: {
41
+ export declare enum CapAccessType {
42
+ Unrestricted = "Unrestricted",
43
+ Transferable = "Transferable",
44
+ Assigned = "Assigned"
45
+ }
46
+ /**
47
+ * @public
48
+ */
49
+ export type CapAccess = {
50
+ [CapAccessType.Unrestricted]: null;
51
+ } | {
52
+ [CapAccessType.Transferable]: {
43
53
  secret: CapSecret;
44
54
  };
45
55
  } | {
46
- Assigned: {
56
+ [CapAccessType.Assigned]: {
47
57
  secret: CapSecret;
48
58
  assignees: AgentPubKey[];
49
59
  };
@@ -6,3 +6,12 @@ export var GrantedFunctionsType;
6
6
  GrantedFunctionsType["All"] = "All";
7
7
  GrantedFunctionsType["Listed"] = "Listed";
8
8
  })(GrantedFunctionsType || (GrantedFunctionsType = {}));
9
+ /**
10
+ * @public
11
+ */
12
+ export var CapAccessType;
13
+ (function (CapAccessType) {
14
+ CapAccessType["Unrestricted"] = "Unrestricted";
15
+ CapAccessType["Transferable"] = "Transferable";
16
+ CapAccessType["Assigned"] = "Assigned";
17
+ })(CapAccessType || (CapAccessType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holochain/client",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "A JavaScript client for the Holochain Conductor API",
5
5
  "author": "Holochain Foundation <info@holochain.org> (http://holochain.org)",
6
6
  "license": "CAL-1.0",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/holochain/holochain-client-js#readme",
20
20
  "engines": {
21
- "node": ">=16.0.0 || >=18.0.0"
21
+ "node": ">=18.0.0 || >=20.0.0"
22
22
  },
23
23
  "main": "lib/index.js",
24
24
  "module": "lib/index.js",