@calimero-network/mero-js 2.5.0 → 2.5.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/dist/index.cjs CHANGED
@@ -1097,23 +1097,28 @@ var AdminApiClient = class {
1097
1097
  await this.httpClient.put(`/admin-api/groups/${groupId}/metadata`, request);
1098
1098
  }
1099
1099
  async getGroupMetadata(groupId) {
1100
- return unwrap(await this.httpClient.get(`/admin-api/groups/${groupId}/metadata`))?.data ?? null;
1100
+ const response = await this.httpClient.get(
1101
+ `/admin-api/groups/${groupId}/metadata`
1102
+ );
1103
+ return response?.data?.data ?? null;
1101
1104
  }
1102
1105
  async setMemberMetadata(groupId, identity, request) {
1103
1106
  await this.httpClient.put(`/admin-api/groups/${groupId}/members/${identity}/metadata`, request);
1104
1107
  }
1105
1108
  async getMemberMetadata(groupId, identity) {
1106
- return unwrap(
1107
- await this.httpClient.get(`/admin-api/groups/${groupId}/members/${identity}/metadata`)
1108
- )?.data ?? null;
1109
+ const response = await this.httpClient.get(
1110
+ `/admin-api/groups/${groupId}/members/${identity}/metadata`
1111
+ );
1112
+ return response?.data?.data ?? null;
1109
1113
  }
1110
1114
  async setContextMetadata(groupId, contextId, request) {
1111
1115
  await this.httpClient.put(`/admin-api/groups/${groupId}/contexts/${contextId}/metadata`, request);
1112
1116
  }
1113
1117
  async getContextMetadata(groupId, contextId) {
1114
- return unwrap(
1115
- await this.httpClient.get(`/admin-api/groups/${groupId}/contexts/${contextId}/metadata`)
1116
- )?.data ?? null;
1118
+ const response = await this.httpClient.get(
1119
+ `/admin-api/groups/${groupId}/contexts/${contextId}/metadata`
1120
+ );
1121
+ return response?.data?.data ?? null;
1117
1122
  }
1118
1123
  async syncGroup(groupId, request) {
1119
1124
  return unwrap(await this.httpClient.post(`/admin-api/groups/${groupId}/sync`, request ?? {}));