@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Interface WebhookEvent

    A single event entry inside a B2 webhook payload.

    The events array on the parsed body contains zero or more of these. Most deliveries hold a single event, but B2 may coalesce multiple events from the same bucket into one delivery for efficiency, so callers should iterate.

    interface WebhookEvent {
        accountId: string;
        bucketId: string;
        bucketName: string;
        eventId: string;
        eventTimestamp: number;
        eventType: EventType;
        eventVersion: number;
        matchedRuleName: string;
        objectName: string;
        objectSize?: number;
        objectVersionId?: string;
    }
    Index

    Properties

    accountId: string

    Account that owns the bucket the event fired on.

    bucketId: string

    Bucket ID the event fired on.

    bucketName: string

    Bucket name at the moment the event fired.

    eventId: string

    Globally unique event identifier (useful for idempotency on the receiver).

    eventTimestamp: number

    Event time in UNIX milliseconds (UTC).

    eventType: EventType

    Specific event type, e.g. 'b2:ObjectCreated:Upload'.

    eventVersion: number

    Schema version of the event payload. Currently 1.

    matchedRuleName: string

    Name of the EventNotificationRule on the bucket that matched.

    objectName: string

    B2 file name of the affected object.

    objectSize?: number

    Affected object's size in bytes, when present (absent for some delete events).

    objectVersionId?: string

    Specific file version ID, when applicable.