import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Maintenance, MaintenanceSummary } from "./maintenance_pb.js"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file openstatus/maintenance/v1/service.proto. */ export declare const file_openstatus_maintenance_v1_service: GenFile; /** * CreateMaintenanceRequest is the request to create a new maintenance window. * * @generated from message openstatus.maintenance.v1.CreateMaintenanceRequest */ export type CreateMaintenanceRequest = Message<"openstatus.maintenance.v1.CreateMaintenanceRequest"> & { /** * Title of the maintenance (required, 1-256 characters). * * @generated from field: string title = 1; */ title: string; /** * Message describing the maintenance (required). * * @generated from field: string message = 2; */ message: string; /** * Start time of the maintenance window (RFC 3339 format, required). * * @generated from field: string from = 3; */ from: string; /** * End time of the maintenance window (RFC 3339 format, required). * * @generated from field: string to = 4; */ to: string; /** * Page ID to associate with this maintenance (required). * * @generated from field: string page_id = 5; */ pageId: string; /** * Page component IDs to associate with this maintenance (optional). * * @generated from field: repeated string page_component_ids = 6; */ pageComponentIds: string[]; /** * Whether to notify subscribers about this maintenance (optional, defaults to false). * * @generated from field: optional bool notify = 7; */ notify?: boolean; }; /** * Describes the message openstatus.maintenance.v1.CreateMaintenanceRequest. * Use `create(CreateMaintenanceRequestSchema)` to create a new message. */ export declare const CreateMaintenanceRequestSchema: GenMessage; /** * CreateMaintenanceResponse is the response after creating a maintenance window. * * @generated from message openstatus.maintenance.v1.CreateMaintenanceResponse */ export type CreateMaintenanceResponse = Message<"openstatus.maintenance.v1.CreateMaintenanceResponse"> & { /** * The created maintenance. * * @generated from field: openstatus.maintenance.v1.Maintenance maintenance = 1; */ maintenance?: Maintenance; }; /** * Describes the message openstatus.maintenance.v1.CreateMaintenanceResponse. * Use `create(CreateMaintenanceResponseSchema)` to create a new message. */ export declare const CreateMaintenanceResponseSchema: GenMessage; /** * GetMaintenanceRequest is the request to get a maintenance window by ID. * * @generated from message openstatus.maintenance.v1.GetMaintenanceRequest */ export type GetMaintenanceRequest = Message<"openstatus.maintenance.v1.GetMaintenanceRequest"> & { /** * ID of the maintenance to retrieve (required). * * @generated from field: string id = 1; */ id: string; }; /** * Describes the message openstatus.maintenance.v1.GetMaintenanceRequest. * Use `create(GetMaintenanceRequestSchema)` to create a new message. */ export declare const GetMaintenanceRequestSchema: GenMessage; /** * GetMaintenanceResponse is the response containing the maintenance window. * * @generated from message openstatus.maintenance.v1.GetMaintenanceResponse */ export type GetMaintenanceResponse = Message<"openstatus.maintenance.v1.GetMaintenanceResponse"> & { /** * The requested maintenance. * * @generated from field: openstatus.maintenance.v1.Maintenance maintenance = 1; */ maintenance?: Maintenance; }; /** * Describes the message openstatus.maintenance.v1.GetMaintenanceResponse. * Use `create(GetMaintenanceResponseSchema)` to create a new message. */ export declare const GetMaintenanceResponseSchema: GenMessage; /** * ListMaintenancesRequest is the request to list maintenance windows. * * @generated from message openstatus.maintenance.v1.ListMaintenancesRequest */ export type ListMaintenancesRequest = Message<"openstatus.maintenance.v1.ListMaintenancesRequest"> & { /** * Maximum number of maintenances to return (1-100, defaults to 50). * * @generated from field: optional int32 limit = 1; */ limit?: number; /** * Number of maintenances to skip for pagination (defaults to 0). * * @generated from field: optional int32 offset = 2; */ offset?: number; /** * Filter by page ID (optional). * * @generated from field: optional string page_id = 3; */ pageId?: string; }; /** * Describes the message openstatus.maintenance.v1.ListMaintenancesRequest. * Use `create(ListMaintenancesRequestSchema)` to create a new message. */ export declare const ListMaintenancesRequestSchema: GenMessage; /** * ListMaintenancesResponse is the response containing maintenance window summaries. * * @generated from message openstatus.maintenance.v1.ListMaintenancesResponse */ export type ListMaintenancesResponse = Message<"openstatus.maintenance.v1.ListMaintenancesResponse"> & { /** * List of maintenances. * * @generated from field: repeated openstatus.maintenance.v1.MaintenanceSummary maintenances = 1; */ maintenances: MaintenanceSummary[]; /** * Total number of maintenances matching the filter. * * @generated from field: int32 total_size = 2; */ totalSize: number; }; /** * Describes the message openstatus.maintenance.v1.ListMaintenancesResponse. * Use `create(ListMaintenancesResponseSchema)` to create a new message. */ export declare const ListMaintenancesResponseSchema: GenMessage; /** * UpdateMaintenanceRequest is the request to update a maintenance window. * * @generated from message openstatus.maintenance.v1.UpdateMaintenanceRequest */ export type UpdateMaintenanceRequest = Message<"openstatus.maintenance.v1.UpdateMaintenanceRequest"> & { /** * ID of the maintenance to update (required). * * @generated from field: string id = 1; */ id: string; /** * New title for the maintenance (optional). * * @generated from field: optional string title = 2; */ title?: string; /** * New message for the maintenance (optional). * * @generated from field: optional string message = 3; */ message?: string; /** * New start time (RFC 3339 format, optional). * * @generated from field: optional string from = 4; */ from?: string; /** * New end time (RFC 3339 format, optional). * * @generated from field: optional string to = 5; */ to?: string; /** * Deprecated: page_id is now derived from page_component_ids. * * @generated from field: optional string page_id = 6 [deprecated = true]; * @deprecated */ pageId?: string; /** * New list of page component IDs (optional, replaces existing list). * * @generated from field: repeated string page_component_ids = 7; */ pageComponentIds: string[]; /** * Set to true to update page component associations. * When true, page_component_ids replaces the existing list (empty clears all). * When false or unset, page_component_ids is ignored and existing associations are preserved. * * @generated from field: optional bool update_page_component_ids = 8; */ updatePageComponentIds?: boolean; }; /** * Describes the message openstatus.maintenance.v1.UpdateMaintenanceRequest. * Use `create(UpdateMaintenanceRequestSchema)` to create a new message. */ export declare const UpdateMaintenanceRequestSchema: GenMessage; /** * UpdateMaintenanceResponse is the response after updating a maintenance window. * * @generated from message openstatus.maintenance.v1.UpdateMaintenanceResponse */ export type UpdateMaintenanceResponse = Message<"openstatus.maintenance.v1.UpdateMaintenanceResponse"> & { /** * The updated maintenance. * * @generated from field: openstatus.maintenance.v1.Maintenance maintenance = 1; */ maintenance?: Maintenance; }; /** * Describes the message openstatus.maintenance.v1.UpdateMaintenanceResponse. * Use `create(UpdateMaintenanceResponseSchema)` to create a new message. */ export declare const UpdateMaintenanceResponseSchema: GenMessage; /** * DeleteMaintenanceRequest is the request to delete a maintenance window. * * @generated from message openstatus.maintenance.v1.DeleteMaintenanceRequest */ export type DeleteMaintenanceRequest = Message<"openstatus.maintenance.v1.DeleteMaintenanceRequest"> & { /** * ID of the maintenance to delete (required). * * @generated from field: string id = 1; */ id: string; }; /** * Describes the message openstatus.maintenance.v1.DeleteMaintenanceRequest. * Use `create(DeleteMaintenanceRequestSchema)` to create a new message. */ export declare const DeleteMaintenanceRequestSchema: GenMessage; /** * DeleteMaintenanceResponse is the response after deleting a maintenance window. * * @generated from message openstatus.maintenance.v1.DeleteMaintenanceResponse */ export type DeleteMaintenanceResponse = Message<"openstatus.maintenance.v1.DeleteMaintenanceResponse"> & { /** * Whether the deletion was successful. * * @generated from field: bool success = 1; */ success: boolean; }; /** * Describes the message openstatus.maintenance.v1.DeleteMaintenanceResponse. * Use `create(DeleteMaintenanceResponseSchema)` to create a new message. */ export declare const DeleteMaintenanceResponseSchema: GenMessage; /** * MaintenanceService provides CRUD operations for maintenance windows. * * @generated from service openstatus.maintenance.v1.MaintenanceService */ export declare const MaintenanceService: GenService<{ /** * CreateMaintenance creates a new maintenance window. * * @generated from rpc openstatus.maintenance.v1.MaintenanceService.CreateMaintenance */ createMaintenance: { methodKind: "unary"; input: typeof CreateMaintenanceRequestSchema; output: typeof CreateMaintenanceResponseSchema; }; /** * GetMaintenance retrieves a specific maintenance window by ID. * * @generated from rpc openstatus.maintenance.v1.MaintenanceService.GetMaintenance */ getMaintenance: { methodKind: "unary"; input: typeof GetMaintenanceRequestSchema; output: typeof GetMaintenanceResponseSchema; }; /** * ListMaintenances returns all maintenance windows for the workspace. * * @generated from rpc openstatus.maintenance.v1.MaintenanceService.ListMaintenances */ listMaintenances: { methodKind: "unary"; input: typeof ListMaintenancesRequestSchema; output: typeof ListMaintenancesResponseSchema; }; /** * UpdateMaintenance updates a maintenance window. * * @generated from rpc openstatus.maintenance.v1.MaintenanceService.UpdateMaintenance */ updateMaintenance: { methodKind: "unary"; input: typeof UpdateMaintenanceRequestSchema; output: typeof UpdateMaintenanceResponseSchema; }; /** * DeleteMaintenance removes a maintenance window. * * @generated from rpc openstatus.maintenance.v1.MaintenanceService.DeleteMaintenance */ deleteMaintenance: { methodKind: "unary"; input: typeof DeleteMaintenanceRequestSchema; output: typeof DeleteMaintenanceResponseSchema; }; }>; //# sourceMappingURL=service_pb.d.ts.map