Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | INFRASTRUCTURE & AUTOMATION4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : MacLustr Identity8 * File : sdk/typescript/src/index.ts9 * Module : sdk10 * Repository : https://git.spboucher.ai/maclustr-identity11 * Project Website : https://identity.spboucher.ai12 * Created : 2026-12-0113 * Last Modified : 2026-12-0114 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: admin@spboucher.ai23 * Technical Contact: dev@spboucher.ai24 * Security/Admin : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142/**43 * @maclustr/identity — server entry.44 *45 * This entry needs a secret API key and must run on your server only.46 * For browser code use `@maclustr/identity/browser` (it never takes a secret key).47 */48export { MacLustrIdentity, MacLustrIdentity as default, VerificationSessions, Verifications, Webhooks, DEFAULT_BASE_URL, SDK_VERSION, backoffDelayMs, shouldRetry, isBrowserContext } from "./client";49export type { MacLustrIdentityOptions, RequestOptions } from "./client";50export {51 MacLustrIdentityError,52 InvalidRequestError,53 AuthenticationError,54 PermissionError,55 NotFoundError,56 ConflictError,57 RateLimitError,58 ApiServerError,59 ConnectionError,60 SignatureVerificationError,61} from "./errors";62export { constructEvent, verifySignature, signPayload, parseSignatureHeader, timingSafeEqual, DEFAULT_TOLERANCE_SEC, SIGNATURE_HEADER } from "./signature";63export type { RawBody } from "./signature";64export { isDecisionEvent, isSessionEvent, sessionEndedWithoutDecision, RETRYABLE_SESSION_STATUSES } from "./types";65export type * from "./types";66