Openstatus sdk
www.openstatus.dev
1// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts"
2// @generated from file openstatus/status_page/v1/page_subscriber.proto (package openstatus.status_page.v1, syntax proto3)
3/* eslint-disable */
4
5import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7import type { Message } from "@bufbuild/protobuf";
8
9/**
10 * Describes the file openstatus/status_page/v1/page_subscriber.proto.
11 */
12export const file_openstatus_status_page_v1_page_subscriber:
13 GenFile = /*@__PURE__*/
14 fileDesc(
15 "Ci9vcGVuc3RhdHVzL3N0YXR1c19wYWdlL3YxL3BhZ2Vfc3Vic2NyaWJlci5wcm90bxIZb3BlbnN0YXR1cy5zdGF0dXNfcGFnZS52MSKSAQoOUGFnZVN1YnNjcmliZXISCgoCaWQYASABKAkSDwoHcGFnZV9pZBgCIAEoCRINCgVlbWFpbBgDIAEoCRITCgthY2NlcHRlZF9hdBgEIAEoCRIXCg91bnN1YnNjcmliZWRfYXQYBSABKAkSEgoKY3JlYXRlZF9hdBgGIAEoCRISCgp1cGRhdGVkX2F0GAcgASgJQlpaWGdpdGh1Yi5jb20vb3BlbnN0YXR1c2hxL29wZW5zdGF0dXMvcGFja2FnZXMvcHJvdG8vb3BlbnN0YXR1cy9zdGF0dXNfcGFnZS92MTtzdGF0dXNwYWdldjFiBnByb3RvMw",
16 );
17
18/**
19 * PageSubscriber represents a subscriber to a status page.
20 *
21 * @generated from message openstatus.status_page.v1.PageSubscriber
22 */
23export type PageSubscriber =
24 & Message<"openstatus.status_page.v1.PageSubscriber">
25 & {
26 /**
27 * Unique identifier for the subscriber.
28 *
29 * @generated from field: string id = 1;
30 */
31 id: string;
32
33 /**
34 * ID of the status page the user is subscribed to.
35 *
36 * @generated from field: string page_id = 2;
37 */
38 pageId: string;
39
40 /**
41 * Email address of the subscriber.
42 *
43 * @generated from field: string email = 3;
44 */
45 email: string;
46
47 /**
48 * Timestamp when the subscription was accepted/confirmed (RFC 3339 format, optional).
49 *
50 * @generated from field: string accepted_at = 4;
51 */
52 acceptedAt: string;
53
54 /**
55 * Timestamp when the user unsubscribed (RFC 3339 format, optional).
56 *
57 * @generated from field: string unsubscribed_at = 5;
58 */
59 unsubscribedAt: string;
60
61 /**
62 * Timestamp when the subscription was created (RFC 3339 format).
63 *
64 * @generated from field: string created_at = 6;
65 */
66 createdAt: string;
67
68 /**
69 * Timestamp when the subscription was last updated (RFC 3339 format).
70 *
71 * @generated from field: string updated_at = 7;
72 */
73 updatedAt: string;
74 };
75
76/**
77 * Describes the message openstatus.status_page.v1.PageSubscriber.
78 * Use `create(PageSubscriberSchema)` to create a new message.
79 */
80export const PageSubscriberSchema: GenMessage<PageSubscriber> = /*@__PURE__*/
81 messageDesc(file_openstatus_status_page_v1_page_subscriber, 0);