@calimero-network/mero-react 9.11.0 → 9.11.2

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.d.cts CHANGED
@@ -1600,9 +1600,7 @@ declare function useGroupInfo(groupId?: string | null): {
1600
1600
  refetch: () => Promise<void>;
1601
1601
  };
1602
1602
  declare function useDeleteGroup(): {
1603
- deleteGroup: (groupId: string) => Promise<{
1604
- groupId: string;
1605
- } | _calimero_network_mero_js.DeleteGroupResponseData | null>;
1603
+ deleteGroup: (groupId: string) => Promise<_calimero_network_mero_js.DeleteGroupResponseData | null>;
1606
1604
  loading: boolean;
1607
1605
  error: Error | null;
1608
1606
  };
@@ -1675,7 +1673,7 @@ declare function useNamespacesForApplication(applicationId?: string | null): {
1675
1673
  refetch: () => Promise<void>;
1676
1674
  };
1677
1675
  declare function useCreateNamespace(): {
1678
- createNamespace: (request: CreateNamespaceRequest) => Promise<FoundedDelegatedNamespace | _calimero_network_mero_js.CreateNamespaceResponseData | null>;
1676
+ createNamespace: (request: CreateNamespaceRequest) => Promise<_calimero_network_mero_js.CreateNamespaceResponseData | null>;
1679
1677
  loading: boolean;
1680
1678
  error: Error | null;
1681
1679
  };
@@ -1724,9 +1722,7 @@ declare function useRedeemInvitation(): {
1724
1722
  loading: boolean;
1725
1723
  };
1726
1724
  declare function useCreateGroupInNamespace(): {
1727
- createGroupInNamespace: (namespaceId: string, request?: CreateGroupInNamespaceRequest) => Promise<{
1728
- groupId: string;
1729
- } | null>;
1725
+ createGroupInNamespace: (namespaceId: string, request?: CreateGroupInNamespaceRequest) => Promise<_calimero_network_mero_js.CreateGroupInNamespaceResponseData | null>;
1730
1726
  loading: boolean;
1731
1727
  error: Error | null;
1732
1728
  };
@@ -1742,23 +1738,17 @@ declare function useNamespaceGroups(namespaceId?: string | null): {
1742
1738
  * Both are 32-byte strings, so passing a key names nobody and raises nothing.
1743
1739
  */
1744
1740
  declare function useUpdateMemberRole(): {
1745
- updateMemberRole: (groupId: string, identity: string, request: UpdateMemberRoleRequest) => Promise<void | {
1746
- groupId: string;
1747
- } | null>;
1741
+ updateMemberRole: (groupId: string, identity: string, request: UpdateMemberRoleRequest) => Promise<void | null>;
1748
1742
  loading: boolean;
1749
1743
  error: Error | null;
1750
1744
  };
1751
1745
  declare function useSetDefaultCapabilities(): {
1752
- setDefaultCapabilities: (groupId: string, request: SetDefaultCapabilitiesRequest) => Promise<void | {
1753
- groupId: string;
1754
- } | null>;
1746
+ setDefaultCapabilities: (groupId: string, request: SetDefaultCapabilitiesRequest) => Promise<void | null>;
1755
1747
  loading: boolean;
1756
1748
  error: Error | null;
1757
1749
  };
1758
1750
  declare function useSetSubgroupVisibility(): {
1759
- setSubgroupVisibility: (groupId: string, request: SetSubgroupVisibilityRequest) => Promise<void | {
1760
- groupId: string;
1761
- } | null>;
1751
+ setSubgroupVisibility: (groupId: string, request: SetSubgroupVisibilityRequest) => Promise<void | null>;
1762
1752
  loading: boolean;
1763
1753
  error: Error | null;
1764
1754
  };
@@ -1780,9 +1770,7 @@ declare function useSetTeeAdmissionPolicy(): {
1780
1770
  error: Error | null;
1781
1771
  };
1782
1772
  declare function useSetGroupMetadata(): {
1783
- setGroupMetadata: (groupId: string, request: SetMetadataInput) => Promise<void | {
1784
- groupId: string;
1785
- } | null>;
1773
+ setGroupMetadata: (groupId: string, request: SetMetadataInput) => Promise<void | null>;
1786
1774
  loading: boolean;
1787
1775
  error: Error | null;
1788
1776
  };
@@ -1792,16 +1780,12 @@ declare function useSetGroupMetadata(): {
1792
1780
  * Both are 32-byte strings, so passing a key names nobody and raises nothing.
1793
1781
  */
1794
1782
  declare function useSetMemberMetadata(): {
1795
- setMemberMetadata: (groupId: string, identity: string, request: SetMetadataInput) => Promise<void | {
1796
- groupId: string;
1797
- } | null>;
1783
+ setMemberMetadata: (groupId: string, identity: string, request: SetMetadataInput) => Promise<void | null>;
1798
1784
  loading: boolean;
1799
1785
  error: Error | null;
1800
1786
  };
1801
1787
  declare function useSetContextMetadata(): {
1802
- setContextMetadata: (groupId: string, contextId: string, request: SetMetadataInput) => Promise<void | {
1803
- groupId: string;
1804
- } | null>;
1788
+ setContextMetadata: (groupId: string, contextId: string, request: SetMetadataInput) => Promise<void | null>;
1805
1789
  loading: boolean;
1806
1790
  error: Error | null;
1807
1791
  };
@@ -1856,9 +1840,7 @@ declare function useRetryGroupUpgrade(): {
1856
1840
  };
1857
1841
  /** Move `childGroupId` under a new parent. */
1858
1842
  declare function useReparentGroup(): {
1859
- reparentGroup: (childGroupId: string, request: ReparentGroupRequest) => Promise<{
1860
- reparented: boolean;
1861
- } | null>;
1843
+ reparentGroup: (childGroupId: string, request: ReparentGroupRequest) => Promise<_calimero_network_mero_js.ReparentGroupResponseData | null>;
1862
1844
  loading: boolean;
1863
1845
  error: Error | null;
1864
1846
  };
@@ -1869,9 +1851,7 @@ declare function useSubgroups(groupId?: string | null): {
1869
1851
  refetch: () => Promise<void>;
1870
1852
  };
1871
1853
  declare function useDetachContextFromGroup(): {
1872
- detachContextFromGroup: (groupId: string, contextId: string) => Promise<void | {
1873
- groupId: string;
1874
- } | null>;
1854
+ detachContextFromGroup: (groupId: string, contextId: string) => Promise<void | null>;
1875
1855
  loading: boolean;
1876
1856
  error: Error | null;
1877
1857
  };
package/dist/index.d.ts CHANGED
@@ -1600,9 +1600,7 @@ declare function useGroupInfo(groupId?: string | null): {
1600
1600
  refetch: () => Promise<void>;
1601
1601
  };
1602
1602
  declare function useDeleteGroup(): {
1603
- deleteGroup: (groupId: string) => Promise<{
1604
- groupId: string;
1605
- } | _calimero_network_mero_js.DeleteGroupResponseData | null>;
1603
+ deleteGroup: (groupId: string) => Promise<_calimero_network_mero_js.DeleteGroupResponseData | null>;
1606
1604
  loading: boolean;
1607
1605
  error: Error | null;
1608
1606
  };
@@ -1675,7 +1673,7 @@ declare function useNamespacesForApplication(applicationId?: string | null): {
1675
1673
  refetch: () => Promise<void>;
1676
1674
  };
1677
1675
  declare function useCreateNamespace(): {
1678
- createNamespace: (request: CreateNamespaceRequest) => Promise<FoundedDelegatedNamespace | _calimero_network_mero_js.CreateNamespaceResponseData | null>;
1676
+ createNamespace: (request: CreateNamespaceRequest) => Promise<_calimero_network_mero_js.CreateNamespaceResponseData | null>;
1679
1677
  loading: boolean;
1680
1678
  error: Error | null;
1681
1679
  };
@@ -1724,9 +1722,7 @@ declare function useRedeemInvitation(): {
1724
1722
  loading: boolean;
1725
1723
  };
1726
1724
  declare function useCreateGroupInNamespace(): {
1727
- createGroupInNamespace: (namespaceId: string, request?: CreateGroupInNamespaceRequest) => Promise<{
1728
- groupId: string;
1729
- } | null>;
1725
+ createGroupInNamespace: (namespaceId: string, request?: CreateGroupInNamespaceRequest) => Promise<_calimero_network_mero_js.CreateGroupInNamespaceResponseData | null>;
1730
1726
  loading: boolean;
1731
1727
  error: Error | null;
1732
1728
  };
@@ -1742,23 +1738,17 @@ declare function useNamespaceGroups(namespaceId?: string | null): {
1742
1738
  * Both are 32-byte strings, so passing a key names nobody and raises nothing.
1743
1739
  */
1744
1740
  declare function useUpdateMemberRole(): {
1745
- updateMemberRole: (groupId: string, identity: string, request: UpdateMemberRoleRequest) => Promise<void | {
1746
- groupId: string;
1747
- } | null>;
1741
+ updateMemberRole: (groupId: string, identity: string, request: UpdateMemberRoleRequest) => Promise<void | null>;
1748
1742
  loading: boolean;
1749
1743
  error: Error | null;
1750
1744
  };
1751
1745
  declare function useSetDefaultCapabilities(): {
1752
- setDefaultCapabilities: (groupId: string, request: SetDefaultCapabilitiesRequest) => Promise<void | {
1753
- groupId: string;
1754
- } | null>;
1746
+ setDefaultCapabilities: (groupId: string, request: SetDefaultCapabilitiesRequest) => Promise<void | null>;
1755
1747
  loading: boolean;
1756
1748
  error: Error | null;
1757
1749
  };
1758
1750
  declare function useSetSubgroupVisibility(): {
1759
- setSubgroupVisibility: (groupId: string, request: SetSubgroupVisibilityRequest) => Promise<void | {
1760
- groupId: string;
1761
- } | null>;
1751
+ setSubgroupVisibility: (groupId: string, request: SetSubgroupVisibilityRequest) => Promise<void | null>;
1762
1752
  loading: boolean;
1763
1753
  error: Error | null;
1764
1754
  };
@@ -1780,9 +1770,7 @@ declare function useSetTeeAdmissionPolicy(): {
1780
1770
  error: Error | null;
1781
1771
  };
1782
1772
  declare function useSetGroupMetadata(): {
1783
- setGroupMetadata: (groupId: string, request: SetMetadataInput) => Promise<void | {
1784
- groupId: string;
1785
- } | null>;
1773
+ setGroupMetadata: (groupId: string, request: SetMetadataInput) => Promise<void | null>;
1786
1774
  loading: boolean;
1787
1775
  error: Error | null;
1788
1776
  };
@@ -1792,16 +1780,12 @@ declare function useSetGroupMetadata(): {
1792
1780
  * Both are 32-byte strings, so passing a key names nobody and raises nothing.
1793
1781
  */
1794
1782
  declare function useSetMemberMetadata(): {
1795
- setMemberMetadata: (groupId: string, identity: string, request: SetMetadataInput) => Promise<void | {
1796
- groupId: string;
1797
- } | null>;
1783
+ setMemberMetadata: (groupId: string, identity: string, request: SetMetadataInput) => Promise<void | null>;
1798
1784
  loading: boolean;
1799
1785
  error: Error | null;
1800
1786
  };
1801
1787
  declare function useSetContextMetadata(): {
1802
- setContextMetadata: (groupId: string, contextId: string, request: SetMetadataInput) => Promise<void | {
1803
- groupId: string;
1804
- } | null>;
1788
+ setContextMetadata: (groupId: string, contextId: string, request: SetMetadataInput) => Promise<void | null>;
1805
1789
  loading: boolean;
1806
1790
  error: Error | null;
1807
1791
  };
@@ -1856,9 +1840,7 @@ declare function useRetryGroupUpgrade(): {
1856
1840
  };
1857
1841
  /** Move `childGroupId` under a new parent. */
1858
1842
  declare function useReparentGroup(): {
1859
- reparentGroup: (childGroupId: string, request: ReparentGroupRequest) => Promise<{
1860
- reparented: boolean;
1861
- } | null>;
1843
+ reparentGroup: (childGroupId: string, request: ReparentGroupRequest) => Promise<_calimero_network_mero_js.ReparentGroupResponseData | null>;
1862
1844
  loading: boolean;
1863
1845
  error: Error | null;
1864
1846
  };
@@ -1869,9 +1851,7 @@ declare function useSubgroups(groupId?: string | null): {
1869
1851
  refetch: () => Promise<void>;
1870
1852
  };
1871
1853
  declare function useDetachContextFromGroup(): {
1872
- detachContextFromGroup: (groupId: string, contextId: string) => Promise<void | {
1873
- groupId: string;
1874
- } | null>;
1854
+ detachContextFromGroup: (groupId: string, contextId: string) => Promise<void | null>;
1875
1855
  loading: boolean;
1876
1856
  error: Error | null;
1877
1857
  };