@arbidocs/sdk 0.5.130 → 0.5.132
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/{browser-1VkMgddb.d.ts → browser-BDt9qMGw.d.ts} +56 -32
- package/dist/{browser-CikZRvkq.d.cts → browser-C4_Zgu_N.d.cts} +56 -32
- package/dist/browser.cjs +8 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +8 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/examples/human-review/package.json +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
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)),
|