@calimero-network/mero-js 7.1.1 → 7.2.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/index.cjs CHANGED
@@ -882,6 +882,18 @@ var AdminApiClient = class {
882
882
  await this.httpClient.get(`/admin-api/applications/${applicationId}/versions`)
883
883
  );
884
884
  }
885
+ /**
886
+ * The application's embedded `wasm-abi/1` manifest. Omit `serviceName` for
887
+ * single-service apps; core 400s if the ABI is absent or the name is ambiguous.
888
+ */
889
+ async getApplicationAbi(applicationId, serviceName) {
890
+ const query = serviceName ? `?service_name=${encodeURIComponent(serviceName)}` : "";
891
+ return unwrap(
892
+ await this.httpClient.get(
893
+ `/admin-api/applications/${applicationId}/abi${query}`
894
+ )
895
+ );
896
+ }
885
897
  // ---- Package Management ----
886
898
  async listPackages() {
887
899
  const r = await this.httpClient.get(