Skip to main content
The SDK exports a curated set of public types. Internals (HTTP client, retry config, etc.) are intentionally not exported — they’re refactoring surface area, not contract.

VibeFollowOptions

The constructor options object.
See VibeFollow class for the per-field details.

IdentifyTraits

The traits bag passed to vf.users.identify(). Known fields are typed; everything else is permitted under the index signature.

EventProperties

The properties bag passed to vf.events.track() and lifecycle helpers.

Bulk types

Shared by users.identifyBulk() and events.bulk().

chunk(input, size)

Generator that slices an array into ≤size slices. Use it to backfill more than BULK_INGEST_MAX_RECORDS records in one loop without materialising the source twice in memory.
input
readonly T[]
required
Source array. Empty arrays yield no chunks (the loop body never runs).
size
number
required
Positive integer. Throws RangeError for 0, negatives, or non-integers.
Returns: Generator<readonly T[]>. Iterable; do not call .next() on it directly.

STANDARD_EVENT_NAMES and StandardEventName

The canonical 10 lifecycle event names. The same list used by the typed helpers on vf.users.
Useful for runtime validation:

WebhookEvent union

The return type of vf.webhooks.constructEvent(). A discriminated union over type.
See the per-type payload spec in Webhook event types. Every member shares the envelope:

Per-event types

SDK_VERSION

The current SDK version as a string. Flows into the User-Agent header on every request.