permify-typescript is the official TypeScript client for Permify, an open-source authorization service designed for building fine-grained and scalable authorization systems. This package provides a programmatic interface to interact with the Permify API, covering operations for schema, relationships, permissions, and tenancy. As of version 1.6.9, the client's versioning now directly aligns with the upstream Permify API/OpenAPI version, ensuring closer synchronization with the service's capabilities. It is automatically generated by the OpenAPI Generator project, which ensures a consistent and up-to-date interface to the Permify API. The library supports Node.js environments version 18 and higher, shipping with full TypeScript type definitions for an enhanced developer experience.
npm install permify-typescriptVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the Permify TypeScript client, configure it with a base path and an authorization header using environment variables, and then create a new tenant using the TenancyApi client.
Consult the `permify-typescript` GitHub release notes or changelog for specific SDK-level breaking changes rather than solely relying on version number increments to determine client compatibility.
Upgrade your Node.js environment to version 18 or newer. Consider using a Node.js version manager like `nvm` to easily switch between versions.
Ensure the `Authorization` header is correctly set in the `Configuration` object, providing a valid Permify API key or token, preferably via environment variables (`process.env.PERMIFY_API_KEY`).
Verify that the Permify server is running and listening on the configured address and port (e.g., `http://localhost:3476`). Check firewall settings or network connectivity issues.
Double-check that your `PERMIFY_API_KEY` environment variable (or hardcoded token) is correct and that the `Authorization` header is properly formatted (e.g., `Bearer YOUR_TOKEN`).
Ensure you are using ESM `import` statements (e.g., `import { Configuration } from 'permify-typescript';` or `import * as permify from 'permify-typescript';`) and that your Node.js project is configured to run ESM (e.g., by setting `"type": "module"` in your `package.json`).No dependency data recorded yet.