@calimero-network/mero-js 19.22.0 → 19.24.0
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/dist/admin-api/admin-client.d.ts +7 -0
- package/dist/admin-api/admin-client.js +9 -0
- package/dist/index.browser.mjs +2 -2
- package/dist/index.browser.mjs.map +4 -4
- package/dist/index.cjs +368 -138
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +368 -138
- package/dist/index.mjs.map +4 -4
- package/dist/sealed/index.d.ts +1 -1
- package/dist/sealed/index.js +1 -1
- package/dist/sealed/noise.d.ts +44 -0
- package/dist/sealed/noise.js +137 -0
- package/dist/sealed/sealed.d.ts +60 -40
- package/dist/sealed/sealed.js +270 -126
- package/package.json +1 -1
|
@@ -467,6 +467,13 @@ export declare class AdminApiClient {
|
|
|
467
467
|
* route for this policy.
|
|
468
468
|
*/
|
|
469
469
|
setTeeAuthoringPolicy(groupId: string, request: SetTeeAuthoringPolicyRequest): Promise<void>;
|
|
470
|
+
/**
|
|
471
|
+
* Turns TEE authorship off in the namespace: every TEE loses its authority,
|
|
472
|
+
* and admitted TEEs stay members. The node applies the same op as
|
|
473
|
+
* `setTeeAuthoringPolicy(groupId, { allowedMrtd: [] })`. `groupId` must be a
|
|
474
|
+
* namespace root.
|
|
475
|
+
*/
|
|
476
|
+
disableTeeAuthoringPolicy(groupId: string): Promise<void>;
|
|
470
477
|
setGroupMetadata(groupId: string, request: SetGroupMetadataRequest): Promise<void>;
|
|
471
478
|
getGroupMetadata(groupId: string): Promise<MetadataRecord | null>;
|
|
472
479
|
setMemberMetadata(groupId: string, identity: string, request: SetMemberMetadataRequest): Promise<void>;
|
|
@@ -861,6 +861,15 @@ export class AdminApiClient {
|
|
|
861
861
|
async setTeeAuthoringPolicy(groupId, request) {
|
|
862
862
|
await this.httpClient.put(`/admin-api/groups/${groupId}/settings/tee-authoring-policy`, request);
|
|
863
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
* Turns TEE authorship off in the namespace: every TEE loses its authority,
|
|
866
|
+
* and admitted TEEs stay members. The node applies the same op as
|
|
867
|
+
* `setTeeAuthoringPolicy(groupId, { allowedMrtd: [] })`. `groupId` must be a
|
|
868
|
+
* namespace root.
|
|
869
|
+
*/
|
|
870
|
+
async disableTeeAuthoringPolicy(groupId) {
|
|
871
|
+
await this.httpClient.delete(`/admin-api/groups/${groupId}/settings/tee-authoring-policy`);
|
|
872
|
+
}
|
|
864
873
|
// ---- Group / member / context metadata ----
|
|
865
874
|
async setGroupMetadata(groupId, request) {
|
|
866
875
|
await this.httpClient.put(`/admin-api/groups/${groupId}/metadata`, request);
|