@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.
@@ -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);