@warmhub/sdk-ts 0.173.0
Added
client.grant.listReceived({ limit, cursor }) lists the caller's own live Grants, in every organization, newest first: each Grant's organization, its entries with what each confers now, and its expiry. It works signed in or with a personal access token; a token narrowed inside a graph does not show that graph's entries.
Added
client.grant.list(orgName, { recipient }) narrows an organization's Grants to one recipient's, revoked and expired ones included. The recipient is named as in client.grant.create; an unknown recipient lists nothing. A Grant now names its recipient and requester as well as identifying them: recipient.account (a user or service account) or recipient.component ({ orgName, componentName }), and requestedByAccount, each account as { email?, externalId, firstName?, lastName?, serviceAccount? }. An account is named only while it belongs to the Grant's organization: a current member by email and names, one of its service accounts by its org/name in place of an email; any other account shows only its externalId.