pl-api
    Preparing search index...

    Interface CreatePushNotificationsSubscriptionParams

    interface CreatePushNotificationsSubscriptionParams {
        data?: { alerts?: Record<string, boolean>; policy?: string };
        subscription: { endpoint: string; keys?: { auth: string; p256dh: string } };
    }
    Index

    Properties

    Properties

    data?: { alerts?: Record<string, boolean>; policy?: string }

    Type declaration

    • Optionalalerts?: Record<string, boolean>
    • Optionalpolicy?: string

      String. Specify whether to receive push notifications from all, followed, follower, or none users.

    subscription: { endpoint: string; keys?: { auth: string; p256dh: string } }

    Type declaration

    • endpoint: string

      String. The endpoint URL that is called when a notification event occurs.

    • Optionalkeys?: { auth: string; p256dh: string }
      • auth: string

        String. Auth secret. Base64 encoded string of 16 bytes of random data.

      • p256dh: string

        String. User agent public key. Base64 encoded string of a public key from a ECDH keypair using the prime256v1 curve.