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

    Interface SDKInterface

    Defines the SDK functions that generated service clients use.

    Implement this interface only when you need to provide a custom runtime to generated clients. Most applications should create an SDK instead. A generated client uses this interface to resolve its endpoint, reuse a gRPC channel, add authorization, and write logs.

    interface SDKInterface {
        logger: Logger;
        getAddressFromServiceName(
            serviceName: string,
            apiServiceName?: string,
        ): string;
        getAuthorizationProvider(): Provider | undefined;
        getClientByAddress(address: string): Client;
        parentId(): string | undefined;
    }

    Implemented by

    Index
    logger: Logger

    Logs SDK and request events.

    • Resolves a protobuf service name to a gRPC address.

      apiServiceName is the API-specific endpoint name when it differs from the protobuf service name.

      Parameters

      • serviceName: string
      • OptionalapiServiceName: string

      Returns string

    • Returns the provider that authenticates new requests, or undefined.

      Returns Provider | undefined

    • Returns one shared gRPC client for the exact address string.

      Parameters

      • address: string

      Returns Client

    • Returns the parent ID that generated requests can insert when it is absent.

      Returns string | undefined