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

    Interface Resolver

    Resolves a generated gRPC service name to an endpoint.

    SDK users normally pass a resolver in SDKOptions.resolver only when a service must use a custom endpoint. The SDK places that resolver before its conventional Nebius resolver.

    interface Resolver {
        resolve(serviceId: string, apiServiceName?: string): string;
    }

    Implemented by

    Index
    • Resolves a service ID to an address.

      Parameters

      • serviceId: string

        Sets the service ID, such as nebius.compute.v1.InstanceService.

      • OptionalapiServiceName: string

        Overrides the service-name segment when the generated service has an API annotation.

      Returns string

      A gRPC target such as compute.example.test:443. The address may contain a {domain} placeholder when a TemplateExpander will process it.

      UnknownServiceError when the resolver cannot resolve the ID.