import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file openstatus/status_page/v1/page_subscriber.proto. */ export declare const file_openstatus_status_page_v1_page_subscriber: GenFile; /** * PageSubscriber represents a subscriber to a status page. * * @generated from message openstatus.status_page.v1.PageSubscriber */ export type PageSubscriber = Message<"openstatus.status_page.v1.PageSubscriber"> & { /** * Unique identifier for the subscriber. * * @generated from field: string id = 1; */ id: string; /** * ID of the status page the user is subscribed to. * * @generated from field: string page_id = 2; */ pageId: string; /** * Email address of the subscriber (empty for webhook channels). * * @generated from field: string email = 3; */ email: string; /** * Timestamp when the subscription was accepted/confirmed (RFC 3339 format, optional). * * @generated from field: string accepted_at = 4; */ acceptedAt: string; /** * Timestamp when the user unsubscribed (RFC 3339 format, optional). * * @generated from field: string unsubscribed_at = 5; */ unsubscribedAt: string; /** * Timestamp when the subscription was created (RFC 3339 format). * * @generated from field: string created_at = 6; */ createdAt: string; /** * Timestamp when the subscription was last updated (RFC 3339 format). * * @generated from field: string updated_at = 7; */ updatedAt: string; /** * How the subscription was created. Vendor-added rows skip verification. * * @generated from field: openstatus.status_page.v1.SubscriberSource source = 8; */ source: SubscriberSource; /** * Optional human-readable label (e.g. "Supabase #incidents"). * * @generated from field: optional string name = 9; */ name?: string; /** * Channel type: "email" or "webhook". * * @generated from field: string channel_type = 10; */ channelType: string; /** * Webhook URL (populated only for channel_type = "webhook"). * * @generated from field: optional string webhook_url = 11; */ webhookUrl?: string; /** * JSON-encoded channel config (e.g. custom headers). Populated for webhook channels. * * @generated from field: optional string channel_config = 12; */ channelConfig?: string; /** * IDs of components this subscription is scoped to. Empty = entire page. * * @generated from field: repeated string component_ids = 13; */ componentIds: string[]; }; /** * Describes the message openstatus.status_page.v1.PageSubscriber. * Use `create(PageSubscriberSchema)` to create a new message. */ export declare const PageSubscriberSchema: GenMessage; /** * SubscriberSource indicates how the subscription was created. * * @generated from enum openstatus.status_page.v1.SubscriberSource */ export declare enum SubscriberSource { /** * @generated from enum value: SUBSCRIBER_SOURCE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Created by the user themselves via the status-page subscribe form. * * @generated from enum value: SUBSCRIBER_SOURCE_SELF_SIGNUP = 1; */ SELF_SIGNUP = 1, /** * Created by the page vendor (dashboard user), skipping verification. * * @generated from enum value: SUBSCRIBER_SOURCE_VENDOR = 2; */ VENDOR = 2, /** * Imported from a third-party provider (Atlassian Statuspage, Better Stack, Instatus). * * @generated from enum value: SUBSCRIBER_SOURCE_IMPORT = 3; */ IMPORT = 3 } /** * Describes the enum openstatus.status_page.v1.SubscriberSource. */ export declare const SubscriberSourceSchema: GenEnum; //# sourceMappingURL=page_subscriber_pb.d.ts.map