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

    Class OrganizationsClient

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

    Index

    Constructors

    Methods

    • 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[]>

    • List the organization's member users. Each entry carries the user's role in this organization (OWNER/EDITOR/READ_ONLY), read from the org's USER membership edges.

      Parameters

      Returns Promise<OrganizationUserData[]>

    • Remove a user from the organization. Adding members is invites-only (see invites.create) — there is no add-member route by design.

      Parameters

      • params: { organizationId: string; userEmail: string }
      • Optionalopts: RequestOptions

      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 membership (userEmail, organizationId, role).

      Parameters

      • params: { organizationId: string; role: OrganizationUserRole; userEmail: string }
      • Optionalopts: RequestOptions

      Returns Promise<Omit<UpdateOrganizationUserRoleResponse, "message">>

      NotFoundError if the organization or member does not exist.