import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { Metadata } from "./repl/repl.js"; import { ResourceLimits } from "./repl/repl.js"; import { Repl } from "./repl/repl.js"; /** * TLSCertificate is a SSL/TLS certificate for a specific domain. This is used * to transfer certificates between clusters when a repl is transferred so we do * not need to request a new certificate in the new cluster. * * @generated from protobuf message replit.goval.api.TLSCertificate */ export interface TLSCertificate { /** * @generated from protobuf field: string domain = 1 */ domain: string; /** * @generated from protobuf field: bytes cert = 2 */ cert: Uint8Array; } /** * ReplTransfer includes all the data needed to transfer a repl between * clusters. * * @generated from protobuf message replit.goval.api.ReplTransfer */ export interface ReplTransfer { /** * @generated from protobuf field: replit.goval.api.repl.Repl repl = 1 */ repl?: Repl; /** * @generated from protobuf field: replit.goval.api.repl.ResourceLimits replLimits = 2 */ replLimits?: ResourceLimits; /** * @generated from protobuf field: replit.goval.api.repl.ResourceLimits userLimits = 3 */ userLimits?: ResourceLimits; /** * @generated from protobuf field: repeated string customDomains = 4 */ customDomains: string[]; /** * @generated from protobuf field: repeated replit.goval.api.TLSCertificate certificates = 5 */ certificates: TLSCertificate[]; /** * @generated from protobuf field: repeated string flags = 6 */ flags: string[]; /** * @generated from protobuf field: replit.goval.api.repl.Metadata metadata = 7 */ metadata?: Metadata; } /** * AllowReplRequest represents a request to allow a repl into a cluster. * * @generated from protobuf message replit.goval.api.AllowReplRequest */ export interface AllowReplRequest { /** * @generated from protobuf field: replit.goval.api.ReplTransfer replTransfer = 1 */ replTransfer?: ReplTransfer; } /** * ClusterMetadata represents all the metadata Lore knows about a cluster. This * includes all endpoints needed to communicate with the cluster. * * @generated from protobuf message replit.goval.api.ClusterMetadata */ export interface ClusterMetadata { /** * @generated from protobuf field: string id = 1 */ id: string; /** * @generated from protobuf field: string conmanURL = 2 */ conmanURL: string; /** * @generated from protobuf field: string gurl = 3 */ gurl: string; /** * @generated from protobuf field: string proxy = 5 */ proxy: string; /** * @generated from protobuf field: string continent = 7 */ continent: string; } /** * EvictReplRequest represents a request to evict a repl from a cluster. * Includes the metadata about the repl that will be evicted and a token in * case conman needs to forward this request to another instance. * * @generated from protobuf message replit.goval.api.EvictReplRequest */ export interface EvictReplRequest { /** * @generated from protobuf field: replit.goval.api.ClusterMetadata clusterMetadata = 1 */ clusterMetadata?: ClusterMetadata; /** * @generated from protobuf field: string token = 2 */ token: string; /** * User and slug are sent so that a repl route can be added even if the * cluster doesn't have metadata for this repl. * * @generated from protobuf field: string user = 3 */ user: string; /** * @generated from protobuf field: string slug = 4 */ slug: string; } /** * EvictReplResponse represents a response after evicting a repl from a cluster * and includes metadata about the repl that was evicted. * * @generated from protobuf message replit.goval.api.EvictReplResponse */ export interface EvictReplResponse { /** * @generated from protobuf field: replit.goval.api.ReplTransfer replTransfer = 1 */ replTransfer?: ReplTransfer; } declare class TLSCertificate$Type extends MessageType { constructor(); create(value?: PartialMessage): TLSCertificate; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TLSCertificate): TLSCertificate; internalBinaryWrite(message: TLSCertificate, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message replit.goval.api.TLSCertificate */ export declare const TLSCertificate: TLSCertificate$Type; declare class ReplTransfer$Type extends MessageType { constructor(); create(value?: PartialMessage): ReplTransfer; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReplTransfer): ReplTransfer; internalBinaryWrite(message: ReplTransfer, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message replit.goval.api.ReplTransfer */ export declare const ReplTransfer: ReplTransfer$Type; declare class AllowReplRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): AllowReplRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AllowReplRequest): AllowReplRequest; internalBinaryWrite(message: AllowReplRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message replit.goval.api.AllowReplRequest */ export declare const AllowReplRequest: AllowReplRequest$Type; declare class ClusterMetadata$Type extends MessageType { constructor(); create(value?: PartialMessage): ClusterMetadata; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClusterMetadata): ClusterMetadata; internalBinaryWrite(message: ClusterMetadata, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message replit.goval.api.ClusterMetadata */ export declare const ClusterMetadata: ClusterMetadata$Type; declare class EvictReplRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): EvictReplRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvictReplRequest): EvictReplRequest; internalBinaryWrite(message: EvictReplRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message replit.goval.api.EvictReplRequest */ export declare const EvictReplRequest: EvictReplRequest$Type; declare class EvictReplResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): EvictReplResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvictReplResponse): EvictReplResponse; internalBinaryWrite(message: EvictReplResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message replit.goval.api.EvictReplResponse */ export declare const EvictReplResponse: EvictReplResponse$Type; export {};