/** * AuthSec SDK for TypeScript/JavaScript * * Enterprise-grade authentication and authorization library for JS/TS servers. * Provides OAuth 2.0, RBAC, SPIFFE workload identity, and CIBA passwordless auth. * * @example * ```ts * import { * protectedByAuthSec, * mcpTool, * runMcpServerWithOAuth, * ServiceAccessSDK, * CIBAClient, * } from '@authsec/sdk'; * * const adminTool = protectedByAuthSec({ * toolName: 'admin_dashboard', * roles: ['admin'], * description: 'Access admin dashboard', * }, async (args, session) => { * const sdk = new ServiceAccessSDK(session); * const creds = await sdk.getServiceCredentials('my-db'); * return [{ type: 'text', text: JSON.stringify(creds) }]; * }); * * runMcpServerWithOAuth({ * tools: [adminTool], * clientId: 'your-client-id', * appName: 'my-app', * }); * ``` */ export { protectedByAuthSec, mcpTool } from './decorators.js'; export { runMcpServerWithOAuth } from './mcp-server.js'; export type { RunMcpServerOptions } from './mcp-server.js'; export { configureAuth, getConfig, isConfigured, loadConfigFile } from './config.js'; export { testAuthService, testServices } from './http.js'; export { ServiceAccessSDK, ServiceAccessError } from './service-access.js'; export { AgentIdentity, AuthSecIdentityError, PendingApprovalError, ApprovalDeniedError, ConnectionRevokedError, TrustedIssuerMissingError, SubjectMappingFailedError, ResourceNotRegisteredError, CredentialInvalidError, WorkloadNotAttestedError, pollUntilApproved, } from './agent-identity.js'; export type { AgentIdentityConfig, AccessForOptions, PreferredMode, PollOptions } from './agent-identity.js'; export { CIBAClient } from './ciba.js'; export { QuickStartSVID } from './spiffe/quick-start-svid.js'; export { WorkloadAPIClient } from './spiffe/workload-api-client.js'; export { WorkloadSVID } from './spiffe/workload-svid.js'; export type { ToolHandler, ToolHandlerWithSession, ToolDefinition, RbacRequirements, McpContent, UserInfo, ServiceCredentials, AuthSecConfig, McpMessage, } from './types.js'; export { SimpleSession } from './types.js'; export declare const VERSION = "4.6.1"; export * from './runtime/index.js'; export * from './client/index.js'; //# sourceMappingURL=index.d.ts.map