@nebius/js-sdk - v0.2.78
    Preparing search index...

    Exchanges an actor credential for an access token that acts as a service account.

    The source bearer supplies the actor token. The actor must have permission to impersonate serviceAccountId. This low-level bearer does not cache the impersonated token.

    Hierarchy (View Summary)

    Indexable

    • [key: symbol]: () => unknown

      Exchanges an actor credential for an access token that acts as a service account.

      The source bearer supplies the actor token. The actor must have permission to impersonate serviceAccountId. This low-level bearer does not cache the impersonated token.

        • (): unknown
        • Returns a JSON-safe value for logs.

          Returns unknown

    Index
    $type: "nebius.sdk.ImpersonatedBearer" = 'nebius.sdk.ImpersonatedBearer'

    Contains the fully qualified runtime type name.

    • get acquisitionBudgetMs(): number | undefined

      Returns the positive actor budget plus five seconds for token exchange. Returns undefined when the actor has no positive finite budget. Addition saturates at the largest safe integer number of milliseconds.

      Returns number | undefined

    • Stops owned background work and closes the wrapped bearer.

      Parameters

      • OptionalgraceMs: number

      Returns Promise<void>