UNPKG

@sumup/sdk

Version:

The official TypeScript SDK for the SumUp API

40 lines 1.14 kB
import type { Attributes } from "./attributes"; import type { Invite } from "./invite"; import type { MembershipStatus } from "./membership-status"; import type { MembershipUser } from "./membership-user"; import type { Metadata } from "./metadata"; /** * Member * * A member is user within specific resource identified by resource id, resource type, and associated roles. */ export type Member = { /** * ID of the member. */ id: string; /** * User's roles. */ roles: string[]; /** * User's permissions. * * @deprecated: Permissions include only legacy permissions, please use roles instead. Member access is based on roles within a given resource and the permissions these roles grant. */ permissions: string[]; /** * The timestamp of when the member was created. */ created_at: string; /** * The timestamp of when the member was last updated. */ updated_at: string; user?: MembershipUser; invite?: Invite; status: MembershipStatus; metadata?: Metadata; attributes?: Attributes; }; //# sourceMappingURL=member.d.cts.map