Hiyve Components - v1.0.0
    Preparing search index...

    Class AdminClient

    Index

    Constructors

    Methods

    • Add origin(s) to the allowed list for an organization.

      Parameters

      • orgId: string

        Organization ID

      • origins: string[]

        Origins to add

      Returns Promise<AllowedOriginsResponse>

    • Deactivate (soft-delete) a user profile.

      Parameters

      • profileId: string

        Profile ID

      • OptionalbrandOrgId: string

        Organization ID. If omitted, defaults to the org associated with the API key.

      Returns Promise<{ message: string; profile: UserProfile }>

    • Get a single user profile by ID.

      Parameters

      • profileId: string

        Profile ID

      • OptionalbrandOrgId: string

        Organization ID. If omitted, defaults to the org associated with the API key.

      Returns Promise<UserProfile>

    • Remove origin(s) from the allowed list for an organization.

      Parameters

      • orgId: string

        Organization ID

      • origins: string[]

        Origins to remove

      Returns Promise<AllowedOriginsResponse>

    • Replace all allowed origins for an organization.

      Parameters

      • orgId: string

        Organization ID

      • origins: string[]

        Complete list of allowed origins (replaces existing)

      Returns Promise<AllowedOriginsResponse>

    • Update a user profile's core fields.

      Parameters

      • profileId: string

        Profile ID

      • updates: UpdateProfileData

        Fields to update

      • OptionalbrandOrgId: string

        Organization ID. If omitted, defaults to the org associated with the API key.

      Returns Promise<UserProfile>