import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { PrivateLocation, PrivateLocationSummary } from "./private_location_pb.js"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file openstatus/private_location/v1/service.proto. */ export declare const file_openstatus_private_location_v1_service: GenFile; /** * CreatePrivateLocationRequest is the request to create a new private location. * * @generated from message openstatus.private_location.v1.CreatePrivateLocationRequest */ export type CreatePrivateLocationRequest = Message<"openstatus.private_location.v1.CreatePrivateLocationRequest"> & { /** * Display name for the private location (required, 1-256 characters). * * @generated from field: string name = 1; */ name: string; /** * IDs of monitors this private location should run (optional). * * @generated from field: repeated string monitor_ids = 2; */ monitorIds: string[]; /** * User-defined key/value labels (optional, up to 20 entries). * * @generated from field: map metadata = 3; */ metadata: { [key: string]: string; }; }; /** * Describes the message openstatus.private_location.v1.CreatePrivateLocationRequest. * Use `create(CreatePrivateLocationRequestSchema)` to create a new message. */ export declare const CreatePrivateLocationRequestSchema: GenMessage; /** * CreatePrivateLocationResponse is the response after creating a private location. * * @generated from message openstatus.private_location.v1.CreatePrivateLocationResponse */ export type CreatePrivateLocationResponse = Message<"openstatus.private_location.v1.CreatePrivateLocationResponse"> & { /** * The created private location, including its generated agent token. * * @generated from field: openstatus.private_location.v1.PrivateLocation private_location = 1; */ privateLocation?: PrivateLocation; }; /** * Describes the message openstatus.private_location.v1.CreatePrivateLocationResponse. * Use `create(CreatePrivateLocationResponseSchema)` to create a new message. */ export declare const CreatePrivateLocationResponseSchema: GenMessage; /** * GetPrivateLocationRequest is the request to get a private location by ID. * * @generated from message openstatus.private_location.v1.GetPrivateLocationRequest */ export type GetPrivateLocationRequest = Message<"openstatus.private_location.v1.GetPrivateLocationRequest"> & { /** * ID of the private location to retrieve (required). * * @generated from field: string id = 1; */ id: string; }; /** * Describes the message openstatus.private_location.v1.GetPrivateLocationRequest. * Use `create(GetPrivateLocationRequestSchema)` to create a new message. */ export declare const GetPrivateLocationRequestSchema: GenMessage; /** * GetPrivateLocationResponse is the response containing the private location. * * @generated from message openstatus.private_location.v1.GetPrivateLocationResponse */ export type GetPrivateLocationResponse = Message<"openstatus.private_location.v1.GetPrivateLocationResponse"> & { /** * The requested private location. * * @generated from field: openstatus.private_location.v1.PrivateLocation private_location = 1; */ privateLocation?: PrivateLocation; }; /** * Describes the message openstatus.private_location.v1.GetPrivateLocationResponse. * Use `create(GetPrivateLocationResponseSchema)` to create a new message. */ export declare const GetPrivateLocationResponseSchema: GenMessage; /** * ListPrivateLocationsRequest is the request to list private locations. * * @generated from message openstatus.private_location.v1.ListPrivateLocationsRequest */ export type ListPrivateLocationsRequest = Message<"openstatus.private_location.v1.ListPrivateLocationsRequest"> & { /** * Maximum number of private locations to return (1-100, defaults to 50). * * @generated from field: optional int32 limit = 1; */ limit?: number; /** * Number of private locations to skip for pagination (defaults to 0). * * @generated from field: optional int32 offset = 2; */ offset?: number; }; /** * Describes the message openstatus.private_location.v1.ListPrivateLocationsRequest. * Use `create(ListPrivateLocationsRequestSchema)` to create a new message. */ export declare const ListPrivateLocationsRequestSchema: GenMessage; /** * ListPrivateLocationsResponse is the response containing private location summaries. * * @generated from message openstatus.private_location.v1.ListPrivateLocationsResponse */ export type ListPrivateLocationsResponse = Message<"openstatus.private_location.v1.ListPrivateLocationsResponse"> & { /** * List of private locations. * * @generated from field: repeated openstatus.private_location.v1.PrivateLocationSummary private_locations = 1; */ privateLocations: PrivateLocationSummary[]; /** * Total number of private locations in the workspace. * * @generated from field: int32 total_size = 2; */ totalSize: number; }; /** * Describes the message openstatus.private_location.v1.ListPrivateLocationsResponse. * Use `create(ListPrivateLocationsResponseSchema)` to create a new message. */ export declare const ListPrivateLocationsResponseSchema: GenMessage; /** * UpdatePrivateLocationRequest is the request to update a private location. * * @generated from message openstatus.private_location.v1.UpdatePrivateLocationRequest */ export type UpdatePrivateLocationRequest = Message<"openstatus.private_location.v1.UpdatePrivateLocationRequest"> & { /** * ID of the private location to update (required). * * @generated from field: string id = 1; */ id: string; /** * New display name for the private location (optional). * * @generated from field: optional string name = 2; */ name?: string; /** * New list of monitor IDs. Only applied when update_monitor_ids is true. * * @generated from field: repeated string monitor_ids = 3; */ monitorIds: string[]; /** * When true, monitor_ids replaces the current associations (an empty list * clears all). When false or unset, monitor_ids is ignored and existing * associations are preserved. * * @generated from field: optional bool update_monitor_ids = 4; */ updateMonitorIds?: boolean; /** * New key/value labels. Only applied when update_metadata is true. * * @generated from field: map metadata = 5; */ metadata: { [key: string]: string; }; /** * When true, metadata replaces the current labels (an empty map clears all). * When false or unset, metadata is ignored and existing labels are preserved. * * @generated from field: optional bool update_metadata = 6; */ updateMetadata?: boolean; }; /** * Describes the message openstatus.private_location.v1.UpdatePrivateLocationRequest. * Use `create(UpdatePrivateLocationRequestSchema)` to create a new message. */ export declare const UpdatePrivateLocationRequestSchema: GenMessage; /** * UpdatePrivateLocationResponse is the response after updating a private location. * * @generated from message openstatus.private_location.v1.UpdatePrivateLocationResponse */ export type UpdatePrivateLocationResponse = Message<"openstatus.private_location.v1.UpdatePrivateLocationResponse"> & { /** * The updated private location. * * @generated from field: openstatus.private_location.v1.PrivateLocation private_location = 1; */ privateLocation?: PrivateLocation; }; /** * Describes the message openstatus.private_location.v1.UpdatePrivateLocationResponse. * Use `create(UpdatePrivateLocationResponseSchema)` to create a new message. */ export declare const UpdatePrivateLocationResponseSchema: GenMessage; /** * DeletePrivateLocationRequest is the request to delete a private location. * * @generated from message openstatus.private_location.v1.DeletePrivateLocationRequest */ export type DeletePrivateLocationRequest = Message<"openstatus.private_location.v1.DeletePrivateLocationRequest"> & { /** * ID of the private location to delete (required). * * @generated from field: string id = 1; */ id: string; }; /** * Describes the message openstatus.private_location.v1.DeletePrivateLocationRequest. * Use `create(DeletePrivateLocationRequestSchema)` to create a new message. */ export declare const DeletePrivateLocationRequestSchema: GenMessage; /** * DeletePrivateLocationResponse is the response after deleting a private location. * * @generated from message openstatus.private_location.v1.DeletePrivateLocationResponse */ export type DeletePrivateLocationResponse = Message<"openstatus.private_location.v1.DeletePrivateLocationResponse"> & { /** * Whether the deletion was successful. * * @generated from field: bool success = 1; */ success: boolean; }; /** * Describes the message openstatus.private_location.v1.DeletePrivateLocationResponse. * Use `create(DeletePrivateLocationResponseSchema)` to create a new message. */ export declare const DeletePrivateLocationResponseSchema: GenMessage; /** * PrivateLocationService provides CRUD operations for private locations — * self-hosted checker agents that run monitors from your own network. * * @generated from service openstatus.private_location.v1.PrivateLocationService */ export declare const PrivateLocationService: GenService<{ /** * CreatePrivateLocation creates a new private location and returns its * generated agent token. * * @generated from rpc openstatus.private_location.v1.PrivateLocationService.CreatePrivateLocation */ createPrivateLocation: { methodKind: "unary"; input: typeof CreatePrivateLocationRequestSchema; output: typeof CreatePrivateLocationResponseSchema; }; /** * GetPrivateLocation retrieves a single private location by ID, including * its agent token. * * @generated from rpc openstatus.private_location.v1.PrivateLocationService.GetPrivateLocation */ getPrivateLocation: { methodKind: "unary"; input: typeof GetPrivateLocationRequestSchema; output: typeof GetPrivateLocationResponseSchema; }; /** * ListPrivateLocations returns a paginated list of private location * summaries. Agent tokens are not included - use GetPrivateLocation. * * @generated from rpc openstatus.private_location.v1.PrivateLocationService.ListPrivateLocations */ listPrivateLocations: { methodKind: "unary"; input: typeof ListPrivateLocationsRequestSchema; output: typeof ListPrivateLocationsResponseSchema; }; /** * UpdatePrivateLocation updates a private location. * * @generated from rpc openstatus.private_location.v1.PrivateLocationService.UpdatePrivateLocation */ updatePrivateLocation: { methodKind: "unary"; input: typeof UpdatePrivateLocationRequestSchema; output: typeof UpdatePrivateLocationResponseSchema; }; /** * DeletePrivateLocation removes a private location. * * @generated from rpc openstatus.private_location.v1.PrivateLocationService.DeletePrivateLocation */ deletePrivateLocation: { methodKind: "unary"; input: typeof DeletePrivateLocationRequestSchema; output: typeof DeletePrivateLocationResponseSchema; }; }>; //# sourceMappingURL=service_pb.d.ts.map