mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-07-31 06:11:03 +00:00
1061 lines
37 KiB
TypeScript
1061 lines
37 KiB
TypeScript
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
// @generated from file v1sync/syncservice.proto (package v1sync, syntax proto3)
|
|
/* eslint-disable */
|
|
|
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
import type { Plan, Repo } from "../v1/config_pb";
|
|
import { file_v1_config } from "../v1/config_pb";
|
|
import type { PublicKey, SignedMessage } from "../v1/crypto_pb";
|
|
import { file_v1_crypto } from "../v1/crypto_pb";
|
|
import { file_v1_restic } from "../v1/restic_pb";
|
|
import { file_v1_service } from "../v1/service_pb";
|
|
import type { OperationEvent } from "../v1/operations_pb";
|
|
import { file_v1_operations } from "../v1/operations_pb";
|
|
import { file_types_value } from "../types/value_pb";
|
|
import { file_google_protobuf_any, file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
import { file_google_api_annotations } from "../google/api/annotations_pb";
|
|
import type { Message } from "@bufbuild/protobuf";
|
|
|
|
/**
|
|
* Describes the file v1sync/syncservice.proto.
|
|
*/
|
|
export const file_v1sync_syncservice: GenFile = /*@__PURE__*/
|
|
fileDesc("Chh2MXN5bmMvc3luY3NlcnZpY2UucHJvdG8SBnYxc3luYyIrChZTeW5jU3RhdGVTdHJlYW1SZXF1ZXN0EhEKCXN1YnNjcmliZRgBIAEoCCKbAgoJUGVlclN0YXRlEhgKEHBlZXJfaW5zdGFuY2VfaWQYASABKAkSEgoKcGVlcl9rZXlpZBgCIAEoCRImCgVzdGF0ZRgDIAEoDjIXLnYxc3luYy5Db25uZWN0aW9uU3RhdGUSFgoOc3RhdHVzX21lc3NhZ2UYBCABKAkSKQoLa25vd25fcGxhbnMYBSADKAsyFC52MXN5bmMuUGxhbk1ldGFkYXRhEikKC2tub3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zeW5jYgZwcm90bzM", [file_v1_config, file_v1_crypto, file_v1_restic, file_v1_service, file_v1_operations, file_types_value, file_google_protobuf_empty, file_google_api_annotations, file_google_protobuf_any]);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStateStreamRequest
|
|
*/
|
|
export type SyncStateStreamRequest = Message<"v1sync.SyncStateStreamRequest"> & {
|
|
/**
|
|
* If true, the stream will continue to send updates until cancelled.
|
|
*
|
|
* @generated from field: bool subscribe = 1;
|
|
*/
|
|
subscribe: boolean;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStateStreamRequest.
|
|
* Use `create(SyncStateStreamRequestSchema)` to create a new message.
|
|
*/
|
|
export const SyncStateStreamRequestSchema: GenMessage<SyncStateStreamRequest> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 0);
|
|
|
|
/**
|
|
* @generated from message v1sync.PeerState
|
|
*/
|
|
export type PeerState = Message<"v1sync.PeerState"> & {
|
|
/**
|
|
* @generated from field: string peer_instance_id = 1;
|
|
*/
|
|
peerInstanceId: string;
|
|
|
|
/**
|
|
* @generated from field: string peer_keyid = 2;
|
|
*/
|
|
peerKeyid: string;
|
|
|
|
/**
|
|
* @generated from field: v1sync.ConnectionState state = 3;
|
|
*/
|
|
state: ConnectionState;
|
|
|
|
/**
|
|
* @generated from field: string status_message = 4;
|
|
*/
|
|
statusMessage: string;
|
|
|
|
/**
|
|
* List of plan IDs that the peer has.
|
|
*
|
|
* @generated from field: repeated v1sync.PlanMetadata known_plans = 5;
|
|
*/
|
|
knownPlans: PlanMetadata[];
|
|
|
|
/**
|
|
* List of repo IDs that the peer has.
|
|
*
|
|
* @generated from field: repeated v1sync.RepoMetadata known_repos = 6;
|
|
*/
|
|
knownRepos: RepoMetadata[];
|
|
|
|
/**
|
|
* The remote config of the peer, if available.
|
|
*
|
|
* @generated from field: v1sync.RemoteConfig remote_config = 7;
|
|
*/
|
|
remoteConfig?: RemoteConfig;
|
|
|
|
/**
|
|
* The last time the peer sent a heartbeat, in milliseconds since epoch.
|
|
*
|
|
* @generated from field: int64 last_heartbeat_millis = 8;
|
|
*/
|
|
lastHeartbeatMillis: bigint;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.PeerState.
|
|
* Use `create(PeerStateSchema)` to create a new message.
|
|
*/
|
|
export const PeerStateSchema: GenMessage<PeerState> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 1);
|
|
|
|
/**
|
|
* @generated from message v1sync.AuthenticateRequest
|
|
*/
|
|
export type AuthenticateRequest = Message<"v1sync.AuthenticateRequest"> & {
|
|
/**
|
|
* The ID of the peer instance.
|
|
*
|
|
* @generated from field: v1.SignedMessage instance_id = 1;
|
|
*/
|
|
instanceId?: SignedMessage;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.AuthenticateRequest.
|
|
* Use `create(AuthenticateRequestSchema)` to create a new message.
|
|
*/
|
|
export const AuthenticateRequestSchema: GenMessage<AuthenticateRequest> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 2);
|
|
|
|
/**
|
|
* @generated from message v1sync.GetOperationMetadataResponse
|
|
*/
|
|
export type GetOperationMetadataResponse = Message<"v1sync.GetOperationMetadataResponse"> & {
|
|
/**
|
|
* The IDs of the operations.
|
|
*
|
|
* @generated from field: repeated int64 op_ids = 1;
|
|
*/
|
|
opIds: bigint[];
|
|
|
|
/**
|
|
* The modnos of the operations.
|
|
*
|
|
* @generated from field: repeated int64 modnos = 2;
|
|
*/
|
|
modnos: bigint[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.GetOperationMetadataResponse.
|
|
* Use `create(GetOperationMetadataResponseSchema)` to create a new message.
|
|
*/
|
|
export const GetOperationMetadataResponseSchema: GenMessage<GetOperationMetadataResponse> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 3);
|
|
|
|
/**
|
|
* @generated from message v1sync.LogDataEntry
|
|
*/
|
|
export type LogDataEntry = Message<"v1sync.LogDataEntry"> & {
|
|
/**
|
|
* The ID of the log, only used for the first message in a log data stream.
|
|
*
|
|
* @generated from field: string log_id = 1;
|
|
*/
|
|
logId: string;
|
|
|
|
/**
|
|
* The operation ID of the operation that owns this log data.
|
|
*
|
|
* @generated from field: int64 owner_opid = 2;
|
|
*/
|
|
ownerOpid: bigint;
|
|
|
|
/**
|
|
* Unix timestamp in seconds when the log data expires.
|
|
*
|
|
* @generated from field: int64 expiration_ts_unix = 3;
|
|
*/
|
|
expirationTsUnix: bigint;
|
|
|
|
/**
|
|
* The log data chunk, can be sent repeatedly, must be terminated by a packet with size = 0.
|
|
*
|
|
* @generated from field: bytes chunk = 4;
|
|
*/
|
|
chunk: Uint8Array;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.LogDataEntry.
|
|
* Use `create(LogDataEntrySchema)` to create a new message.
|
|
*/
|
|
export const LogDataEntrySchema: GenMessage<LogDataEntry> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 4);
|
|
|
|
/**
|
|
* @generated from message v1sync.SetAvailableResourcesRequest
|
|
*/
|
|
export type SetAvailableResourcesRequest = Message<"v1sync.SetAvailableResourcesRequest"> & {
|
|
/**
|
|
* The repos that are available.
|
|
*
|
|
* @generated from field: repeated v1sync.PlanMetadata repos = 1;
|
|
*/
|
|
repos: PlanMetadata[];
|
|
|
|
/**
|
|
* The plans that are available.
|
|
*
|
|
* @generated from field: repeated v1sync.RepoMetadata plans = 2;
|
|
*/
|
|
plans: RepoMetadata[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SetAvailableResourcesRequest.
|
|
* Use `create(SetAvailableResourcesRequestSchema)` to create a new message.
|
|
*/
|
|
export const SetAvailableResourcesRequestSchema: GenMessage<SetAvailableResourcesRequest> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 5);
|
|
|
|
/**
|
|
* @generated from message v1sync.RepoMetadata
|
|
*/
|
|
export type RepoMetadata = Message<"v1sync.RepoMetadata"> & {
|
|
/**
|
|
* @generated from field: string id = 1;
|
|
*/
|
|
id: string;
|
|
|
|
/**
|
|
* @generated from field: string guid = 2;
|
|
*/
|
|
guid: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.RepoMetadata.
|
|
* Use `create(RepoMetadataSchema)` to create a new message.
|
|
*/
|
|
export const RepoMetadataSchema: GenMessage<RepoMetadata> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 6);
|
|
|
|
/**
|
|
* @generated from message v1sync.PlanMetadata
|
|
*/
|
|
export type PlanMetadata = Message<"v1sync.PlanMetadata"> & {
|
|
/**
|
|
* @generated from field: string id = 1;
|
|
*/
|
|
id: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.PlanMetadata.
|
|
* Use `create(PlanMetadataSchema)` to create a new message.
|
|
*/
|
|
export const PlanMetadataSchema: GenMessage<PlanMetadata> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 7);
|
|
|
|
/**
|
|
* @generated from message v1sync.SetConfigRequest
|
|
*/
|
|
export type SetConfigRequest = Message<"v1sync.SetConfigRequest"> & {
|
|
/**
|
|
* The plans to set.
|
|
*
|
|
* @generated from field: repeated v1.Plan plans = 1;
|
|
*/
|
|
plans: Plan[];
|
|
|
|
/**
|
|
* The repos to set.
|
|
*
|
|
* @generated from field: repeated v1.Repo repos = 2;
|
|
*/
|
|
repos: Repo[];
|
|
|
|
/**
|
|
* The repo IDs to delete.
|
|
*
|
|
* @generated from field: repeated string repos_to_delete = 3;
|
|
*/
|
|
reposToDelete: string[];
|
|
|
|
/**
|
|
* The plan IDs to delete.
|
|
*
|
|
* @generated from field: repeated string plans_to_delete = 4;
|
|
*/
|
|
plansToDelete: string[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SetConfigRequest.
|
|
* Use `create(SetConfigRequestSchema)` to create a new message.
|
|
*/
|
|
export const SetConfigRequestSchema: GenMessage<SetConfigRequest> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 8);
|
|
|
|
/**
|
|
* @generated from message v1sync.SetRemoteClientConfigRequest
|
|
*/
|
|
export type SetRemoteClientConfigRequest = Message<"v1sync.SetRemoteClientConfigRequest"> & {
|
|
/**
|
|
* The key ID of the connected peer to push config to.
|
|
*
|
|
* @generated from field: string peer_keyid = 1;
|
|
*/
|
|
peerKeyid: string;
|
|
|
|
/**
|
|
* Repos to create or update on the peer.
|
|
*
|
|
* @generated from field: repeated v1.Repo repos = 2;
|
|
*/
|
|
repos: Repo[];
|
|
|
|
/**
|
|
* Plans to create or update on the peer.
|
|
*
|
|
* @generated from field: repeated v1.Plan plans = 3;
|
|
*/
|
|
plans: Plan[];
|
|
|
|
/**
|
|
* Repo IDs to delete on the peer.
|
|
*
|
|
* @generated from field: repeated string repos_to_delete = 4;
|
|
*/
|
|
reposToDelete: string[];
|
|
|
|
/**
|
|
* Plan IDs to delete on the peer.
|
|
*
|
|
* @generated from field: repeated string plans_to_delete = 5;
|
|
*/
|
|
plansToDelete: string[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SetRemoteClientConfigRequest.
|
|
* Use `create(SetRemoteClientConfigRequestSchema)` to create a new message.
|
|
*/
|
|
export const SetRemoteClientConfigRequestSchema: GenMessage<SetRemoteClientConfigRequest> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 9);
|
|
|
|
/**
|
|
* @generated from message v1sync.SetRemoteClientConfigResponse
|
|
*/
|
|
export type SetRemoteClientConfigResponse = Message<"v1sync.SetRemoteClientConfigResponse"> & {
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SetRemoteClientConfigResponse.
|
|
* Use `create(SetRemoteClientConfigResponseSchema)` to create a new message.
|
|
*/
|
|
export const SetRemoteClientConfigResponseSchema: GenMessage<SetRemoteClientConfigResponse> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 10);
|
|
|
|
/**
|
|
* @generated from message v1sync.RemoteConfig
|
|
*/
|
|
export type RemoteConfig = Message<"v1sync.RemoteConfig"> & {
|
|
/**
|
|
* The modno of the config.
|
|
*
|
|
* @generated from field: int32 modno = 1;
|
|
*/
|
|
modno: number;
|
|
|
|
/**
|
|
* The storage version of the config.
|
|
*
|
|
* @generated from field: int32 version = 2;
|
|
*/
|
|
version: number;
|
|
|
|
/**
|
|
* @generated from field: repeated v1.Repo repos = 3;
|
|
*/
|
|
repos: Repo[];
|
|
|
|
/**
|
|
* @generated from field: repeated v1.Plan plans = 4;
|
|
*/
|
|
plans: Plan[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.RemoteConfig.
|
|
* Use `create(RemoteConfigSchema)` to create a new message.
|
|
*/
|
|
export const RemoteConfigSchema: GenMessage<RemoteConfig> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 11);
|
|
|
|
/**
|
|
* @generated from message v1sync.AuthorizationToken
|
|
*/
|
|
export type AuthorizationToken = Message<"v1sync.AuthorizationToken"> & {
|
|
/**
|
|
* @generated from field: v1.PublicKey public_key = 1;
|
|
*/
|
|
publicKey?: PublicKey;
|
|
|
|
/**
|
|
* The ID of the peer instance.
|
|
*
|
|
* @generated from field: v1.SignedMessage instance_id = 2;
|
|
*/
|
|
instanceId?: SignedMessage;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.AuthorizationToken.
|
|
* Use `create(AuthorizationTokenSchema)` to create a new message.
|
|
*/
|
|
export const AuthorizationTokenSchema: GenMessage<AuthorizationToken> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 12);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem
|
|
*/
|
|
export type SyncStreamItem = Message<"v1sync.SyncStreamItem"> & {
|
|
/**
|
|
* @generated from oneof v1sync.SyncStreamItem.action
|
|
*/
|
|
action: {
|
|
/**
|
|
* @generated from field: v1.SignedMessage signed_message = 1;
|
|
*/
|
|
value: SignedMessage;
|
|
case: "signedMessage";
|
|
} | {
|
|
/**
|
|
* note: mostly deprecated, sent through headers rather than stream.
|
|
*
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionHandshake handshake = 3;
|
|
*/
|
|
value: SyncStreamItem_SyncActionHandshake;
|
|
case: "handshake";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionHeartbeat heartbeat = 4;
|
|
*/
|
|
value: SyncStreamItem_SyncActionHeartbeat;
|
|
case: "heartbeat";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionOperationManifest operation_manifest = 20;
|
|
*/
|
|
value: SyncStreamItem_SyncActionOperationManifest;
|
|
case: "operationManifest";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionReceiveOperations receive_operations = 21;
|
|
*/
|
|
value: SyncStreamItem_SyncActionReceiveOperations;
|
|
case: "receiveOperations";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionRequestOperationData request_operation_data = 22;
|
|
*/
|
|
value: SyncStreamItem_SyncActionRequestOperationData;
|
|
case: "requestOperationData";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionReceiveConfig receive_config = 23;
|
|
*/
|
|
value: SyncStreamItem_SyncActionReceiveConfig;
|
|
case: "receiveConfig";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionSetConfig set_config = 24;
|
|
*/
|
|
value: SyncStreamItem_SyncActionSetConfig;
|
|
case: "setConfig";
|
|
} | {
|
|
/**
|
|
* request a list of available resources. Only used by the server.
|
|
*
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionRequestResources request_resources = 25;
|
|
*/
|
|
value: SyncStreamItem_SyncActionRequestResources;
|
|
case: "requestResources";
|
|
} | {
|
|
/**
|
|
* receiving a list of available resources.
|
|
*
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionReceiveResources receive_resources = 26;
|
|
*/
|
|
value: SyncStreamItem_SyncActionReceiveResources;
|
|
case: "receiveResources";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionRequestLog request_log = 30;
|
|
*/
|
|
value: SyncStreamItem_SyncActionRequestLog;
|
|
case: "requestLog";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionReceiveLogData receive_log_data = 31;
|
|
*/
|
|
value: SyncStreamItem_SyncActionReceiveLogData;
|
|
case: "receiveLogData";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionThrottle throttle = 1000;
|
|
*/
|
|
value: SyncStreamItem_SyncActionThrottle;
|
|
case: "throttle";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncEstablishSharedSecret establish_shared_secret = 2;
|
|
*/
|
|
value: SyncStreamItem_SyncEstablishSharedSecret;
|
|
case: "establishSharedSecret";
|
|
} | {
|
|
/**
|
|
* @generated from field: v1sync.SyncStreamItem.SyncActionEncrypted encrypted = 5;
|
|
*/
|
|
value: SyncStreamItem_SyncActionEncrypted;
|
|
case: "encrypted";
|
|
} | { case: undefined; value?: undefined };
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.
|
|
* Use `create(SyncStreamItemSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItemSchema: GenMessage<SyncStreamItem> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13);
|
|
|
|
/**
|
|
* SyncActionHandshake is the first message sent by each peer over the
|
|
* post-quantum encrypted channel. It carries the sender's long-term
|
|
* ed25519 identity, its instance ID, and a single signature that binds
|
|
* the identity to *this* transport session.
|
|
*
|
|
* The signature covers a domain-separated hash of:
|
|
* "backrest-sync-handshake/v1\x00"
|
|
* || protocol_version (8 bytes BE)
|
|
* || LP(instance_id)
|
|
* || LP(pairing_secret)
|
|
* || LP(transport transcript)
|
|
*
|
|
* where LP(x) = 4-byte BE length prefix || x, and the transport transcript
|
|
* is cryptoutil.TransportSession.Transcript() — a hash that commits to
|
|
* the ephemeral KEM messages of this connection.
|
|
*
|
|
* The transcript binding is what defeats a MITM that completes a separate
|
|
* KEM with each side: each leg has a different transcript, and the
|
|
* legitimate peer's signature only commits to its own transcript, so the
|
|
* attacker cannot forward a usable signature to either side.
|
|
*
|
|
* Receivers MUST recompute the transcript locally from their TransportSession
|
|
* and reject the handshake if the signature does not verify against
|
|
* public_key. There is no timestamp because freshness is provided by the
|
|
* ephemeral KEM, not by clock comparison.
|
|
*
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionHandshake
|
|
*/
|
|
export type SyncStreamItem_SyncActionHandshake = Message<"v1sync.SyncStreamItem.SyncActionHandshake"> & {
|
|
/**
|
|
* @generated from field: int64 protocol_version = 1;
|
|
*/
|
|
protocolVersion: bigint;
|
|
|
|
/**
|
|
* sender's long-term ed25519 identity
|
|
*
|
|
* @generated from field: v1.PublicKey public_key = 2;
|
|
*/
|
|
publicKey?: PublicKey;
|
|
|
|
/**
|
|
* covered by signature below
|
|
*
|
|
* @generated from field: string instance_id = 3;
|
|
*/
|
|
instanceId: string;
|
|
|
|
/**
|
|
* optional pairing token; covered by signature below
|
|
*
|
|
* @generated from field: string pairing_secret = 4;
|
|
*/
|
|
pairingSecret: string;
|
|
|
|
/**
|
|
* ed25519(public_key, H(handshake bind input))
|
|
*
|
|
* @generated from field: bytes signature = 5;
|
|
*/
|
|
signature: Uint8Array;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionHandshake.
|
|
* Use `create(SyncStreamItem_SyncActionHandshakeSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionHandshakeSchema: GenMessage<SyncStreamItem_SyncActionHandshake> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 0);
|
|
|
|
/**
|
|
* SyncActionEncrypted wraps an encrypted SyncStreamItem.
|
|
* After the post-quantum KEM handshake, all subsequent messages are sent
|
|
* inside this envelope.
|
|
*
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionEncrypted
|
|
*/
|
|
export type SyncStreamItem_SyncActionEncrypted = Message<"v1sync.SyncStreamItem.SyncActionEncrypted"> & {
|
|
/**
|
|
* 12-byte GCM nonce
|
|
*
|
|
* @generated from field: bytes nonce = 1;
|
|
*/
|
|
nonce: Uint8Array;
|
|
|
|
/**
|
|
* AES-256-GCM(serialized SyncStreamItem)
|
|
*
|
|
* @generated from field: bytes ciphertext = 2;
|
|
*/
|
|
ciphertext: Uint8Array;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionEncrypted.
|
|
* Use `create(SyncStreamItem_SyncActionEncryptedSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionEncryptedSchema: GenMessage<SyncStreamItem_SyncActionEncrypted> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 1);
|
|
|
|
/**
|
|
* SyncActionHeartbeat is sent periodically to keep the connection alive.
|
|
*
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionHeartbeat
|
|
*/
|
|
export type SyncStreamItem_SyncActionHeartbeat = Message<"v1sync.SyncStreamItem.SyncActionHeartbeat"> & {
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionHeartbeat.
|
|
* Use `create(SyncStreamItem_SyncActionHeartbeatSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionHeartbeatSchema: GenMessage<SyncStreamItem_SyncActionHeartbeat> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 2);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionReceiveConfig
|
|
*/
|
|
export type SyncStreamItem_SyncActionReceiveConfig = Message<"v1sync.SyncStreamItem.SyncActionReceiveConfig"> & {
|
|
/**
|
|
* @generated from field: v1sync.RemoteConfig config = 1;
|
|
*/
|
|
config?: RemoteConfig;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionReceiveConfig.
|
|
* Use `create(SyncStreamItem_SyncActionReceiveConfigSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionReceiveConfigSchema: GenMessage<SyncStreamItem_SyncActionReceiveConfig> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 3);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionSetConfig
|
|
*/
|
|
export type SyncStreamItem_SyncActionSetConfig = Message<"v1sync.SyncStreamItem.SyncActionSetConfig"> & {
|
|
/**
|
|
* @generated from field: repeated v1.Repo repos = 1;
|
|
*/
|
|
repos: Repo[];
|
|
|
|
/**
|
|
* @generated from field: repeated v1.Plan plans = 2;
|
|
*/
|
|
plans: Plan[];
|
|
|
|
/**
|
|
* @generated from field: repeated string repos_to_delete = 3;
|
|
*/
|
|
reposToDelete: string[];
|
|
|
|
/**
|
|
* @generated from field: repeated string plans_to_delete = 4;
|
|
*/
|
|
plansToDelete: string[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionSetConfig.
|
|
* Use `create(SyncStreamItem_SyncActionSetConfigSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionSetConfigSchema: GenMessage<SyncStreamItem_SyncActionSetConfig> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 4);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionRequestResources
|
|
*/
|
|
export type SyncStreamItem_SyncActionRequestResources = Message<"v1sync.SyncStreamItem.SyncActionRequestResources"> & {
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionRequestResources.
|
|
* Use `create(SyncStreamItem_SyncActionRequestResourcesSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionRequestResourcesSchema: GenMessage<SyncStreamItem_SyncActionRequestResources> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 5);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionReceiveResources
|
|
*/
|
|
export type SyncStreamItem_SyncActionReceiveResources = Message<"v1sync.SyncStreamItem.SyncActionReceiveResources"> & {
|
|
/**
|
|
* @generated from field: repeated v1sync.RepoMetadata repos = 1;
|
|
*/
|
|
repos: RepoMetadata[];
|
|
|
|
/**
|
|
* @generated from field: repeated v1sync.PlanMetadata plans = 2;
|
|
*/
|
|
plans: PlanMetadata[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionReceiveResources.
|
|
* Use `create(SyncStreamItem_SyncActionReceiveResourcesSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionReceiveResourcesSchema: GenMessage<SyncStreamItem_SyncActionReceiveResources> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 6);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionConnectRepo
|
|
*/
|
|
export type SyncStreamItem_SyncActionConnectRepo = Message<"v1sync.SyncStreamItem.SyncActionConnectRepo"> & {
|
|
/**
|
|
* @generated from field: string repo_id = 1;
|
|
*/
|
|
repoId: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionConnectRepo.
|
|
* Use `create(SyncStreamItem_SyncActionConnectRepoSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionConnectRepoSchema: GenMessage<SyncStreamItem_SyncActionConnectRepo> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 7);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionOperationManifest
|
|
*/
|
|
export type SyncStreamItem_SyncActionOperationManifest = Message<"v1sync.SyncStreamItem.SyncActionOperationManifest"> & {
|
|
/**
|
|
* @generated from field: repeated int64 op_ids = 1;
|
|
*/
|
|
opIds: bigint[];
|
|
|
|
/**
|
|
* @generated from field: repeated int64 modnos = 2;
|
|
*/
|
|
modnos: bigint[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionOperationManifest.
|
|
* Use `create(SyncStreamItem_SyncActionOperationManifestSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionOperationManifestSchema: GenMessage<SyncStreamItem_SyncActionOperationManifest> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 8);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionRequestOperationData
|
|
*/
|
|
export type SyncStreamItem_SyncActionRequestOperationData = Message<"v1sync.SyncStreamItem.SyncActionRequestOperationData"> & {
|
|
/**
|
|
* @generated from field: repeated int64 op_ids = 1;
|
|
*/
|
|
opIds: bigint[];
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionRequestOperationData.
|
|
* Use `create(SyncStreamItem_SyncActionRequestOperationDataSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionRequestOperationDataSchema: GenMessage<SyncStreamItem_SyncActionRequestOperationData> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 9);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionReceiveOperations
|
|
*/
|
|
export type SyncStreamItem_SyncActionReceiveOperations = Message<"v1sync.SyncStreamItem.SyncActionReceiveOperations"> & {
|
|
/**
|
|
* @generated from field: v1.OperationEvent event = 1;
|
|
*/
|
|
event?: OperationEvent;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionReceiveOperations.
|
|
* Use `create(SyncStreamItem_SyncActionReceiveOperationsSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionReceiveOperationsSchema: GenMessage<SyncStreamItem_SyncActionReceiveOperations> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 10);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionRequestLog
|
|
*/
|
|
export type SyncStreamItem_SyncActionRequestLog = Message<"v1sync.SyncStreamItem.SyncActionRequestLog"> & {
|
|
/**
|
|
* @generated from field: string log_id = 1;
|
|
*/
|
|
logId: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionRequestLog.
|
|
* Use `create(SyncStreamItem_SyncActionRequestLogSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionRequestLogSchema: GenMessage<SyncStreamItem_SyncActionRequestLog> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 11);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionReceiveLogData
|
|
*/
|
|
export type SyncStreamItem_SyncActionReceiveLogData = Message<"v1sync.SyncStreamItem.SyncActionReceiveLogData"> & {
|
|
/**
|
|
* @generated from field: string log_id = 1;
|
|
*/
|
|
logId: string;
|
|
|
|
/**
|
|
* Required only for first message in a log data stream.
|
|
*
|
|
* The operation ID of the operation that owns this log data.
|
|
*
|
|
* @generated from field: int64 owner_opid = 2;
|
|
*/
|
|
ownerOpid: bigint;
|
|
|
|
/**
|
|
* Unix timestamp in seconds when the log data expires.
|
|
*
|
|
* @generated from field: int64 expiration_ts_unix = 3;
|
|
*/
|
|
expirationTsUnix: bigint;
|
|
|
|
/**
|
|
* Can be sent repeatedly, must be terminated by a packet with size = 0.
|
|
*
|
|
* @generated from field: bytes chunk = 4;
|
|
*/
|
|
chunk: Uint8Array;
|
|
|
|
/**
|
|
* If set, indicates an error occurred while fetching the log data.
|
|
*
|
|
* @generated from field: string error_message = 5;
|
|
*/
|
|
errorMessage: string;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionReceiveLogData.
|
|
* Use `create(SyncStreamItem_SyncActionReceiveLogDataSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionReceiveLogDataSchema: GenMessage<SyncStreamItem_SyncActionReceiveLogData> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 12);
|
|
|
|
/**
|
|
* @generated from message v1sync.SyncStreamItem.SyncActionThrottle
|
|
*/
|
|
export type SyncStreamItem_SyncActionThrottle = Message<"v1sync.SyncStreamItem.SyncActionThrottle"> & {
|
|
/**
|
|
* @generated from field: int64 delay_ms = 1;
|
|
*/
|
|
delayMs: bigint;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncActionThrottle.
|
|
* Use `create(SyncStreamItem_SyncActionThrottleSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncActionThrottleSchema: GenMessage<SyncStreamItem_SyncActionThrottle> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 13);
|
|
|
|
/**
|
|
* SyncEstablishSharedSecret is exchanged immediately after the connection
|
|
* is opened. The initiator (client) sends kem_public_key. The responder
|
|
* (server) replies with kem_encapsulation. Both sides then derive a shared
|
|
* AES-256-GCM session key via the HPKE Export interface. All subsequent
|
|
* messages must be wrapped in SyncActionEncrypted.
|
|
*
|
|
* The KEM is the post-quantum hybrid ML-KEM-1024 + ECDH-P384 (HPKE
|
|
* ciphersuite ML-KEM-1024-P384 / KEM ID 0x0050, RFC 9180 + the IETF hybrid
|
|
* KEM drafts). KDF is HKDF-SHA256, AEAD is AES-256-GCM. Peers must use
|
|
* protocol_version=1; mismatched versions abort the connection.
|
|
*
|
|
* @generated from message v1sync.SyncStreamItem.SyncEstablishSharedSecret
|
|
*/
|
|
export type SyncStreamItem_SyncEstablishSharedSecret = Message<"v1sync.SyncStreamItem.SyncEstablishSharedSecret"> & {
|
|
/**
|
|
* current: 1
|
|
*
|
|
* @generated from field: uint32 protocol_version = 1;
|
|
*/
|
|
protocolVersion: number;
|
|
|
|
/**
|
|
* set by initiator
|
|
*
|
|
* @generated from field: bytes kem_public_key = 2;
|
|
*/
|
|
kemPublicKey: Uint8Array;
|
|
|
|
/**
|
|
* set by responder
|
|
*
|
|
* @generated from field: bytes kem_encapsulation = 3;
|
|
*/
|
|
kemEncapsulation: Uint8Array;
|
|
};
|
|
|
|
/**
|
|
* Describes the message v1sync.SyncStreamItem.SyncEstablishSharedSecret.
|
|
* Use `create(SyncStreamItem_SyncEstablishSharedSecretSchema)` to create a new message.
|
|
*/
|
|
export const SyncStreamItem_SyncEstablishSharedSecretSchema: GenMessage<SyncStreamItem_SyncEstablishSharedSecret> = /*@__PURE__*/
|
|
messageDesc(file_v1sync_syncservice, 13, 14);
|
|
|
|
/**
|
|
* @generated from enum v1sync.SyncStreamItem.RepoConnectionState
|
|
*/
|
|
export enum SyncStreamItem_RepoConnectionState {
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_UNKNOWN = 0;
|
|
*/
|
|
CONNECTION_STATE_UNKNOWN = 0,
|
|
|
|
/**
|
|
* queried, response not yet received.
|
|
*
|
|
* @generated from enum value: CONNECTION_STATE_PENDING = 1;
|
|
*/
|
|
CONNECTION_STATE_PENDING = 1,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_CONNECTED = 2;
|
|
*/
|
|
CONNECTION_STATE_CONNECTED = 2,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_UNAUTHORIZED = 3;
|
|
*/
|
|
CONNECTION_STATE_UNAUTHORIZED = 3,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_NOT_FOUND = 4;
|
|
*/
|
|
CONNECTION_STATE_NOT_FOUND = 4,
|
|
}
|
|
|
|
/**
|
|
* Describes the enum v1sync.SyncStreamItem.RepoConnectionState.
|
|
*/
|
|
export const SyncStreamItem_RepoConnectionStateSchema: GenEnum<SyncStreamItem_RepoConnectionState> = /*@__PURE__*/
|
|
enumDesc(file_v1sync_syncservice, 13, 0);
|
|
|
|
/**
|
|
* @generated from enum v1sync.ConnectionState
|
|
*/
|
|
export enum ConnectionState {
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_UNKNOWN = 0;
|
|
*/
|
|
UNKNOWN = 0,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_PENDING = 1;
|
|
*/
|
|
PENDING = 1,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_CONNECTED = 2;
|
|
*/
|
|
CONNECTED = 2,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_DISCONNECTED = 3;
|
|
*/
|
|
DISCONNECTED = 3,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_RETRY_WAIT = 4;
|
|
*/
|
|
RETRY_WAIT = 4,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_ERROR_AUTH = 10;
|
|
*/
|
|
ERROR_AUTH = 10,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_ERROR_PROTOCOL = 11;
|
|
*/
|
|
ERROR_PROTOCOL = 11,
|
|
|
|
/**
|
|
* @generated from enum value: CONNECTION_STATE_ERROR_INTERNAL = 12;
|
|
*/
|
|
ERROR_INTERNAL = 12,
|
|
}
|
|
|
|
/**
|
|
* Describes the enum v1sync.ConnectionState.
|
|
*/
|
|
export const ConnectionStateSchema: GenEnum<ConnectionState> = /*@__PURE__*/
|
|
enumDesc(file_v1sync_syncservice, 0);
|
|
|
|
/**
|
|
* BackrestSyncService provides methods to sync data between backrest instances.
|
|
* This service provides its own authentication and authorization.
|
|
*
|
|
* @generated from service v1sync.BackrestSyncService
|
|
*/
|
|
export const BackrestSyncService: GenService<{
|
|
/**
|
|
* @generated from rpc v1sync.BackrestSyncService.Sync
|
|
*/
|
|
sync: {
|
|
methodKind: "bidi_streaming";
|
|
input: typeof SyncStreamItemSchema;
|
|
output: typeof SyncStreamItemSchema;
|
|
},
|
|
}> = /*@__PURE__*/
|
|
serviceDesc(file_v1sync_syncservice, 0);
|
|
|
|
/**
|
|
* BackrestSyncStateService provides methods to query the sync state of known hosts and clients.
|
|
* This service should be served behind authentication and authorization.
|
|
*
|
|
* @generated from service v1sync.BackrestSyncStateService
|
|
*/
|
|
export const BackrestSyncStateService: GenService<{
|
|
/**
|
|
* @generated from rpc v1sync.BackrestSyncStateService.GetPeerSyncStatesStream
|
|
*/
|
|
getPeerSyncStatesStream: {
|
|
methodKind: "server_streaming";
|
|
input: typeof SyncStateStreamRequestSchema;
|
|
output: typeof PeerStateSchema;
|
|
},
|
|
/**
|
|
* SetRemoteClientConfig pushes a config change to a connected authorized client peer.
|
|
*
|
|
* @generated from rpc v1sync.BackrestSyncStateService.SetRemoteClientConfig
|
|
*/
|
|
setRemoteClientConfig: {
|
|
methodKind: "unary";
|
|
input: typeof SetRemoteClientConfigRequestSchema;
|
|
output: typeof SetRemoteClientConfigResponseSchema;
|
|
},
|
|
}> = /*@__PURE__*/
|
|
serviceDesc(file_v1sync_syncservice, 1);
|
|
|