Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

apideck-node顶层甲板节点

Agent Skill

apideck-node 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

303

周安装

13

GitHub Stars

2

下载量

106
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:apideck-node(顶层甲板节点)
来源仓库:https://github.com/apideck-libraries/api-skills
仓库路径:skills/apideck-node
安装命令:
npx skills add https://github.com/apideck-libraries/api-skills --skill apideck-node
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/apideck-libraries/api-skills --skill apideck-node

简介

TypeScript/JavaScript 对接 Apideck 的统一 API SDK。

  • 通过 npm 安装 @apideck/unify 获得完整类型定义。
  • 支持会计、CRM、HRIS、文件存储等多领域连接器。
  • 所有请求均需携带认证头与指定服务标识符。apideck-node 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 推荐在服务端使用此 SDK 确保密钥安全。

SKILL.md

Apideck TypeScript SDK Skill

Overview

The Apideck Unified API provides a single integration layer to connect with 200+ third-party services across accounting, CRM, HRIS, file storage, ATS, e-commerce, and more. The official TypeScript SDK (@apideck/unify) provides typed clients for all unified APIs.

Key capabilities:

  • Accounting - Invoices, bills, payments, ledger accounts, journal entries, tax rates, balance sheets, P&L
  • CRM - Contacts, companies, leads, opportunities, activities, pipelines, notes
  • HRIS - Employees, departments, payrolls, time-off requests, schedules
  • File Storage - Files, folders, drives, shared links, upload sessions
  • ATS - Jobs, applicants, applications
  • Vault - Connection management, OAuth flows, custom field mapping
  • Vault JS - Embeddable modal UI for users to authorize connectors and manage settings
  • Webhook - Event subscriptions and real-time notifications

Installation

npm add @apideck/unify

Requires Node.js 18+. The SDK is fully typed with TypeScript definitions.

IMPORTANT RULES

  • ALWAYS use the @apideck/unify SDK. DO NOT make raw fetch/axios calls to the Apideck API.
  • ALWAYS pass apiKey, appId, and consumerId when initializing the client. These are required for all API calls.
  • ALWAYS set the APIDECK_API_KEY environment variable rather than hardcoding API keys.
  • USE serviceId to specify which downstream connector to use (e.g., "salesforce", "quickbooks", "xero"). If a consumer has multiple connections for an API, serviceId is required.
  • USE cursor-based pagination with for await...of for iterating large result sets. DO NOT implement manual pagination.
  • USE the filter parameter to narrow results server-side. DO NOT fetch all records and filter client-side.
  • USE the fields parameter to request only the columns you need. This reduces response size and improves performance.
  • ALWAYS handle errors with try/catch. The SDK throws typed errors for different HTTP status codes.
  • DO NOT store Apideck API keys, App IDs, or Consumer IDs in source code. Use environment variables or a secrets manager.

Quick Start

import { Apideck } from "@apideck/unify";

const apideck = new Apideck({
  apiKey: process.env["APIDECK_API_KEY"] ?? "",
  appId: "your-app-id",
  consumerId: "your-consumer-id",
});

// List CRM contacts
const { data } = await apideck.crm.contacts.list({
  limit: 20,
  filter: { email: "john@example.com" },
});

for (const contact of data) {
  console.log(contact.name, contact.emails);
}

SDK Patterns

Client Setup

import { Apideck } from "@apideck/unify";

const apideck = new Apideck({
  apiKey: process.env["APIDECK_API_KEY"] ?? "",
  appId: "your-app-id",
  consumerId: "your-consumer-id",
});

The consumerId identifies the end-user whose connections are being used. In multi-tenant apps, set this per-request or per-user session.

CRUD Operations

All resources follow the same pattern: apideck.{api}.{resource}.{operation}().

// LIST - retrieve multiple records
const { data } = await apideck.crm.contacts.list({
  serviceId: "salesforce",
  limit: 20,
  filter: { email: "john@example.com" },
  sort: { by: "updated_at", direction: "desc" },
  fields: "id,name,email,phone_numbers",
});

// CREATE - create a new record
const { data: created } = await apideck.crm.contacts.create({
  serviceId: "salesforce",
  contact: {
    first_name: "John",
    last_name: "Doe",
    emails: [{ email: "john@example.com", type: "primary" }],
    phone_numbers: [{ number: "+1234567890", type: "mobile" }],
  },
});
console.log(created.id); // "contact_abc123"

// GET - retrieve a single record
const { data: contact } = await apideck.crm.contacts.get({
  id: "contact_abc123",
  serviceId: "salesforce",
});

// UPDATE - modify an existing record
const { data: updated } = await apideck.crm.contacts.update({
  id: "contact_abc123",
  serviceId: "salesforce",
  contact: { first_name: "Jane" },
});

// DELETE - remove a record
await apideck.crm.contacts.delete({
  id: "contact_abc123",
  serviceId: "salesforce",
});

Pagination

Use async iteration to automatically handle cursor-based pagination:

const result = await apideck.accounting.invoices.list({
  serviceId: "quickbooks",
  limit: 50,
});

// Automatically fetches next pages
for await (const page of result) {
  for (const invoice of page.data) {
    console.log(invoice.number, invoice.total);
  }
}

Or handle pagination manually:

let cursor: string | undefined;
do {
  const { data, meta } = await apideck.accounting.invoices.list({
    serviceId: "quickbooks",
    limit: 50,
    cursor,
  });
  for (const invoice of data) {
    console.log(invoice.number);
  }
  cursor = meta?.cursors?.next ?? undefined;
} while (cursor);

Error Handling

import { Apideck } from "@apideck/unify";
import * as errors from "@apideck/unify/models/errors";

try {
  const { data } = await apideck.crm.contacts.get({ id: "invalid" });
} catch (e) {
  if (e instanceof errors.BadRequestResponse) {
    console.error("Bad request:", e.message);
  } else if (e instanceof errors.UnauthorizedResponse) {
    console.error("Invalid API key or missing credentials");
  } else if (e instanceof errors.NotFoundResponse) {
    console.error("Record not found");
  } else if (e instanceof errors.PaymentRequiredResponse) {
    console.error("API limit reached or payment required");
  } else if (e instanceof errors.UnprocessableResponse) {
    console.error("Validation error:", e.message);
  } else {
    throw e;
  }
}

Common Parameters

Most list endpoints accept these parameters:

ParameterTypeDescription
serviceIdstringDownstream connector ID (e.g., "quickbooks", "salesforce")
limitnumberMax results per page (1-200, default 20)
cursorstringPagination cursor from previous response
filterobjectResource-specific filter criteria
sortobject`{by: string, direction: "asc" \"desc"}`
fieldsstringComma-separated field names to return
passThroughobjectPass-through query parameters for the downstream API

Pass-Through Parameters

When the unified model doesn't cover a connector-specific field, use passThrough:

const { data } = await apideck.accounting.invoices.list({
  serviceId: "quickbooks",
  passThrough: {
    search: "overdue",
  },
});

For creating/updating, use pass_through in the request body to send connector-specific fields:

const { data } = await apideck.crm.contacts.create({
  serviceId: "salesforce",
  contact: {
    first_name: "John",
    last_name: "Doe",
    pass_through: [
      {
        service_id: "salesforce",
        operation_id: "contactsAdd",
        extend_object: { custom_sf_field__c: "value" },
      },
    ],
  },
});

API Namespaces

The SDK organizes APIs by namespace. See the reference files for detailed endpoints:

NamespaceReferenceResources
apideck.accounting.*references/accounting-api.mdinvoices, bills, payments, customers, suppliers, ledgerAccounts, journalEntries, taxRates, creditNotes, purchaseOrders, balanceSheet, profitAndLoss, and more
apideck.crm.*references/crm-api.mdcontacts, companies, leads, opportunities, activities, notes, pipelines, users
apideck.hris.*references/hris-api.mdemployees, companies, departments, payrolls, timeOffRequests
apideck.fileStorage.*references/file-storage-api.mdfiles, folders, drives, driveGroups, sharedLinks, uploadSessions
apideck.ats.*references/ats-api.mdapplicants, applications, jobs
apideck.vault.*references/vault-api.mdconnections, connectionSettings, consumers, customMappings, logs, sessions
apideck.webhook.*references/webhook-api.mdwebhooks, eventLogs

Vault JS (Embeddable UI)

Use @apideck/vault-js to embed a pre-built modal that lets your users authorize connectors and manage integration settings. Session creation must happen server-side.

// 1. Server-side: create a session
const { data } = await apideck.vault.sessions.create({
  session: {
    consumer_metadata: { account_name: "Acme Corp", user_name: "John Doe", email: "john@acme.com" },
    redirect_uri: "https://myapp.com/integrations",
    settings: { unified_apis: ["accounting", "crm"] },
    theme: { vault_name: "My App", primary_color: "#4F46E5" },
  },
});

// 2. Client-side: open the modal
import { ApideckVault } from "@apideck/vault-js";

ApideckVault.open({
  token: sessionToken,
  onConnectionChange: (connection) => console.log("Changed:", connection),
  onClose: () => console.log("Closed"),
});

See references/vault-js.md for full configuration options, theming, React integration, and event callbacks.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.94%
按下载量换算39

Claude

32.96%
按下载量换算35

Cursor

18.04%
按下载量换算19

Gemini CLI

9.35%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills