@edgible-team/sdk
    Preparing search index...

    Class OrganizationsClient

    Organization CRUD, membership management, and org-scoped fan-out reads.

    Index

    Constructors

    Methods

    • Add a user to the organization; returns the added member.

      Parameters

      Returns Promise<UserData>

      NotFoundError if the organization or user does not exist.

    • Create an organization.

      Parameters

      Returns Promise<OrganizationData>

      ValidationError if the request body is rejected.

    • Org-wide gateway roll-up: every gateway the org's applications route through, deduped across apps, with real WS-heartbeat health and the count of apps routed through each. Powers the dashboard gateway card. Managed gateways surface only through this app-ownership-derived projection, never as browsable devices.

      Parameters

      Returns Promise<OrganizationGatewaySummaryResponse>

      { gateways, counts: { healthy, degraded } }. An org with no published apps returns empty gateways and zeroed counts.

    • List every application in the organization.

      Parameters

      Returns Promise<ApplicationData[]>

    • Remove a user from the organization.

      Parameters

      Returns Promise<void>

      NotFoundError if the organization or member does not exist.

    • Update an organization; returns the updated row.

      Parameters

      Returns Promise<OrganizationData>

      NotFoundError if the organization does not exist.

    • Change a member's role within the organization; returns the updated member.

      Parameters

      Returns Promise<UserData>

      NotFoundError if the organization or member does not exist.