masto
    Preparing search index...

    Interface CreateWebPushSubscriptionParams

    interface CreateWebPushSubscriptionParams {
        data?: { alerts?: Partial<WebPushSubscriptionAlerts> | null } | null;
        policy: keyof WebPushSubscriptionPolicyRegistry;
        subscription: { endpoint: string; keys: { auth: string; p256dh: string } };
    }
    Index

    Properties

    data?: { alerts?: Partial<WebPushSubscriptionAlerts> | null } | null
    subscription: { endpoint: string; keys: { auth: string; p256dh: string } }

    Type Declaration

    • Readonlyendpoint: string

      Endpoint URL that is called when a notification event occurs.

    • Readonlykeys: { auth: string; p256dh: string }
      • Readonlyauth: string

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

      • Readonlyp256dh: string

        User agent public key. Base64 encoded string of public key of ECDH key using prime256v1 curve.