@sailpoint/api-client

中文文档
2.2.48发布于 2026/11/02MITTypeScriptESM + CJS构建来源已验证

Official library for using the SailPoint API

原始使用文档
文档目录5 节
  1. Description
  2. Installation
  3. Create a configuration file or save your configuration as e…
  4. Examples
  5. See more uses of the SDK here

SailPoint API Client

Description

A typescript sdk for accessing the SailPoint IdentityNow REST API's.

Installation

npm install @sailpoint/api-client

Create a configuration file or save your configuration as environment variables

You can create a local configuration file using the CLI tool or you can store your configuration in environment variables

  • SAIL_BASE_URL
  • SAIL_CLIENT_ID
  • SAIL_CLIENT_SECRET

Examples

Simply import the API you want to work with, create a new configuration and get started.


import { Configuration, TransformsApi, TransformsApiCreateTransformRequest} from "@sailpoint/api-client"

const createTransform = async () => {

    let apiConfig = new Configuration()
    let api = new TransformsApi(apiConfig)
    let transform: TransformsApiCreateTransformRequest = 
    {
        transform:
        {
            name: "Test Transform",
            type: "dateFormat",
            attributes: {
                inputFormat: "MMM dd yyyy, HH:mm:ss.SSS",
                outputFormat: "yyyy/dd/MM"
            }
        }
    }
    const val = await api.createTransform(transform)
    console.log(val)
}

createTransform()

See more uses of the SDK here

版本与发布记录

@sailpoint/api-client 共发布 48 个版本,首次发布于 2026/08/26;过去 12 个月发布了 48 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.2.48latest2026/11/021 天前
2.2.472026/10/304 天前
2.2.462026/10/295 天前
2.2.452026/10/286 天前
2.2.442026/10/277 天前
2.2.432026/10/268 天前

关于 @sailpoint/api-client 的常见问题

@sailpoint/api-client 是什么?

使用SailPoint API的官方库

如何安装 @sailpoint/api-client?

在项目目录运行 npm install @sailpoint/api-client,或使用 pnpm add / yarn add / bun add。

@sailpoint/api-client 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@sailpoint/api-client 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@sailpoint/api-client 可以商用吗?

@sailpoint/api-client 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@sailpoint/api-client 还在维护吗?

最新版本 2.2.48 发布于 2026/11/02(1 天前);至今共发布 48 个版本,其中过去 12 个月发布了 48 个;首次发布于 2026/08/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。