@makehq/sdk
    Preparing search index...

    Type Alias EventSubscription

    Represents a Make event subscription: an HTTPS endpoint that receives selected Make events.

    type EventSubscription = {
        createdAt: string;
        events: {
            mode: "all" | "selected";
            payloadVersions: Record<string, number>;
            types?: string[];
        };
        id: string;
        name: string;
        organizationId: number;
        status: { reason: string
        | null; state: EventSubscriptionState };
        teams: { ids?: number[]; mode: "all" | "selected" };
        updatedAt: string;
        url: string;
    }
    Index

    Properties

    createdAt: string

    ISO 8601 timestamp of when the subscription was created

    events: {
        mode: "all" | "selected";
        payloadVersions: Record<string, number>;
        types?: string[];
    }

    Which event types the subscription receives

    Type declaration

    • mode: "all" | "selected"

      all event types, or only the selected ones

    • payloadVersions: Record<string, number>

      Payload version this subscription receives for each subscribed event type. Read-only.

    • Optionaltypes?: string[]

      Subscribed event types, present when mode is selected

    id: string

    Unique identifier of the subscription (UUID)

    name: string

    Name of the subscription

    organizationId: number

    ID of the organization that owns the subscription

    status: { reason: string | null; state: EventSubscriptionState }

    Current status of the subscription

    Type declaration

    • reason: string | null

      Why the subscription is suspended (currently always repeated_failures), and null for other states. New reasons may be added, so accept unknown values.

    • state: EventSubscriptionState

      Whether the subscription receives events

    teams: { ids?: number[]; mode: "all" | "selected" }

    Which teams' events the subscription receives

    Type declaration

    • Optionalids?: number[]

      Selected team IDs, present when mode is selected

    • mode: "all" | "selected"

      all teams, or only the selected ones

    updatedAt: string

    ISO 8601 timestamp of when the subscription was last changed

    url: string

    HTTPS endpoint that receives the events