@holochain/client 0.19.0-dev.5 → 0.19.0-dev.6

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.
@@ -130,7 +130,38 @@ export type MembraneProof = Uint8Array;
130
130
  * @public
131
131
  */
132
132
  export type MemproofMap = {
133
- [key: string]: MembraneProof;
133
+ [key: RoleName]: MembraneProof;
134
+ };
135
+ /**
136
+ * @public
137
+ */
138
+ export type RoleSettingsMap = {
139
+ [key: RoleName]: RoleSettings;
140
+ };
141
+ /**
142
+ * @public
143
+ */
144
+ export type RoleSettings = {
145
+ type: "UseExisting";
146
+ cell_id: CellId;
147
+ } | {
148
+ type: "Provisioned";
149
+ membrane_proof?: MembraneProof;
150
+ modifiers?: DnaModifiersOpt;
151
+ };
152
+ /**
153
+ * @public
154
+ * Any value that is serializable to a Yaml value
155
+ */
156
+ export type YamlProperties = unknown;
157
+ /**
158
+ * @public
159
+ */
160
+ export type DnaModifiersOpt = {
161
+ network_seed?: NetworkSeed;
162
+ properties?: YamlProperties;
163
+ origin_time?: Timestamp;
164
+ quantum_time?: Duration;
134
165
  };
135
166
  /**
136
167
  * @public
@@ -425,16 +456,15 @@ export type InstallAppRequest = {
425
456
  * If not specified, it will be derived from the app name in the bundle manifest.
426
457
  */
427
458
  installed_app_id?: InstalledAppId;
428
- /**
429
- * Include proof-of-membrane-membership data for cells that require it,
430
- * keyed by the CellNick specified in the app bundle manifest.
431
- */
432
- membrane_proofs: MemproofMap;
433
459
  /**
434
460
  * Optional global network seed override. If set will override the network seed value for all
435
461
  * DNAs in the bundle.
436
462
  */
437
463
  network_seed?: NetworkSeed;
464
+ /**
465
+ * Specify role specific settings or modifiers that will override any settings in the dna manifest.
466
+ */
467
+ roles_settings?: RoleSettingsMap;
438
468
  /**
439
469
  * Optional: If app installation fails due to genesis failure, normally the app will be immediately uninstalled.
440
470
  * When this flag is set, the app is left installed with empty cells intact. This can be useful for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holochain/client",
3
- "version": "0.19.0-dev.5",
3
+ "version": "0.19.0-dev.6",
4
4
  "description": "A JavaScript client for the Holochain Conductor API",
5
5
  "author": "Holochain Foundation <info@holochain.org> (https://holochain.org)",
6
6
  "license": "CAL-1.0",
@@ -55,6 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@microsoft/api-documenter": "^7.21.7",
57
57
  "@microsoft/api-extractor": "^7.34.4",
58
+ "@types/js-yaml": "4.0.9",
58
59
  "@types/libsodium-wrappers": "^0.7.11",
59
60
  "@types/lodash-es": "^4.17.6",
60
61
  "@types/tape": "^4.13.2",
@@ -65,7 +66,7 @@
65
66
  "eslint-config-prettier": "^8.10.0",
66
67
  "eslint-plugin-prettier": "^4.2.1",
67
68
  "eslint-plugin-tsdoc": "^0.2.17",
68
- "js-yaml": "^3.14.1",
69
+ "js-yaml": "^4.1.0",
69
70
  "prettier": "^2.8.8",
70
71
  "rimraf": "^3.0.2",
71
72
  "tape": "^5.6.6",