@posthog/core 1.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.
- package/dist/eventemitter.d.ts +9 -0
- package/dist/eventemitter.d.ts.map +1 -0
- package/dist/eventemitter.js +52 -0
- package/dist/eventemitter.mjs +18 -0
- package/dist/featureFlagUtils.d.ts +35 -0
- package/dist/featureFlagUtils.d.ts.map +1 -0
- package/dist/featureFlagUtils.js +193 -0
- package/dist/featureFlagUtils.mjs +138 -0
- package/dist/gzip.d.ts +10 -0
- package/dist/gzip.d.ts.map +1 -0
- package/dist/gzip.js +56 -0
- package/dist/gzip.mjs +19 -0
- package/dist/index.d.ts +261 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1305 -0
- package/dist/index.mjs +1198 -0
- package/dist/testing/PostHogCoreTestClient.d.ts +24 -0
- package/dist/testing/PostHogCoreTestClient.d.ts.map +1 -0
- package/dist/testing/PostHogCoreTestClient.js +95 -0
- package/dist/testing/PostHogCoreTestClient.mjs +58 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +69 -0
- package/dist/testing/index.mjs +2 -0
- package/dist/testing/test-utils.d.ts +6 -0
- package/dist/testing/test-utils.d.ts.map +1 -0
- package/dist/testing/test-utils.js +75 -0
- package/dist/testing/test-utils.mjs +29 -0
- package/dist/types.d.ts +441 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +163 -0
- package/dist/types.mjs +99 -0
- package/dist/utils.d.ts +24 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +115 -0
- package/dist/utils.mjs +51 -0
- package/dist/vendor/uuidv7.d.ts +180 -0
- package/dist/vendor/uuidv7.d.ts.map +1 -0
- package/dist/vendor/uuidv7.js +223 -0
- package/dist/vendor/uuidv7.js.LICENSE.txt +7 -0
- package/dist/vendor/uuidv7.mjs +174 -0
- package/dist/vendor/uuidv7.mjs.LICENSE.txt +7 -0
- package/package.json +52 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { PostHogFetchOptions, PostHogFetchResponse, PostHogAutocaptureElement, PostHogFlagsResponse, PostHogCoreOptions, PostHogEventProperties, PostHogPersistedProperty, PostHogCaptureOptions, JsonType, PostHogRemoteConfig, FeatureFlagValue, PostHogFeatureFlagDetails, FeatureFlagDetail, SurveyResponse, PostHogGroupProperties } from './types';
|
|
2
|
+
import { RetriableOptions } from './utils';
|
|
3
|
+
import { SimpleEventEmitter } from './eventemitter';
|
|
4
|
+
export { safeSetTimeout } from './utils';
|
|
5
|
+
export { getFetch } from './utils';
|
|
6
|
+
export { getFeatureFlagValue } from './featureFlagUtils';
|
|
7
|
+
export * as utils from './utils';
|
|
8
|
+
export declare const maybeAdd: (key: string, value: JsonType | undefined) => Record<string, JsonType>;
|
|
9
|
+
export declare function logFlushError(err: any): Promise<void>;
|
|
10
|
+
export declare abstract class PostHogCoreStateless {
|
|
11
|
+
readonly apiKey: string;
|
|
12
|
+
readonly host: string;
|
|
13
|
+
readonly flushAt: number;
|
|
14
|
+
readonly preloadFeatureFlags: boolean;
|
|
15
|
+
readonly disableSurveys: boolean;
|
|
16
|
+
private maxBatchSize;
|
|
17
|
+
private maxQueueSize;
|
|
18
|
+
private flushInterval;
|
|
19
|
+
private flushPromise;
|
|
20
|
+
private shutdownPromise;
|
|
21
|
+
private requestTimeout;
|
|
22
|
+
private featureFlagsRequestTimeoutMs;
|
|
23
|
+
private remoteConfigRequestTimeoutMs;
|
|
24
|
+
private removeDebugCallback?;
|
|
25
|
+
private disableGeoip;
|
|
26
|
+
private historicalMigration;
|
|
27
|
+
protected disabled: boolean;
|
|
28
|
+
protected disableCompression: boolean;
|
|
29
|
+
private defaultOptIn;
|
|
30
|
+
private pendingPromises;
|
|
31
|
+
protected _events: SimpleEventEmitter;
|
|
32
|
+
protected _flushTimer?: any;
|
|
33
|
+
protected _retryOptions: RetriableOptions;
|
|
34
|
+
protected _initPromise: Promise<void>;
|
|
35
|
+
protected _isInitialized: boolean;
|
|
36
|
+
protected _remoteConfigResponsePromise?: Promise<PostHogRemoteConfig | undefined>;
|
|
37
|
+
abstract fetch(url: string, options: PostHogFetchOptions): Promise<PostHogFetchResponse>;
|
|
38
|
+
abstract getLibraryId(): string;
|
|
39
|
+
abstract getLibraryVersion(): string;
|
|
40
|
+
abstract getCustomUserAgent(): string | void;
|
|
41
|
+
abstract getPersistedProperty<T>(key: PostHogPersistedProperty): T | undefined;
|
|
42
|
+
abstract setPersistedProperty<T>(key: PostHogPersistedProperty, value: T | null): void;
|
|
43
|
+
constructor(apiKey: string, options?: PostHogCoreOptions);
|
|
44
|
+
protected logMsgIfDebug(fn: () => void): void;
|
|
45
|
+
protected wrap(fn: () => void): void;
|
|
46
|
+
protected getCommonEventProperties(): PostHogEventProperties;
|
|
47
|
+
get optedOut(): boolean;
|
|
48
|
+
optIn(): Promise<void>;
|
|
49
|
+
optOut(): Promise<void>;
|
|
50
|
+
on(event: string, cb: (...args: any[]) => void): () => void;
|
|
51
|
+
debug(enabled?: boolean): void;
|
|
52
|
+
get isDebug(): boolean;
|
|
53
|
+
get isDisabled(): boolean;
|
|
54
|
+
private buildPayload;
|
|
55
|
+
protected addPendingPromise<T>(promise: Promise<T>): Promise<T>;
|
|
56
|
+
/***
|
|
57
|
+
*** TRACKING
|
|
58
|
+
***/
|
|
59
|
+
protected identifyStateless(distinctId: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
60
|
+
protected identifyStatelessImmediate(distinctId: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): Promise<void>;
|
|
61
|
+
protected captureStateless(distinctId: string, event: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
62
|
+
protected captureStatelessImmediate(distinctId: string, event: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): Promise<void>;
|
|
63
|
+
protected aliasStateless(alias: string, distinctId: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
64
|
+
protected aliasStatelessImmediate(alias: string, distinctId: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): Promise<void>;
|
|
65
|
+
/***
|
|
66
|
+
*** GROUPS
|
|
67
|
+
***/
|
|
68
|
+
protected groupIdentifyStateless(groupType: string, groupKey: string | number, groupProperties?: PostHogEventProperties, options?: PostHogCaptureOptions, distinctId?: string, eventProperties?: PostHogEventProperties): void;
|
|
69
|
+
protected getRemoteConfig(): Promise<PostHogRemoteConfig | undefined>;
|
|
70
|
+
/***
|
|
71
|
+
*** FEATURE FLAGS
|
|
72
|
+
***/
|
|
73
|
+
protected getFlags(distinctId: string, groups?: Record<string, string | number>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, extraPayload?: Record<string, any>): Promise<PostHogFlagsResponse | undefined>;
|
|
74
|
+
protected getFeatureFlagStateless(key: string, distinctId: string, groups?: Record<string, string>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, disableGeoip?: boolean): Promise<{
|
|
75
|
+
response: FeatureFlagValue | undefined;
|
|
76
|
+
requestId: string | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
protected getFeatureFlagDetailStateless(key: string, distinctId: string, groups?: Record<string, string>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, disableGeoip?: boolean): Promise<{
|
|
79
|
+
response: FeatureFlagDetail | undefined;
|
|
80
|
+
requestId: string | undefined;
|
|
81
|
+
} | undefined>;
|
|
82
|
+
protected getFeatureFlagPayloadStateless(key: string, distinctId: string, groups?: Record<string, string>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, disableGeoip?: boolean): Promise<JsonType | undefined>;
|
|
83
|
+
protected getFeatureFlagPayloadsStateless(distinctId: string, groups?: Record<string, string>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, disableGeoip?: boolean, flagKeysToEvaluate?: string[]): Promise<PostHogFlagsResponse['featureFlagPayloads'] | undefined>;
|
|
84
|
+
protected getFeatureFlagsStateless(distinctId: string, groups?: Record<string, string | number>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, disableGeoip?: boolean, flagKeysToEvaluate?: string[]): Promise<{
|
|
85
|
+
flags: PostHogFlagsResponse['featureFlags'] | undefined;
|
|
86
|
+
payloads: PostHogFlagsResponse['featureFlagPayloads'] | undefined;
|
|
87
|
+
requestId: PostHogFlagsResponse['requestId'] | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
protected getFeatureFlagsAndPayloadsStateless(distinctId: string, groups?: Record<string, string | number>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, disableGeoip?: boolean, flagKeysToEvaluate?: string[]): Promise<{
|
|
90
|
+
flags: PostHogFlagsResponse['featureFlags'] | undefined;
|
|
91
|
+
payloads: PostHogFlagsResponse['featureFlagPayloads'] | undefined;
|
|
92
|
+
requestId: PostHogFlagsResponse['requestId'] | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
protected getFeatureFlagDetailsStateless(distinctId: string, groups?: Record<string, string | number>, personProperties?: Record<string, string>, groupProperties?: Record<string, Record<string, string>>, disableGeoip?: boolean, flagKeysToEvaluate?: string[]): Promise<PostHogFeatureFlagDetails | undefined>;
|
|
95
|
+
/***
|
|
96
|
+
*** SURVEYS
|
|
97
|
+
***/
|
|
98
|
+
getSurveysStateless(): Promise<SurveyResponse['surveys']>;
|
|
99
|
+
/***
|
|
100
|
+
*** SUPER PROPERTIES
|
|
101
|
+
***/
|
|
102
|
+
private _props;
|
|
103
|
+
protected get props(): PostHogEventProperties;
|
|
104
|
+
protected set props(val: PostHogEventProperties | undefined);
|
|
105
|
+
register(properties: PostHogEventProperties): Promise<void>;
|
|
106
|
+
unregister(property: string): Promise<void>;
|
|
107
|
+
/***
|
|
108
|
+
*** QUEUEING AND FLUSHING
|
|
109
|
+
***/
|
|
110
|
+
protected enqueue(type: string, _message: any, options?: PostHogCaptureOptions): void;
|
|
111
|
+
protected sendImmediate(type: string, _message: any, options?: PostHogCaptureOptions): Promise<void>;
|
|
112
|
+
private prepareMessage;
|
|
113
|
+
private clearFlushTimer;
|
|
114
|
+
/**
|
|
115
|
+
* Helper for flushing the queue in the background
|
|
116
|
+
* Avoids unnecessary promise errors
|
|
117
|
+
*/
|
|
118
|
+
private flushBackground;
|
|
119
|
+
/**
|
|
120
|
+
* Flushes the queue
|
|
121
|
+
*
|
|
122
|
+
* This function will return a promise that will resolve when the flush is complete,
|
|
123
|
+
* or reject if there was an error (for example if the server or network is down).
|
|
124
|
+
*
|
|
125
|
+
* If there is already a flush in progress, this function will wait for that flush to complete.
|
|
126
|
+
*
|
|
127
|
+
* It's recommended to do error handling in the callback of the promise.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* posthog.flush().then(() => {
|
|
131
|
+
* console.log('Flush complete')
|
|
132
|
+
* }).catch((err) => {
|
|
133
|
+
* console.error('Flush failed', err)
|
|
134
|
+
* })
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
* @throws PostHogFetchHttpError
|
|
138
|
+
* @throws PostHogFetchNetworkError
|
|
139
|
+
* @throws Error
|
|
140
|
+
*/
|
|
141
|
+
flush(): Promise<void>;
|
|
142
|
+
protected getCustomHeaders(): {
|
|
143
|
+
[key: string]: string;
|
|
144
|
+
};
|
|
145
|
+
private _flush;
|
|
146
|
+
private fetchWithRetry;
|
|
147
|
+
_shutdown(shutdownTimeoutMs?: number): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Call shutdown() once before the node process exits, so ensure that all events have been sent and all promises
|
|
150
|
+
* have resolved. Do not use this function if you intend to keep using this PostHog instance after calling it.
|
|
151
|
+
* @param shutdownTimeoutMs
|
|
152
|
+
*/
|
|
153
|
+
shutdown(shutdownTimeoutMs?: number): Promise<void>;
|
|
154
|
+
}
|
|
155
|
+
export declare abstract class PostHogCore extends PostHogCoreStateless {
|
|
156
|
+
private sendFeatureFlagEvent;
|
|
157
|
+
private flagCallReported;
|
|
158
|
+
protected _flagsResponsePromise?: Promise<PostHogFlagsResponse | undefined>;
|
|
159
|
+
protected _sessionExpirationTimeSeconds: number;
|
|
160
|
+
private _sessionMaxLengthSeconds;
|
|
161
|
+
protected sessionProps: PostHogEventProperties;
|
|
162
|
+
constructor(apiKey: string, options?: PostHogCoreOptions);
|
|
163
|
+
protected setupBootstrap(options?: Partial<PostHogCoreOptions>): void;
|
|
164
|
+
private clearProps;
|
|
165
|
+
on(event: string, cb: (...args: any[]) => void): () => void;
|
|
166
|
+
reset(propertiesToKeep?: PostHogPersistedProperty[]): void;
|
|
167
|
+
protected getCommonEventProperties(): PostHogEventProperties;
|
|
168
|
+
private enrichProperties;
|
|
169
|
+
/**
|
|
170
|
+
* * @returns {string} The stored session ID for the current session. This may be an empty string if the client is not yet fully initialized.
|
|
171
|
+
*/
|
|
172
|
+
getSessionId(): string;
|
|
173
|
+
resetSessionId(): void;
|
|
174
|
+
/**
|
|
175
|
+
* * @returns {string} The stored anonymous ID. This may be an empty string if the client is not yet fully initialized.
|
|
176
|
+
*/
|
|
177
|
+
getAnonymousId(): string;
|
|
178
|
+
/**
|
|
179
|
+
* * @returns {string} The stored distinct ID. This may be an empty string if the client is not yet fully initialized.
|
|
180
|
+
*/
|
|
181
|
+
getDistinctId(): string;
|
|
182
|
+
registerForSession(properties: PostHogEventProperties): void;
|
|
183
|
+
unregisterForSession(property: string): void;
|
|
184
|
+
/***
|
|
185
|
+
*** TRACKING
|
|
186
|
+
***/
|
|
187
|
+
identify(distinctId?: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
188
|
+
capture(event: string, properties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
189
|
+
alias(alias: string): void;
|
|
190
|
+
autocapture(eventType: string, elements: PostHogAutocaptureElement[], properties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
191
|
+
/***
|
|
192
|
+
*** GROUPS
|
|
193
|
+
***/
|
|
194
|
+
groups(groups: PostHogGroupProperties): void;
|
|
195
|
+
group(groupType: string, groupKey: string | number, groupProperties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
196
|
+
groupIdentify(groupType: string, groupKey: string | number, groupProperties?: PostHogEventProperties, options?: PostHogCaptureOptions): void;
|
|
197
|
+
/***
|
|
198
|
+
* PROPERTIES
|
|
199
|
+
***/
|
|
200
|
+
setPersonPropertiesForFlags(properties: {
|
|
201
|
+
[type: string]: string;
|
|
202
|
+
}): void;
|
|
203
|
+
resetPersonPropertiesForFlags(): void;
|
|
204
|
+
setGroupPropertiesForFlags(properties: {
|
|
205
|
+
[type: string]: Record<string, string>;
|
|
206
|
+
}): void;
|
|
207
|
+
resetGroupPropertiesForFlags(): void;
|
|
208
|
+
private remoteConfigAsync;
|
|
209
|
+
/***
|
|
210
|
+
*** FEATURE FLAGS
|
|
211
|
+
***/
|
|
212
|
+
private flagsAsync;
|
|
213
|
+
private cacheSessionReplay;
|
|
214
|
+
private _remoteConfigAsync;
|
|
215
|
+
private _flagsAsync;
|
|
216
|
+
private setKnownFeatureFlagDetails;
|
|
217
|
+
private getKnownFeatureFlagDetails;
|
|
218
|
+
protected getKnownFeatureFlags(): PostHogFlagsResponse['featureFlags'] | undefined;
|
|
219
|
+
private getKnownFeatureFlagPayloads;
|
|
220
|
+
private getBootstrappedFeatureFlagDetails;
|
|
221
|
+
private setBootstrappedFeatureFlagDetails;
|
|
222
|
+
private getBootstrappedFeatureFlags;
|
|
223
|
+
private getBootstrappedFeatureFlagPayloads;
|
|
224
|
+
getFeatureFlag(key: string): FeatureFlagValue | undefined;
|
|
225
|
+
getFeatureFlagPayload(key: string): JsonType | undefined;
|
|
226
|
+
getFeatureFlagPayloads(): PostHogFlagsResponse['featureFlagPayloads'] | undefined;
|
|
227
|
+
getFeatureFlags(): PostHogFlagsResponse['featureFlags'] | undefined;
|
|
228
|
+
getFeatureFlagDetails(): PostHogFeatureFlagDetails | undefined;
|
|
229
|
+
getFeatureFlagsAndPayloads(): {
|
|
230
|
+
flags: PostHogFlagsResponse['featureFlags'] | undefined;
|
|
231
|
+
payloads: PostHogFlagsResponse['featureFlagPayloads'] | undefined;
|
|
232
|
+
};
|
|
233
|
+
isFeatureEnabled(key: string): boolean | undefined;
|
|
234
|
+
reloadFeatureFlags(options?: {
|
|
235
|
+
cb?: (err?: Error, flags?: PostHogFlagsResponse['featureFlags']) => void;
|
|
236
|
+
}): void;
|
|
237
|
+
reloadRemoteConfigAsync(): Promise<PostHogRemoteConfig | undefined>;
|
|
238
|
+
reloadFeatureFlagsAsync(sendAnonDistinctId?: boolean): Promise<PostHogFlagsResponse['featureFlags'] | undefined>;
|
|
239
|
+
onFeatureFlags(cb: (flags: PostHogFlagsResponse['featureFlags']) => void): () => void;
|
|
240
|
+
onFeatureFlag(key: string, cb: (value: FeatureFlagValue) => void): () => void;
|
|
241
|
+
overrideFeatureFlag(flags: PostHogFlagsResponse['featureFlags'] | null): Promise<void>;
|
|
242
|
+
/***
|
|
243
|
+
*** ERROR TRACKING
|
|
244
|
+
***/
|
|
245
|
+
captureException(error: unknown, additionalProperties?: PostHogEventProperties): void;
|
|
246
|
+
/**
|
|
247
|
+
* Capture written user feedback for a LLM trace. Numeric values are converted to strings.
|
|
248
|
+
* @param traceId The trace ID to capture feedback for.
|
|
249
|
+
* @param userFeedback The feedback to capture.
|
|
250
|
+
*/
|
|
251
|
+
captureTraceFeedback(traceId: string | number, userFeedback: string): void;
|
|
252
|
+
/**
|
|
253
|
+
* Capture a metric for a LLM trace. Numeric values are converted to strings.
|
|
254
|
+
* @param traceId The trace ID to capture the metric for.
|
|
255
|
+
* @param metricName The name of the metric to capture.
|
|
256
|
+
* @param metricValue The value of the metric to capture.
|
|
257
|
+
*/
|
|
258
|
+
captureTraceMetric(traceId: string | number, metricName: string, metricValue: string | number | boolean): void;
|
|
259
|
+
}
|
|
260
|
+
export * from './types';
|
|
261
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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