posthog-node 5.73.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/MIGRATION.md +556 -0
  2. package/README.md +3 -1
  3. package/dist/ai-capture/routing.d.ts +0 -3
  4. package/dist/ai-capture/routing.d.ts.map +1 -1
  5. package/dist/ai-capture/routing.js +2 -14
  6. package/dist/ai-capture/routing.mjs +1 -4
  7. package/dist/capture-lane/lane.d.ts +109 -0
  8. package/dist/capture-lane/lane.d.ts.map +1 -0
  9. package/dist/capture-lane/lane.js +308 -0
  10. package/dist/capture-lane/lane.mjs +270 -0
  11. package/dist/capture-lane/limits.d.ts +7 -0
  12. package/dist/capture-lane/limits.d.ts.map +1 -0
  13. package/dist/{capture-v1/config.js → capture-lane/limits.js} +13 -11
  14. package/dist/capture-lane/limits.mjs +4 -0
  15. package/dist/capture-lane/settings.d.ts +30 -0
  16. package/dist/capture-lane/settings.d.ts.map +1 -0
  17. package/dist/capture-lane/settings.js +100 -0
  18. package/dist/capture-lane/settings.mjs +47 -0
  19. package/dist/capture-v1/compression.d.ts +18 -0
  20. package/dist/capture-v1/compression.d.ts.map +1 -0
  21. package/dist/capture-v1/compression.js +70 -0
  22. package/dist/capture-v1/compression.mjs +26 -0
  23. package/dist/capture-v1/errors.d.ts +23 -7
  24. package/dist/capture-v1/errors.d.ts.map +1 -1
  25. package/dist/capture-v1/errors.js +37 -8
  26. package/dist/capture-v1/errors.mjs +29 -6
  27. package/dist/capture-v1/sender.d.ts +63 -23
  28. package/dist/capture-v1/sender.d.ts.map +1 -1
  29. package/dist/capture-v1/sender.js +281 -74
  30. package/dist/capture-v1/sender.mjs +275 -77
  31. package/dist/capture-v1/serialize.d.ts +28 -0
  32. package/dist/capture-v1/serialize.d.ts.map +1 -0
  33. package/dist/capture-v1/serialize.js +82 -0
  34. package/dist/capture-v1/serialize.mjs +38 -0
  35. package/dist/capture-v1/transform.d.ts +10 -25
  36. package/dist/capture-v1/transform.d.ts.map +1 -1
  37. package/dist/capture-v1/transform.js +33 -64
  38. package/dist/capture-v1/transform.mjs +28 -53
  39. package/dist/capture-v1/types.d.ts +16 -14
  40. package/dist/capture-v1/types.d.ts.map +1 -1
  41. package/dist/capture-v1/types.js +27 -1
  42. package/dist/capture-v1/types.mjs +3 -1
  43. package/dist/capture-v1/uuid.d.ts +9 -0
  44. package/dist/capture-v1/uuid.d.ts.map +1 -0
  45. package/dist/capture-v1/uuid.js +75 -0
  46. package/dist/capture-v1/uuid.mjs +34 -0
  47. package/dist/client.d.ts +201 -94
  48. package/dist/client.d.ts.map +1 -1
  49. package/dist/client.js +485 -246
  50. package/dist/client.mjs +485 -246
  51. package/dist/compression.node.d.ts +13 -0
  52. package/dist/compression.node.d.ts.map +1 -0
  53. package/dist/{capture-v1/routing.js → compression.node.js} +23 -16
  54. package/dist/compression.node.mjs +18 -0
  55. package/dist/entrypoints/index.node.d.ts +2 -0
  56. package/dist/entrypoints/index.node.d.ts.map +1 -1
  57. package/dist/entrypoints/index.node.js +11 -4
  58. package/dist/entrypoints/index.node.mjs +4 -0
  59. package/dist/event-defaults.d.ts +46 -0
  60. package/dist/event-defaults.d.ts.map +1 -0
  61. package/dist/event-defaults.js +141 -0
  62. package/dist/event-defaults.mjs +79 -0
  63. package/dist/exports.d.ts +3 -0
  64. package/dist/exports.d.ts.map +1 -1
  65. package/dist/exports.js +22 -11
  66. package/dist/exports.mjs +1 -0
  67. package/dist/extensions/context/context.d.ts +0 -1
  68. package/dist/extensions/context/context.d.ts.map +1 -1
  69. package/dist/extensions/context/context.js +4 -3
  70. package/dist/extensions/context/context.mjs +4 -3
  71. package/dist/extensions/context/event-context.d.ts.map +1 -1
  72. package/dist/extensions/context/event-context.js +3 -0
  73. package/dist/extensions/context/event-context.mjs +3 -0
  74. package/dist/extensions/context/types.d.ts +9 -1
  75. package/dist/extensions/context/types.d.ts.map +1 -1
  76. package/dist/extensions/error-tracking/index.d.ts +1 -1
  77. package/dist/extensions/error-tracking/index.d.ts.map +1 -1
  78. package/dist/extensions/error-tracking/index.js +71 -7
  79. package/dist/extensions/error-tracking/index.mjs +75 -11
  80. package/dist/extensions/express.d.ts +8 -0
  81. package/dist/extensions/express.d.ts.map +1 -1
  82. package/dist/extensions/express.js +3 -3
  83. package/dist/extensions/express.mjs +4 -4
  84. package/dist/extensions/fetch-request.d.ts.map +1 -1
  85. package/dist/extensions/fetch-request.js +2 -2
  86. package/dist/extensions/fetch-request.mjs +3 -3
  87. package/dist/extensions/nestjs.d.ts.map +1 -1
  88. package/dist/extensions/nestjs.js +7 -4
  89. package/dist/extensions/nestjs.mjs +8 -5
  90. package/dist/extensions/tracing-headers.d.ts +7 -0
  91. package/dist/extensions/tracing-headers.d.ts.map +1 -1
  92. package/dist/extensions/tracing-headers.js +11 -1
  93. package/dist/extensions/tracing-headers.mjs +9 -2
  94. package/dist/feature-flag-evaluations.d.ts +5 -5
  95. package/dist/feature-flag-evaluations.d.ts.map +1 -1
  96. package/dist/feature-flag-evaluations.js +16 -9
  97. package/dist/feature-flag-evaluations.mjs +16 -9
  98. package/dist/flag-events.d.ts +1 -1
  99. package/dist/flag-events.d.ts.map +1 -1
  100. package/dist/flag-events.js +2 -2
  101. package/dist/flag-events.mjs +2 -2
  102. package/dist/flags-response.d.ts +2 -0
  103. package/dist/flags-response.d.ts.map +1 -1
  104. package/dist/flags-response.js +6 -0
  105. package/dist/flags-response.mjs +4 -1
  106. package/dist/types.d.ts +192 -27
  107. package/dist/types.d.ts.map +1 -1
  108. package/dist/types.js +1 -0
  109. package/dist/types.mjs +1 -0
  110. package/dist/version.d.ts +1 -1
  111. package/dist/version.d.ts.map +1 -1
  112. package/dist/version.js +1 -1
  113. package/dist/version.mjs +1 -1
  114. package/package.json +5 -4
  115. package/src/ai-capture/routing.ts +0 -6
  116. package/src/capture-lane/lane.ts +414 -0
  117. package/src/capture-lane/limits.ts +8 -0
  118. package/src/capture-lane/settings.ts +119 -0
  119. package/src/capture-v1/compression.ts +50 -0
  120. package/src/capture-v1/errors.ts +50 -11
  121. package/src/capture-v1/sender.ts +405 -111
  122. package/src/capture-v1/serialize.ts +77 -0
  123. package/src/capture-v1/transform.ts +59 -92
  124. package/src/capture-v1/types.ts +19 -15
  125. package/src/capture-v1/uuid.ts +53 -0
  126. package/src/client.ts +885 -446
  127. package/src/compression.node.ts +30 -0
  128. package/src/entrypoints/index.node.ts +6 -0
  129. package/src/event-defaults.ts +177 -0
  130. package/src/exports.ts +3 -0
  131. package/src/extensions/context/context.ts +4 -4
  132. package/src/extensions/context/event-context.ts +3 -1
  133. package/src/extensions/context/types.ts +10 -1
  134. package/src/extensions/error-tracking/index.ts +51 -7
  135. package/src/extensions/express.ts +12 -3
  136. package/src/extensions/fetch-request.ts +7 -3
  137. package/src/extensions/nestjs.ts +9 -5
  138. package/src/extensions/tracing-headers.ts +26 -7
  139. package/src/feature-flag-evaluations.ts +31 -23
  140. package/src/flag-events.ts +5 -2
  141. package/src/flags-response.ts +6 -1
  142. package/src/types.ts +212 -44
  143. package/src/version.ts +1 -1
  144. package/dist/ai-capture/batching.d.ts +0 -11
  145. package/dist/ai-capture/batching.d.ts.map +0 -1
  146. package/dist/ai-capture/batching.js +0 -77
  147. package/dist/ai-capture/batching.mjs +0 -36
  148. package/dist/capture-v1/config.d.ts +0 -11
  149. package/dist/capture-v1/config.d.ts.map +0 -1
  150. package/dist/capture-v1/config.mjs +0 -8
  151. package/dist/capture-v1/routing.d.ts +0 -21
  152. package/dist/capture-v1/routing.d.ts.map +0 -1
  153. package/dist/capture-v1/routing.mjs +0 -7
  154. package/src/ai-capture/batching.ts +0 -47
  155. package/src/capture-v1/config.ts +0 -18
  156. package/src/capture-v1/routing.ts +0 -28
package/dist/client.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { FeatureFlagValue, JsonType, PostHogCaptureOptions, PostHogCoreStateless, PostHogEventProperties, PostHogFetchOptions, PostHogFetchResponse, PostHogFeatureFlagsResponse, PostHogFlagsAndPayloadsResponse, PostHogPersistedProperty, type CaptureLogger, type CaptureLogOptions, Properties, RetriableOptions } from '@posthog/core';
1
+ import { FeatureFlagValue, JsonType, PostHogCaptureOptions, PostHogCoreStateless, PostHogEventProperties, PostHogFetchOptions, PostHogFetchResponse, PostHogFeatureFlagsResponse, PostHogFlagsAndPayloadsResponse, PostHogPersistedProperty, type CaptureLogger, type CaptureLogOptions, Properties } from '@posthog/core';
2
2
  import type { Metrics, PostHogFeatureFlagDetails, Span, SpanContextManager, StartSpanOptions } from '@posthog/core';
3
- import { AllFlagsOptions, EventMessage, FeatureFlagEvaluationRuntime, FeatureFlagResult, FlagEvaluationOptions, GroupIdentifyMessage, IdentifyMessage, IPostHog, OverrideFeatureFlagsOptions, PostHogOptions, SetPersonPropertiesMessage, UnsetPersonPropertiesMessage } from './types';
3
+ import { AllFlagsOptions, CaptureExceptionOptions, EventMessage, EventOptions, FeatureFlagEvaluationRuntime, FeatureFlagResult, FlagEvaluationOptions, GroupIdentifyMessage, IdentifyMessage, IPostHog, OverrideFeatureFlagsOptions, PostHogOptions, PreparedEventMessage, SetPersonPropertiesMessage, UnsetPersonPropertiesMessage } from './types';
4
4
  import { FeatureFlagEvaluations, FlagCalledEventParams } from './feature-flag-evaluations';
5
5
  import ErrorTracking from './extensions/error-tracking';
6
6
  import { ContextData, ContextOptions, IPostHogContext } from './extensions/context/types';
7
+ import { type CaptureCompressor } from './capture-v1/compression';
7
8
  import type { Emails } from './emails/types';
8
9
  /**
9
10
  * @internal — clears the process-wide deprecation dedup set. Test-only.
@@ -23,15 +24,15 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
23
24
  /** Resolved once on first event; `null` means no service name is configured. */
24
25
  private _serviceName?;
25
26
  private _spanContext?;
26
- private readonly captureMode;
27
- private _v1Sender?;
27
+ private readonly _captureLanes;
28
+ private readonly _captureSettings;
28
29
  private _emails?;
29
30
  private _isShutdown;
30
31
  /** Whether this client captures full AI content: see `enableFullAiCapture` in `PostHogOptions`. */
31
32
  readonly enableFullAiCapture: boolean;
32
33
  /** Whether PostHog AI integrations redact content: see `privacyMode` in `PostHogOptions`. */
33
34
  readonly privacyMode: boolean;
34
- private _aiCaptureRouteActive;
35
+ private _globalOptions;
35
36
  private _flagOverrides?;
36
37
  private _payloadOverrides?;
37
38
  private _minimalFlagCalledEvents;
@@ -78,16 +79,53 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
78
79
  * @param options - Configuration options for the client
79
80
  */
80
81
  constructor(apiKey: string, options?: PostHogOptions);
82
+ /** Queues the event on its capture lane instead of the core queue. */
81
83
  protected enqueue(type: string, message: any, options?: PostHogCaptureOptions, explicitRoute?: string): void;
84
+ /** Sends the event through its capture lane's sender, without queueing it. */
85
+ protected sendImmediate(type: string, message: any, options?: PostHogCaptureOptions, explicitRoute?: string): Promise<void>;
86
+ private _prepareLaneMessage;
87
+ /**
88
+ * The canonical form of a caller's event uuid, or undefined when there is none to keep. An
89
+ * invalid uuid is replaced with a generated one and a warning that never repeats the value.
90
+ */
91
+ private _canonicalEventUuid;
82
92
  /**
83
93
  * Concurrent so a serverless handler waits for one round trip, not two. A
84
94
  * failed span export leaves the spans queued rather than rejecting, since
85
95
  * callers already treat `flush()` as safe to leave unwrapped.
86
96
  */
87
97
  private _flushEventsAndSpans;
88
- protected flushAutomatic(): Promise<void>;
98
+ /**
99
+ * Sends all queued events and spans, and resolves when every send has finished.
100
+ * It does not reject when delivery fails: those failures arrive on the `'error'` event.
101
+ *
102
+ * It has no overall timeout. In an AWS Lambda handler, race it against the time the invocation
103
+ * has left, and keep 100 ms to return. The race limits the wait. It does not cancel the flush.
104
+ *
105
+ * @example
106
+ * ```ts
107
+ * const remainingMs = Math.max(0, context.getRemainingTimeInMillis() - 100)
108
+ * let timer: ReturnType<typeof setTimeout> | undefined
109
+ * try {
110
+ * await Promise.race([
111
+ * client.flush(),
112
+ * new Promise((_, reject) => {
113
+ * timer = setTimeout(() => reject(new Error('PostHog flush timed out')), remainingMs)
114
+ * }),
115
+ * ])
116
+ * } catch (err) {
117
+ * console.error('PostHog flush failed', err)
118
+ * } finally {
119
+ * clearTimeout(timer)
120
+ * }
121
+ * ```
122
+ */
89
123
  flush(): Promise<void>;
90
- private _flushKeepingRuntimeAlive;
124
+ /** Every lane flushes concurrently, so a slow lane only delays this promise, not the other lanes' sends. */
125
+ private _flushCaptureLanes;
126
+ /** A flush a lane started on its own, from its timer or `flushAt`. */
127
+ private _onLaneBackgroundFlush;
128
+ private _keepRuntimeAlive;
91
129
  /**
92
130
  * Hands a metrics flush to `waitUntil` so a serverless invocation does not end before the flush timer fires.
93
131
  * Request-triggered flushes share one queued send and wait out a metrics backoff.
@@ -161,28 +199,20 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
161
199
  * @returns Promise resolving to the fetch response
162
200
  */
163
201
  fetch(url: string, options: PostHogFetchOptions): Promise<PostHogFetchResponse>;
202
+ /** The lane for `route`; `captureAi` events use the AI lane, every other event the analytics lane. */
203
+ private _captureLane;
204
+ private _captureLaneConfig;
205
+ /** Emits each error; with no `'error'` listener, logs `summary` once instead, since the events are lost. */
206
+ private _reportCaptureLoss;
164
207
  /**
165
- * Route an event to its queue. In v1 mode `$ai_*` events go to the isolated {@link AI_ROUTE}
166
- * (legacy transport) and everything else to {@link ANALYTICS_ROUTE} (Capture V1); in v0 mode
167
- * every event stays on {@link ANALYTICS_ROUTE}, which maps to the historical queue. Routing runs
168
- * on the post-`before_send`, normalized event name (core calls this after `processBeforeEnqueue`).
169
- */
170
- protected getQueueRouteKey(message: PostHogEventProperties): string;
171
- protected persistedQueueKeyForRoute(route: string): PostHogPersistedProperty;
172
- protected getActiveQueueRoutes(): string[];
173
- protected getBatchEndpointPath(route: string): string;
174
- /**
175
- * Capture submission seam shared by the batched (`_flush`) and immediate (`sendImmediate`)
176
- * paths. Events are routed to homogeneous per-route queues at enqueue time, so a batch here is
177
- * never mixed: the {@link AI_ROUTE} (and all of v0 mode) uses the legacy `/batch/` transport,
178
- * which throws so `_flush` can shrink/persist/retry its own queue; the {@link ANALYTICS_ROUTE}
179
- * in v1 mode uses the Capture V1 endpoint. Because the routes flush independently, a v0/AI leg
180
- * failure can never re-send analytics events already accepted on the V1 leg.
208
+ * Compresses capture request bodies. The edge build uses CompressionStream; the Node
209
+ * entrypoint overrides this with node:zlib.
210
+ *
211
+ * @internal
181
212
  */
182
- protected sendBatch(batchMessages: (PostHogEventProperties | undefined)[], retryOptions?: Partial<RetriableOptions>, route?: string): Promise<void>;
183
- private sendAiCaptureBatch;
184
- private sendAiSubBatch;
185
- private getV1Sender;
213
+ protected captureCompressor(): CaptureCompressor;
214
+ private captureSenderConfig;
215
+ private warnIfCaptureModeSet;
186
216
  /**
187
217
  * Get the library version from package.json.
188
218
  *
@@ -417,25 +447,17 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
417
447
  read: (body: unknown) => PostHogFeatureFlagsResponse;
418
448
  };
419
449
  /**
420
- * Returns the common properties attached to every captured event.
421
- *
422
- * @remarks
423
- * Extends the shared core properties (`$lib`, `$lib_version`) with
424
- * `$is_server: true` so that events emitted from the server-side SDKs
425
- * (posthog-node and posthog-edge, which both extend this class) are
426
- * distinguishable from browser and react-native events. Browser and
427
- * react-native clients do not extend `PostHogBackendClient`, so they
428
- * never receive this property.
429
- *
430
- * This is controlled by the `isServer` option, which defaults to `true`.
431
- * When `isServer` is `false` (e.g. when using the SDK as a client/CLI), the
432
- * `$is_server` property is omitted entirely so the device OS is attributed
433
- * normally.
434
- *
435
- * @returns The common event properties, including `$is_server: true` when
436
- * the `isServer` option is enabled.
450
+ * The properties the SDK adds to an event: `$is_server` (unless the `isServer` option is
451
+ * `false`), `$geoip_disable` (when the `disableGeoip` option is on), feature flag properties,
452
+ * and for `$exception` events the active OpenTelemetry trace ids and the injected release id.
453
+ * They fill only the keys every other layer left unset.
454
+ */
455
+ private _sdkEventProperties;
456
+ /**
457
+ * `$feature/<key>` and `$active_feature_flags` from a `flags` snapshot or, when there is none,
458
+ * from `sendFeatureFlags`. Any failure gives no flag properties, and the event is still sent.
437
459
  */
438
- protected getCommonEventProperties(): PostHogEventProperties;
460
+ private _flagEventProperties;
439
461
  /**
440
462
  * Enable the PostHog client (opt-in).
441
463
  *
@@ -486,8 +508,10 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
486
508
  * @param enabled - Whether to enable debug logging
487
509
  */
488
510
  debug(enabled?: boolean): void;
511
+ protected describeDebugPayload(payload: unknown): unknown;
489
512
  private _warnIfInvalidCapture;
490
513
  private _sendPreparedEvent;
514
+ private _dropUnreadableEvent;
491
515
  _capturePreparedEvent(props: EventMessage, immediate: boolean): Promise<void>;
492
516
  /**
493
517
  * Capture an event manually.
@@ -610,7 +634,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
610
634
  *
611
635
  * @param data - The identify data containing distinctId and properties
612
636
  */
613
- identify({ distinctId, properties, disableGeoip }: IdentifyMessage): void;
637
+ identify({ distinctId, properties, disableGeoip, options }: IdentifyMessage): void;
614
638
  /**
615
639
  * Identify a user and set their properties immediately (synchronously).
616
640
  *
@@ -631,7 +655,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
631
655
  * @param data - The identify data containing distinctId and properties
632
656
  * @returns Promise that resolves when the identify is processed
633
657
  */
634
- identifyImmediate({ distinctId, properties, disableGeoip }: IdentifyMessage): Promise<void>;
658
+ identifyImmediate({ distinctId, properties, disableGeoip, options }: IdentifyMessage): Promise<void>;
635
659
  /**
636
660
  * Set properties on a person profile.
637
661
  *
@@ -648,7 +672,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
648
672
  *
649
673
  * @param data - The data containing distinctId and properties to set
650
674
  */
651
- setPersonProperties({ distinctId, properties, propertiesOnce }: SetPersonPropertiesMessage): void;
675
+ setPersonProperties({ distinctId, properties, propertiesOnce, options }: SetPersonPropertiesMessage): void;
652
676
  /**
653
677
  * Remove properties from a person profile.
654
678
  *
@@ -664,7 +688,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
664
688
  *
665
689
  * @param data - The data containing distinctId and property names to unset
666
690
  */
667
- unsetPersonProperties({ distinctId, properties }: UnsetPersonPropertiesMessage): void;
691
+ unsetPersonProperties({ distinctId, properties, options }: UnsetPersonPropertiesMessage): void;
668
692
  /**
669
693
  * Create an alias to link two distinct IDs together.
670
694
  *
@@ -685,6 +709,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
685
709
  distinctId: string;
686
710
  alias: string;
687
711
  disableGeoip?: boolean;
712
+ options?: EventOptions;
688
713
  }): void;
689
714
  /**
690
715
  * Create an alias to link two distinct IDs together immediately (synchronously).
@@ -707,6 +732,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
707
732
  distinctId: string;
708
733
  alias: string;
709
734
  disableGeoip?: boolean;
735
+ options?: EventOptions;
710
736
  }): Promise<void>;
711
737
  /**
712
738
  * Check if local evaluation of feature flags is ready.
@@ -1212,7 +1238,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1212
1238
  * The key is reserved before capture and stays reserved while capture runs, so a read during
1213
1239
  * capture does not send the event again. It is released when capture fails, so a later read
1214
1240
  * sends the event: the capture call throws, the client is disabled or opted out (also while the
1215
- * event is prepared), `before_send` throws, or the event cannot be prepared or queued. An event that `before_send` discards keeps
1241
+ * event is prepared), `beforeSend` throws, or the event cannot be prepared or queued. An event that `beforeSend` discards keeps
1216
1242
  * its key: the application chose to drop it, and later reads would be dropped the same way.
1217
1243
  * A failure is logged and never reaches the read.
1218
1244
  */
@@ -1260,7 +1286,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1260
1286
  *
1261
1287
  * @param data - The group identify data
1262
1288
  */
1263
- groupIdentify({ groupType, groupKey, properties, distinctId, disableGeoip }: GroupIdentifyMessage): void;
1289
+ groupIdentify({ groupType, groupKey, properties, distinctId, disableGeoip, options }: GroupIdentifyMessage): void;
1264
1290
  /**
1265
1291
  * Create or update a group and its properties immediately (synchronously).
1266
1292
  *
@@ -1283,7 +1309,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1283
1309
  * @param data - The group identify data
1284
1310
  * @returns Promise that resolves when the group identify is processed
1285
1311
  */
1286
- groupIdentifyImmediate({ groupType, groupKey, properties, distinctId, disableGeoip, }: GroupIdentifyMessage): Promise<void>;
1312
+ groupIdentifyImmediate({ groupType, groupKey, properties, distinctId, disableGeoip, options, }: GroupIdentifyMessage): Promise<void>;
1287
1313
  /**
1288
1314
  * Reload feature flag definitions from the configured cache provider or PostHog for local evaluation.
1289
1315
  *
@@ -1341,6 +1367,67 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1341
1367
  * - { flags: true } -> Record<string, FeatureFlagValue> (a flag named "flags" with value true)
1342
1368
  */
1343
1369
  private _isFeatureFlagOverrideOptions;
1370
+ /**
1371
+ * Register properties that every event sent by this client carries.
1372
+ *
1373
+ * @remarks
1374
+ * Each event fills the keys it left unset in this order: the event's own values, then context
1375
+ * properties, then these, then the values the SDK adds (such as `$is_server` and
1376
+ * `$geoip_disable`). `beforeSend` sees the result and can change it.
1377
+ *
1378
+ * A `$process_person_profile` registered here never reaches `$identify`, `$create_alias`,
1379
+ * `$merge_dangerously`, `$groupidentify`, `$set` or `$set_once` events (see `registerOptions()`).
1380
+ *
1381
+ * @example
1382
+ * ```ts
1383
+ * await client.register({ service: 'billing' })
1384
+ * ```
1385
+ *
1386
+ * {@label Capture}
1387
+ *
1388
+ * @param properties - The properties to add to every event
1389
+ */
1390
+ register(properties: PostHogEventProperties): Promise<void>;
1391
+ /**
1392
+ * Remove a property added with `register()`.
1393
+ *
1394
+ * {@label Capture}
1395
+ *
1396
+ * @param property - The property name to remove
1397
+ */
1398
+ unregister(property: string): Promise<void>;
1399
+ /**
1400
+ * Register options that every event sent by this client carries.
1401
+ *
1402
+ * @remarks
1403
+ * Each event fills the options it left unset (missing or `null`) in this order: the event's own
1404
+ * `options`, then context options, then these, then the options the SDK adds (such as
1405
+ * `process_person_profile: false` for an event with no distinct id). `beforeSend` sees the
1406
+ * result and can change it. Values are sent to capture unchanged. Capture drops an event whose
1407
+ * option value it cannot read, so a bad value registered here drops every event.
1408
+ *
1409
+ * A `$identify`, `$create_alias`, `$merge_dangerously`, `$groupidentify`, `$set` or `$set_once`
1410
+ * event whose call leaves `process_person_profile` unset gets `true` instead of a value registered
1411
+ * here, unless its distinct id is generated.
1412
+ *
1413
+ * @example
1414
+ * ```ts
1415
+ * await client.registerOptions({ cookieless_mode: true })
1416
+ * ```
1417
+ *
1418
+ * {@label Capture}
1419
+ *
1420
+ * @param options - The options to add to every event
1421
+ */
1422
+ registerOptions(options: EventOptions): Promise<void>;
1423
+ /**
1424
+ * Remove an option added with `registerOptions()`.
1425
+ *
1426
+ * {@label Capture}
1427
+ *
1428
+ * @param key - The option name to remove
1429
+ */
1430
+ unregisterOptions(key: string): Promise<void>;
1344
1431
  protected abstract initializeContext(): IPostHogContext | undefined;
1345
1432
  /**
1346
1433
  * Run a function with specific context that will be applied to all events captured within that context.
@@ -1348,6 +1435,15 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1348
1435
  * Context properties like tags and sessionId will be automatically attached to all events.
1349
1436
  * By default, nested contexts inherit from parent contexts. Use `{ fresh: true }` to start with a clean context.
1350
1437
  *
1438
+ * @remarks
1439
+ * Context `properties` and `options` fill only what an event left unset: the event's own values
1440
+ * win, and context values beat `register()` and `registerOptions()` values and the values the SDK
1441
+ * adds. `beforeSend` sees the result and can change it.
1442
+ *
1443
+ * On `$identify`, `$create_alias`, `$merge_dangerously`, `$groupidentify`, `$set` and `$set_once`
1444
+ * events, a context `process_person_profile` option applies only when the distinct id is
1445
+ * generated, and a `$process_person_profile` property never applies (see `registerOptions()`).
1446
+ *
1351
1447
  * @example
1352
1448
  * ```ts
1353
1449
  * posthog.withContext({ distinctId: 'user_123' }, () => {
@@ -1357,7 +1453,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1357
1453
  *
1358
1454
  * {@label Context}
1359
1455
  *
1360
- * @param data - Context data to apply (sessionId, distinctId, properties, enableExceptionAutocapture)
1456
+ * @param data - Context data to apply (sessionId, distinctId, properties, options)
1361
1457
  * @param fn - Function to run with the context
1362
1458
  * @param options - Context options (fresh: true to start with clean context instead of inheriting)
1363
1459
  * @returns The return value of the function
@@ -1380,21 +1476,6 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1380
1476
  * @returns The current context data, or undefined if no context is set
1381
1477
  */
1382
1478
  getContext(): ContextData | undefined;
1383
- /**
1384
- * Set context without a callback wrapper.
1385
- *
1386
- * Uses `AsyncLocalStorage.enterWith()` to attach context to the current
1387
- * async execution context. The context lives until that async context ends.
1388
- *
1389
- * Must be called in the same async scope that makes PostHog calls.
1390
- * Calling this outside a request-scoped async context will leak context
1391
- * across unrelated work. Prefer `withContext()` when you can wrap code
1392
- * in a callback — it creates an isolated scope that cleans up automatically.
1393
- *
1394
- * @param data - Context data to apply (distinctId, sessionId, properties)
1395
- * @param options - Context options (fresh: true to start with clean context instead of inheriting)
1396
- */
1397
- enterContext(data: Partial<ContextData>, options?: ContextOptions): void;
1398
1479
  /**
1399
1480
  * Shutdown the PostHog client gracefully.
1400
1481
  *
@@ -1416,6 +1497,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1416
1497
  * @returns Promise that resolves when shutdown is complete
1417
1498
  */
1418
1499
  _shutdown(shutdownTimeoutMs?: number): Promise<void>;
1500
+ private _drainCaptureLanes;
1419
1501
  private _requestRemoteConfigPayload;
1420
1502
  private extractPropertiesFromEvent;
1421
1503
  private getFeatureFlagsForEvent;
@@ -1425,6 +1507,11 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1425
1507
  /**
1426
1508
  * Capture an error exception as an event.
1427
1509
  *
1510
+ * @remarks
1511
+ * The 5.x positional form `captureException(error, distinctId, properties, uuid, flags)` still
1512
+ * works in 6.x but logs a deprecation error once per process, and will be removed in the next
1513
+ * major version.
1514
+ *
1428
1515
  * @example
1429
1516
  * ```ts
1430
1517
  * // Capture an error with user ID
@@ -1432,20 +1519,20 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1432
1519
  * // Some risky operation
1433
1520
  * riskyOperation()
1434
1521
  * } catch (error) {
1435
- * client.captureException(error, 'user_123')
1522
+ * client.captureException(error, { distinctId: 'user_123' })
1436
1523
  * }
1437
1524
  * ```
1438
1525
  *
1439
1526
  * @example
1440
1527
  * ```ts
1441
- * // Capture with additional properties
1528
+ * // Capture with additional properties and a level
1442
1529
  * try {
1443
1530
  * apiCall()
1444
1531
  * } catch (error) {
1445
- * client.captureException(error, 'user_123', {
1446
- * endpoint: '/api/users',
1447
- * method: 'POST',
1448
- * status_code: 500
1532
+ * client.captureException(error, {
1533
+ * distinctId: 'user_123',
1534
+ * properties: { endpoint: '/api/users', method: 'POST', status_code: 500 },
1535
+ * level: 'warning',
1449
1536
  * })
1450
1537
  * }
1451
1538
  * ```
@@ -1453,15 +1540,17 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1453
1540
  * {@label Error tracking}
1454
1541
  *
1455
1542
  * @param error - The error to capture
1456
- * @param distinctId - Optional user distinct ID
1457
- * @param additionalProperties - Optional additional properties to include
1458
- * @param uuid - Optional event UUID
1459
- * @param flags - Optional `FeatureFlagEvaluations` snapshot to attach the same flag context as your other events
1543
+ * @param options - Optional distinct id, properties, options, uuid, flags snapshot and level
1460
1544
  */
1461
- captureException(error: unknown, distinctId?: string, additionalProperties?: Record<string | number, any>, uuid?: EventMessage['uuid'], flags?: FeatureFlagEvaluations): void;
1545
+ captureException(error: unknown, options?: CaptureExceptionOptions): void;
1462
1546
  /**
1463
1547
  * Capture an error exception as an event immediately (synchronously).
1464
1548
  *
1549
+ * @remarks
1550
+ * The 5.x positional form `captureExceptionImmediate(error, distinctId, properties, flags)` still
1551
+ * works in 6.x but logs a deprecation error once per process, and will be removed in the next
1552
+ * major version.
1553
+ *
1465
1554
  * @example
1466
1555
  * ```ts
1467
1556
  * // Capture an error immediately with user ID
@@ -1469,7 +1558,7 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1469
1558
  * // Some risky operation
1470
1559
  * riskyOperation()
1471
1560
  * } catch (error) {
1472
- * await client.captureExceptionImmediate(error, 'user_123')
1561
+ * await client.captureExceptionImmediate(error, { distinctId: 'user_123' })
1473
1562
  * }
1474
1563
  * ```
1475
1564
  *
@@ -1479,10 +1568,9 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1479
1568
  * try {
1480
1569
  * apiCall()
1481
1570
  * } catch (error) {
1482
- * await client.captureExceptionImmediate(error, 'user_123', {
1483
- * endpoint: '/api/users',
1484
- * method: 'POST',
1485
- * status_code: 500
1571
+ * await client.captureExceptionImmediate(error, {
1572
+ * distinctId: 'user_123',
1573
+ * properties: { endpoint: '/api/users', method: 'POST', status_code: 500 },
1486
1574
  * })
1487
1575
  * }
1488
1576
  * ```
@@ -1490,18 +1578,11 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1490
1578
  * {@label Error tracking}
1491
1579
  *
1492
1580
  * @param error - The error to capture
1493
- * @param distinctId - Optional user distinct ID
1494
- * @param additionalProperties - Optional additional properties to include
1495
- * @param flags - Optional `FeatureFlagEvaluations` snapshot to attach the same flag context as your other events
1581
+ * @param options - Optional distinct id, properties, options, uuid, flags snapshot and level
1496
1582
  * @returns Promise that resolves when the error is captured
1497
1583
  */
1498
- captureExceptionImmediate(error: unknown, distinctId?: string, additionalProperties?: Record<string | number, any>, flags?: FeatureFlagEvaluations): Promise<void>;
1499
- prepareEventMessage(props: EventMessage): Promise<{
1500
- distinctId: string;
1501
- event: string;
1502
- properties: PostHogEventProperties;
1503
- options: PostHogCaptureOptions;
1504
- }>;
1584
+ captureExceptionImmediate(error: unknown, options?: CaptureExceptionOptions): Promise<void>;
1585
+ private _buildExceptionEvent;
1505
1586
  /**
1506
1587
  * The configured service name, stamped on events as `service_name` so events
1507
1588
  * from several services sharing one project can be told apart. Resolved with
@@ -1514,6 +1595,32 @@ export declare abstract class PostHogBackendClient extends PostHogCoreStateless
1514
1595
  private _serviceNameProperties;
1515
1596
  /** The configured service name shared by events and logs, or `null` when none is set. */
1516
1597
  private _resolveServiceName;
1598
+ /**
1599
+ * Build an event as `capture()` would send it, without sending it.
1600
+ *
1601
+ * @remarks
1602
+ * The result has the same shape as the message passed in: `options` holds the event's options
1603
+ * after every layer filled them, and `uuid`, `timestamp` and `disableGeoip` are top-level fields.
1604
+ * Rejects with `null` when `beforeSend` drops the event.
1605
+ *
1606
+ * @example
1607
+ * ```ts
1608
+ * const message = await client.prepareEventMessage({ distinctId: 'user_123', event: 'button_clicked' })
1609
+ * console.log(message.properties.$is_server, message.options)
1610
+ * ```
1611
+ *
1612
+ * {@label Capture}
1613
+ *
1614
+ * @param props - The event to build
1615
+ * @returns The event with its properties and options filled, after `beforeSend`
1616
+ */
1617
+ prepareEventMessage(props: EventMessage): Promise<PreparedEventMessage>;
1618
+ /**
1619
+ * Build an event in the canonical order: identity, the call's own values, then the values it left
1620
+ * unset from context, then `register()` / `registerOptions()`, then the SDK, then the SDK's own
1621
+ * `$lib` / `$lib_version`, then the minimal `$feature_flag_called` allowlist, then `beforeSend`,
1622
+ * which has the final say.
1623
+ */
1517
1624
  private _prepareEventMessage;
1518
1625
  private _runBeforeSend;
1519
1626
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,gBAAgB,EAKhB,QAAQ,EAER,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,+BAA+B,EAG/B,wBAAwB,EAGxB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAEtB,UAAU,EAIV,gBAAgB,EAKjB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EACV,OAAO,EACP,yBAAyB,EACzB,IAAI,EACJ,kBAAkB,EAClB,gBAAg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