@holochain/client 0.18.0-rc.0 → 0.18.0-rc.1
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/api/admin/types.d.ts +36 -6
- package/package.json +3 -2
package/lib/api/admin/types.d.ts
CHANGED
|
@@ -129,7 +129,38 @@ export type MembraneProof = Uint8Array;
|
|
|
129
129
|
* @public
|
|
130
130
|
*/
|
|
131
131
|
export type MemproofMap = {
|
|
132
|
-
[key:
|
|
132
|
+
[key: RoleName]: MembraneProof;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export type RoleSettingsMap = {
|
|
138
|
+
[key: RoleName]: RoleSettings;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
export type RoleSettings = {
|
|
144
|
+
type: "UseExisting";
|
|
145
|
+
cell_id: CellId;
|
|
146
|
+
} | {
|
|
147
|
+
type: "Provisioned";
|
|
148
|
+
membrane_proof?: MembraneProof;
|
|
149
|
+
modifiers?: DnaModifiersOpt;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
* Any value that is serializable to a Yaml value
|
|
154
|
+
*/
|
|
155
|
+
export type YamlProperties = unknown;
|
|
156
|
+
/**
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export type DnaModifiersOpt = {
|
|
160
|
+
network_seed?: NetworkSeed;
|
|
161
|
+
properties?: YamlProperties;
|
|
162
|
+
origin_time?: Timestamp;
|
|
163
|
+
quantum_time?: Duration;
|
|
133
164
|
};
|
|
134
165
|
/**
|
|
135
166
|
* @public
|
|
@@ -424,16 +455,15 @@ export type InstallAppRequest = {
|
|
|
424
455
|
* If not specified, it will be derived from the app name in the bundle manifest.
|
|
425
456
|
*/
|
|
426
457
|
installed_app_id?: InstalledAppId;
|
|
427
|
-
/**
|
|
428
|
-
* Include proof-of-membrane-membership data for cells that require it,
|
|
429
|
-
* keyed by the CellNick specified in the app bundle manifest.
|
|
430
|
-
*/
|
|
431
|
-
membrane_proofs: MemproofMap;
|
|
432
458
|
/**
|
|
433
459
|
* Optional global network seed override. If set will override the network seed value for all
|
|
434
460
|
* DNAs in the bundle.
|
|
435
461
|
*/
|
|
436
462
|
network_seed?: NetworkSeed;
|
|
463
|
+
/**
|
|
464
|
+
* Specify role specific settings or modifiers that will override any settings in the dna manifest.
|
|
465
|
+
*/
|
|
466
|
+
roles_settings?: RoleSettingsMap;
|
|
437
467
|
/**
|
|
438
468
|
* Optional: If app installation fails due to genesis failure, normally the app will be immediately uninstalled.
|
|
439
469
|
* 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.18.0-rc.
|
|
3
|
+
"version": "0.18.0-rc.1",
|
|
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": "^
|
|
69
|
+
"js-yaml": "^4.1.0",
|
|
69
70
|
"prettier": "^2.8.8",
|
|
70
71
|
"rimraf": "^3.0.2",
|
|
71
72
|
"tape": "^5.6.6",
|