@arbidocs/sdk 0.5.130 → 0.5.131

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
@@ -7947,6 +7947,7 @@ __export(contacts_exports, {
7947
7947
  inviteContacts: () => inviteContacts,
7948
7948
  linkContact: () => linkContact,
7949
7949
  listContacts: () => listContacts,
7950
+ referralSummary: () => referralSummary,
7950
7951
  searchContacts: () => searchContacts,
7951
7952
  updateContact: () => updateContact
7952
7953
  });
@@ -8063,6 +8064,12 @@ function groupContactsByStatus(contactList) {
8063
8064
  }
8064
8065
  return { registered, pending, cards };
8065
8066
  }
8067
+ async function referralSummary(client) {
8068
+ return requireData(
8069
+ await client.fetch.GET("/v1/user/referrals"),
8070
+ "Failed to fetch invitation progress"
8071
+ );
8072
+ }
8066
8073
 
8067
8074
  // src/operations/doctags.ts
8068
8075
  var doctags_exports = {};
@@ -13856,6 +13863,7 @@ var Arbi = class {
13856
13863
  // A card is sealed under its address book's key, which the contacts key bridge carries: without
13857
13864
  // it the server returns `card: null` and refuses card writes.
13858
13865
  contacts = {
13866
+ referrals: () => referralSummary(this.requireClient()),
13859
13867
  list: () => this.withContactKeys((c2) => listContacts(c2)),
13860
13868
  invite: (emails) => inviteContacts(this.requireClient(), emails),
13861
13869
  create: (body) => this.withContactKeys((c2) => createContact(c2, body)),