// @generated by protoc-gen-es v2.11.0 with parameter "target=ts,import_extension=ts" // @generated from file openstatus/notification/v1/notification.proto (package openstatus.notification.v1, syntax proto3) /* eslint-disable */ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { NotificationData, NotificationProvider } from "./providers_pb.ts"; import { file_openstatus_notification_v1_providers } from "./providers_pb.ts"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file openstatus/notification/v1/notification.proto. */ export const file_openstatus_notification_v1_notification: GenFile = /*@__PURE__*/ fileDesc( "Ci1vcGVuc3RhdHVzL25vdGlmaWNhdGlvbi92MS9ub3RpZmljYXRpb24ucHJvdG8SGm9wZW5zdGF0dXMubm90aWZpY2F0aW9uLnYxIuUBCgxOb3RpZmljYXRpb24SCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRJCCghwcm92aWRlchgDIAEoDjIwLm9wZW5zdGF0dXMubm90aWZpY2F0aW9uLnYxLk5vdGlmaWNhdGlvblByb3ZpZGVyEjoKBGRhdGEYBCABKAsyLC5vcGVuc3RhdHVzLm5vdGlmaWNhdGlvbi52MS5Ob3RpZmljYXRpb25EYXRhEhMKC21vbml0b3JfaWRzGAUgAygJEhIKCmNyZWF0ZWRfYXQYBiABKAkSEgoKdXBkYXRlZF9hdBgHIAEoCSKyAQoTTm90aWZpY2F0aW9uU3VtbWFyeRIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEkIKCHByb3ZpZGVyGAMgASgOMjAub3BlbnN0YXR1cy5ub3RpZmljYXRpb24udjEuTm90aWZpY2F0aW9uUHJvdmlkZXISFQoNbW9uaXRvcl9jb3VudBgEIAEoBRISCgpjcmVhdGVkX2F0GAUgASgJEhIKCnVwZGF0ZWRfYXQYBiABKAlCXVpbZ2l0aHViLmNvbS9vcGVuc3RhdHVzaHEvb3BlbnN0YXR1cy9wYWNrYWdlcy9wcm90by9vcGVuc3RhdHVzL25vdGlmaWNhdGlvbi92MTtub3RpZmljYXRpb252MWIGcHJvdG8z", [file_openstatus_notification_v1_providers], ); /** * Notification represents a notification channel with full details. * * @generated from message openstatus.notification.v1.Notification */ export type Notification = & Message<"openstatus.notification.v1.Notification"> & { /** * Unique identifier for the notification. * * @generated from field: string id = 1; */ id: string; /** * Display name for the notification channel. * * @generated from field: string name = 2; */ name: string; /** * Provider type. * * @generated from field: openstatus.notification.v1.NotificationProvider provider = 3; */ provider: NotificationProvider; /** * Provider-specific configuration. * * @generated from field: openstatus.notification.v1.NotificationData data = 4; */ data?: NotificationData; /** * IDs of monitors associated with this notification. * * @generated from field: repeated string monitor_ids = 5; */ monitorIds: string[]; /** * Timestamp when the notification was created (RFC 3339). * * @generated from field: string created_at = 6; */ createdAt: string; /** * Timestamp when the notification was last updated (RFC 3339). * * @generated from field: string updated_at = 7; */ updatedAt: string; }; /** * Describes the message openstatus.notification.v1.Notification. * Use `create(NotificationSchema)` to create a new message. */ export const NotificationSchema: GenMessage = /*@__PURE__*/ messageDesc(file_openstatus_notification_v1_notification, 0); /** * NotificationSummary represents a notification channel summary for list responses. * * @generated from message openstatus.notification.v1.NotificationSummary */ export type NotificationSummary = & Message<"openstatus.notification.v1.NotificationSummary"> & { /** * Unique identifier for the notification. * * @generated from field: string id = 1; */ id: string; /** * Display name for the notification channel. * * @generated from field: string name = 2; */ name: string; /** * Provider type. * * @generated from field: openstatus.notification.v1.NotificationProvider provider = 3; */ provider: NotificationProvider; /** * Number of monitors associated with this notification. * * @generated from field: int32 monitor_count = 4; */ monitorCount: number; /** * Timestamp when the notification was created (RFC 3339). * * @generated from field: string created_at = 5; */ createdAt: string; /** * Timestamp when the notification was last updated (RFC 3339). * * @generated from field: string updated_at = 6; */ updatedAt: string; }; /** * Describes the message openstatus.notification.v1.NotificationSummary. * Use `create(NotificationSummarySchema)` to create a new message. */ export const NotificationSummarySchema: GenMessage< NotificationSummary > = /*@__PURE__*/ messageDesc(file_openstatus_notification_v1_notification, 1);