import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file openstatus/private_location/v1/private_location.proto. */ export declare const file_openstatus_private_location_v1_private_location: GenFile; /** * PrivateLocation represents a self-hosted checker agent with full details. * * @generated from message openstatus.private_location.v1.PrivateLocation */ export type PrivateLocation = Message<"openstatus.private_location.v1.PrivateLocation"> & { /** * Unique identifier for the private location. * * @generated from field: string id = 1; */ id: string; /** * Display name for the private location. * * @generated from field: string name = 2; */ name: string; /** * Agent credential. Generated by the server on creation and used by the * agent to authenticate; treat it as a secret. * * @generated from field: string token = 3; */ token: string; /** * IDs of monitors this private location runs. * * @generated from field: repeated string monitor_ids = 4; */ monitorIds: string[]; /** * Last time the agent reported a result (RFC 3339), empty if it never has. * * @generated from field: string last_seen_at = 5; */ lastSeenAt: string; /** * Timestamp when the private location was created (RFC 3339 format). * * @generated from field: string created_at = 6; */ createdAt: string; /** * Timestamp when the private location was last updated (RFC 3339 format). * * @generated from field: string updated_at = 7; */ updatedAt: string; /** * User-defined key/value labels attached to this private location. * * @generated from field: map metadata = 8; */ metadata: { [key: string]: string; }; /** * Computed health of the agent. Read-only. * * @generated from field: openstatus.private_location.v1.PrivateLocationStatus status = 9; */ status: PrivateLocationStatus; }; /** * Describes the message openstatus.private_location.v1.PrivateLocation. * Use `create(PrivateLocationSchema)` to create a new message. */ export declare const PrivateLocationSchema: GenMessage; /** * PrivateLocationSummary represents metadata for a private location (used in * list responses). The agent token is intentionally omitted. * * @generated from message openstatus.private_location.v1.PrivateLocationSummary */ export type PrivateLocationSummary = Message<"openstatus.private_location.v1.PrivateLocationSummary"> & { /** * Unique identifier for the private location. * * @generated from field: string id = 1; */ id: string; /** * Display name for the private location. * * @generated from field: string name = 2; */ name: string; /** * Number of monitors this private location runs. * * @generated from field: int32 monitor_count = 3; */ monitorCount: number; /** * Last time the agent reported a result (RFC 3339), empty if it never has. * * @generated from field: string last_seen_at = 4; */ lastSeenAt: string; /** * Timestamp when the private location was created (RFC 3339 format). * * @generated from field: string created_at = 5; */ createdAt: string; /** * Timestamp when the private location was last updated (RFC 3339 format). * * @generated from field: string updated_at = 6; */ updatedAt: string; /** * Computed health of the agent. Read-only. * * @generated from field: openstatus.private_location.v1.PrivateLocationStatus status = 7; */ status: PrivateLocationStatus; /** * User-defined key/value labels attached to this private location. * * @generated from field: map metadata = 8; */ metadata: { [key: string]: string; }; }; /** * Describes the message openstatus.private_location.v1.PrivateLocationSummary. * Use `create(PrivateLocationSummarySchema)` to create a new message. */ export declare const PrivateLocationSummarySchema: GenMessage; /** * PrivateLocationStatus is the computed health of a private location, derived * from the agent heartbeat. Read-only — it cannot be set through the API. * * @generated from enum openstatus.private_location.v1.PrivateLocationStatus */ export declare enum PrivateLocationStatus { /** * PRIVATE_LOCATION_STATUS_UNSPECIFIED indicates an unknown status. * * @generated from enum value: PRIVATE_LOCATION_STATUS_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * PRIVATE_LOCATION_STATUS_ACTIVE means the agent is reporting normally. * * @generated from enum value: PRIVATE_LOCATION_STATUS_ACTIVE = 1; */ ACTIVE = 1, /** * PRIVATE_LOCATION_STATUS_ERROR means the agent has stopped reporting. * * @generated from enum value: PRIVATE_LOCATION_STATUS_ERROR = 2; */ ERROR = 2 } /** * Describes the enum openstatus.private_location.v1.PrivateLocationStatus. */ export declare const PrivateLocationStatusSchema: GenEnum; //# sourceMappingURL=private_location_pb.d.ts.map