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().exportSecrets({ secrets: [{ // A list of secrets to export., secretId: "<string> (Unique identifier for the secret to export.)", targetPublicKey: "<string> (Client-side public key generated by the user, to which the exported secret will be encrypted.)", encryptionSuite: "<TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1>" // encryptionSuite field, requestContext: [{ // Bind metadata to the request., key: "<string> (key field)", value: "<string> (value field)", }], }]});
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().exportSecrets({ secrets: [{ // A list of secrets to export., secretId: "<string> (Unique identifier for the secret to export.)", targetPublicKey: "<string> (Client-side public key generated by the user, to which the exported secret will be encrypted.)", encryptionSuite: "<TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1>" // encryptionSuite field, requestContext: [{ // Bind metadata to the request., key: "<string> (key field)", value: "<string> (value field)", }], }]});
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().exportSecrets({ secrets: [{ // A list of secrets to export., secretId: "<string> (Unique identifier for the secret to export.)", targetPublicKey: "<string> (Client-side public key generated by the user, to which the exported secret will be encrypted.)", encryptionSuite: "<TRANSPORT_ENCRYPTION_SUITE_ENCLAVE_ENCRYPT_V1>" // encryptionSuite field, requestContext: [{ // Bind metadata to the request., key: "<string> (key field)", value: "<string> (value field)", }], }]});