diff --git a/src/api/types/secrets.ts b/src/api/types/secrets.ts index 62e4ea8..9afadde 100644 --- a/src/api/types/secrets.ts +++ b/src/api/types/secrets.ts @@ -1,4 +1,7 @@ -type SecretType = "shared" | "personal"; +export enum SecretType { + Shared = "shared", + Personal = "personal" +} export interface Secret { id: string; diff --git a/src/custom/secrets.ts b/src/custom/secrets.ts index 98a4886..41a101d 100644 --- a/src/custom/secrets.ts +++ b/src/custom/secrets.ts @@ -1,5 +1,4 @@ import { SecretsApi } from "../api/endpoints/secrets"; -import { Secret } from "../api/types"; import { newInfisicalError } from "./errors"; import { ListSecretsOptions, GetSecretOptions, UpdateSecretOptions, CreateSecretOptions, DeleteSecretOptions } from "../api/types/secrets"; diff --git a/src/index.ts b/src/index.ts index e997fc4..cde9a27 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,8 +13,6 @@ import EnvironmentsClient from "./custom/environments"; import ProjectsClient from "./custom/projects"; import FoldersClient from "./custom/folders"; -import * as ApiTypes from "./api/types"; - type InfisicalSDKOptions = { siteUrl?: string; }; @@ -90,10 +88,13 @@ class InfisicalSDK { } // Export main SDK class -export { InfisicalSDK, ApiTypes }; +export { InfisicalSDK }; + +export * from './api/types' // Export types and enums from schemas export { TDynamicSecretProvider, DynamicSecretProviders, + SqlProviders, } from "./custom/schemas";