Skip to content

Commit 77bc4f1

Browse files
feat: add ImmutableWebSDK class
init, page, track, identify (known + anonymous), alias, setConsent, reset, flush, shutdown. Consent-aware gating. Server reconciliation on init. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2ed9ff7 commit 77bc4f1

2 files changed

Lines changed: 421 additions & 0 deletions

File tree

packages/audience/web/src/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Main SDK class
2+
export { ImmutableWebSDK } from './sdk';
3+
4+
// Events
5+
export { AudienceEvent, IdentityProvider } from './events';
6+
export type { EventParamMap, Identity } from './events';
7+
8+
// Types
9+
export type {
10+
WebSDKConfig,
11+
ConsentLevel,
12+
UserTraits,
13+
Environment,
14+
} from './types';

0 commit comments

Comments
 (0)