For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/reference/sdk/sapi/service/index.md.
  • English
  • sapi/service

    Functions

    FunctionDescription
    provideservice/index.ts — @sfmc-bds/sdk/sapi/service 公开 API
    clearLocalProvidesservice/index.ts — @sfmc-bds/sdk/sapi/service 公开 API
    createServiceClientservice/index.ts — @sfmc-bds/sdk/sapi/service 公开 API
    setServiceModuleContextservice/index.ts — @sfmc-bds/sdk/sapi/service 公开 API
    getServiceClientservice/index.ts — @sfmc-bds/sdk/sapi/service 公开 API
    clearServiceModuleContextservice/index.ts — @sfmc-bds/sdk/sapi/service 公开 API

    Classes

    ClassDescription
    ServiceError跨模块服务调用异常(包含服务端返回的业务 code 与 HTTP status)。

    Interfaces

    InterfaceDescription
    ServiceInfo已注册跨模块服务(service)的元信息。
    ServiceClient作用域 service 客户端:moduleId/token 封闭在实例内。 inTx 探针应由配对的 DbClient.isTxRecording 提供,避免全局事务误杀。

    Type Aliases

    Type AliasDescription
    ServiceHandler进程内服务处理函数(SAPI 同进程注册)。

    Variables

    VariableDescription
    service跨模块服务注册表访问门面(兼容单例)。
    SFMC_SAPI_SERVICE_VERSION@sfmc-bds/sdk/sapi/service 子路径 semver 版本号。