@nevermined-io/payments
    Preparing search index...

    Type Alias MyMembership

    A single organization the authenticated user is an active member of. Returned by OrganizationsAPI.getMyMemberships() and used by clients to power workspace pickers and "where will this publish?" UX.

    Shape mirrors MyMembershipDto in the Nevermined backend (apps/api/src/organizations/dto/my-membership.dto.ts).

    type MyMembership = {
        hasSubscriptionHistory: boolean;
        isAdmin: boolean;
        orgId: string;
        orgName: string;
        orgType: OrganizationType;
        role: OrganizationMemberRole;
    }
    Index

    Properties

    hasSubscriptionHistory: boolean

    true when the org has at least one organizationSubscription row — the org has previously been associated with a paid tier (active, past_due, trialing, lapsed, or canceled). Combined with orgType === Lapsed it distinguishes "subscription expired" from "free org that never subscribed".

    isAdmin: boolean

    Whether the caller is an Admin of this organization.

    orgId: string

    Stable organization id (e.g. org-…).

    orgName: string

    Display name of the organization.

    Tier of the organization — see OrganizationType.

    Caller's role inside this organization.