@pontx/wps-365
v0.1.1
Published
Type-safe WPS 365 OpenAPI SDK and CLI generated from the product-owned PontxSpec
Downloads
353
Maintainers
Readme
@pontx/wps-365
Type-safe WPS 365 OpenAPI SDK and CLI generated from the product-owned PontxSpec (Kingsoft Office Open APIs v7, 826 Endpoints / 3,119 Schemas, 24 controllers).
Install
pnpm add @pontx/wps-365 # SDK
pnpm add --global @pontx/wps-365 # CLI (pontx-wps-365)SDK usage
import { createWps365Client } from "@pontx/wps-365";
const client = createWps365Client({
userToken: process.env.WPS365_USER_ACCESS_TOKEN, // delegated (user) token
});
const calendars = await client.calendars.calendarList({});Authentication is OAuth2 dual-channel:
app(client credentials):WPS365_APP_CLIENT_ID/WPS365_APP_CLIENT_SECRETdelegated(user authorization):WPS365_USER_ACCESS_TOKEN
Credentials are read from the caller environment only and are never logged or committed. All calls are caller-direct; this SDK does not proxy, cache, or aggregate WPS 365 data.
CLI
pontx-wps-365 list apis
pontx-wps-365 call calendars calendarList --dry-run --curl
pontx-wps-365 call calendars calendarEventCreate <calendar_id> --body '{"summary":"Example"}'Always use --dry-run first. Mutations require exact request-bound
confirmation; the CLI never executes a mutation without it.
License
MIT. See LICENSE and NOTICE for upstream attribution and boundaries.
