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

    Provides one fixed access token.

    This bearer does not renew the token and does not retry authentication. Prefer a renewable credential source for long-running applications.

    import { SDK } from '@nebius/js-sdk';
    import { StaticBearer } from '@nebius/js-sdk/runtime/token/static';

    const sdk = new SDK({
    credentials: new StaticBearer(process.env.NEBIUS_TOKEN ?? ''),
    userAgentPrefix: 'example-application/1.0',
    });

    Hierarchy (View Summary)

    Indexable

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

      Provides one fixed access token.

      This bearer does not renew the token and does not retry authentication. Prefer a renewable credential source for long-running applications.

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

          Returns unknown

    Index
    $type: string = 'nebius.sdk.StaticBearer'

    Contains the fully qualified runtime type name.

    • get metricProvider(): string

      Returns the provider name for authorization metrics.

      Returns string

    • get name(): string | undefined

      Returns the stable credential name used by file-backed token caches.

      Most bearers do not have a name. Wrappers can add one with NamedBearer.

      Returns string | undefined

    • get wrapped(): Bearer | undefined

      Returns the next bearer in a wrapper chain, when this bearer wraps another source.

      Returns Bearer | undefined

    • Stops owned background work and closes the wrapped bearer.

      Parameters

      • OptionalgraceMs: number

      Returns Promise<void>