import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Notification, NotificationSummary } from "./notification_pb.js"; import type { NotificationData, NotificationProvider } from "./providers_pb.js"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file openstatus/notification/v1/service.proto. */ export declare const file_openstatus_notification_v1_service: GenFile; /** * CreateNotificationRequest is the request to create a new notification channel. * * @generated from message openstatus.notification.v1.CreateNotificationRequest */ export type CreateNotificationRequest = Message<"openstatus.notification.v1.CreateNotificationRequest"> & { /** * Display name for the notification channel. * * @generated from field: string name = 1; */ name: string; /** * Provider type. * * @generated from field: openstatus.notification.v1.NotificationProvider provider = 2; */ provider: NotificationProvider; /** * Provider-specific configuration. * * @generated from field: openstatus.notification.v1.NotificationData data = 3; */ data?: NotificationData; /** * IDs of monitors to associate with this notification. * * @generated from field: repeated string monitor_ids = 4; */ monitorIds: string[]; }; /** * Describes the message openstatus.notification.v1.CreateNotificationRequest. * Use `create(CreateNotificationRequestSchema)` to create a new message. */ export declare const CreateNotificationRequestSchema: GenMessage; /** * CreateNotificationResponse is the response after creating a notification channel. * * @generated from message openstatus.notification.v1.CreateNotificationResponse */ export type CreateNotificationResponse = Message<"openstatus.notification.v1.CreateNotificationResponse"> & { /** * The created notification channel. * * @generated from field: openstatus.notification.v1.Notification notification = 1; */ notification?: Notification; }; /** * Describes the message openstatus.notification.v1.CreateNotificationResponse. * Use `create(CreateNotificationResponseSchema)` to create a new message. */ export declare const CreateNotificationResponseSchema: GenMessage; /** * GetNotificationRequest is the request to get a notification channel. * * @generated from message openstatus.notification.v1.GetNotificationRequest */ export type GetNotificationRequest = Message<"openstatus.notification.v1.GetNotificationRequest"> & { /** * Notification ID to retrieve (required). * * @generated from field: string id = 1; */ id: string; }; /** * Describes the message openstatus.notification.v1.GetNotificationRequest. * Use `create(GetNotificationRequestSchema)` to create a new message. */ export declare const GetNotificationRequestSchema: GenMessage; /** * GetNotificationResponse is the response containing the notification channel. * * @generated from message openstatus.notification.v1.GetNotificationResponse */ export type GetNotificationResponse = Message<"openstatus.notification.v1.GetNotificationResponse"> & { /** * The notification channel. * * @generated from field: openstatus.notification.v1.Notification notification = 1; */ notification?: Notification; }; /** * Describes the message openstatus.notification.v1.GetNotificationResponse. * Use `create(GetNotificationResponseSchema)` to create a new message. */ export declare const GetNotificationResponseSchema: GenMessage; /** * ListNotificationsRequest is the request to list notification channels. * * @generated from message openstatus.notification.v1.ListNotificationsRequest */ export type ListNotificationsRequest = Message<"openstatus.notification.v1.ListNotificationsRequest"> & { /** * Maximum number of notifications to return (1-100, defaults to 50). * * @generated from field: optional int32 limit = 1; */ limit?: number; /** * Number of notifications to skip for pagination (defaults to 0). * * @generated from field: optional int32 offset = 2; */ offset?: number; }; /** * Describes the message openstatus.notification.v1.ListNotificationsRequest. * Use `create(ListNotificationsRequestSchema)` to create a new message. */ export declare const ListNotificationsRequestSchema: GenMessage; /** * ListNotificationsResponse is the response containing notification channels. * * @generated from message openstatus.notification.v1.ListNotificationsResponse */ export type ListNotificationsResponse = Message<"openstatus.notification.v1.ListNotificationsResponse"> & { /** * Notification channel summaries. * * @generated from field: repeated openstatus.notification.v1.NotificationSummary notifications = 1; */ notifications: NotificationSummary[]; /** * Total number of notification channels. * * @generated from field: int32 total_size = 2; */ totalSize: number; }; /** * Describes the message openstatus.notification.v1.ListNotificationsResponse. * Use `create(ListNotificationsResponseSchema)` to create a new message. */ export declare const ListNotificationsResponseSchema: GenMessage; /** * UpdateNotificationRequest is the request to update a notification channel. * * @generated from message openstatus.notification.v1.UpdateNotificationRequest */ export type UpdateNotificationRequest = Message<"openstatus.notification.v1.UpdateNotificationRequest"> & { /** * Notification ID to update (required). * * @generated from field: string id = 1; */ id: string; /** * Updated display name. * * @generated from field: optional string name = 2; */ name?: string; /** * Updated provider-specific configuration. * * @generated from field: optional openstatus.notification.v1.NotificationData data = 3; */ data?: NotificationData; /** * Updated monitor IDs to associate. * * @generated from field: repeated string monitor_ids = 4; */ monitorIds: string[]; /** * Set to true to update monitor associations. * When true, monitor_ids replaces the existing list (empty clears all). * When false or unset, monitor_ids is ignored and existing associations are preserved. * * @generated from field: optional bool update_monitor_ids = 5; */ updateMonitorIds?: boolean; }; /** * Describes the message openstatus.notification.v1.UpdateNotificationRequest. * Use `create(UpdateNotificationRequestSchema)` to create a new message. */ export declare const UpdateNotificationRequestSchema: GenMessage; /** * UpdateNotificationResponse is the response after updating a notification channel. * * @generated from message openstatus.notification.v1.UpdateNotificationResponse */ export type UpdateNotificationResponse = Message<"openstatus.notification.v1.UpdateNotificationResponse"> & { /** * The updated notification channel. * * @generated from field: openstatus.notification.v1.Notification notification = 1; */ notification?: Notification; }; /** * Describes the message openstatus.notification.v1.UpdateNotificationResponse. * Use `create(UpdateNotificationResponseSchema)` to create a new message. */ export declare const UpdateNotificationResponseSchema: GenMessage; /** * DeleteNotificationRequest is the request to delete a notification channel. * * @generated from message openstatus.notification.v1.DeleteNotificationRequest */ export type DeleteNotificationRequest = Message<"openstatus.notification.v1.DeleteNotificationRequest"> & { /** * Notification ID to delete (required). * * @generated from field: string id = 1; */ id: string; }; /** * Describes the message openstatus.notification.v1.DeleteNotificationRequest. * Use `create(DeleteNotificationRequestSchema)` to create a new message. */ export declare const DeleteNotificationRequestSchema: GenMessage; /** * DeleteNotificationResponse is the response after deleting a notification channel. * * @generated from message openstatus.notification.v1.DeleteNotificationResponse */ export type DeleteNotificationResponse = Message<"openstatus.notification.v1.DeleteNotificationResponse"> & { /** * Whether the deletion was successful. * * @generated from field: bool success = 1; */ success: boolean; }; /** * Describes the message openstatus.notification.v1.DeleteNotificationResponse. * Use `create(DeleteNotificationResponseSchema)` to create a new message. */ export declare const DeleteNotificationResponseSchema: GenMessage; /** * SendTestNotificationRequest is the request to send a test notification. * * @generated from message openstatus.notification.v1.SendTestNotificationRequest */ export type SendTestNotificationRequest = Message<"openstatus.notification.v1.SendTestNotificationRequest"> & { /** * Provider type. * * @generated from field: openstatus.notification.v1.NotificationProvider provider = 1; */ provider: NotificationProvider; /** * Provider-specific configuration. * * @generated from field: openstatus.notification.v1.NotificationData data = 2; */ data?: NotificationData; }; /** * Describes the message openstatus.notification.v1.SendTestNotificationRequest. * Use `create(SendTestNotificationRequestSchema)` to create a new message. */ export declare const SendTestNotificationRequestSchema: GenMessage; /** * SendTestNotificationResponse is the response after sending a test notification. * * @generated from message openstatus.notification.v1.SendTestNotificationResponse */ export type SendTestNotificationResponse = Message<"openstatus.notification.v1.SendTestNotificationResponse"> & { /** * Whether the test was successful. * * @generated from field: bool success = 1; */ success: boolean; /** * Optional error message if the test failed. * * @generated from field: optional string error_message = 2; */ errorMessage?: string; }; /** * Describes the message openstatus.notification.v1.SendTestNotificationResponse. * Use `create(SendTestNotificationResponseSchema)` to create a new message. */ export declare const SendTestNotificationResponseSchema: GenMessage; /** * CheckNotificationLimitRequest is the request to check notification limits. * * @generated from message openstatus.notification.v1.CheckNotificationLimitRequest */ export type CheckNotificationLimitRequest = Message<"openstatus.notification.v1.CheckNotificationLimitRequest"> & {}; /** * Describes the message openstatus.notification.v1.CheckNotificationLimitRequest. * Use `create(CheckNotificationLimitRequestSchema)` to create a new message. */ export declare const CheckNotificationLimitRequestSchema: GenMessage; /** * CheckNotificationLimitResponse is the response containing limit information. * * @generated from message openstatus.notification.v1.CheckNotificationLimitResponse */ export type CheckNotificationLimitResponse = Message<"openstatus.notification.v1.CheckNotificationLimitResponse"> & { /** * Whether the workspace has reached its notification limit. * * @generated from field: bool limit_reached = 1; */ limitReached: boolean; /** * Current number of notification channels. * * @generated from field: int32 current_count = 2; */ currentCount: number; /** * Maximum allowed notification channels. * * @generated from field: int32 max_count = 3; */ maxCount: number; }; /** * Describes the message openstatus.notification.v1.CheckNotificationLimitResponse. * Use `create(CheckNotificationLimitResponseSchema)` to create a new message. */ export declare const CheckNotificationLimitResponseSchema: GenMessage; /** * NotificationService provides CRUD operations for notification channels. * * @generated from service openstatus.notification.v1.NotificationService */ export declare const NotificationService: GenService<{ /** * CreateNotification creates a new notification channel. * * @generated from rpc openstatus.notification.v1.NotificationService.CreateNotification */ createNotification: { methodKind: "unary"; input: typeof CreateNotificationRequestSchema; output: typeof CreateNotificationResponseSchema; }; /** * GetNotification retrieves a notification channel by ID. * * @generated from rpc openstatus.notification.v1.NotificationService.GetNotification */ getNotification: { methodKind: "unary"; input: typeof GetNotificationRequestSchema; output: typeof GetNotificationResponseSchema; }; /** * ListNotifications returns a list of notification channels. * * @generated from rpc openstatus.notification.v1.NotificationService.ListNotifications */ listNotifications: { methodKind: "unary"; input: typeof ListNotificationsRequestSchema; output: typeof ListNotificationsResponseSchema; }; /** * UpdateNotification updates an existing notification channel. * * @generated from rpc openstatus.notification.v1.NotificationService.UpdateNotification */ updateNotification: { methodKind: "unary"; input: typeof UpdateNotificationRequestSchema; output: typeof UpdateNotificationResponseSchema; }; /** * DeleteNotification removes a notification channel. * * @generated from rpc openstatus.notification.v1.NotificationService.DeleteNotification */ deleteNotification: { methodKind: "unary"; input: typeof DeleteNotificationRequestSchema; output: typeof DeleteNotificationResponseSchema; }; /** * SendTestNotification sends a test notification to verify the provider configuration without requiring an existing notification channel. * * @generated from rpc openstatus.notification.v1.NotificationService.SendTestNotification */ sendTestNotification: { methodKind: "unary"; input: typeof SendTestNotificationRequestSchema; output: typeof SendTestNotificationResponseSchema; }; /** * CheckNotificationLimit checks if the workspace has reached its notification limit. * * @generated from rpc openstatus.notification.v1.NotificationService.CheckNotificationLimit */ checkNotificationLimit: { methodKind: "unary"; input: typeof CheckNotificationLimitRequestSchema; output: typeof CheckNotificationLimitResponseSchema; }; }>; //# sourceMappingURL=service_pb.d.ts.map