import { Turnkey } from "@turnkey/sdk-server";const turnkeyClient = new Turnkey({ apiBaseUrl: "https://api.turnkey.com", apiPublicKey: process.env.API_PUBLIC_KEY!, apiPrivateKey: process.env.API_PRIVATE_KEY!, defaultOrganizationId: process.env.ORGANIZATION_ID!,});const response = await turnkeyClient.apiClient().createPolicy({ policyName: "<string> (Human-readable name for a Policy.)", effect: "<EFFECT_ALLOW>" // effect field, condition: "<string> (The condition expression that triggers the Effect)", consensus: "<string> (The consensus expression that triggers the Effect)", notes: "<string> (Notes for a Policy.)"});
import { Turnkey } from "@turnkey/sdk-server";const turnkeyClient = new Turnkey({ apiBaseUrl: "https://api.turnkey.com", apiPublicKey: process.env.API_PUBLIC_KEY!, apiPrivateKey: process.env.API_PRIVATE_KEY!, defaultOrganizationId: process.env.ORGANIZATION_ID!,});const response = await turnkeyClient.apiClient().createPolicy({ policyName: "<string> (Human-readable name for a Policy.)", effect: "<EFFECT_ALLOW>" // effect field, condition: "<string> (The condition expression that triggers the Effect)", consensus: "<string> (The consensus expression that triggers the Effect)", notes: "<string> (Notes for a Policy.)"});