80 lines
1.9 KiB
TypeScript
80 lines
1.9 KiB
TypeScript
// Side-effect imports — surface the registry augmentation to every
|
|
// consumer importing the package barrel.
|
|
import "./services/registry-augmentation.js";
|
|
|
|
// Error codes
|
|
export {
|
|
VAULT_PLUGIN_CODES,
|
|
VaultPluginError,
|
|
type VaultPluginErrorCode,
|
|
} from "./error-codes/error-codes.js";
|
|
|
|
// OTel instruments
|
|
export {
|
|
getVaultPluginInstruments,
|
|
resetVaultPluginInstruments,
|
|
type VaultPluginInstruments,
|
|
} from "./otel/instruments.js";
|
|
|
|
// Plugin
|
|
export { createVaultPlugin } from "./plugin/plugin.js";
|
|
|
|
// Unlock helpers
|
|
export {
|
|
defaultUnlockExtractor,
|
|
extractUnlock,
|
|
headerExtractor,
|
|
} from "./plugin/unlock.js";
|
|
|
|
// Routes
|
|
export { buildVaultRoutes } from "./routes/build-routes.js";
|
|
// Schema (DDL)
|
|
export {
|
|
applyVaultSchema,
|
|
applyVaultSchemaViaRunner,
|
|
type SurrealLikeExecutor,
|
|
VAULT_OWNERSHIP_SCHEMA,
|
|
} from "./schema/schema.js";
|
|
// Schemas
|
|
export {
|
|
type VaultPluginOptionsInput,
|
|
type VaultPluginOptionsResolved,
|
|
VaultPluginOptionsSchema,
|
|
} from "./schemas/options.js";
|
|
export {
|
|
type CreateVaultItemBody,
|
|
CreateVaultItemBodySchema,
|
|
DeleteVaultItemResponseSchema,
|
|
type DeleteVaultItemResponseType,
|
|
type UpdateVaultItemBody,
|
|
UpdateVaultItemBodySchema,
|
|
VaultItemListResponseSchema,
|
|
type VaultItemListResponseType,
|
|
VaultItemMetadataSchema,
|
|
type VaultItemParams,
|
|
VaultItemParamsSchema,
|
|
VaultItemResponseSchema,
|
|
type VaultItemResponseType,
|
|
VaultItemSchema,
|
|
VaultItemSummarySchema,
|
|
type VaultItemSummaryType,
|
|
type VaultItemType,
|
|
} from "./schemas/vault-item.js";
|
|
|
|
// Services
|
|
export {
|
|
type CreateVaultServiceOptions,
|
|
createVaultService,
|
|
type VaultService,
|
|
} from "./services/vault-service.js";
|
|
|
|
// Types
|
|
export type {
|
|
VaultHandle,
|
|
VaultItem,
|
|
VaultItemSummary,
|
|
VaultPluginConfig,
|
|
VaultPluginOptions,
|
|
VaultUnlockExtractor,
|
|
} from "./types/types.js";
|