@trieoh/identityx-access-sdk-ts
v0.1.7
Published
SDK focused on IdentityX API keys and capabilities
Readme
IdentityX Access SDK TS
TypeScript SDK focused on IdentityX API keys and project capabilities.
Install
pnpm add @trieoh/identityx-access-sdk-tsUsage
import { createIdentityXAccessClient } from "@trieoh/identityx-access-sdk-ts";
const client = createIdentityXAccessClient({
baseURL: "https://api.identityx.example",
apiKey: "your-api-key",
});
const response = await client.apiKeys.create("project-id", {
name: "Production key",
capabilities: [],
env: "prod",
});
const capabilities = await client.capabilities.list("project-id");
const actors = await client.actors.list("project-id");
const actor = await client.actors.getById("project-id", "actor-id");
const actorByEmail = await client.actors.getByEmail(
"project-id",
"[email protected]",
);
const createdActor = await client.actors.create("project-id", {
auth_method: "password",
type: "human",
email: "[email protected]",
});