adminv1connect

package
v0.2.2-dev.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: AGPL-3.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// AssistantServiceGetAssistantAccessProcedure is the fully-qualified name of the AssistantService's
	// GetAssistantAccess RPC.
	AssistantServiceGetAssistantAccessProcedure = "/mistgate.admin.v1.AssistantService/GetAssistantAccess"
	// AssistantServiceGetAssistantSettingsProcedure is the fully-qualified name of the
	// AssistantService's GetAssistantSettings RPC.
	AssistantServiceGetAssistantSettingsProcedure = "/mistgate.admin.v1.AssistantService/GetAssistantSettings"
	// AssistantServiceUpdateAssistantSettingsProcedure is the fully-qualified name of the
	// AssistantService's UpdateAssistantSettings RPC.
	AssistantServiceUpdateAssistantSettingsProcedure = "/mistgate.admin.v1.AssistantService/UpdateAssistantSettings"
	// AssistantServiceSetProviderKeyProcedure is the fully-qualified name of the AssistantService's
	// SetProviderKey RPC.
	AssistantServiceSetProviderKeyProcedure = "/mistgate.admin.v1.AssistantService/SetProviderKey"
	// AssistantServiceRemoveProviderKeyProcedure is the fully-qualified name of the AssistantService's
	// RemoveProviderKey RPC.
	AssistantServiceRemoveProviderKeyProcedure = "/mistgate.admin.v1.AssistantService/RemoveProviderKey"
	// AssistantServiceListProviderModelsProcedure is the fully-qualified name of the AssistantService's
	// ListProviderModels RPC.
	AssistantServiceListProviderModelsProcedure = "/mistgate.admin.v1.AssistantService/ListProviderModels"
	// AssistantServiceListConversationsProcedure is the fully-qualified name of the AssistantService's
	// ListConversations RPC.
	AssistantServiceListConversationsProcedure = "/mistgate.admin.v1.AssistantService/ListConversations"
	// AssistantServiceRecentQuestionsProcedure is the fully-qualified name of the AssistantService's
	// RecentQuestions RPC.
	AssistantServiceRecentQuestionsProcedure = "/mistgate.admin.v1.AssistantService/RecentQuestions"
	// AssistantServiceGetConversationProcedure is the fully-qualified name of the AssistantService's
	// GetConversation RPC.
	AssistantServiceGetConversationProcedure = "/mistgate.admin.v1.AssistantService/GetConversation"
	// AssistantServiceDeleteConversationProcedure is the fully-qualified name of the AssistantService's
	// DeleteConversation RPC.
	AssistantServiceDeleteConversationProcedure = "/mistgate.admin.v1.AssistantService/DeleteConversation"
	// AssistantServiceDeleteAllConversationsProcedure is the fully-qualified name of the
	// AssistantService's DeleteAllConversations RPC.
	AssistantServiceDeleteAllConversationsProcedure = "/mistgate.admin.v1.AssistantService/DeleteAllConversations"
	// AssistantServiceChatProcedure is the fully-qualified name of the AssistantService's Chat RPC.
	AssistantServiceChatProcedure = "/mistgate.admin.v1.AssistantService/Chat"
	// AssistantServiceStopTurnProcedure is the fully-qualified name of the AssistantService's StopTurn
	// RPC.
	AssistantServiceStopTurnProcedure = "/mistgate.admin.v1.AssistantService/StopTurn"
	// AssistantServiceApplyPlanProcedure is the fully-qualified name of the AssistantService's
	// ApplyPlan RPC.
	AssistantServiceApplyPlanProcedure = "/mistgate.admin.v1.AssistantService/ApplyPlan"
	// AssistantServiceDismissPlanProcedure is the fully-qualified name of the AssistantService's
	// DismissPlan RPC.
	AssistantServiceDismissPlanProcedure = "/mistgate.admin.v1.AssistantService/DismissPlan"
	// AssistantServiceCancelFollowUpProcedure is the fully-qualified name of the AssistantService's
	// CancelFollowUp RPC.
	AssistantServiceCancelFollowUpProcedure = "/mistgate.admin.v1.AssistantService/CancelFollowUp"
	// AssistantServiceListMemoryProcedure is the fully-qualified name of the AssistantService's
	// ListMemory RPC.
	AssistantServiceListMemoryProcedure = "/mistgate.admin.v1.AssistantService/ListMemory"
	// AssistantServiceSaveMemoryProcedure is the fully-qualified name of the AssistantService's
	// SaveMemory RPC.
	AssistantServiceSaveMemoryProcedure = "/mistgate.admin.v1.AssistantService/SaveMemory"
	// AssistantServiceDeleteMemoryProcedure is the fully-qualified name of the AssistantService's
	// DeleteMemory RPC.
	AssistantServiceDeleteMemoryProcedure = "/mistgate.admin.v1.AssistantService/DeleteMemory"
	// AssistantServiceForgetAllProcedure is the fully-qualified name of the AssistantService's
	// ForgetAll RPC.
	AssistantServiceForgetAllProcedure = "/mistgate.admin.v1.AssistantService/ForgetAll"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AuthServiceGetLoginInfoProcedure is the fully-qualified name of the AuthService's GetLoginInfo
	// RPC.
	AuthServiceGetLoginInfoProcedure = "/mistgate.admin.v1.AuthService/GetLoginInfo"
	// AuthServiceBeginSetupProcedure is the fully-qualified name of the AuthService's BeginSetup RPC.
	AuthServiceBeginSetupProcedure = "/mistgate.admin.v1.AuthService/BeginSetup"
	// AuthServiceFinishSetupProcedure is the fully-qualified name of the AuthService's FinishSetup RPC.
	AuthServiceFinishSetupProcedure = "/mistgate.admin.v1.AuthService/FinishSetup"
	// AuthServiceBeginLoginProcedure is the fully-qualified name of the AuthService's BeginLogin RPC.
	AuthServiceBeginLoginProcedure = "/mistgate.admin.v1.AuthService/BeginLogin"
	// AuthServiceFinishLoginProcedure is the fully-qualified name of the AuthService's FinishLogin RPC.
	AuthServiceFinishLoginProcedure = "/mistgate.admin.v1.AuthService/FinishLogin"
	// AuthServicePasswordLoginProcedure is the fully-qualified name of the AuthService's PasswordLogin
	// RPC.
	AuthServicePasswordLoginProcedure = "/mistgate.admin.v1.AuthService/PasswordLogin"
	// AuthServiceLogoutProcedure is the fully-qualified name of the AuthService's Logout RPC.
	AuthServiceLogoutProcedure = "/mistgate.admin.v1.AuthService/Logout"
	// AuthServiceMeProcedure is the fully-qualified name of the AuthService's Me RPC.
	AuthServiceMeProcedure = "/mistgate.admin.v1.AuthService/Me"
	// AuthServiceListPasskeysProcedure is the fully-qualified name of the AuthService's ListPasskeys
	// RPC.
	AuthServiceListPasskeysProcedure = "/mistgate.admin.v1.AuthService/ListPasskeys"
	// AuthServiceBeginAddPasskeyProcedure is the fully-qualified name of the AuthService's
	// BeginAddPasskey RPC.
	AuthServiceBeginAddPasskeyProcedure = "/mistgate.admin.v1.AuthService/BeginAddPasskey"
	// AuthServiceFinishAddPasskeyProcedure is the fully-qualified name of the AuthService's
	// FinishAddPasskey RPC.
	AuthServiceFinishAddPasskeyProcedure = "/mistgate.admin.v1.AuthService/FinishAddPasskey"
	// AuthServiceRemovePasskeyProcedure is the fully-qualified name of the AuthService's RemovePasskey
	// RPC.
	AuthServiceRemovePasskeyProcedure = "/mistgate.admin.v1.AuthService/RemovePasskey"
	// AuthServiceGetPasswordLoginProcedure is the fully-qualified name of the AuthService's
	// GetPasswordLogin RPC.
	AuthServiceGetPasswordLoginProcedure = "/mistgate.admin.v1.AuthService/GetPasswordLogin"
	// AuthServiceChangePasswordProcedure is the fully-qualified name of the AuthService's
	// ChangePassword RPC.
	AuthServiceChangePasswordProcedure = "/mistgate.admin.v1.AuthService/ChangePassword"
	// AuthServiceBeginTotpEnrollmentProcedure is the fully-qualified name of the AuthService's
	// BeginTotpEnrollment RPC.
	AuthServiceBeginTotpEnrollmentProcedure = "/mistgate.admin.v1.AuthService/BeginTotpEnrollment"
	// AuthServiceFinishTotpEnrollmentProcedure is the fully-qualified name of the AuthService's
	// FinishTotpEnrollment RPC.
	AuthServiceFinishTotpEnrollmentProcedure = "/mistgate.admin.v1.AuthService/FinishTotpEnrollment"
	// AuthServiceListSessionsProcedure is the fully-qualified name of the AuthService's ListSessions
	// RPC.
	AuthServiceListSessionsProcedure = "/mistgate.admin.v1.AuthService/ListSessions"
	// AuthServiceEndSessionProcedure is the fully-qualified name of the AuthService's EndSession RPC.
	AuthServiceEndSessionProcedure = "/mistgate.admin.v1.AuthService/EndSession"
	// AuthServiceEndOtherSessionsProcedure is the fully-qualified name of the AuthService's
	// EndOtherSessions RPC.
	AuthServiceEndOtherSessionsProcedure = "/mistgate.admin.v1.AuthService/EndOtherSessions"
	// AuthServiceListAuditProcedure is the fully-qualified name of the AuthService's ListAudit RPC.
	AuthServiceListAuditProcedure = "/mistgate.admin.v1.AuthService/ListAudit"
	// AuthServiceGetSecuritySettingsProcedure is the fully-qualified name of the AuthService's
	// GetSecuritySettings RPC.
	AuthServiceGetSecuritySettingsProcedure = "/mistgate.admin.v1.AuthService/GetSecuritySettings"
	// AuthServiceUpdateSecuritySettingsProcedure is the fully-qualified name of the AuthService's
	// UpdateSecuritySettings RPC.
	AuthServiceUpdateSecuritySettingsProcedure = "/mistgate.admin.v1.AuthService/UpdateSecuritySettings"
	// AuthServiceBeginStepUpProcedure is the fully-qualified name of the AuthService's BeginStepUp RPC.
	AuthServiceBeginStepUpProcedure = "/mistgate.admin.v1.AuthService/BeginStepUp"
	// AuthServiceFinishStepUpProcedure is the fully-qualified name of the AuthService's FinishStepUp
	// RPC.
	AuthServiceFinishStepUpProcedure = "/mistgate.admin.v1.AuthService/FinishStepUp"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AwgServiceListMimicryPresetsProcedure is the fully-qualified name of the AwgService's
	// ListMimicryPresets RPC.
	AwgServiceListMimicryPresetsProcedure = "/mistgate.admin.v1.AwgService/ListMimicryPresets"
	// AwgServiceGenerateObfuscationProcedure is the fully-qualified name of the AwgService's
	// GenerateObfuscation RPC.
	AwgServiceGenerateObfuscationProcedure = "/mistgate.admin.v1.AwgService/GenerateObfuscation"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// BackupServiceGetBackupSettingsProcedure is the fully-qualified name of the BackupService's
	// GetBackupSettings RPC.
	BackupServiceGetBackupSettingsProcedure = "/mistgate.admin.v1.BackupService/GetBackupSettings"
	// BackupServiceUpdateBackupSettingsProcedure is the fully-qualified name of the BackupService's
	// UpdateBackupSettings RPC.
	BackupServiceUpdateBackupSettingsProcedure = "/mistgate.admin.v1.BackupService/UpdateBackupSettings"
	// BackupServiceTestBackupStorageProcedure is the fully-qualified name of the BackupService's
	// TestBackupStorage RPC.
	BackupServiceTestBackupStorageProcedure = "/mistgate.admin.v1.BackupService/TestBackupStorage"
	// BackupServiceCreateBackupProcedure is the fully-qualified name of the BackupService's
	// CreateBackup RPC.
	BackupServiceCreateBackupProcedure = "/mistgate.admin.v1.BackupService/CreateBackup"
	// BackupServiceListBackupsProcedure is the fully-qualified name of the BackupService's ListBackups
	// RPC.
	BackupServiceListBackupsProcedure = "/mistgate.admin.v1.BackupService/ListBackups"
	// BackupServicePrepareRestoreProcedure is the fully-qualified name of the BackupService's
	// PrepareRestore RPC.
	BackupServicePrepareRestoreProcedure = "/mistgate.admin.v1.BackupService/PrepareRestore"
	// BackupServiceConfirmRestoreProcedure is the fully-qualified name of the BackupService's
	// ConfirmRestore RPC.
	BackupServiceConfirmRestoreProcedure = "/mistgate.admin.v1.BackupService/ConfirmRestore"
	// BackupServiceListKeptDataProcedure is the fully-qualified name of the BackupService's
	// ListKeptData RPC.
	BackupServiceListKeptDataProcedure = "/mistgate.admin.v1.BackupService/ListKeptData"
	// BackupServiceDeleteKeptDataProcedure is the fully-qualified name of the BackupService's
	// DeleteKeptData RPC.
	BackupServiceDeleteKeptDataProcedure = "/mistgate.admin.v1.BackupService/DeleteKeptData"
	// BackupServiceGetRestoreResultProcedure is the fully-qualified name of the BackupService's
	// GetRestoreResult RPC.
	BackupServiceGetRestoreResultProcedure = "/mistgate.admin.v1.BackupService/GetRestoreResult"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// BlocklistServiceGetBlocklistProcedure is the fully-qualified name of the BlocklistService's
	// GetBlocklist RPC.
	BlocklistServiceGetBlocklistProcedure = "/mistgate.admin.v1.BlocklistService/GetBlocklist"
	// BlocklistServiceUpdateBlocklistProcedure is the fully-qualified name of the BlocklistService's
	// UpdateBlocklist RPC.
	BlocklistServiceUpdateBlocklistProcedure = "/mistgate.admin.v1.BlocklistService/UpdateBlocklist"
	// BlocklistServiceTestBlocklistProcedure is the fully-qualified name of the BlocklistService's
	// TestBlocklist RPC.
	BlocklistServiceTestBlocklistProcedure = "/mistgate.admin.v1.BlocklistService/TestBlocklist"
	// BlocklistServiceDisconnectBlocklistProcedure is the fully-qualified name of the
	// BlocklistService's DisconnectBlocklist RPC.
	BlocklistServiceDisconnectBlocklistProcedure = "/mistgate.admin.v1.BlocklistService/DisconnectBlocklist"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// BsbordServiceGetBsbordProcedure is the fully-qualified name of the BsbordService's GetBsbord RPC.
	BsbordServiceGetBsbordProcedure = "/mistgate.admin.v1.BsbordService/GetBsbord"
	// BsbordServiceUpdateBsbordProcedure is the fully-qualified name of the BsbordService's
	// UpdateBsbord RPC.
	BsbordServiceUpdateBsbordProcedure = "/mistgate.admin.v1.BsbordService/UpdateBsbord"
	// BsbordServiceTestBsbordProcedure is the fully-qualified name of the BsbordService's TestBsbord
	// RPC.
	BsbordServiceTestBsbordProcedure = "/mistgate.admin.v1.BsbordService/TestBsbord"
	// BsbordServiceListBsbordUnitsProcedure is the fully-qualified name of the BsbordService's
	// ListBsbordUnits RPC.
	BsbordServiceListBsbordUnitsProcedure = "/mistgate.admin.v1.BsbordService/ListBsbordUnits"
	// BsbordServicePreviewBsbordProcedure is the fully-qualified name of the BsbordService's
	// PreviewBsbord RPC.
	BsbordServicePreviewBsbordProcedure = "/mistgate.admin.v1.BsbordService/PreviewBsbord"
	// BsbordServiceDisconnectBsbordProcedure is the fully-qualified name of the BsbordService's
	// DisconnectBsbord RPC.
	BsbordServiceDisconnectBsbordProcedure = "/mistgate.admin.v1.BsbordService/DisconnectBsbord"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// CheburcheckServiceGetCheburcheckProcedure is the fully-qualified name of the CheburcheckService's
	// GetCheburcheck RPC.
	CheburcheckServiceGetCheburcheckProcedure = "/mistgate.admin.v1.CheburcheckService/GetCheburcheck"
	// CheburcheckServiceUpdateCheburcheckProcedure is the fully-qualified name of the
	// CheburcheckService's UpdateCheburcheck RPC.
	CheburcheckServiceUpdateCheburcheckProcedure = "/mistgate.admin.v1.CheburcheckService/UpdateCheburcheck"
	// CheburcheckServiceTestCheburcheckProcedure is the fully-qualified name of the
	// CheburcheckService's TestCheburcheck RPC.
	CheburcheckServiceTestCheburcheckProcedure = "/mistgate.admin.v1.CheburcheckService/TestCheburcheck"
	// CheburcheckServiceDisconnectCheburcheckProcedure is the fully-qualified name of the
	// CheburcheckService's DisconnectCheburcheck RPC.
	CheburcheckServiceDisconnectCheburcheckProcedure = "/mistgate.admin.v1.CheburcheckService/DisconnectCheburcheck"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ClientApiServiceGetClientApiProcedure is the fully-qualified name of the ClientApiService's
	// GetClientApi RPC.
	ClientApiServiceGetClientApiProcedure = "/mistgate.admin.v1.ClientApiService/GetClientApi"
	// ClientApiServiceUpdateClientApiProcedure is the fully-qualified name of the ClientApiService's
	// UpdateClientApi RPC.
	ClientApiServiceUpdateClientApiProcedure = "/mistgate.admin.v1.ClientApiService/UpdateClientApi"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ClientCompatServiceGetClientCompatProcedure is the fully-qualified name of the
	// ClientCompatService's GetClientCompat RPC.
	ClientCompatServiceGetClientCompatProcedure = "/mistgate.admin.v1.ClientCompatService/GetClientCompat"
	// ClientCompatServiceUpdateClientCompatProcedure is the fully-qualified name of the
	// ClientCompatService's UpdateClientCompat RPC.
	ClientCompatServiceUpdateClientCompatProcedure = "/mistgate.admin.v1.ClientCompatService/UpdateClientCompat"
	// ClientCompatServiceListOutdatedDevicesProcedure is the fully-qualified name of the
	// ClientCompatService's ListOutdatedDevices RPC.
	ClientCompatServiceListOutdatedDevicesProcedure = "/mistgate.admin.v1.ClientCompatService/ListOutdatedDevices"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ClientProbeServiceGetClientProbeProcedure is the fully-qualified name of the ClientProbeService's
	// GetClientProbe RPC.
	ClientProbeServiceGetClientProbeProcedure = "/mistgate.admin.v1.ClientProbeService/GetClientProbe"
	// ClientProbeServiceUpdateClientProbeProcedure is the fully-qualified name of the
	// ClientProbeService's UpdateClientProbe RPC.
	ClientProbeServiceUpdateClientProbeProcedure = "/mistgate.admin.v1.ClientProbeService/UpdateClientProbe"
	// ClientProbeServiceDisconnectClientProbeProcedure is the fully-qualified name of the
	// ClientProbeService's DisconnectClientProbe RPC.
	ClientProbeServiceDisconnectClientProbeProcedure = "/mistgate.admin.v1.ClientProbeService/DisconnectClientProbe"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// CountryReachabilityServiceGetCountryReachabilityProcedure is the fully-qualified name of the
	// CountryReachabilityService's GetCountryReachability RPC.
	CountryReachabilityServiceGetCountryReachabilityProcedure = "/mistgate.admin.v1.CountryReachabilityService/GetCountryReachability"
	// CountryReachabilityServiceUpdateCountryReachabilityProcedure is the fully-qualified name of the
	// CountryReachabilityService's UpdateCountryReachability RPC.
	CountryReachabilityServiceUpdateCountryReachabilityProcedure = "/mistgate.admin.v1.CountryReachabilityService/UpdateCountryReachability"
	// CountryReachabilityServiceGetReachabilityHistoryProcedure is the fully-qualified name of the
	// CountryReachabilityService's GetReachabilityHistory RPC.
	CountryReachabilityServiceGetReachabilityHistoryProcedure = "/mistgate.admin.v1.CountryReachabilityService/GetReachabilityHistory"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// DeviceServiceCreateAwgDeviceProcedure is the fully-qualified name of the DeviceService's
	// CreateAwgDevice RPC.
	DeviceServiceCreateAwgDeviceProcedure = "/mistgate.admin.v1.DeviceService/CreateAwgDevice"
	// DeviceServiceGetDeviceConfigsProcedure is the fully-qualified name of the DeviceService's
	// GetDeviceConfigs RPC.
	DeviceServiceGetDeviceConfigsProcedure = "/mistgate.admin.v1.DeviceService/GetDeviceConfigs"
	// DeviceServiceRotateDeviceKeysProcedure is the fully-qualified name of the DeviceService's
	// RotateDeviceKeys RPC.
	DeviceServiceRotateDeviceKeysProcedure = "/mistgate.admin.v1.DeviceService/RotateDeviceKeys"
	// DeviceServiceRenameDeviceProcedure is the fully-qualified name of the DeviceService's
	// RenameDevice RPC.
	DeviceServiceRenameDeviceProcedure = "/mistgate.admin.v1.DeviceService/RenameDevice"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// DnsServiceListDnsPresetsProcedure is the fully-qualified name of the DnsService's ListDnsPresets
	// RPC.
	DnsServiceListDnsPresetsProcedure = "/mistgate.admin.v1.DnsService/ListDnsPresets"
	// DnsServiceCreateDnsPresetProcedure is the fully-qualified name of the DnsService's
	// CreateDnsPreset RPC.
	DnsServiceCreateDnsPresetProcedure = "/mistgate.admin.v1.DnsService/CreateDnsPreset"
	// DnsServiceUpdateDnsPresetProcedure is the fully-qualified name of the DnsService's
	// UpdateDnsPreset RPC.
	DnsServiceUpdateDnsPresetProcedure = "/mistgate.admin.v1.DnsService/UpdateDnsPreset"
	// DnsServiceDeleteDnsPresetProcedure is the fully-qualified name of the DnsService's
	// DeleteDnsPreset RPC.
	DnsServiceDeleteDnsPresetProcedure = "/mistgate.admin.v1.DnsService/DeleteDnsPreset"
	// DnsServiceListNodeDnsOptionsProcedure is the fully-qualified name of the DnsService's
	// ListNodeDnsOptions RPC.
	DnsServiceListNodeDnsOptionsProcedure = "/mistgate.admin.v1.DnsService/ListNodeDnsOptions"
	// DnsServiceSetNodeDnsOptionsProcedure is the fully-qualified name of the DnsService's
	// SetNodeDnsOptions RPC.
	DnsServiceSetNodeDnsOptionsProcedure = "/mistgate.admin.v1.DnsService/SetNodeDnsOptions"
	// DnsServiceGetUserDnsChoicesProcedure is the fully-qualified name of the DnsService's
	// GetUserDnsChoices RPC.
	DnsServiceGetUserDnsChoicesProcedure = "/mistgate.admin.v1.DnsService/GetUserDnsChoices"
	// DnsServiceResetUserDnsChoicesProcedure is the fully-qualified name of the DnsService's
	// ResetUserDnsChoices RPC.
	DnsServiceResetUserDnsChoicesProcedure = "/mistgate.admin.v1.DnsService/ResetUserDnsChoices"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// FleetServiceOverviewProcedure is the fully-qualified name of the FleetService's Overview RPC.
	FleetServiceOverviewProcedure = "/mistgate.admin.v1.FleetService/Overview"
	// FleetServiceListEventsProcedure is the fully-qualified name of the FleetService's ListEvents RPC.
	FleetServiceListEventsProcedure = "/mistgate.admin.v1.FleetService/ListEvents"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// GlobalpingServiceGetGlobalpingProcedure is the fully-qualified name of the GlobalpingService's
	// GetGlobalping RPC.
	GlobalpingServiceGetGlobalpingProcedure = "/mistgate.admin.v1.GlobalpingService/GetGlobalping"
	// GlobalpingServiceUpdateGlobalpingProcedure is the fully-qualified name of the GlobalpingService's
	// UpdateGlobalping RPC.
	GlobalpingServiceUpdateGlobalpingProcedure = "/mistgate.admin.v1.GlobalpingService/UpdateGlobalping"
	// GlobalpingServiceTestGlobalpingProcedure is the fully-qualified name of the GlobalpingService's
	// TestGlobalping RPC.
	GlobalpingServiceTestGlobalpingProcedure = "/mistgate.admin.v1.GlobalpingService/TestGlobalping"
	// GlobalpingServiceDisconnectGlobalpingProcedure is the fully-qualified name of the
	// GlobalpingService's DisconnectGlobalping RPC.
	GlobalpingServiceDisconnectGlobalpingProcedure = "/mistgate.admin.v1.GlobalpingService/DisconnectGlobalping"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// GroupServiceListGroupsProcedure is the fully-qualified name of the GroupService's ListGroups RPC.
	GroupServiceListGroupsProcedure = "/mistgate.admin.v1.GroupService/ListGroups"
	// GroupServiceCreateGroupProcedure is the fully-qualified name of the GroupService's CreateGroup
	// RPC.
	GroupServiceCreateGroupProcedure = "/mistgate.admin.v1.GroupService/CreateGroup"
	// GroupServiceUpdateGroupProcedure is the fully-qualified name of the GroupService's UpdateGroup
	// RPC.
	GroupServiceUpdateGroupProcedure = "/mistgate.admin.v1.GroupService/UpdateGroup"
	// GroupServiceDeleteGroupProcedure is the fully-qualified name of the GroupService's DeleteGroup
	// RPC.
	GroupServiceDeleteGroupProcedure = "/mistgate.admin.v1.GroupService/DeleteGroup"
	// GroupServiceSetNodeSharingProcedure is the fully-qualified name of the GroupService's
	// SetNodeSharing RPC.
	GroupServiceSetNodeSharingProcedure = "/mistgate.admin.v1.GroupService/SetNodeSharing"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// HealthServiceListAlertsProcedure is the fully-qualified name of the HealthService's ListAlerts
	// RPC.
	HealthServiceListAlertsProcedure = "/mistgate.admin.v1.HealthService/ListAlerts"
	// HealthServiceMuteAlertProcedure is the fully-qualified name of the HealthService's MuteAlert RPC.
	HealthServiceMuteAlertProcedure = "/mistgate.admin.v1.HealthService/MuteAlert"
	// HealthServiceDismissAlertProcedure is the fully-qualified name of the HealthService's
	// DismissAlert RPC.
	HealthServiceDismissAlertProcedure = "/mistgate.admin.v1.HealthService/DismissAlert"
	// HealthServiceGetChecksProcedure is the fully-qualified name of the HealthService's GetChecks RPC.
	HealthServiceGetChecksProcedure = "/mistgate.admin.v1.HealthService/GetChecks"
	// HealthServiceRunChecksNowProcedure is the fully-qualified name of the HealthService's
	// RunChecksNow RPC.
	HealthServiceRunChecksNowProcedure = "/mistgate.admin.v1.HealthService/RunChecksNow"
	// HealthServiceGetDoctorProcedure is the fully-qualified name of the HealthService's GetDoctor RPC.
	HealthServiceGetDoctorProcedure = "/mistgate.admin.v1.HealthService/GetDoctor"
	// HealthServiceRunDoctorProcedure is the fully-qualified name of the HealthService's RunDoctor RPC.
	HealthServiceRunDoctorProcedure = "/mistgate.admin.v1.HealthService/RunDoctor"
	// HealthServiceApplyFixProcedure is the fully-qualified name of the HealthService's ApplyFix RPC.
	HealthServiceApplyFixProcedure = "/mistgate.admin.v1.HealthService/ApplyFix"
	// HealthServiceAcceptDoctorItemProcedure is the fully-qualified name of the HealthService's
	// AcceptDoctorItem RPC.
	HealthServiceAcceptDoctorItemProcedure = "/mistgate.admin.v1.HealthService/AcceptDoctorItem"
	// HealthServiceUnacceptDoctorItemProcedure is the fully-qualified name of the HealthService's
	// UnacceptDoctorItem RPC.
	HealthServiceUnacceptDoctorItemProcedure = "/mistgate.admin.v1.HealthService/UnacceptDoctorItem"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// InstanceServiceGetInstanceProcedure is the fully-qualified name of the InstanceService's
	// GetInstance RPC.
	InstanceServiceGetInstanceProcedure = "/mistgate.admin.v1.InstanceService/GetInstance"
	// InstanceServiceUpdateInstanceProcedure is the fully-qualified name of the InstanceService's
	// UpdateInstance RPC.
	InstanceServiceUpdateInstanceProcedure = "/mistgate.admin.v1.InstanceService/UpdateInstance"
	// InstanceServiceEncodeQrProcedure is the fully-qualified name of the InstanceService's EncodeQr
	// RPC.
	InstanceServiceEncodeQrProcedure = "/mistgate.admin.v1.InstanceService/EncodeQr"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ApiTokenServiceName is the fully-qualified name of the ApiTokenService service.
	ApiTokenServiceName = "mistgate.admin.v1.ApiTokenService"
	// ApprovalServiceName is the fully-qualified name of the ApprovalService service.
	ApprovalServiceName = "mistgate.admin.v1.ApprovalService"
)
View Source
const (
	// ApiTokenServiceCreateApiTokenProcedure is the fully-qualified name of the ApiTokenService's
	// CreateApiToken RPC.
	ApiTokenServiceCreateApiTokenProcedure = "/mistgate.admin.v1.ApiTokenService/CreateApiToken"
	// ApiTokenServiceSetApiTokenBulkProcedure is the fully-qualified name of the ApiTokenService's
	// SetApiTokenBulk RPC.
	ApiTokenServiceSetApiTokenBulkProcedure = "/mistgate.admin.v1.ApiTokenService/SetApiTokenBulk"
	// ApiTokenServiceListApiTokensProcedure is the fully-qualified name of the ApiTokenService's
	// ListApiTokens RPC.
	ApiTokenServiceListApiTokensProcedure = "/mistgate.admin.v1.ApiTokenService/ListApiTokens"
	// ApiTokenServiceRevokeApiTokenProcedure is the fully-qualified name of the ApiTokenService's
	// RevokeApiToken RPC.
	ApiTokenServiceRevokeApiTokenProcedure = "/mistgate.admin.v1.ApiTokenService/RevokeApiToken"
	// ApprovalServiceListApprovalsProcedure is the fully-qualified name of the ApprovalService's
	// ListApprovals RPC.
	ApprovalServiceListApprovalsProcedure = "/mistgate.admin.v1.ApprovalService/ListApprovals"
	// ApprovalServiceApproveProcedure is the fully-qualified name of the ApprovalService's Approve RPC.
	ApprovalServiceApproveProcedure = "/mistgate.admin.v1.ApprovalService/Approve"
	// ApprovalServiceRejectProcedure is the fully-qualified name of the ApprovalService's Reject RPC.
	ApprovalServiceRejectProcedure = "/mistgate.admin.v1.ApprovalService/Reject"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// NodeServiceListNodesProcedure is the fully-qualified name of the NodeService's ListNodes RPC.
	NodeServiceListNodesProcedure = "/mistgate.admin.v1.NodeService/ListNodes"
	// NodeServiceGetNodeProcedure is the fully-qualified name of the NodeService's GetNode RPC.
	NodeServiceGetNodeProcedure = "/mistgate.admin.v1.NodeService/GetNode"
	// NodeServiceCreateEnrollmentProcedure is the fully-qualified name of the NodeService's
	// CreateEnrollment RPC.
	NodeServiceCreateEnrollmentProcedure = "/mistgate.admin.v1.NodeService/CreateEnrollment"
	// NodeServiceUpdateNodeProcedure is the fully-qualified name of the NodeService's UpdateNode RPC.
	NodeServiceUpdateNodeProcedure = "/mistgate.admin.v1.NodeService/UpdateNode"
	// NodeServiceSetNodeDecoyModeProcedure is the fully-qualified name of the NodeService's
	// SetNodeDecoyMode RPC.
	NodeServiceSetNodeDecoyModeProcedure = "/mistgate.admin.v1.NodeService/SetNodeDecoyMode"
	// NodeServiceUploadNodeDecoyProcedure is the fully-qualified name of the NodeService's
	// UploadNodeDecoy RPC.
	NodeServiceUploadNodeDecoyProcedure = "/mistgate.admin.v1.NodeService/UploadNodeDecoy"
	// NodeServiceSetNodesDecoyModeProcedure is the fully-qualified name of the NodeService's
	// SetNodesDecoyMode RPC.
	NodeServiceSetNodesDecoyModeProcedure = "/mistgate.admin.v1.NodeService/SetNodesDecoyMode"
	// NodeServiceRestartInboundsProcedure is the fully-qualified name of the NodeService's
	// RestartInbounds RPC.
	NodeServiceRestartInboundsProcedure = "/mistgate.admin.v1.NodeService/RestartInbounds"
	// NodeServicePrepareAwgKernelProcedure is the fully-qualified name of the NodeService's
	// PrepareAwgKernel RPC.
	NodeServicePrepareAwgKernelProcedure = "/mistgate.admin.v1.NodeService/PrepareAwgKernel"
	// NodeServiceMeasureBandwidthProcedure is the fully-qualified name of the NodeService's
	// MeasureBandwidth RPC.
	NodeServiceMeasureBandwidthProcedure = "/mistgate.admin.v1.NodeService/MeasureBandwidth"
	// NodeServiceCheckPortsProcedure is the fully-qualified name of the NodeService's CheckPorts RPC.
	NodeServiceCheckPortsProcedure = "/mistgate.admin.v1.NodeService/CheckPorts"
	// NodeServiceCheckIpv6Procedure is the fully-qualified name of the NodeService's CheckIpv6 RPC.
	NodeServiceCheckIpv6Procedure = "/mistgate.admin.v1.NodeService/CheckIpv6"
	// NodeServiceUpdateIpv6EntryProcedure is the fully-qualified name of the NodeService's
	// UpdateIpv6Entry RPC.
	NodeServiceUpdateIpv6EntryProcedure = "/mistgate.admin.v1.NodeService/UpdateIpv6Entry"
	// NodeServiceRetireNodeProcedure is the fully-qualified name of the NodeService's RetireNode RPC.
	NodeServiceRetireNodeProcedure = "/mistgate.admin.v1.NodeService/RetireNode"
	// NodeServiceStreamLogsProcedure is the fully-qualified name of the NodeService's StreamLogs RPC.
	NodeServiceStreamLogsProcedure = "/mistgate.admin.v1.NodeService/StreamLogs"
	// NodeServiceGetNodeConnectionsProcedure is the fully-qualified name of the NodeService's
	// GetNodeConnections RPC.
	NodeServiceGetNodeConnectionsProcedure = "/mistgate.admin.v1.NodeService/GetNodeConnections"
	// NodeServiceGetNodeJournalProcedure is the fully-qualified name of the NodeService's
	// GetNodeJournal RPC.
	NodeServiceGetNodeJournalProcedure = "/mistgate.admin.v1.NodeService/GetNodeJournal"
	// NodeServiceGetFleetConnectionsProcedure is the fully-qualified name of the NodeService's
	// GetFleetConnections RPC.
	NodeServiceGetFleetConnectionsProcedure = "/mistgate.admin.v1.NodeService/GetFleetConnections"
	// NodeServiceGetNetworksProcedure is the fully-qualified name of the NodeService's GetNetworks RPC.
	NodeServiceGetNetworksProcedure = "/mistgate.admin.v1.NodeService/GetNetworks"
	// NodeServiceGetNodeRuntimeProcedure is the fully-qualified name of the NodeService's
	// GetNodeRuntime RPC.
	NodeServiceGetNodeRuntimeProcedure = "/mistgate.admin.v1.NodeService/GetNodeRuntime"
	// NodeServiceGetNodeHostHistoryProcedure is the fully-qualified name of the NodeService's
	// GetNodeHostHistory RPC.
	NodeServiceGetNodeHostHistoryProcedure = "/mistgate.admin.v1.NodeService/GetNodeHostHistory"
	// NodeServiceGetPathLossProcedure is the fully-qualified name of the NodeService's GetPathLoss RPC.
	NodeServiceGetPathLossProcedure = "/mistgate.admin.v1.NodeService/GetPathLoss"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ProfileServiceListProtocolsProcedure is the fully-qualified name of the ProfileService's
	// ListProtocols RPC.
	ProfileServiceListProtocolsProcedure = "/mistgate.admin.v1.ProfileService/ListProtocols"
	// ProfileServiceListProfilesProcedure is the fully-qualified name of the ProfileService's
	// ListProfiles RPC.
	ProfileServiceListProfilesProcedure = "/mistgate.admin.v1.ProfileService/ListProfiles"
	// ProfileServiceGetProfileProcedure is the fully-qualified name of the ProfileService's GetProfile
	// RPC.
	ProfileServiceGetProfileProcedure = "/mistgate.admin.v1.ProfileService/GetProfile"
	// ProfileServiceCreateProfileProcedure is the fully-qualified name of the ProfileService's
	// CreateProfile RPC.
	ProfileServiceCreateProfileProcedure = "/mistgate.admin.v1.ProfileService/CreateProfile"
	// ProfileServiceUpdateProfileProcedure is the fully-qualified name of the ProfileService's
	// UpdateProfile RPC.
	ProfileServiceUpdateProfileProcedure = "/mistgate.admin.v1.ProfileService/UpdateProfile"
	// ProfileServicePreviewProfileProcedure is the fully-qualified name of the ProfileService's
	// PreviewProfile RPC.
	ProfileServicePreviewProfileProcedure = "/mistgate.admin.v1.ProfileService/PreviewProfile"
	// ProfileServiceDeleteProfileProcedure is the fully-qualified name of the ProfileService's
	// DeleteProfile RPC.
	ProfileServiceDeleteProfileProcedure = "/mistgate.admin.v1.ProfileService/DeleteProfile"
	// ProfileServiceCreateInboundProcedure is the fully-qualified name of the ProfileService's
	// CreateInbound RPC.
	ProfileServiceCreateInboundProcedure = "/mistgate.admin.v1.ProfileService/CreateInbound"
	// ProfileServiceUpdateInboundProcedure is the fully-qualified name of the ProfileService's
	// UpdateInbound RPC.
	ProfileServiceUpdateInboundProcedure = "/mistgate.admin.v1.ProfileService/UpdateInbound"
	// ProfileServiceDeleteInboundProcedure is the fully-qualified name of the ProfileService's
	// DeleteInbound RPC.
	ProfileServiceDeleteInboundProcedure = "/mistgate.admin.v1.ProfileService/DeleteInbound"
	// ProfileServiceRemoveProfileFromNodesProcedure is the fully-qualified name of the ProfileService's
	// RemoveProfileFromNodes RPC.
	ProfileServiceRemoveProfileFromNodesProcedure = "/mistgate.admin.v1.ProfileService/RemoveProfileFromNodes"
	// ProfileServiceTwinProfileProcedure is the fully-qualified name of the ProfileService's
	// TwinProfile RPC.
	ProfileServiceTwinProfileProcedure = "/mistgate.admin.v1.ProfileService/TwinProfile"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// ProvisioningServiceGetSSHFingerprintProcedure is the fully-qualified name of the
	// ProvisioningService's GetSSHFingerprint RPC.
	ProvisioningServiceGetSSHFingerprintProcedure = "/mistgate.admin.v1.ProvisioningService/GetSSHFingerprint"
	// ProvisioningServiceGetPanelSSHKeyProcedure is the fully-qualified name of the
	// ProvisioningService's GetPanelSSHKey RPC.
	ProvisioningServiceGetPanelSSHKeyProcedure = "/mistgate.admin.v1.ProvisioningService/GetPanelSSHKey"
	// ProvisioningServiceCheckSSHProcedure is the fully-qualified name of the ProvisioningService's
	// CheckSSH RPC.
	ProvisioningServiceCheckSSHProcedure = "/mistgate.admin.v1.ProvisioningService/CheckSSH"
	// ProvisioningServiceStartNodeProvisionProcedure is the fully-qualified name of the
	// ProvisioningService's StartNodeProvision RPC.
	ProvisioningServiceStartNodeProvisionProcedure = "/mistgate.admin.v1.ProvisioningService/StartNodeProvision"
	// ProvisioningServiceRetryNodeProvisionProcedure is the fully-qualified name of the
	// ProvisioningService's RetryNodeProvision RPC.
	ProvisioningServiceRetryNodeProvisionProcedure = "/mistgate.admin.v1.ProvisioningService/RetryNodeProvision"
	// ProvisioningServiceGetNodeProvisionProcedure is the fully-qualified name of the
	// ProvisioningService's GetNodeProvision RPC.
	ProvisioningServiceGetNodeProvisionProcedure = "/mistgate.admin.v1.ProvisioningService/GetNodeProvision"
	// ProvisioningServiceListNodeProvisionsProcedure is the fully-qualified name of the
	// ProvisioningService's ListNodeProvisions RPC.
	ProvisioningServiceListNodeProvisionsProcedure = "/mistgate.admin.v1.ProvisioningService/ListNodeProvisions"
	// ProvisioningServiceListNodeProvisionEventsProcedure is the fully-qualified name of the
	// ProvisioningService's ListNodeProvisionEvents RPC.
	ProvisioningServiceListNodeProvisionEventsProcedure = "/mistgate.admin.v1.ProvisioningService/ListNodeProvisionEvents"
	// ProvisioningServiceListNodeServerAccessProcedure is the fully-qualified name of the
	// ProvisioningService's ListNodeServerAccess RPC.
	ProvisioningServiceListNodeServerAccessProcedure = "/mistgate.admin.v1.ProvisioningService/ListNodeServerAccess"
	// ProvisioningServiceListNodeServerKeysProcedure is the fully-qualified name of the
	// ProvisioningService's ListNodeServerKeys RPC.
	ProvisioningServiceListNodeServerKeysProcedure = "/mistgate.admin.v1.ProvisioningService/ListNodeServerKeys"
	// ProvisioningServiceAddNodeServerKeyProcedure is the fully-qualified name of the
	// ProvisioningService's AddNodeServerKey RPC.
	ProvisioningServiceAddNodeServerKeyProcedure = "/mistgate.admin.v1.ProvisioningService/AddNodeServerKey"
	// ProvisioningServiceRemoveNodeServerKeyProcedure is the fully-qualified name of the
	// ProvisioningService's RemoveNodeServerKey RPC.
	ProvisioningServiceRemoveNodeServerKeyProcedure = "/mistgate.admin.v1.ProvisioningService/RemoveNodeServerKey"
	// ProvisioningServiceAttachNodeServerAccessProcedure is the fully-qualified name of the
	// ProvisioningService's AttachNodeServerAccess RPC.
	ProvisioningServiceAttachNodeServerAccessProcedure = "/mistgate.admin.v1.ProvisioningService/AttachNodeServerAccess"
	// ProvisioningServiceRotateNodeServerPasswordProcedure is the fully-qualified name of the
	// ProvisioningService's RotateNodeServerPassword RPC.
	ProvisioningServiceRotateNodeServerPasswordProcedure = "/mistgate.admin.v1.ProvisioningService/RotateNodeServerPassword"
	// ProvisioningServiceRevealNodeServerPasswordProcedure is the fully-qualified name of the
	// ProvisioningService's RevealNodeServerPassword RPC.
	ProvisioningServiceRevealNodeServerPasswordProcedure = "/mistgate.admin.v1.ProvisioningService/RevealNodeServerPassword"
	// ProvisioningServiceForgetNodeServerAccessProcedure is the fully-qualified name of the
	// ProvisioningService's ForgetNodeServerAccess RPC.
	ProvisioningServiceForgetNodeServerAccessProcedure = "/mistgate.admin.v1.ProvisioningService/ForgetNodeServerAccess"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// RelayServiceListRelaysProcedure is the fully-qualified name of the RelayService's ListRelays RPC.
	RelayServiceListRelaysProcedure = "/mistgate.admin.v1.RelayService/ListRelays"
	// RelayServiceCreateRelayProcedure is the fully-qualified name of the RelayService's CreateRelay
	// RPC.
	RelayServiceCreateRelayProcedure = "/mistgate.admin.v1.RelayService/CreateRelay"
	// RelayServiceUpdateRelayProcedure is the fully-qualified name of the RelayService's UpdateRelay
	// RPC.
	RelayServiceUpdateRelayProcedure = "/mistgate.admin.v1.RelayService/UpdateRelay"
	// RelayServiceDeleteRelayProcedure is the fully-qualified name of the RelayService's DeleteRelay
	// RPC.
	RelayServiceDeleteRelayProcedure = "/mistgate.admin.v1.RelayService/DeleteRelay"
	// RelayServiceCheckRelayProcedure is the fully-qualified name of the RelayService's CheckRelay RPC.
	RelayServiceCheckRelayProcedure = "/mistgate.admin.v1.RelayService/CheckRelay"
	// RelayServiceListRelayCandidatesProcedure is the fully-qualified name of the RelayService's
	// ListRelayCandidates RPC.
	RelayServiceListRelayCandidatesProcedure = "/mistgate.admin.v1.RelayService/ListRelayCandidates"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// SubscriptionServiceGetSubscriptionSettingsProcedure is the fully-qualified name of the
	// SubscriptionService's GetSubscriptionSettings RPC.
	SubscriptionServiceGetSubscriptionSettingsProcedure = "/mistgate.admin.v1.SubscriptionService/GetSubscriptionSettings"
	// SubscriptionServiceUpdateSubscriptionSettingsProcedure is the fully-qualified name of the
	// SubscriptionService's UpdateSubscriptionSettings RPC.
	SubscriptionServiceUpdateSubscriptionSettingsProcedure = "/mistgate.admin.v1.SubscriptionService/UpdateSubscriptionSettings"
	// SubscriptionServiceListClientsProcedure is the fully-qualified name of the SubscriptionService's
	// ListClients RPC.
	SubscriptionServiceListClientsProcedure = "/mistgate.admin.v1.SubscriptionService/ListClients"
	// SubscriptionServiceTestUserAgentProcedure is the fully-qualified name of the
	// SubscriptionService's TestUserAgent RPC.
	SubscriptionServiceTestUserAgentProcedure = "/mistgate.admin.v1.SubscriptionService/TestUserAgent"
	// SubscriptionServicePreviewResponseHeadersProcedure is the fully-qualified name of the
	// SubscriptionService's PreviewResponseHeaders RPC.
	SubscriptionServicePreviewResponseHeadersProcedure = "/mistgate.admin.v1.SubscriptionService/PreviewResponseHeaders"
	// SubscriptionServicePreviewMihomoTemplateProcedure is the fully-qualified name of the
	// SubscriptionService's PreviewMihomoTemplate RPC.
	SubscriptionServicePreviewMihomoTemplateProcedure = "/mistgate.admin.v1.SubscriptionService/PreviewMihomoTemplate"
	// SubscriptionServicePreviewRoutingProfileProcedure is the fully-qualified name of the
	// SubscriptionService's PreviewRoutingProfile RPC.
	SubscriptionServicePreviewRoutingProfileProcedure = "/mistgate.admin.v1.SubscriptionService/PreviewRoutingProfile"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// TelegramServiceGetTelegramProcedure is the fully-qualified name of the TelegramService's
	// GetTelegram RPC.
	TelegramServiceGetTelegramProcedure = "/mistgate.admin.v1.TelegramService/GetTelegram"
	// TelegramServiceSetTelegramBotProcedure is the fully-qualified name of the TelegramService's
	// SetTelegramBot RPC.
	TelegramServiceSetTelegramBotProcedure = "/mistgate.admin.v1.TelegramService/SetTelegramBot"
	// TelegramServiceBeginTelegramLinkProcedure is the fully-qualified name of the TelegramService's
	// BeginTelegramLink RPC.
	TelegramServiceBeginTelegramLinkProcedure = "/mistgate.admin.v1.TelegramService/BeginTelegramLink"
	// TelegramServiceUnlinkTelegramProcedure is the fully-qualified name of the TelegramService's
	// UnlinkTelegram RPC.
	TelegramServiceUnlinkTelegramProcedure = "/mistgate.admin.v1.TelegramService/UnlinkTelegram"
	// TelegramServiceSetTelegramAlertsProcedure is the fully-qualified name of the TelegramService's
	// SetTelegramAlerts RPC.
	TelegramServiceSetTelegramAlertsProcedure = "/mistgate.admin.v1.TelegramService/SetTelegramAlerts"
	// TelegramServiceSendTelegramTestProcedure is the fully-qualified name of the TelegramService's
	// SendTelegramTest RPC.
	TelegramServiceSendTelegramTestProcedure = "/mistgate.admin.v1.TelegramService/SendTelegramTest"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// TspuProbeServiceGetTspuProbeProcedure is the fully-qualified name of the TspuProbeService's
	// GetTspuProbe RPC.
	TspuProbeServiceGetTspuProbeProcedure = "/mistgate.admin.v1.TspuProbeService/GetTspuProbe"
	// TspuProbeServiceUpdateTspuProbeProcedure is the fully-qualified name of the TspuProbeService's
	// UpdateTspuProbe RPC.
	TspuProbeServiceUpdateTspuProbeProcedure = "/mistgate.admin.v1.TspuProbeService/UpdateTspuProbe"
	// TspuProbeServiceTestTspuProbeProcedure is the fully-qualified name of the TspuProbeService's
	// TestTspuProbe RPC.
	TspuProbeServiceTestTspuProbeProcedure = "/mistgate.admin.v1.TspuProbeService/TestTspuProbe"
	// TspuProbeServiceDisconnectTspuProbeProcedure is the fully-qualified name of the
	// TspuProbeService's DisconnectTspuProbe RPC.
	TspuProbeServiceDisconnectTspuProbeProcedure = "/mistgate.admin.v1.TspuProbeService/DisconnectTspuProbe"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// UpdateServiceGetUpdatesProcedure is the fully-qualified name of the UpdateService's GetUpdates
	// RPC.
	UpdateServiceGetUpdatesProcedure = "/mistgate.admin.v1.UpdateService/GetUpdates"
	// UpdateServiceGetOsUpdatesProcedure is the fully-qualified name of the UpdateService's
	// GetOsUpdates RPC.
	UpdateServiceGetOsUpdatesProcedure = "/mistgate.admin.v1.UpdateService/GetOsUpdates"
	// UpdateServiceStartOsRolloutProcedure is the fully-qualified name of the UpdateService's
	// StartOsRollout RPC.
	UpdateServiceStartOsRolloutProcedure = "/mistgate.admin.v1.UpdateService/StartOsRollout"
	// UpdateServiceCancelOsRolloutProcedure is the fully-qualified name of the UpdateService's
	// CancelOsRollout RPC.
	UpdateServiceCancelOsRolloutProcedure = "/mistgate.admin.v1.UpdateService/CancelOsRollout"
	// UpdateServicePauseOsRolloutProcedure is the fully-qualified name of the UpdateService's
	// PauseOsRollout RPC.
	UpdateServicePauseOsRolloutProcedure = "/mistgate.admin.v1.UpdateService/PauseOsRollout"
	// UpdateServiceResumeOsRolloutProcedure is the fully-qualified name of the UpdateService's
	// ResumeOsRollout RPC.
	UpdateServiceResumeOsRolloutProcedure = "/mistgate.admin.v1.UpdateService/ResumeOsRollout"
	// UpdateServiceRefreshOsUpdatesProcedure is the fully-qualified name of the UpdateService's
	// RefreshOsUpdates RPC.
	UpdateServiceRefreshOsUpdatesProcedure = "/mistgate.admin.v1.UpdateService/RefreshOsUpdates"
	// UpdateServiceCheckPanelUpdateProcedure is the fully-qualified name of the UpdateService's
	// CheckPanelUpdate RPC.
	UpdateServiceCheckPanelUpdateProcedure = "/mistgate.admin.v1.UpdateService/CheckPanelUpdate"
	// UpdateServiceInstallPanelUpdateProcedure is the fully-qualified name of the UpdateService's
	// InstallPanelUpdate RPC.
	UpdateServiceInstallPanelUpdateProcedure = "/mistgate.admin.v1.UpdateService/InstallPanelUpdate"
	// UpdateServiceStartRolloutProcedure is the fully-qualified name of the UpdateService's
	// StartRollout RPC.
	UpdateServiceStartRolloutProcedure = "/mistgate.admin.v1.UpdateService/StartRollout"
	// UpdateServicePauseRolloutProcedure is the fully-qualified name of the UpdateService's
	// PauseRollout RPC.
	UpdateServicePauseRolloutProcedure = "/mistgate.admin.v1.UpdateService/PauseRollout"
	// UpdateServiceResumeRolloutProcedure is the fully-qualified name of the UpdateService's
	// ResumeRollout RPC.
	UpdateServiceResumeRolloutProcedure = "/mistgate.admin.v1.UpdateService/ResumeRollout"
	// UpdateServiceCancelRolloutProcedure is the fully-qualified name of the UpdateService's
	// CancelRollout RPC.
	UpdateServiceCancelRolloutProcedure = "/mistgate.admin.v1.UpdateService/CancelRollout"
	// UpdateServiceRollbackNodeProcedure is the fully-qualified name of the UpdateService's
	// RollbackNode RPC.
	UpdateServiceRollbackNodeProcedure = "/mistgate.admin.v1.UpdateService/RollbackNode"
	// UpdateServiceRescanBundleProcedure is the fully-qualified name of the UpdateService's
	// RescanBundle RPC.
	UpdateServiceRescanBundleProcedure = "/mistgate.admin.v1.UpdateService/RescanBundle"
	// UpdateServiceScheduleNodeUpdateProcedure is the fully-qualified name of the UpdateService's
	// ScheduleNodeUpdate RPC.
	UpdateServiceScheduleNodeUpdateProcedure = "/mistgate.admin.v1.UpdateService/ScheduleNodeUpdate"
	// UpdateServiceCancelNodeUpdateScheduleProcedure is the fully-qualified name of the UpdateService's
	// CancelNodeUpdateSchedule RPC.
	UpdateServiceCancelNodeUpdateScheduleProcedure = "/mistgate.admin.v1.UpdateService/CancelNodeUpdateSchedule"
	// UpdateServiceSetUpdateTimezoneProcedure is the fully-qualified name of the UpdateService's
	// SetUpdateTimezone RPC.
	UpdateServiceSetUpdateTimezoneProcedure = "/mistgate.admin.v1.UpdateService/SetUpdateTimezone"
	// UpdateServiceSetUpdateChannelProcedure is the fully-qualified name of the UpdateService's
	// SetUpdateChannel RPC.
	UpdateServiceSetUpdateChannelProcedure = "/mistgate.admin.v1.UpdateService/SetUpdateChannel"
	// UpdateServiceSetUpdateDownloadTimeoutProcedure is the fully-qualified name of the UpdateService's
	// SetUpdateDownloadTimeout RPC.
	UpdateServiceSetUpdateDownloadTimeoutProcedure = "/mistgate.admin.v1.UpdateService/SetUpdateDownloadTimeout"
	// UpdateServiceSetUpdateDownloadSourcesProcedure is the fully-qualified name of the UpdateService's
	// SetUpdateDownloadSources RPC.
	UpdateServiceSetUpdateDownloadSourcesProcedure = "/mistgate.admin.v1.UpdateService/SetUpdateDownloadSources"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// UserServiceListUsersProcedure is the fully-qualified name of the UserService's ListUsers RPC.
	UserServiceListUsersProcedure = "/mistgate.admin.v1.UserService/ListUsers"
	// UserServiceGetUserProcedure is the fully-qualified name of the UserService's GetUser RPC.
	UserServiceGetUserProcedure = "/mistgate.admin.v1.UserService/GetUser"
	// UserServiceCreateUserProcedure is the fully-qualified name of the UserService's CreateUser RPC.
	UserServiceCreateUserProcedure = "/mistgate.admin.v1.UserService/CreateUser"
	// UserServiceUpdateUserProcedure is the fully-qualified name of the UserService's UpdateUser RPC.
	UserServiceUpdateUserProcedure = "/mistgate.admin.v1.UserService/UpdateUser"
	// UserServiceSetUsersEnabledProcedure is the fully-qualified name of the UserService's
	// SetUsersEnabled RPC.
	UserServiceSetUsersEnabledProcedure = "/mistgate.admin.v1.UserService/SetUsersEnabled"
	// UserServiceExtendUsersProcedure is the fully-qualified name of the UserService's ExtendUsers RPC.
	UserServiceExtendUsersProcedure = "/mistgate.admin.v1.UserService/ExtendUsers"
	// UserServiceResetUserTrafficProcedure is the fully-qualified name of the UserService's
	// ResetUserTraffic RPC.
	UserServiceResetUserTrafficProcedure = "/mistgate.admin.v1.UserService/ResetUserTraffic"
	// UserServiceRevokeDeviceProcedure is the fully-qualified name of the UserService's RevokeDevice
	// RPC.
	UserServiceRevokeDeviceProcedure = "/mistgate.admin.v1.UserService/RevokeDevice"
	// UserServiceUnblockDeviceProcedure is the fully-qualified name of the UserService's UnblockDevice
	// RPC.
	UserServiceUnblockDeviceProcedure = "/mistgate.admin.v1.UserService/UnblockDevice"
	// UserServiceDeleteUsersProcedure is the fully-qualified name of the UserService's DeleteUsers RPC.
	UserServiceDeleteUsersProcedure = "/mistgate.admin.v1.UserService/DeleteUsers"
	// UserServiceGetSubscriptionLinkProcedure is the fully-qualified name of the UserService's
	// GetSubscriptionLink RPC.
	UserServiceGetSubscriptionLinkProcedure = "/mistgate.admin.v1.UserService/GetSubscriptionLink"
	// UserServiceGetTelegramLinksProcedure is the fully-qualified name of the UserService's
	// GetTelegramLinks RPC.
	UserServiceGetTelegramLinksProcedure = "/mistgate.admin.v1.UserService/GetTelegramLinks"
	// UserServiceIssueTelegramKeyProcedure is the fully-qualified name of the UserService's
	// IssueTelegramKey RPC.
	UserServiceIssueTelegramKeyProcedure = "/mistgate.admin.v1.UserService/IssueTelegramKey"
	// UserServiceRotateTelegramKeyProcedure is the fully-qualified name of the UserService's
	// RotateTelegramKey RPC.
	UserServiceRotateTelegramKeyProcedure = "/mistgate.admin.v1.UserService/RotateTelegramKey"
	// UserServiceRevokeTelegramKeyProcedure is the fully-qualified name of the UserService's
	// RevokeTelegramKey RPC.
	UserServiceRevokeTelegramKeyProcedure = "/mistgate.admin.v1.UserService/RevokeTelegramKey"
	// UserServiceGetUserConnectionProcedure is the fully-qualified name of the UserService's
	// GetUserConnection RPC.
	UserServiceGetUserConnectionProcedure = "/mistgate.admin.v1.UserService/GetUserConnection"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// WarpServiceGetWarpProcedure is the fully-qualified name of the WarpService's GetWarp RPC.
	WarpServiceGetWarpProcedure = "/mistgate.admin.v1.WarpService/GetWarp"
	// WarpServiceRegisterWarpProcedure is the fully-qualified name of the WarpService's RegisterWarp
	// RPC.
	WarpServiceRegisterWarpProcedure = "/mistgate.admin.v1.WarpService/RegisterWarp"
	// WarpServiceImportWarpProcedure is the fully-qualified name of the WarpService's ImportWarp RPC.
	WarpServiceImportWarpProcedure = "/mistgate.admin.v1.WarpService/ImportWarp"
	// WarpServiceSetWarpEnabledProcedure is the fully-qualified name of the WarpService's
	// SetWarpEnabled RPC.
	WarpServiceSetWarpEnabledProcedure = "/mistgate.admin.v1.WarpService/SetWarpEnabled"
	// WarpServiceRestartWarpProcedure is the fully-qualified name of the WarpService's RestartWarp RPC.
	WarpServiceRestartWarpProcedure = "/mistgate.admin.v1.WarpService/RestartWarp"
	// WarpServiceRefreshWarpProcedure is the fully-qualified name of the WarpService's RefreshWarp RPC.
	WarpServiceRefreshWarpProcedure = "/mistgate.admin.v1.WarpService/RefreshWarp"
	// WarpServiceSetWarpLicenseProcedure is the fully-qualified name of the WarpService's
	// SetWarpLicense RPC.
	WarpServiceSetWarpLicenseProcedure = "/mistgate.admin.v1.WarpService/SetWarpLicense"
	// WarpServiceDeleteWarpProcedure is the fully-qualified name of the WarpService's DeleteWarp RPC.
	WarpServiceDeleteWarpProcedure = "/mistgate.admin.v1.WarpService/DeleteWarp"
	// WarpServiceGetWarpRegistrationParamsProcedure is the fully-qualified name of the WarpService's
	// GetWarpRegistrationParams RPC.
	WarpServiceGetWarpRegistrationParamsProcedure = "/mistgate.admin.v1.WarpService/GetWarpRegistrationParams"
	// WarpServiceUpdateWarpRegistrationParamsProcedure is the fully-qualified name of the WarpService's
	// UpdateWarpRegistrationParams RPC.
	WarpServiceUpdateWarpRegistrationParamsProcedure = "/mistgate.admin.v1.WarpService/UpdateWarpRegistrationParams"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AssistantServiceName is the fully-qualified name of the AssistantService service.
	AssistantServiceName = "mistgate.admin.v1.AssistantService"
)
View Source
const (
	// AuthServiceName is the fully-qualified name of the AuthService service.
	AuthServiceName = "mistgate.admin.v1.AuthService"
)
View Source
const (
	// AwgServiceName is the fully-qualified name of the AwgService service.
	AwgServiceName = "mistgate.admin.v1.AwgService"
)
View Source
const (
	// BackupServiceName is the fully-qualified name of the BackupService service.
	BackupServiceName = "mistgate.admin.v1.BackupService"
)
View Source
const (
	// BlocklistServiceName is the fully-qualified name of the BlocklistService service.
	BlocklistServiceName = "mistgate.admin.v1.BlocklistService"
)
View Source
const (
	// BsbordServiceName is the fully-qualified name of the BsbordService service.
	BsbordServiceName = "mistgate.admin.v1.BsbordService"
)
View Source
const (
	// CheburcheckServiceName is the fully-qualified name of the CheburcheckService service.
	CheburcheckServiceName = "mistgate.admin.v1.CheburcheckService"
)
View Source
const (
	// ClientApiServiceName is the fully-qualified name of the ClientApiService service.
	ClientApiServiceName = "mistgate.admin.v1.ClientApiService"
)
View Source
const (
	// ClientCompatServiceName is the fully-qualified name of the ClientCompatService service.
	ClientCompatServiceName = "mistgate.admin.v1.ClientCompatService"
)
View Source
const (
	// ClientProbeServiceName is the fully-qualified name of the ClientProbeService service.
	ClientProbeServiceName = "mistgate.admin.v1.ClientProbeService"
)
View Source
const (
	// CountryReachabilityServiceName is the fully-qualified name of the CountryReachabilityService
	// service.
	CountryReachabilityServiceName = "mistgate.admin.v1.CountryReachabilityService"
)
View Source
const (
	// DeviceServiceName is the fully-qualified name of the DeviceService service.
	DeviceServiceName = "mistgate.admin.v1.DeviceService"
)
View Source
const (
	// DnsServiceName is the fully-qualified name of the DnsService service.
	DnsServiceName = "mistgate.admin.v1.DnsService"
)
View Source
const (
	// FleetServiceName is the fully-qualified name of the FleetService service.
	FleetServiceName = "mistgate.admin.v1.FleetService"
)
View Source
const (
	// GlobalpingServiceName is the fully-qualified name of the GlobalpingService service.
	GlobalpingServiceName = "mistgate.admin.v1.GlobalpingService"
)
View Source
const (
	// GroupServiceName is the fully-qualified name of the GroupService service.
	GroupServiceName = "mistgate.admin.v1.GroupService"
)
View Source
const (
	// HealthServiceName is the fully-qualified name of the HealthService service.
	HealthServiceName = "mistgate.admin.v1.HealthService"
)
View Source
const (
	// InstanceServiceName is the fully-qualified name of the InstanceService service.
	InstanceServiceName = "mistgate.admin.v1.InstanceService"
)
View Source
const (
	// NodeServiceName is the fully-qualified name of the NodeService service.
	NodeServiceName = "mistgate.admin.v1.NodeService"
)
View Source
const (
	// ProfileServiceName is the fully-qualified name of the ProfileService service.
	ProfileServiceName = "mistgate.admin.v1.ProfileService"
)
View Source
const (
	// ProvisioningServiceName is the fully-qualified name of the ProvisioningService service.
	ProvisioningServiceName = "mistgate.admin.v1.ProvisioningService"
)
View Source
const (
	// RelayServiceName is the fully-qualified name of the RelayService service.
	RelayServiceName = "mistgate.admin.v1.RelayService"
)
View Source
const (
	// SubscriptionServiceName is the fully-qualified name of the SubscriptionService service.
	SubscriptionServiceName = "mistgate.admin.v1.SubscriptionService"
)
View Source
const (
	// TelegramServiceName is the fully-qualified name of the TelegramService service.
	TelegramServiceName = "mistgate.admin.v1.TelegramService"
)
View Source
const (
	// TspuProbeServiceName is the fully-qualified name of the TspuProbeService service.
	TspuProbeServiceName = "mistgate.admin.v1.TspuProbeService"
)
View Source
const (
	// UpdateServiceName is the fully-qualified name of the UpdateService service.
	UpdateServiceName = "mistgate.admin.v1.UpdateService"
)
View Source
const (
	// UserServiceName is the fully-qualified name of the UserService service.
	UserServiceName = "mistgate.admin.v1.UserService"
)
View Source
const (
	// WarpServiceName is the fully-qualified name of the WarpService service.
	WarpServiceName = "mistgate.admin.v1.WarpService"
)

Variables

This section is empty.

Functions

func NewApiTokenServiceHandler

func NewApiTokenServiceHandler(svc ApiTokenServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewApiTokenServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewApprovalServiceHandler

func NewApprovalServiceHandler(svc ApprovalServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewApprovalServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewAssistantServiceHandler

func NewAssistantServiceHandler(svc AssistantServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAssistantServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewAuthServiceHandler

func NewAuthServiceHandler(svc AuthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAuthServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewAwgServiceHandler

func NewAwgServiceHandler(svc AwgServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAwgServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewBackupServiceHandler

func NewBackupServiceHandler(svc BackupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewBackupServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewBlocklistServiceHandler added in v0.1.41

func NewBlocklistServiceHandler(svc BlocklistServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewBlocklistServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewBsbordServiceHandler added in v0.1.63

func NewBsbordServiceHandler(svc BsbordServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewBsbordServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewCheburcheckServiceHandler added in v0.1.63

func NewCheburcheckServiceHandler(svc CheburcheckServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewCheburcheckServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewClientApiServiceHandler

func NewClientApiServiceHandler(svc ClientApiServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewClientApiServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewClientCompatServiceHandler

func NewClientCompatServiceHandler(svc ClientCompatServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewClientCompatServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewClientProbeServiceHandler added in v0.1.51

func NewClientProbeServiceHandler(svc ClientProbeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewClientProbeServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewCountryReachabilityServiceHandler added in v0.1.41

func NewCountryReachabilityServiceHandler(svc CountryReachabilityServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewCountryReachabilityServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewDeviceServiceHandler

func NewDeviceServiceHandler(svc DeviceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewDeviceServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewDnsServiceHandler

func NewDnsServiceHandler(svc DnsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewDnsServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewFleetServiceHandler

func NewFleetServiceHandler(svc FleetServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewFleetServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewGlobalpingServiceHandler added in v0.1.41

func NewGlobalpingServiceHandler(svc GlobalpingServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewGlobalpingServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewGroupServiceHandler

func NewGroupServiceHandler(svc GroupServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewGroupServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewHealthServiceHandler

func NewHealthServiceHandler(svc HealthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewHealthServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewInstanceServiceHandler

func NewInstanceServiceHandler(svc InstanceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewInstanceServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewNodeServiceHandler

func NewNodeServiceHandler(svc NodeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewNodeServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewProfileServiceHandler

func NewProfileServiceHandler(svc ProfileServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewProfileServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewProvisioningServiceHandler

func NewProvisioningServiceHandler(svc ProvisioningServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewProvisioningServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewRelayServiceHandler added in v0.1.65

func NewRelayServiceHandler(svc RelayServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewRelayServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewSubscriptionServiceHandler

func NewSubscriptionServiceHandler(svc SubscriptionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSubscriptionServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewTelegramServiceHandler added in v0.1.23

func NewTelegramServiceHandler(svc TelegramServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewTelegramServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewTspuProbeServiceHandler added in v0.1.42

func NewTspuProbeServiceHandler(svc TspuProbeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewTspuProbeServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewUpdateServiceHandler

func NewUpdateServiceHandler(svc UpdateServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUpdateServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewUserServiceHandler

func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewWarpServiceHandler

func NewWarpServiceHandler(svc WarpServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewWarpServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type ApiTokenServiceClient

type ApiTokenServiceClient interface {
	// Creates a token and returns its secret once. Needs a step-up.
	CreateApiToken(context.Context, *connect.Request[v1.CreateApiTokenRequest]) (*connect.Response[v1.CreateApiTokenResponse], error)
	// Lets this token change more than ten users in an hour without an MCP approval. Needs a step-up.
	SetApiTokenBulk(context.Context, *connect.Request[v1.SetApiTokenBulkRequest]) (*connect.Response[v1.SetApiTokenBulkResponse], error)
	// Every token, newest first, revoked and expired ones included (they stay for the audit trail). No secrets.
	ListApiTokens(context.Context, *connect.Request[v1.ListApiTokensRequest]) (*connect.Response[v1.ListApiTokensResponse], error)
	// Revokes a token at once: its next request is refused and its pending changes are cancelled. Idempotent.
	// Needs a step-up.
	RevokeApiToken(context.Context, *connect.Request[v1.RevokeApiTokenRequest]) (*connect.Response[v1.RevokeApiTokenResponse], error)
}

ApiTokenServiceClient is a client for the mistgate.admin.v1.ApiTokenService service.

func NewApiTokenServiceClient

func NewApiTokenServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ApiTokenServiceClient

NewApiTokenServiceClient constructs a client for the mistgate.admin.v1.ApiTokenService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ApiTokenServiceHandler

type ApiTokenServiceHandler interface {
	// Creates a token and returns its secret once. Needs a step-up.
	CreateApiToken(context.Context, *connect.Request[v1.CreateApiTokenRequest]) (*connect.Response[v1.CreateApiTokenResponse], error)
	// Lets this token change more than ten users in an hour without an MCP approval. Needs a step-up.
	SetApiTokenBulk(context.Context, *connect.Request[v1.SetApiTokenBulkRequest]) (*connect.Response[v1.SetApiTokenBulkResponse], error)
	// Every token, newest first, revoked and expired ones included (they stay for the audit trail). No secrets.
	ListApiTokens(context.Context, *connect.Request[v1.ListApiTokensRequest]) (*connect.Response[v1.ListApiTokensResponse], error)
	// Revokes a token at once: its next request is refused and its pending changes are cancelled. Idempotent.
	// Needs a step-up.
	RevokeApiToken(context.Context, *connect.Request[v1.RevokeApiTokenRequest]) (*connect.Response[v1.RevokeApiTokenResponse], error)
}

ApiTokenServiceHandler is an implementation of the mistgate.admin.v1.ApiTokenService service.

type ApprovalServiceClient

type ApprovalServiceClient interface {
	// Approvals waiting for the owner first (oldest first), then the recent history (newest first).
	ListApprovals(context.Context, *connect.Request[v1.ListApprovalsRequest]) (*connect.Response[v1.ListApprovalsResponse], error)
	// The owner agrees to exactly what the approval lists. Needs a step-up. The agent's apply goes through
	// only after this.
	Approve(context.Context, *connect.Request[v1.ApproveRequest]) (*connect.Response[v1.ApproveResponse], error)
	// The owner refuses. The agent's apply fails with "rejected by the owner". No step-up.
	Reject(context.Context, *connect.Request[v1.RejectRequest]) (*connect.Response[v1.RejectResponse], error)
}

ApprovalServiceClient is a client for the mistgate.admin.v1.ApprovalService service.

func NewApprovalServiceClient

func NewApprovalServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ApprovalServiceClient

NewApprovalServiceClient constructs a client for the mistgate.admin.v1.ApprovalService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ApprovalServiceHandler

type ApprovalServiceHandler interface {
	// Approvals waiting for the owner first (oldest first), then the recent history (newest first).
	ListApprovals(context.Context, *connect.Request[v1.ListApprovalsRequest]) (*connect.Response[v1.ListApprovalsResponse], error)
	// The owner agrees to exactly what the approval lists. Needs a step-up. The agent's apply goes through
	// only after this.
	Approve(context.Context, *connect.Request[v1.ApproveRequest]) (*connect.Response[v1.ApproveResponse], error)
	// The owner refuses. The agent's apply fails with "rejected by the owner". No step-up.
	Reject(context.Context, *connect.Request[v1.RejectRequest]) (*connect.Response[v1.RejectResponse], error)
}

ApprovalServiceHandler is an implementation of the mistgate.admin.v1.ApprovalService service.

type AssistantServiceClient

type AssistantServiceClient interface {
	// Whether this admin may use the assistant now, and with what: the floating chat button reads it.
	GetAssistantAccess(context.Context, *connect.Request[v1.GetAssistantAccessRequest]) (*connect.Response[v1.GetAssistantAccessResponse], error)
	// OWNER-ONLY.
	GetAssistantSettings(context.Context, *connect.Request[v1.GetAssistantSettingsRequest]) (*connect.Response[v1.GetAssistantSettingsResponse], error)
	UpdateAssistantSettings(context.Context, *connect.Request[v1.UpdateAssistantSettingsRequest]) (*connect.Response[v1.UpdateAssistantSettingsResponse], error)
	// OWNER-ONLY, fresh step-up. Checks the key with the provider (its model list, or a one-token call where there is no
	// list) before sealing it; a key the provider refuses is not stored.
	SetProviderKey(context.Context, *connect.Request[v1.SetProviderKeyRequest]) (*connect.Response[v1.SetProviderKeyResponse], error)
	RemoveProviderKey(context.Context, *connect.Request[v1.RemoveProviderKeyRequest]) (*connect.Response[v1.RemoveProviderKeyResponse], error)
	// OWNER-ONLY. The models of a connected provider that take tools, for the model picker.
	ListProviderModels(context.Context, *connect.Request[v1.ListProviderModelsRequest]) (*connect.Response[v1.ListProviderModelsResponse], error)
	// The admin's own conversations, newest first.
	ListConversations(context.Context, *connect.Request[v1.ListConversationsRequest]) (*connect.Response[v1.ListConversationsResponse], error)
	// What the admin asked lately, across their conversations: the message box offers to finish a question started like one.
	RecentQuestions(context.Context, *connect.Request[v1.RecentQuestionsRequest]) (*connect.Response[v1.RecentQuestionsResponse], error)
	GetConversation(context.Context, *connect.Request[v1.GetConversationRequest]) (*connect.Response[v1.GetConversationResponse], error)
	DeleteConversation(context.Context, *connect.Request[v1.DeleteConversationRequest]) (*connect.Response[v1.DeleteConversationResponse], error)
	// The admin's own; with all_admins (owner, fresh step-up) everyone's.
	DeleteAllConversations(context.Context, *connect.Request[v1.DeleteAllConversationsRequest]) (*connect.Response[v1.DeleteAllConversationsResponse], error)
	// One turn: the admin's message in, the answer streamed out. An empty conversation_id starts a conversation.
	Chat(context.Context, *connect.Request[v1.ChatRequest]) (*connect.ServerStreamForClient[v1.ChatResponse], error)
	// Ends the running turn of a conversation at once (the model call is cancelled; what was said so far is kept).
	StopTurn(context.Context, *connect.Request[v1.StopTurnRequest]) (*connect.Response[v1.StopTurnResponse], error)
	// The human's click on a plan card. A plan that needs the owner: the owner approves and applies it in one step (fresh
	// step-up); for anyone else it is left in the approval inbox and the card says it waits for the owner. A node_install
	// plan is never applied here (its host key and login are confirmed in the approval inbox).
	ApplyPlan(context.Context, *connect.Request[v1.ApplyPlanRequest]) (*connect.Response[v1.ApplyPlanResponse], error)
	DismissPlan(context.Context, *connect.Request[v1.DismissPlanRequest]) (*connect.Response[v1.DismissPlanResponse], error)
	// Removes a follow-up the assistant set in one of the admin's own conversations (the "Cancel" on its line). A follow-up
	// whose turn is running now is not removed: Stop ends the turn.
	CancelFollowUp(context.Context, *connect.Request[v1.CancelFollowUpRequest]) (*connect.Response[v1.CancelFollowUpResponse], error)
	// The admin's own notes the assistant reads in every conversation (at most 100 of 400 characters).
	ListMemory(context.Context, *connect.Request[v1.ListMemoryRequest]) (*connect.Response[v1.ListMemoryResponse], error)
	SaveMemory(context.Context, *connect.Request[v1.SaveMemoryRequest]) (*connect.Response[v1.SaveMemoryResponse], error)
	DeleteMemory(context.Context, *connect.Request[v1.DeleteMemoryRequest]) (*connect.Response[v1.DeleteMemoryResponse], error)
	ForgetAll(context.Context, *connect.Request[v1.ForgetAllRequest]) (*connect.Response[v1.ForgetAllResponse], error)
}

AssistantServiceClient is a client for the mistgate.admin.v1.AssistantService service.

func NewAssistantServiceClient

func NewAssistantServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AssistantServiceClient

NewAssistantServiceClient constructs a client for the mistgate.admin.v1.AssistantService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AssistantServiceHandler

type AssistantServiceHandler interface {
	// Whether this admin may use the assistant now, and with what: the floating chat button reads it.
	GetAssistantAccess(context.Context, *connect.Request[v1.GetAssistantAccessRequest]) (*connect.Response[v1.GetAssistantAccessResponse], error)
	// OWNER-ONLY.
	GetAssistantSettings(context.Context, *connect.Request[v1.GetAssistantSettingsRequest]) (*connect.Response[v1.GetAssistantSettingsResponse], error)
	UpdateAssistantSettings(context.Context, *connect.Request[v1.UpdateAssistantSettingsRequest]) (*connect.Response[v1.UpdateAssistantSettingsResponse], error)
	// OWNER-ONLY, fresh step-up. Checks the key with the provider (its model list, or a one-token call where there is no
	// list) before sealing it; a key the provider refuses is not stored.
	SetProviderKey(context.Context, *connect.Request[v1.SetProviderKeyRequest]) (*connect.Response[v1.SetProviderKeyResponse], error)
	RemoveProviderKey(context.Context, *connect.Request[v1.RemoveProviderKeyRequest]) (*connect.Response[v1.RemoveProviderKeyResponse], error)
	// OWNER-ONLY. The models of a connected provider that take tools, for the model picker.
	ListProviderModels(context.Context, *connect.Request[v1.ListProviderModelsRequest]) (*connect.Response[v1.ListProviderModelsResponse], error)
	// The admin's own conversations, newest first.
	ListConversations(context.Context, *connect.Request[v1.ListConversationsRequest]) (*connect.Response[v1.ListConversationsResponse], error)
	// What the admin asked lately, across their conversations: the message box offers to finish a question started like one.
	RecentQuestions(context.Context, *connect.Request[v1.RecentQuestionsRequest]) (*connect.Response[v1.RecentQuestionsResponse], error)
	GetConversation(context.Context, *connect.Request[v1.GetConversationRequest]) (*connect.Response[v1.GetConversationResponse], error)
	DeleteConversation(context.Context, *connect.Request[v1.DeleteConversationRequest]) (*connect.Response[v1.DeleteConversationResponse], error)
	// The admin's own; with all_admins (owner, fresh step-up) everyone's.
	DeleteAllConversations(context.Context, *connect.Request[v1.DeleteAllConversationsRequest]) (*connect.Response[v1.DeleteAllConversationsResponse], error)
	// One turn: the admin's message in, the answer streamed out. An empty conversation_id starts a conversation.
	Chat(context.Context, *connect.Request[v1.ChatRequest], *connect.ServerStream[v1.ChatResponse]) error
	// Ends the running turn of a conversation at once (the model call is cancelled; what was said so far is kept).
	StopTurn(context.Context, *connect.Request[v1.StopTurnRequest]) (*connect.Response[v1.StopTurnResponse], error)
	// The human's click on a plan card. A plan that needs the owner: the owner approves and applies it in one step (fresh
	// step-up); for anyone else it is left in the approval inbox and the card says it waits for the owner. A node_install
	// plan is never applied here (its host key and login are confirmed in the approval inbox).
	ApplyPlan(context.Context, *connect.Request[v1.ApplyPlanRequest]) (*connect.Response[v1.ApplyPlanResponse], error)
	DismissPlan(context.Context, *connect.Request[v1.DismissPlanRequest]) (*connect.Response[v1.DismissPlanResponse], error)
	// Removes a follow-up the assistant set in one of the admin's own conversations (the "Cancel" on its line). A follow-up
	// whose turn is running now is not removed: Stop ends the turn.
	CancelFollowUp(context.Context, *connect.Request[v1.CancelFollowUpRequest]) (*connect.Response[v1.CancelFollowUpResponse], error)
	// The admin's own notes the assistant reads in every conversation (at most 100 of 400 characters).
	ListMemory(context.Context, *connect.Request[v1.ListMemoryRequest]) (*connect.Response[v1.ListMemoryResponse], error)
	SaveMemory(context.Context, *connect.Request[v1.SaveMemoryRequest]) (*connect.Response[v1.SaveMemoryResponse], error)
	DeleteMemory(context.Context, *connect.Request[v1.DeleteMemoryRequest]) (*connect.Response[v1.DeleteMemoryResponse], error)
	ForgetAll(context.Context, *connect.Request[v1.ForgetAllRequest]) (*connect.Response[v1.ForgetAllResponse], error)
}

AssistantServiceHandler is an implementation of the mistgate.admin.v1.AssistantService service.

type AuthServiceClient

type AuthServiceClient interface {
	// Public. What the sign-in and setup pages need before anyone is signed in.
	GetLoginInfo(context.Context, *connect.Request[v1.GetLoginInfoRequest]) (*connect.Response[v1.GetLoginInfoResponse], error)
	// Public. First admin. `mistgate setup` prints a one-time link carrying setup_token (valid 30 min).
	// method PASSKEY (default) continues with FinishSetup.credential_json; method PASSWORD hashes the
	// password, returns a TOTP secret to scan and continues with FinishSetup.totp_code.
	BeginSetup(context.Context, *connect.Request[v1.BeginSetupRequest]) (*connect.Response[v1.BeginSetupResponse], error)
	FinishSetup(context.Context, *connect.Request[v1.FinishSetupRequest]) (*connect.Response[v1.FinishSetupResponse], error)
	// Public. Passkey sign-in with discoverable credentials (no username field).
	BeginLogin(context.Context, *connect.Request[v1.BeginLoginRequest]) (*connect.Response[v1.BeginLoginResponse], error)
	FinishLogin(context.Context, *connect.Request[v1.FinishLoginRequest]) (*connect.Response[v1.FinishLoginResponse], error)
	// Public. Sign-in with login + password + 6-digit authenticator code. Failures are
	// UNAUTHENTICATED with a SignInFailure detail; after 5 failures the login is locked
	// (locked_until_unix > 0) even for the right credentials.
	PasswordLogin(context.Context, *connect.Request[v1.PasswordLoginRequest]) (*connect.Response[v1.PasswordLoginResponse], error)
	// Public; tolerates a missing or expired session.
	Logout(context.Context, *connect.Request[v1.LogoutRequest]) (*connect.Response[v1.LogoutResponse], error)
	// The signed-in admin. Returns Unauthenticated without a valid session.
	Me(context.Context, *connect.Request[v1.MeRequest]) (*connect.Response[v1.MeResponse], error)
	// Settings -> Security. The signed-in admin's own passkeys.
	ListPasskeys(context.Context, *connect.Request[v1.ListPasskeysRequest]) (*connect.Response[v1.ListPasskeysResponse], error)
	BeginAddPasskey(context.Context, *connect.Request[v1.BeginAddPasskeyRequest]) (*connect.Response[v1.BeginAddPasskeyResponse], error)
	FinishAddPasskey(context.Context, *connect.Request[v1.FinishAddPasskeyRequest]) (*connect.Response[v1.FinishAddPasskeyResponse], error)
	// FAILED_PRECONDITION if it is the only way the admin can sign in.
	RemovePasskey(context.Context, *connect.Request[v1.RemovePasskeyRequest]) (*connect.Response[v1.RemovePasskeyResponse], error)
	// Settings -> Security -> "Password and code": the signed-in admin's own password + authenticator-code sign-in, the
	// fallback to passkeys. GetPasswordLogin says whether the admin has one. A lost phone with no session left is
	// `mistgate auth reset-login <login>` on the panel server (the CLI), not an RPC.
	GetPasswordLogin(context.Context, *connect.Request[v1.GetPasswordLoginRequest]) (*connect.Response[v1.GetPasswordLoginResponse], error)
	// A new password. Needs a step-up and the current password, and ends the admin's other sessions. Errors:
	// FAILED_PRECONDITION "no_password_login"; INVALID_ARGUMENT "wrong_password" (it counts against the step-up lock: five
	// wrong proofs lock it for 15 minutes, then RESOURCE_EXHAUSTED) or the password rule.
	ChangePassword(context.Context, *connect.Request[v1.ChangePasswordRequest]) (*connect.Response[v1.ChangePasswordResponse], error)
	// A new authenticator secret, shown as a QR code like in the setup wizard and confirmed by its first code. Needs a
	// step-up. With a password login it replaces the app ("re-bind": login and password stay, the other sessions end);
	// without one it adds the password login, and then login and password are required. Errors: FAILED_PRECONDITION
	// "no_master_key"; INVALID_ARGUMENT "password_login_exists" (a login or password sent for a re-bind) or the login and
	// password rules; ALREADY_EXISTS "login_taken". FinishTotpEnrollment takes a code of the NEW secret: INVALID_ARGUMENT
	// "invalid_code" may be retried on the same ceremony (5 tries), "enrollment_expired" means start again.
	BeginTotpEnrollment(context.Context, *connect.Request[v1.BeginTotpEnrollmentRequest]) (*connect.Response[v1.BeginTotpEnrollmentResponse], error)
	FinishTotpEnrollment(context.Context, *connect.Request[v1.FinishTotpEnrollmentRequest]) (*connect.Response[v1.FinishTotpEnrollmentResponse], error)
	// Settings -> Sessions. The signed-in admin's own sessions.
	ListSessions(context.Context, *connect.Request[v1.ListSessionsRequest]) (*connect.Response[v1.ListSessionsResponse], error)
	EndSession(context.Context, *connect.Request[v1.EndSessionRequest]) (*connect.Response[v1.EndSessionResponse], error)
	EndOtherSessions(context.Context, *connect.Request[v1.EndOtherSessionsRequest]) (*connect.Response[v1.EndOtherSessionsResponse], error)
	// Settings -> Audit. Owner only.
	ListAudit(context.Context, *connect.Request[v1.ListAuditRequest]) (*connect.Response[v1.ListAuditResponse], error)
	// Settings -> Security -> Captcha. Owner only. The secret key is never returned.
	GetSecuritySettings(context.Context, *connect.Request[v1.GetSecuritySettingsRequest]) (*connect.Response[v1.GetSecuritySettingsResponse], error)
	UpdateSecuritySettings(context.Context, *connect.Request[v1.UpdateSecuritySettingsRequest]) (*connect.Response[v1.UpdateSecuritySettingsResponse], error)
	// Step-up re-authentication. Adding or removing a passkey, ending another session, changing the password and binding
	// an authenticator app need the admin to have proved a sign-in factor within the last 5 minutes (signing in counts): otherwise
	// the call is PERMISSION_DENIED with a StepUpRequired detail and the UI asks for a passkey or an
	// authenticator code, then retries. BeginStepUp + FinishStepUp with a passkey; FinishStepUp with
	// only totp_code for a password admin (no BeginStepUp needed). Me and FinishStepUp report
	// step_up_until_unix so the UI knows when to ask.
	BeginStepUp(context.Context, *connect.Request[v1.BeginStepUpRequest]) (*connect.Response[v1.BeginStepUpResponse], error)
	FinishStepUp(context.Context, *connect.Request[v1.FinishStepUpRequest]) (*connect.Response[v1.FinishStepUpResponse], error)
}

AuthServiceClient is a client for the mistgate.admin.v1.AuthService service.

func NewAuthServiceClient

func NewAuthServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthServiceClient

NewAuthServiceClient constructs a client for the mistgate.admin.v1.AuthService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AuthServiceHandler

type AuthServiceHandler interface {
	// Public. What the sign-in and setup pages need before anyone is signed in.
	GetLoginInfo(context.Context, *connect.Request[v1.GetLoginInfoRequest]) (*connect.Response[v1.GetLoginInfoResponse], error)
	// Public. First admin. `mistgate setup` prints a one-time link carrying setup_token (valid 30 min).
	// method PASSKEY (default) continues with FinishSetup.credential_json; method PASSWORD hashes the
	// password, returns a TOTP secret to scan and continues with FinishSetup.totp_code.
	BeginSetup(context.Context, *connect.Request[v1.BeginSetupRequest]) (*connect.Response[v1.BeginSetupResponse], error)
	FinishSetup(context.Context, *connect.Request[v1.FinishSetupRequest]) (*connect.Response[v1.FinishSetupResponse], error)
	// Public. Passkey sign-in with discoverable credentials (no username field).
	BeginLogin(context.Context, *connect.Request[v1.BeginLoginRequest]) (*connect.Response[v1.BeginLoginResponse], error)
	FinishLogin(context.Context, *connect.Request[v1.FinishLoginRequest]) (*connect.Response[v1.FinishLoginResponse], error)
	// Public. Sign-in with login + password + 6-digit authenticator code. Failures are
	// UNAUTHENTICATED with a SignInFailure detail; after 5 failures the login is locked
	// (locked_until_unix > 0) even for the right credentials.
	PasswordLogin(context.Context, *connect.Request[v1.PasswordLoginRequest]) (*connect.Response[v1.PasswordLoginResponse], error)
	// Public; tolerates a missing or expired session.
	Logout(context.Context, *connect.Request[v1.LogoutRequest]) (*connect.Response[v1.LogoutResponse], error)
	// The signed-in admin. Returns Unauthenticated without a valid session.
	Me(context.Context, *connect.Request[v1.MeRequest]) (*connect.Response[v1.MeResponse], error)
	// Settings -> Security. The signed-in admin's own passkeys.
	ListPasskeys(context.Context, *connect.Request[v1.ListPasskeysRequest]) (*connect.Response[v1.ListPasskeysResponse], error)
	BeginAddPasskey(context.Context, *connect.Request[v1.BeginAddPasskeyRequest]) (*connect.Response[v1.BeginAddPasskeyResponse], error)
	FinishAddPasskey(context.Context, *connect.Request[v1.FinishAddPasskeyRequest]) (*connect.Response[v1.FinishAddPasskeyResponse], error)
	// FAILED_PRECONDITION if it is the only way the admin can sign in.
	RemovePasskey(context.Context, *connect.Request[v1.RemovePasskeyRequest]) (*connect.Response[v1.RemovePasskeyResponse], error)
	// Settings -> Security -> "Password and code": the signed-in admin's own password + authenticator-code sign-in, the
	// fallback to passkeys. GetPasswordLogin says whether the admin has one. A lost phone with no session left is
	// `mistgate auth reset-login <login>` on the panel server (the CLI), not an RPC.
	GetPasswordLogin(context.Context, *connect.Request[v1.GetPasswordLoginRequest]) (*connect.Response[v1.GetPasswordLoginResponse], error)
	// A new password. Needs a step-up and the current password, and ends the admin's other sessions. Errors:
	// FAILED_PRECONDITION "no_password_login"; INVALID_ARGUMENT "wrong_password" (it counts against the step-up lock: five
	// wrong proofs lock it for 15 minutes, then RESOURCE_EXHAUSTED) or the password rule.
	ChangePassword(context.Context, *connect.Request[v1.ChangePasswordRequest]) (*connect.Response[v1.ChangePasswordResponse], error)
	// A new authenticator secret, shown as a QR code like in the setup wizard and confirmed by its first code. Needs a
	// step-up. With a password login it replaces the app ("re-bind": login and password stay, the other sessions end);
	// without one it adds the password login, and then login and password are required. Errors: FAILED_PRECONDITION
	// "no_master_key"; INVALID_ARGUMENT "password_login_exists" (a login or password sent for a re-bind) or the login and
	// password rules; ALREADY_EXISTS "login_taken". FinishTotpEnrollment takes a code of the NEW secret: INVALID_ARGUMENT
	// "invalid_code" may be retried on the same ceremony (5 tries), "enrollment_expired" means start again.
	BeginTotpEnrollment(context.Context, *connect.Request[v1.BeginTotpEnrollmentRequest]) (*connect.Response[v1.BeginTotpEnrollmentResponse], error)
	FinishTotpEnrollment(context.Context, *connect.Request[v1.FinishTotpEnrollmentRequest]) (*connect.Response[v1.FinishTotpEnrollmentResponse], error)
	// Settings -> Sessions. The signed-in admin's own sessions.
	ListSessions(context.Context, *connect.Request[v1.ListSessionsRequest]) (*connect.Response[v1.ListSessionsResponse], error)
	EndSession(context.Context, *connect.Request[v1.EndSessionRequest]) (*connect.Response[v1.EndSessionResponse], error)
	EndOtherSessions(context.Context, *connect.Request[v1.EndOtherSessionsRequest]) (*connect.Response[v1.EndOtherSessionsResponse], error)
	// Settings -> Audit. Owner only.
	ListAudit(context.Context, *connect.Request[v1.ListAuditRequest]) (*connect.Response[v1.ListAuditResponse], error)
	// Settings -> Security -> Captcha. Owner only. The secret key is never returned.
	GetSecuritySettings(context.Context, *connect.Request[v1.GetSecuritySettingsRequest]) (*connect.Response[v1.GetSecuritySettingsResponse], error)
	UpdateSecuritySettings(context.Context, *connect.Request[v1.UpdateSecuritySettingsRequest]) (*connect.Response[v1.UpdateSecuritySettingsResponse], error)
	// Step-up re-authentication. Adding or removing a passkey, ending another session, changing the password and binding
	// an authenticator app need the admin to have proved a sign-in factor within the last 5 minutes (signing in counts): otherwise
	// the call is PERMISSION_DENIED with a StepUpRequired detail and the UI asks for a passkey or an
	// authenticator code, then retries. BeginStepUp + FinishStepUp with a passkey; FinishStepUp with
	// only totp_code for a password admin (no BeginStepUp needed). Me and FinishStepUp report
	// step_up_until_unix so the UI knows when to ask.
	BeginStepUp(context.Context, *connect.Request[v1.BeginStepUpRequest]) (*connect.Response[v1.BeginStepUpResponse], error)
	FinishStepUp(context.Context, *connect.Request[v1.FinishStepUpRequest]) (*connect.Response[v1.FinishStepUpResponse], error)
}

AuthServiceHandler is an implementation of the mistgate.admin.v1.AuthService service.

type AwgServiceClient

type AwgServiceClient interface {
	// The mimicry presets the editor offers as cards.
	ListMimicryPresets(context.Context, *connect.Request[v1.ListMimicryPresetsRequest]) (*connect.Response[v1.ListMimicryPresetsResponse], error)
	// "Generate" (mode FULL, the default): a complete, valid `obfuscation` object (random values, as the defaults
	// are) for a version and a preset. The UI lays it over the form and shows how many fields changed. Always
	// passes the validator. Changes critical fields: the editor's usual reissue confirmation applies on save.
	//
	// Picking a mimicry card (mode SIGNATURE): only fresh `preset`, `domain` and `i1`..`i5`, nothing the node or the
	// issued configs depend on, so no device is affected. The caller lays the few keys over the form.
	GenerateObfuscation(context.Context, *connect.Request[v1.GenerateObfuscationRequest]) (*connect.Response[v1.GenerateObfuscationResponse], error)
}

AwgServiceClient is a client for the mistgate.admin.v1.AwgService service.

func NewAwgServiceClient

func NewAwgServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AwgServiceClient

NewAwgServiceClient constructs a client for the mistgate.admin.v1.AwgService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AwgServiceHandler

type AwgServiceHandler interface {
	// The mimicry presets the editor offers as cards.
	ListMimicryPresets(context.Context, *connect.Request[v1.ListMimicryPresetsRequest]) (*connect.Response[v1.ListMimicryPresetsResponse], error)
	// "Generate" (mode FULL, the default): a complete, valid `obfuscation` object (random values, as the defaults
	// are) for a version and a preset. The UI lays it over the form and shows how many fields changed. Always
	// passes the validator. Changes critical fields: the editor's usual reissue confirmation applies on save.
	//
	// Picking a mimicry card (mode SIGNATURE): only fresh `preset`, `domain` and `i1`..`i5`, nothing the node or the
	// issued configs depend on, so no device is affected. The caller lays the few keys over the form.
	GenerateObfuscation(context.Context, *connect.Request[v1.GenerateObfuscationRequest]) (*connect.Response[v1.GenerateObfuscationResponse], error)
}

AwgServiceHandler is an implementation of the mistgate.admin.v1.AwgService service.

type BackupServiceClient

BackupServiceClient is a client for the mistgate.admin.v1.BackupService service.

func NewBackupServiceClient

func NewBackupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) BackupServiceClient

NewBackupServiceClient constructs a client for the mistgate.admin.v1.BackupService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type BlocklistServiceClient added in v0.1.41

type BlocklistServiceClient interface {
	// The settings and the state of the last check. No secrets.
	GetBlocklist(context.Context, *connect.Request[v1.GetBlocklistRequest]) (*connect.Response[v1.GetBlocklistResponse], error)
	// Changes the settings; absent fields stay. Owner only; needs a step-up.
	UpdateBlocklist(context.Context, *connect.Request[v1.UpdateBlocklistRequest]) (*connect.Response[v1.UpdateBlocklistResponse], error)
	// Downloads the lists now (a conditional request: an unchanged list costs a 304), checks every node and stores the result.
	// Reports the date of the lists, the number of prefixes and how many nodes match. Sends no node address anywhere. Only while
	// the source is on and available.
	TestBlocklist(context.Context, *connect.Request[v1.TestBlocklistRequest]) (*connect.Response[v1.TestBlocklistResponse], error)
	// Disconnect: switches it off AND forgets the downloaded lists and every stored result. Owner only; needs a step-up.
	// Idempotent. A check in flight is cancelled.
	DisconnectBlocklist(context.Context, *connect.Request[v1.DisconnectBlocklistRequest]) (*connect.Response[v1.DisconnectBlocklistResponse], error)
}

BlocklistServiceClient is a client for the mistgate.admin.v1.BlocklistService service.

func NewBlocklistServiceClient added in v0.1.41

func NewBlocklistServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) BlocklistServiceClient

NewBlocklistServiceClient constructs a client for the mistgate.admin.v1.BlocklistService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type BlocklistServiceHandler added in v0.1.41

type BlocklistServiceHandler interface {
	// The settings and the state of the last check. No secrets.
	GetBlocklist(context.Context, *connect.Request[v1.GetBlocklistRequest]) (*connect.Response[v1.GetBlocklistResponse], error)
	// Changes the settings; absent fields stay. Owner only; needs a step-up.
	UpdateBlocklist(context.Context, *connect.Request[v1.UpdateBlocklistRequest]) (*connect.Response[v1.UpdateBlocklistResponse], error)
	// Downloads the lists now (a conditional request: an unchanged list costs a 304), checks every node and stores the result.
	// Reports the date of the lists, the number of prefixes and how many nodes match. Sends no node address anywhere. Only while
	// the source is on and available.
	TestBlocklist(context.Context, *connect.Request[v1.TestBlocklistRequest]) (*connect.Response[v1.TestBlocklistResponse], error)
	// Disconnect: switches it off AND forgets the downloaded lists and every stored result. Owner only; needs a step-up.
	// Idempotent. A check in flight is cancelled.
	DisconnectBlocklist(context.Context, *connect.Request[v1.DisconnectBlocklistRequest]) (*connect.Response[v1.DisconnectBlocklistResponse], error)
}

BlocklistServiceHandler is an implementation of the mistgate.admin.v1.BlocklistService service.

type BsbordServiceClient added in v0.1.63

type BsbordServiceClient interface {
	// Settings and this month's spend. No secrets or pending request details.
	GetBsbord(context.Context, *connect.Request[v1.GetBsbordRequest]) (*connect.Response[v1.GetBsbordResponse], error)
	// Changes settings; absent fields stay. Owner only; needs step-up.
	UpdateBsbord(context.Context, *connect.Request[v1.UpdateBsbordRequest]) (*connect.Response[v1.UpdateBsbordResponse], error)
	// Verifies the key with GET /v1/account and lists probeable units. Sends no node addresses and makes no paid request.
	TestBsbord(context.Context, *connect.Request[v1.TestBsbordRequest]) (*connect.Response[v1.TestBsbordResponse], error)
	// Lists current probeable operator units. The saved units are marked selected; the initial default preset is Crimea.
	ListBsbordUnits(context.Context, *connect.Request[v1.ListBsbordUnitsRequest]) (*connect.Response[v1.ListBsbordUnitsResponse], error)
	// Previews the configured reachability round. This sends node addresses, so it is available only after the owner enabled
	// the integration and confirmed its consent text.
	PreviewBsbord(context.Context, *connect.Request[v1.PreviewBsbordRequest]) (*connect.Response[v1.PreviewBsbordResponse], error)
	// Switches the integration off, cancels a pending request when possible, and forgets the API key and unit selection.
	DisconnectBsbord(context.Context, *connect.Request[v1.DisconnectBsbordRequest]) (*connect.Response[v1.DisconnectBsbordResponse], error)
}

BsbordServiceClient is a client for the mistgate.admin.v1.BsbordService service.

func NewBsbordServiceClient added in v0.1.63

func NewBsbordServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) BsbordServiceClient

NewBsbordServiceClient constructs a client for the mistgate.admin.v1.BsbordService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type BsbordServiceHandler added in v0.1.63

type BsbordServiceHandler interface {
	// Settings and this month's spend. No secrets or pending request details.
	GetBsbord(context.Context, *connect.Request[v1.GetBsbordRequest]) (*connect.Response[v1.GetBsbordResponse], error)
	// Changes settings; absent fields stay. Owner only; needs step-up.
	UpdateBsbord(context.Context, *connect.Request[v1.UpdateBsbordRequest]) (*connect.Response[v1.UpdateBsbordResponse], error)
	// Verifies the key with GET /v1/account and lists probeable units. Sends no node addresses and makes no paid request.
	TestBsbord(context.Context, *connect.Request[v1.TestBsbordRequest]) (*connect.Response[v1.TestBsbordResponse], error)
	// Lists current probeable operator units. The saved units are marked selected; the initial default preset is Crimea.
	ListBsbordUnits(context.Context, *connect.Request[v1.ListBsbordUnitsRequest]) (*connect.Response[v1.ListBsbordUnitsResponse], error)
	// Previews the configured reachability round. This sends node addresses, so it is available only after the owner enabled
	// the integration and confirmed its consent text.
	PreviewBsbord(context.Context, *connect.Request[v1.PreviewBsbordRequest]) (*connect.Response[v1.PreviewBsbordResponse], error)
	// Switches the integration off, cancels a pending request when possible, and forgets the API key and unit selection.
	DisconnectBsbord(context.Context, *connect.Request[v1.DisconnectBsbordRequest]) (*connect.Response[v1.DisconnectBsbordResponse], error)
}

BsbordServiceHandler is an implementation of the mistgate.admin.v1.BsbordService service.

type CheburcheckServiceClient added in v0.1.63

type CheburcheckServiceClient interface {
	// The settings and the last source status. No secrets.
	GetCheburcheck(context.Context, *connect.Request[v1.GetCheburcheckRequest]) (*connect.Response[v1.GetCheburcheckResponse], error)
	// Changes the settings. Owner only; needs a step-up.
	UpdateCheburcheck(context.Context, *connect.Request[v1.UpdateCheburcheckRequest]) (*connect.Response[v1.UpdateCheburcheckResponse], error)
	// One harmless GET /api/v1/status. It never sends a node address or the stored token.
	TestCheburcheck(context.Context, *connect.Request[v1.TestCheburcheckRequest]) (*connect.Response[v1.TestCheburcheckResponse], error)
	// Switches the source off, forgets the own-probe token and deletes its stored rows. Owner only; needs a step-up.
	DisconnectCheburcheck(context.Context, *connect.Request[v1.DisconnectCheburcheckRequest]) (*connect.Response[v1.DisconnectCheburcheckResponse], error)
}

CheburcheckServiceClient is a client for the mistgate.admin.v1.CheburcheckService service.

func NewCheburcheckServiceClient added in v0.1.63

func NewCheburcheckServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CheburcheckServiceClient

NewCheburcheckServiceClient constructs a client for the mistgate.admin.v1.CheburcheckService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type CheburcheckServiceHandler added in v0.1.63

type CheburcheckServiceHandler interface {
	// The settings and the last source status. No secrets.
	GetCheburcheck(context.Context, *connect.Request[v1.GetCheburcheckRequest]) (*connect.Response[v1.GetCheburcheckResponse], error)
	// Changes the settings. Owner only; needs a step-up.
	UpdateCheburcheck(context.Context, *connect.Request[v1.UpdateCheburcheckRequest]) (*connect.Response[v1.UpdateCheburcheckResponse], error)
	// One harmless GET /api/v1/status. It never sends a node address or the stored token.
	TestCheburcheck(context.Context, *connect.Request[v1.TestCheburcheckRequest]) (*connect.Response[v1.TestCheburcheckResponse], error)
	// Switches the source off, forgets the own-probe token and deletes its stored rows. Owner only; needs a step-up.
	DisconnectCheburcheck(context.Context, *connect.Request[v1.DisconnectCheburcheckRequest]) (*connect.Response[v1.DisconnectCheburcheckResponse], error)
}

CheburcheckServiceHandler is an implementation of the mistgate.admin.v1.CheburcheckService service.

type ClientApiServiceClient

ClientApiServiceClient is a client for the mistgate.admin.v1.ClientApiService service.

func NewClientApiServiceClient

func NewClientApiServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ClientApiServiceClient

NewClientApiServiceClient constructs a client for the mistgate.admin.v1.ClientApiService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ClientApiServiceHandler

ClientApiServiceHandler is an implementation of the mistgate.admin.v1.ClientApiService service.

type ClientCompatServiceClient

type ClientCompatServiceClient interface {
	// The table in force (built-in rows with the owner's changes) and the built-in table beside it.
	GetClientCompat(context.Context, *connect.Request[v1.GetClientCompatRequest]) (*connect.Response[v1.GetClientCompatResponse], error)
	// Replaces the owner's changes: the request is the whole table wanted. Rows equal to a built-in row are not stored, a
	// built-in row missing from the request returns to its built-in value. Owner only; needs a step-up.
	UpdateClientCompat(context.Context, *connect.Request[v1.UpdateClientCompatRequest]) (*connect.Response[v1.UpdateClientCompatResponse], error)
	// The devices that receive REALITY, judged by the table, with the counts of every state.
	ListOutdatedDevices(context.Context, *connect.Request[v1.ListOutdatedDevicesRequest]) (*connect.Response[v1.ListOutdatedDevicesResponse], error)
}

ClientCompatServiceClient is a client for the mistgate.admin.v1.ClientCompatService service.

func NewClientCompatServiceClient

func NewClientCompatServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ClientCompatServiceClient

NewClientCompatServiceClient constructs a client for the mistgate.admin.v1.ClientCompatService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ClientCompatServiceHandler

type ClientCompatServiceHandler interface {
	// The table in force (built-in rows with the owner's changes) and the built-in table beside it.
	GetClientCompat(context.Context, *connect.Request[v1.GetClientCompatRequest]) (*connect.Response[v1.GetClientCompatResponse], error)
	// Replaces the owner's changes: the request is the whole table wanted. Rows equal to a built-in row are not stored, a
	// built-in row missing from the request returns to its built-in value. Owner only; needs a step-up.
	UpdateClientCompat(context.Context, *connect.Request[v1.UpdateClientCompatRequest]) (*connect.Response[v1.UpdateClientCompatResponse], error)
	// The devices that receive REALITY, judged by the table, with the counts of every state.
	ListOutdatedDevices(context.Context, *connect.Request[v1.ListOutdatedDevicesRequest]) (*connect.Response[v1.ListOutdatedDevicesResponse], error)
}

ClientCompatServiceHandler is an implementation of the mistgate.admin.v1.ClientCompatService service.

type ClientProbeServiceClient added in v0.1.51

type ClientProbeServiceClient interface {
	// The switch and what the stored reports say, per node. Every role and API tokens.
	GetClientProbe(context.Context, *connect.Request[v1.GetClientProbeRequest]) (*connect.Response[v1.GetClientProbeResponse], error)
	// Changes the switch; absent fields stay. Owner only; needs a step-up.
	UpdateClientProbe(context.Context, *connect.Request[v1.UpdateClientProbeRequest]) (*connect.Response[v1.UpdateClientProbeResponse], error)
	// Disconnect: switches it off AND forgets every stored report. Owner only; needs a step-up. Idempotent.
	DisconnectClientProbe(context.Context, *connect.Request[v1.DisconnectClientProbeRequest]) (*connect.Response[v1.DisconnectClientProbeResponse], error)
}

ClientProbeServiceClient is a client for the mistgate.admin.v1.ClientProbeService service.

func NewClientProbeServiceClient added in v0.1.51

func NewClientProbeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ClientProbeServiceClient

NewClientProbeServiceClient constructs a client for the mistgate.admin.v1.ClientProbeService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ClientProbeServiceHandler added in v0.1.51

type ClientProbeServiceHandler interface {
	// The switch and what the stored reports say, per node. Every role and API tokens.
	GetClientProbe(context.Context, *connect.Request[v1.GetClientProbeRequest]) (*connect.Response[v1.GetClientProbeResponse], error)
	// Changes the switch; absent fields stay. Owner only; needs a step-up.
	UpdateClientProbe(context.Context, *connect.Request[v1.UpdateClientProbeRequest]) (*connect.Response[v1.UpdateClientProbeResponse], error)
	// Disconnect: switches it off AND forgets every stored report. Owner only; needs a step-up. Idempotent.
	DisconnectClientProbe(context.Context, *connect.Request[v1.DisconnectClientProbeRequest]) (*connect.Response[v1.DisconnectClientProbeResponse], error)
}

ClientProbeServiceHandler is an implementation of the mistgate.admin.v1.ClientProbeService service.

type CountryReachabilityServiceClient added in v0.1.41

type CountryReachabilityServiceClient interface {
	GetCountryReachability(context.Context, *connect.Request[v1.GetCountryReachabilityRequest]) (*connect.Response[v1.GetCountryReachabilityResponse], error)
	// Changes the country. The rounds that follow look from it; the stored rounds of another country stay for the retention.
	UpdateCountryReachability(context.Context, *connect.Request[v1.UpdateCountryReachabilityRequest]) (*connect.Response[v1.UpdateCountryReachabilityResponse], error)
	// What each source said of each node over the last days, as the Reachability page draws it: a lane per node and source. A
	// source that is off has no lanes, the way GetChecks shows nothing of it; with every source off there are no nodes.
	GetReachabilityHistory(context.Context, *connect.Request[v1.GetReachabilityHistoryRequest]) (*connect.Response[v1.GetReachabilityHistoryResponse], error)
}

CountryReachabilityServiceClient is a client for the mistgate.admin.v1.CountryReachabilityService service.

func NewCountryReachabilityServiceClient added in v0.1.41

func NewCountryReachabilityServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CountryReachabilityServiceClient

NewCountryReachabilityServiceClient constructs a client for the mistgate.admin.v1.CountryReachabilityService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type CountryReachabilityServiceHandler added in v0.1.41

type CountryReachabilityServiceHandler interface {
	GetCountryReachability(context.Context, *connect.Request[v1.GetCountryReachabilityRequest]) (*connect.Response[v1.GetCountryReachabilityResponse], error)
	// Changes the country. The rounds that follow look from it; the stored rounds of another country stay for the retention.
	UpdateCountryReachability(context.Context, *connect.Request[v1.UpdateCountryReachabilityRequest]) (*connect.Response[v1.UpdateCountryReachabilityResponse], error)
	// What each source said of each node over the last days, as the Reachability page draws it: a lane per node and source. A
	// source that is off has no lanes, the way GetChecks shows nothing of it; with every source off there are no nodes.
	GetReachabilityHistory(context.Context, *connect.Request[v1.GetReachabilityHistoryRequest]) (*connect.Response[v1.GetReachabilityHistoryResponse], error)
}

CountryReachabilityServiceHandler is an implementation of the mistgate.admin.v1.CountryReachabilityService service.

type DeviceServiceClient

type DeviceServiceClient interface {
	// Creates the device, its key pair and its tunnel address, and returns the configs for every usable node.
	CreateAwgDevice(context.Context, *connect.Request[v1.CreateAwgDeviceRequest]) (*connect.Response[v1.CreateAwgDeviceResponse], error)
	// The configs of an existing device. Marks the device as having received the current profile epoch (the
	// "needs a new key" badge goes away).
	GetDeviceConfigs(context.Context, *connect.Request[v1.GetDeviceConfigsRequest]) (*connect.Response[v1.GetDeviceConfigsResponse], error)
	// New key pair for the same device and the same tunnel address. The old key stops working at once.
	RotateDeviceKeys(context.Context, *connect.Request[v1.RotateDeviceKeysRequest]) (*connect.Response[v1.RotateDeviceKeysResponse], error)
	// Changes the label only (Device.model).
	RenameDevice(context.Context, *connect.Request[v1.RenameDeviceRequest]) (*connect.Response[v1.RenameDeviceResponse], error)
}

DeviceServiceClient is a client for the mistgate.admin.v1.DeviceService service.

func NewDeviceServiceClient

func NewDeviceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DeviceServiceClient

NewDeviceServiceClient constructs a client for the mistgate.admin.v1.DeviceService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type DeviceServiceHandler

type DeviceServiceHandler interface {
	// Creates the device, its key pair and its tunnel address, and returns the configs for every usable node.
	CreateAwgDevice(context.Context, *connect.Request[v1.CreateAwgDeviceRequest]) (*connect.Response[v1.CreateAwgDeviceResponse], error)
	// The configs of an existing device. Marks the device as having received the current profile epoch (the
	// "needs a new key" badge goes away).
	GetDeviceConfigs(context.Context, *connect.Request[v1.GetDeviceConfigsRequest]) (*connect.Response[v1.GetDeviceConfigsResponse], error)
	// New key pair for the same device and the same tunnel address. The old key stops working at once.
	RotateDeviceKeys(context.Context, *connect.Request[v1.RotateDeviceKeysRequest]) (*connect.Response[v1.RotateDeviceKeysResponse], error)
	// Changes the label only (Device.model).
	RenameDevice(context.Context, *connect.Request[v1.RenameDeviceRequest]) (*connect.Response[v1.RenameDeviceResponse], error)
}

DeviceServiceHandler is an implementation of the mistgate.admin.v1.DeviceService service.

type DnsServiceClient

type DnsServiceClient interface {
	ListDnsPresets(context.Context, *connect.Request[v1.ListDnsPresetsRequest]) (*connect.Response[v1.ListDnsPresetsResponse], error)
	CreateDnsPreset(context.Context, *connect.Request[v1.CreateDnsPresetRequest]) (*connect.Response[v1.CreateDnsPresetResponse], error)
	UpdateDnsPreset(context.Context, *connect.Request[v1.UpdateDnsPresetRequest]) (*connect.Response[v1.UpdateDnsPresetResponse], error)
	// Users and groups that used it fall back to the default. FAILED_PRECONDITION for a built-in preset
	// or for the instance default.
	DeleteDnsPreset(context.Context, *connect.Request[v1.DeleteDnsPresetRequest]) (*connect.Response[v1.DeleteDnsPresetResponse], error)
	// DNS for the person, per server. The owner offers presets on a node and marks one as the default; a person picks one of
	// them on the public page (SubscriptionSettings.user_page.allow_dns_choice). Not the node's own resolver
	// ("DNS for user traffic", Node.dns_resolvers): this is only what the page offers. A node that offers nothing has no
	// choice and keeps the rule the preset of a user and group follow.
	//
	// The nodes that offer something. A node that is not listed offers nothing.
	ListNodeDnsOptions(context.Context, *connect.Request[v1.ListNodeDnsOptionsRequest]) (*connect.Response[v1.ListNodeDnsOptionsResponse], error)
	// Replaces what one node offers (owner only). An empty list = the node offers nothing. INVALID_ARGUMENT for an unknown or
	// repeated preset, a default that is not offered or too many presets; NOT_FOUND for an unknown node.
	SetNodeDnsOptions(context.Context, *connect.Request[v1.SetNodeDnsOptionsRequest]) (*connect.Response[v1.SetNodeDnsOptionsResponse], error)
	// What a person picked on their page, per node and for the link apps (read only).
	GetUserDnsChoices(context.Context, *connect.Request[v1.GetUserDnsChoicesRequest]) (*connect.Response[v1.GetUserDnsChoicesResponse], error)
	// Removes every pick of a person: their servers go back to the node defaults, their link apps to the usual preset.
	ResetUserDnsChoices(context.Context, *connect.Request[v1.ResetUserDnsChoicesRequest]) (*connect.Response[v1.ResetUserDnsChoicesResponse], error)
}

DnsServiceClient is a client for the mistgate.admin.v1.DnsService service.

func NewDnsServiceClient

func NewDnsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DnsServiceClient

NewDnsServiceClient constructs a client for the mistgate.admin.v1.DnsService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type DnsServiceHandler

type DnsServiceHandler interface {
	ListDnsPresets(context.Context, *connect.Request[v1.ListDnsPresetsRequest]) (*connect.Response[v1.ListDnsPresetsResponse], error)
	CreateDnsPreset(context.Context, *connect.Request[v1.CreateDnsPresetRequest]) (*connect.Response[v1.CreateDnsPresetResponse], error)
	UpdateDnsPreset(context.Context, *connect.Request[v1.UpdateDnsPresetRequest]) (*connect.Response[v1.UpdateDnsPresetResponse], error)
	// Users and groups that used it fall back to the default. FAILED_PRECONDITION for a built-in preset
	// or for the instance default.
	DeleteDnsPreset(context.Context, *connect.Request[v1.DeleteDnsPresetRequest]) (*connect.Response[v1.DeleteDnsPresetResponse], error)
	// DNS for the person, per server. The owner offers presets on a node and marks one as the default; a person picks one of
	// them on the public page (SubscriptionSettings.user_page.allow_dns_choice). Not the node's own resolver
	// ("DNS for user traffic", Node.dns_resolvers): this is only what the page offers. A node that offers nothing has no
	// choice and keeps the rule the preset of a user and group follow.
	//
	// The nodes that offer something. A node that is not listed offers nothing.
	ListNodeDnsOptions(context.Context, *connect.Request[v1.ListNodeDnsOptionsRequest]) (*connect.Response[v1.ListNodeDnsOptionsResponse], error)
	// Replaces what one node offers (owner only). An empty list = the node offers nothing. INVALID_ARGUMENT for an unknown or
	// repeated preset, a default that is not offered or too many presets; NOT_FOUND for an unknown node.
	SetNodeDnsOptions(context.Context, *connect.Request[v1.SetNodeDnsOptionsRequest]) (*connect.Response[v1.SetNodeDnsOptionsResponse], error)
	// What a person picked on their page, per node and for the link apps (read only).
	GetUserDnsChoices(context.Context, *connect.Request[v1.GetUserDnsChoicesRequest]) (*connect.Response[v1.GetUserDnsChoicesResponse], error)
	// Removes every pick of a person: their servers go back to the node defaults, their link apps to the usual preset.
	ResetUserDnsChoices(context.Context, *connect.Request[v1.ResetUserDnsChoicesRequest]) (*connect.Response[v1.ResetUserDnsChoicesResponse], error)
}

DnsServiceHandler is an implementation of the mistgate.admin.v1.DnsService service.

type FleetServiceClient

type FleetServiceClient interface {
	Overview(context.Context, *connect.Request[v1.OverviewRequest]) (*connect.Response[v1.OverviewResponse], error)
	// Events for the Overview feed, the node "Events" tab and the user "History" section.
	ListEvents(context.Context, *connect.Request[v1.ListEventsRequest]) (*connect.Response[v1.ListEventsResponse], error)
}

FleetServiceClient is a client for the mistgate.admin.v1.FleetService service.

func NewFleetServiceClient

func NewFleetServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) FleetServiceClient

NewFleetServiceClient constructs a client for the mistgate.admin.v1.FleetService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type FleetServiceHandler

type FleetServiceHandler interface {
	Overview(context.Context, *connect.Request[v1.OverviewRequest]) (*connect.Response[v1.OverviewResponse], error)
	// Events for the Overview feed, the node "Events" tab and the user "History" section.
	ListEvents(context.Context, *connect.Request[v1.ListEventsRequest]) (*connect.Response[v1.ListEventsResponse], error)
}

FleetServiceHandler is an implementation of the mistgate.admin.v1.FleetService service.

type GlobalpingServiceClient added in v0.1.41

type GlobalpingServiceClient interface {
	// The settings. No secrets.
	GetGlobalping(context.Context, *connect.Request[v1.GetGlobalpingRequest]) (*connect.Response[v1.GetGlobalpingResponse], error)
	// Changes the settings; absent fields stay. Owner only; needs a step-up.
	UpdateGlobalping(context.Context, *connect.Request[v1.UpdateGlobalpingRequest]) (*connect.Response[v1.UpdateGlobalpingResponse], error)
	// One harmless call to Globalping's rate-limit endpoint (GET /v1/limits) with the stored token (or without one): says
	// whether the token works and how many tests are left this hour. Sends no address and uses no test.
	TestGlobalping(context.Context, *connect.Request[v1.TestGlobalpingRequest]) (*connect.Response[v1.TestGlobalpingResponse], error)
	// Disconnect: switches it off AND forgets the token. Owner only; needs a step-up. Idempotent. Rounds in flight are
	// cancelled; stored results stay until the retention removes them (7 days), but GetChecks stops returning them.
	DisconnectGlobalping(context.Context, *connect.Request[v1.DisconnectGlobalpingRequest]) (*connect.Response[v1.DisconnectGlobalpingResponse], error)
}

GlobalpingServiceClient is a client for the mistgate.admin.v1.GlobalpingService service.

func NewGlobalpingServiceClient added in v0.1.41

func NewGlobalpingServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GlobalpingServiceClient

NewGlobalpingServiceClient constructs a client for the mistgate.admin.v1.GlobalpingService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type GlobalpingServiceHandler added in v0.1.41

type GlobalpingServiceHandler interface {
	// The settings. No secrets.
	GetGlobalping(context.Context, *connect.Request[v1.GetGlobalpingRequest]) (*connect.Response[v1.GetGlobalpingResponse], error)
	// Changes the settings; absent fields stay. Owner only; needs a step-up.
	UpdateGlobalping(context.Context, *connect.Request[v1.UpdateGlobalpingRequest]) (*connect.Response[v1.UpdateGlobalpingResponse], error)
	// One harmless call to Globalping's rate-limit endpoint (GET /v1/limits) with the stored token (or without one): says
	// whether the token works and how many tests are left this hour. Sends no address and uses no test.
	TestGlobalping(context.Context, *connect.Request[v1.TestGlobalpingRequest]) (*connect.Response[v1.TestGlobalpingResponse], error)
	// Disconnect: switches it off AND forgets the token. Owner only; needs a step-up. Idempotent. Rounds in flight are
	// cancelled; stored results stay until the retention removes them (7 days), but GetChecks stops returning them.
	DisconnectGlobalping(context.Context, *connect.Request[v1.DisconnectGlobalpingRequest]) (*connect.Response[v1.DisconnectGlobalpingResponse], error)
}

GlobalpingServiceHandler is an implementation of the mistgate.admin.v1.GlobalpingService service.

type GroupServiceClient

type GroupServiceClient interface {
	ListGroups(context.Context, *connect.Request[v1.ListGroupsRequest]) (*connect.Response[v1.ListGroupsResponse], error)
	CreateGroup(context.Context, *connect.Request[v1.CreateGroupRequest]) (*connect.Response[v1.CreateGroupResponse], error)
	UpdateGroup(context.Context, *connect.Request[v1.UpdateGroupRequest]) (*connect.Response[v1.UpdateGroupResponse], error)
	// FAILED_PRECONDITION while people have it as their MAIN group, unless move_users_to names where they go. People that have it
	// as an extra group just leave it (they keep their main group and lose what this group gave them).
	DeleteGroup(context.Context, *connect.Request[v1.DeleteGroupRequest]) (*connect.Response[v1.DeleteGroupResponse], error)
	// Hands a node out as asked, in one transaction: ALL clears every group's switch for the node and lets groups made later
	// have it, LISTED gives it to the listed groups only (groups made later do not get it), NONE to no group. The groups' own
	// disabled lists change with it (Group.disabled_node_ids), so the group pages show the new state. dry_run says what would
	// change without writing; asked with the node's current mode and groups, it says how many people get the node now. The
	// mode of every node and how many groups receive it are in Node.sharing, and which ones in Group.disabled_node_ids.
	// Same rights as UpdateGroup (owner and helper; for a token, approved with the plan); the people who gain or lose the
	// node count against the token's user-change limit like a group update does. Audited as node_sharing_set. NOT_FOUND
	// for a node or group that does not exist, FAILED_PRECONDITION "node_retired" for a retired node, INVALID_ARGUMENT for
	// group_ids with ALL or NONE and for LISTED with none.
	SetNodeSharing(context.Context, *connect.Request[v1.SetNodeSharingRequest]) (*connect.Response[v1.SetNodeSharingResponse], error)
}

GroupServiceClient is a client for the mistgate.admin.v1.GroupService service.

func NewGroupServiceClient

func NewGroupServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GroupServiceClient

NewGroupServiceClient constructs a client for the mistgate.admin.v1.GroupService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type GroupServiceHandler

type GroupServiceHandler interface {
	ListGroups(context.Context, *connect.Request[v1.ListGroupsRequest]) (*connect.Response[v1.ListGroupsResponse], error)
	CreateGroup(context.Context, *connect.Request[v1.CreateGroupRequest]) (*connect.Response[v1.CreateGroupResponse], error)
	UpdateGroup(context.Context, *connect.Request[v1.UpdateGroupRequest]) (*connect.Response[v1.UpdateGroupResponse], error)
	// FAILED_PRECONDITION while people have it as their MAIN group, unless move_users_to names where they go. People that have it
	// as an extra group just leave it (they keep their main group and lose what this group gave them).
	DeleteGroup(context.Context, *connect.Request[v1.DeleteGroupRequest]) (*connect.Response[v1.DeleteGroupResponse], error)
	// Hands a node out as asked, in one transaction: ALL clears every group's switch for the node and lets groups made later
	// have it, LISTED gives it to the listed groups only (groups made later do not get it), NONE to no group. The groups' own
	// disabled lists change with it (Group.disabled_node_ids), so the group pages show the new state. dry_run says what would
	// change without writing; asked with the node's current mode and groups, it says how many people get the node now. The
	// mode of every node and how many groups receive it are in Node.sharing, and which ones in Group.disabled_node_ids.
	// Same rights as UpdateGroup (owner and helper; for a token, approved with the plan); the people who gain or lose the
	// node count against the token's user-change limit like a group update does. Audited as node_sharing_set. NOT_FOUND
	// for a node or group that does not exist, FAILED_PRECONDITION "node_retired" for a retired node, INVALID_ARGUMENT for
	// group_ids with ALL or NONE and for LISTED with none.
	SetNodeSharing(context.Context, *connect.Request[v1.SetNodeSharingRequest]) (*connect.Response[v1.SetNodeSharingResponse], error)
}

GroupServiceHandler is an implementation of the mistgate.admin.v1.GroupService service.

type HealthServiceClient

type HealthServiceClient interface {
	// Active alerts (newest first) and the resolved ones of a recent window (newest resolution first).
	ListAlerts(context.Context, *connect.Request[v1.ListAlertsRequest]) (*connect.Response[v1.ListAlertsResponse], error)
	// Mute an active alert for a while (no bot/webhook notification, no badge count, the card stays with a
	// "muted until" caption), or unmute it. Muting never hides the alert from the list and never stops the
	// panel from resolving it.
	MuteAlert(context.Context, *connect.Request[v1.MuteAlertRequest]) (*connect.Response[v1.MuteAlertResponse], error)
	// Close an active alert ("dismissed" in the history): it is resolved now, with no notification, and stays
	// closed while the same condition continues. It opens again only after the problem has stopped for longer
	// than the re-open window and then returns, or when its severity rises. With reopen the call undoes a close
	// (the Undo of the toast). FAILED_PRECONDITION: the alert is already resolved (reopen: it is not closed
	// any more, or another alert of the same key is active).
	DismissAlert(context.Context, *connect.Request[v1.DismissAlertRequest]) (*connect.Response[v1.DismissAlertResponse], error)
	// Node x profile matrix of the synthetic checks, with the last result and the last 24 h per cell.
	GetChecks(context.Context, *connect.Request[v1.GetChecksRequest]) (*connect.Response[v1.GetChecksResponse], error)
	// "Check now": schedule an immediate round for every inbound of one node (or of the fleet). Returns at
	// once; the results show up in GetChecks within seconds. Rate limit: one round per inbound per 30 s
	// (RESOURCE_EXHAUSTED with the seconds left in the message). For one node it also asks the country check ("From Russia")
	// for a round out of turn, see RunChecksNowResponse.country_now.
	RunChecksNow(context.Context, *connect.Request[v1.RunChecksNowRequest]) (*connect.Response[v1.RunChecksNowResponse], error)
	// The last DoctorReport of one node, or of every node, with its age. Never contacts a node.
	GetDoctor(context.Context, *connect.Request[v1.GetDoctorRequest]) (*connect.Response[v1.GetDoctorResponse], error)
	// "Run again": ask the node(s) to run the doctor now and return the fresh report. Waits for the agent
	// (up to 30 s per node, in parallel). FAILED_PRECONDITION: the node is offline or its agent has no
	// "doctor/1" capability (older agent: "agent too old").
	RunDoctor(context.Context, *connect.Request[v1.RunDoctorRequest]) (*connect.Response[v1.RunDoctorResponse], error)
	// Apply a doctor fix in two steps. Step 1: dry_run = true asks the node what would happen and returns the
	// plan plus a plan_id. Step 2: dry_run = false with that plan_id performs it. The plan_id is single use, valid
	// 10 minutes and bound to (node, fix, params); a missing or stale one is FAILED_PRECONDITION ("no fresh
	// plan"), so nothing is ever applied that the admin has not seen. Audit: both steps are written to the
	// audit log with the plan facts.
	ApplyFix(context.Context, *connect.Request[v1.ApplyFixRequest]) (*connect.Response[v1.ApplyFixResponse], error)
	// "This is normal for this node": accept a WARN of the doctor (Docker's nft tables, a host without IPv6...). The
	// panel remembers (node, check, detail_code): the item opens no alert and counts in no badge until its detail_code
	// changes or it turns FAIL, and the acceptance is dropped then. Only a WARN can be accepted (FAILED_PRECONDITION).
	AcceptDoctorItem(context.Context, *connect.Request[v1.AcceptDoctorItemRequest]) (*connect.Response[v1.AcceptDoctorItemResponse], error)
	// Take an acceptance back: the warning counts again.
	UnacceptDoctorItem(context.Context, *connect.Request[v1.UnacceptDoctorItemRequest]) (*connect.Response[v1.UnacceptDoctorItemResponse], error)
}

HealthServiceClient is a client for the mistgate.admin.v1.HealthService service.

func NewHealthServiceClient

func NewHealthServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) HealthServiceClient

NewHealthServiceClient constructs a client for the mistgate.admin.v1.HealthService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type HealthServiceHandler

type HealthServiceHandler interface {
	// Active alerts (newest first) and the resolved ones of a recent window (newest resolution first).
	ListAlerts(context.Context, *connect.Request[v1.ListAlertsRequest]) (*connect.Response[v1.ListAlertsResponse], error)
	// Mute an active alert for a while (no bot/webhook notification, no badge count, the card stays with a
	// "muted until" caption), or unmute it. Muting never hides the alert from the list and never stops the
	// panel from resolving it.
	MuteAlert(context.Context, *connect.Request[v1.MuteAlertRequest]) (*connect.Response[v1.MuteAlertResponse], error)
	// Close an active alert ("dismissed" in the history): it is resolved now, with no notification, and stays
	// closed while the same condition continues. It opens again only after the problem has stopped for longer
	// than the re-open window and then returns, or when its severity rises. With reopen the call undoes a close
	// (the Undo of the toast). FAILED_PRECONDITION: the alert is already resolved (reopen: it is not closed
	// any more, or another alert of the same key is active).
	DismissAlert(context.Context, *connect.Request[v1.DismissAlertRequest]) (*connect.Response[v1.DismissAlertResponse], error)
	// Node x profile matrix of the synthetic checks, with the last result and the last 24 h per cell.
	GetChecks(context.Context, *connect.Request[v1.GetChecksRequest]) (*connect.Response[v1.GetChecksResponse], error)
	// "Check now": schedule an immediate round for every inbound of one node (or of the fleet). Returns at
	// once; the results show up in GetChecks within seconds. Rate limit: one round per inbound per 30 s
	// (RESOURCE_EXHAUSTED with the seconds left in the message). For one node it also asks the country check ("From Russia")
	// for a round out of turn, see RunChecksNowResponse.country_now.
	RunChecksNow(context.Context, *connect.Request[v1.RunChecksNowRequest]) (*connect.Response[v1.RunChecksNowResponse], error)
	// The last DoctorReport of one node, or of every node, with its age. Never contacts a node.
	GetDoctor(context.Context, *connect.Request[v1.GetDoctorRequest]) (*connect.Response[v1.GetDoctorResponse], error)
	// "Run again": ask the node(s) to run the doctor now and return the fresh report. Waits for the agent
	// (up to 30 s per node, in parallel). FAILED_PRECONDITION: the node is offline or its agent has no
	// "doctor/1" capability (older agent: "agent too old").
	RunDoctor(context.Context, *connect.Request[v1.RunDoctorRequest]) (*connect.Response[v1.RunDoctorResponse], error)
	// Apply a doctor fix in two steps. Step 1: dry_run = true asks the node what would happen and returns the
	// plan plus a plan_id. Step 2: dry_run = false with that plan_id performs it. The plan_id is single use, valid
	// 10 minutes and bound to (node, fix, params); a missing or stale one is FAILED_PRECONDITION ("no fresh
	// plan"), so nothing is ever applied that the admin has not seen. Audit: both steps are written to the
	// audit log with the plan facts.
	ApplyFix(context.Context, *connect.Request[v1.ApplyFixRequest]) (*connect.Response[v1.ApplyFixResponse], error)
	// "This is normal for this node": accept a WARN of the doctor (Docker's nft tables, a host without IPv6...). The
	// panel remembers (node, check, detail_code): the item opens no alert and counts in no badge until its detail_code
	// changes or it turns FAIL, and the acceptance is dropped then. Only a WARN can be accepted (FAILED_PRECONDITION).
	AcceptDoctorItem(context.Context, *connect.Request[v1.AcceptDoctorItemRequest]) (*connect.Response[v1.AcceptDoctorItemResponse], error)
	// Take an acceptance back: the warning counts again.
	UnacceptDoctorItem(context.Context, *connect.Request[v1.UnacceptDoctorItemRequest]) (*connect.Response[v1.UnacceptDoctorItemResponse], error)
}

HealthServiceHandler is an implementation of the mistgate.admin.v1.HealthService service.

type InstanceServiceClient

type InstanceServiceClient interface {
	// Any signed-in admin.
	GetInstance(context.Context, *connect.Request[v1.GetInstanceRequest]) (*connect.Response[v1.GetInstanceResponse], error)
	// Owner only. Absent fields are left unchanged.
	UpdateInstance(context.Context, *connect.Request[v1.UpdateInstanceRequest]) (*connect.Response[v1.UpdateInstanceResponse], error)
	// Any signed-in admin, closed to API tokens: encodes a text (a subscription link, a device config, a proxy link) as a QR
	// code for the panel to draw. The text is never stored, logged or audited; it is a credential.
	EncodeQr(context.Context, *connect.Request[v1.EncodeQrRequest]) (*connect.Response[v1.EncodeQrResponse], error)
}

InstanceServiceClient is a client for the mistgate.admin.v1.InstanceService service.

func NewInstanceServiceClient

func NewInstanceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) InstanceServiceClient

NewInstanceServiceClient constructs a client for the mistgate.admin.v1.InstanceService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type InstanceServiceHandler

type InstanceServiceHandler interface {
	// Any signed-in admin.
	GetInstance(context.Context, *connect.Request[v1.GetInstanceRequest]) (*connect.Response[v1.GetInstanceResponse], error)
	// Owner only. Absent fields are left unchanged.
	UpdateInstance(context.Context, *connect.Request[v1.UpdateInstanceRequest]) (*connect.Response[v1.UpdateInstanceResponse], error)
	// Any signed-in admin, closed to API tokens: encodes a text (a subscription link, a device config, a proxy link) as a QR
	// code for the panel to draw. The text is never stored, logged or audited; it is a credential.
	EncodeQr(context.Context, *connect.Request[v1.EncodeQrRequest]) (*connect.Response[v1.EncodeQrResponse], error)
}

InstanceServiceHandler is an implementation of the mistgate.admin.v1.InstanceService service.

type NodeServiceClient

type NodeServiceClient interface {
	// All nodes. The fleet is at most ~50 nodes, so no pagination; filtering by country, status and
	// protocol is done in the SPA.
	ListNodes(context.Context, *connect.Request[v1.ListNodesRequest]) (*connect.Response[v1.ListNodesResponse], error)
	GetNode(context.Context, *connect.Request[v1.GetNodeRequest]) (*connect.Response[v1.GetNodeResponse], error)
	// Creates the node row (PENDING) and a one-time enrollment token; returns the command to run on the
	// server. Passing node_id re-enrolls an existing node (lost certificate, reinstall).
	CreateEnrollment(context.Context, *connect.Request[v1.CreateEnrollmentRequest]) (*connect.Response[v1.CreateEnrollmentResponse], error)
	UpdateNode(context.Context, *connect.Request[v1.UpdateNodeRequest]) (*connect.Response[v1.UpdateNodeResponse], error)
	// Select the node's decoy site: "builtin", "panel" or "own" (an own bundle must already be uploaded).
	SetNodeDecoyMode(context.Context, *connect.Request[v1.SetNodeDecoyModeRequest]) (*connect.Response[v1.SetNodeDecoyModeResponse], error)
	// Upload one ZIP or TAR static site for this node (2 MiB maximum); this also selects "own".
	UploadNodeDecoy(context.Context, *connect.Request[v1.UploadNodeDecoyRequest]) (*connect.Response[v1.UploadNodeDecoyResponse], error)
	// Select one mode for up to 50 nodes. "own" requires each node to have its own uploaded bundle.
	SetNodesDecoyMode(context.Context, *connect.Request[v1.SetNodesDecoyModeRequest]) (*connect.Response[v1.SetNodesDecoyModeResponse], error)
	// Restart one inbound or all inbounds of a node ("Restart profiles" button). Drops its sessions.
	RestartInbounds(context.Context, *connect.Request[v1.RestartInboundsRequest]) (*connect.Response[v1.RestartInboundsResponse], error)
	// The node's AmneziaWG kernel module (agents with "awg-prepare/1"). confirm = false only asks the node whether the
	// module is ready or can be built there (nothing changes); confirm = true starts building it in the background. The
	// node keeps its current backend meanwhile; when the module is built and loaded the panel switches the node to
	// awg_backend "kernel" (unless the admin chose another backend in the meantime). Fails with FAILED_PRECONDITION
	// "agent too old" / "the node is not connected".
	PrepareAwgKernel(context.Context, *connect.Request[v1.PrepareAwgKernelRequest]) (*connect.Response[v1.PrepareAwgKernelResponse], error)
	// Asks the connected agent (capability "bandwidth/1") to measure how fast the node reaches the internet: three runs, about 30 seconds,
	// up to 1.5 GB through a public speed server (the nearest Ookla one, else Cloudflare and others), the best run counts, and the traffic of the people already using the node during the test is part of the result. It only returns the result; it never changes bandwidth_mbps (the admin
	// chooses to use it). Owner only, closed to API tokens and MCP: it makes the node push traffic. Fails with
	// FAILED_PRECONDITION "node_offline" / "agent too old"; an answer the node itself gave (busy, no server reachable...) is
	// in error_code. One measurement per node at a time.
	MeasureBandwidth(context.Context, *connect.Request[v1.MeasureBandwidthRequest]) (*connect.Response[v1.MeasureBandwidthResponse], error)
	// Checks that UDP datagrams sent to the node arrive (agents with "udpcheck/1"; design/udp-port-check.md): about 6 s per
	// 8 ports, about 300 KiB of UDP payload at most. Ports: the given ones (at most 7), else the node's enabled UDP inbound ports;
	// 443 is always added. Another node sends (both editions); a VPS panel with no other usable node sends
	// itself. Conclusive results are stored and shown in GetNodeResponse.port_checks.
	// The same call probes the node's TCP ports (agents with "tcpcheck/1"; design/vless.md section 7.4): port 80 only with an
	// ACME name on the node, the Hysteria2 site port and the VLESS ports. The rows are CheckPortsResponse.tcp and are stored for
	// GetNodeResponse.tcp_checks. Owner or helper; API tokens directly (like RunDoctor). Every "could not check" outcome is error_code, never an RPC error.
	CheckPorts(context.Context, *connect.Request[v1.CheckPortsRequest]) (*connect.Response[v1.CheckPortsResponse], error)
	// Checks from outside that an IPv6 address of the node answers (agents with "udpcheck/1"; the packets are those of CheckPorts):
	// the UDP delivery of the node's enabled UDP servers and the TLS identity of its TCP servers, sent to the address instead of the
	// node's main one by another node whose IPv6 works (the panel itself last; Globalping connects to one TLS port when no
	// node can). Nothing is changed on any host and port_check / tcp_check are not touched; the answer is kept in Node.ipv6.last_check (UpdateIpv6Entry uses a passing one for ten minutes) and audited as node.ipv6_check. The address has
	// to be one the node's doctor lists as its uplink's (params addrs and src of the ipv6 check); FAILED_PRECONDITION with a reason
	// (no_ipv6, ipv6_broken, agent_old, not_checked, main_is_ipv6) when the node has no such address to give, INVALID_ARGUMENT for any other address. Every "could
	// not check" outcome is error_code, never an RPC error. Owner only; MCP node_ipv6_check.
	CheckIpv6(context.Context, *connect.Request[v1.CheckIpv6Request]) (*connect.Response[v1.CheckIpv6Response], error)
	// Turns the node's IPv6 entry on or off (Node.ipv6; the feature is described at NodeIpv6). ENABLE adds the server
	// "<node> · IPv6" next to each of the node's servers in everyone's subscription, at the next refresh of their apps; it needs a
	// check of the address (CheckIpv6) that passed less than 10 minutes ago, and runs one itself when there is none. A check
	// that does not pass changes nothing and is answered in error_code, like CheckIpv6's. DISABLE removes the servers again
	// and always works. Both are idempotent: asking for what already is changes nothing and is not audited. Owner only; closed to
	// API tokens; the MCP tool node_ipv6_plan / node_ipv6_apply goes through the owner's approval. Audited as node.ipv6_entry.
	UpdateIpv6Entry(context.Context, *connect.Request[v1.UpdateIpv6EntryRequest]) (*connect.Response[v1.UpdateIpv6EntryResponse], error)
	// "Retire from fleet": revoke the certificate, tell a connected agent to exit, remove the node from
	// every user's access. The row stays (audit, traffic history) with status RETIRED.
	RetireNode(context.Context, *connect.Request[v1.RetireNodeRequest]) (*connect.Response[v1.RetireNodeResponse], error)
	// Live log tail of the agent and its engines, relayed from the node. Ends with eof = true, on client
	// cancel, or when the node link drops (then the last chunk has error set).
	StreamLogs(context.Context, *connect.Request[v1.StreamLogsRequest]) (*connect.ServerStreamForClient[v1.StreamLogsResponse], error)
	// The connection counters of the node's inbounds over the last hours (agents with "links/1", agent.proto
	// LinkCounters): attempts, refusals, early drops, handshakes that do not complete, unknown keys. Counts only, no
	// address. A read: every role and API tokens (the MCP tool node_connections).
	GetNodeConnections(context.Context, *connect.Request[v1.GetNodeConnectionsRequest]) (*connect.Response[v1.GetNodeConnectionsResponse], error)
	// The saved journal of the nodes' agents and engines (agents with "journal/1", agent.proto JournalEntry): their warnings
	// and errors, grouped per hour, kept 7 days. Addresses are cut on the node and again in the panel. A read: every role and
	// API tokens (the MCP tool node_journal); the live tail (StreamLogs) stays the owner's.
	GetNodeJournal(context.Context, *connect.Request[v1.GetNodeJournalRequest]) (*connect.Response[v1.GetNodeJournalResponse], error)
	// GetNodeConnections of every node that is not retired, in one read (the MCP tool fleet_connections). A read: every role
	// and API tokens.
	GetFleetConnections(context.Context, *connect.Request[v1.GetFleetConnectionsRequest]) (*connect.Response[v1.GetFleetConnectionsResponse], error)
	// Per-inbound autonomous-system counters for a bounded window. Only ASNs and counts are stored or returned; no client address.
	GetNetworks(context.Context, *connect.Request[v1.GetNetworksRequest]) (*connect.Response[v1.GetNetworksResponse], error)
	// What the panel wants a node to run against what the node reports it runs, one node or every node that is not retired: the
	// desired and applied revision and hash, whether they agree, since when they have not, the last apply and, per inbound, the
	// panel's spec version, the applied spec hash, the node's state for it, its last error and certificate expiry. No
	// address, certificate pin or key. A read: every role and API tokens (the MCP tool node_runtime).
	GetNodeRuntime(context.Context, *connect.Request[v1.GetNodeRuntimeRequest]) (*connect.Response[v1.GetNodeRuntimeResponse], error)
	// A node's host load per hour (HostMetrics of every stats batch, rolled up by the panel, kept 90 days): means and peaks of CPU,
	// softirq, RAM, network and sessions. A read: every role and API tokens (the MCP tool node_metrics with hours).
	GetNodeHostHistory(context.Context, *connect.Request[v1.GetNodeHostHistoryRequest]) (*connect.Response[v1.GetNodeHostHistoryResponse], error)
	// The paths the UDP port check found lossy: from one node to another, with the loss and the other sender's result, and a
	// summary per target. Node names only, never an address. A read: every role and API tokens (the MCP tool path_loss_matrix).
	GetPathLoss(context.Context, *connect.Request[v1.GetPathLossRequest]) (*connect.Response[v1.GetPathLossResponse], error)
}

NodeServiceClient is a client for the mistgate.admin.v1.NodeService service.

func NewNodeServiceClient

func NewNodeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) NodeServiceClient

NewNodeServiceClient constructs a client for the mistgate.admin.v1.NodeService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type NodeServiceHandler

type NodeServiceHandler interface {
	// All nodes. The fleet is at most ~50 nodes, so no pagination; filtering by country, status and
	// protocol is done in the SPA.
	ListNodes(context.Context, *connect.Request[v1.ListNodesRequest]) (*connect.Response[v1.ListNodesResponse], error)
	GetNode(context.Context, *connect.Request[v1.GetNodeRequest]) (*connect.Response[v1.GetNodeResponse], error)
	// Creates the node row (PENDING) and a one-time enrollment token; returns the command to run on the
	// server. Passing node_id re-enrolls an existing node (lost certificate, reinstall).
	CreateEnrollment(context.Context, *connect.Request[v1.CreateEnrollmentRequest]) (*connect.Response[v1.CreateEnrollmentResponse], error)
	UpdateNode(context.Context, *connect.Request[v1.UpdateNodeRequest]) (*connect.Response[v1.UpdateNodeResponse], error)
	// Select the node's decoy site: "builtin", "panel" or "own" (an own bundle must already be uploaded).
	SetNodeDecoyMode(context.Context, *connect.Request[v1.SetNodeDecoyModeRequest]) (*connect.Response[v1.SetNodeDecoyModeResponse], error)
	// Upload one ZIP or TAR static site for this node (2 MiB maximum); this also selects "own".
	UploadNodeDecoy(context.Context, *connect.Request[v1.UploadNodeDecoyRequest]) (*connect.Response[v1.UploadNodeDecoyResponse], error)
	// Select one mode for up to 50 nodes. "own" requires each node to have its own uploaded bundle.
	SetNodesDecoyMode(context.Context, *connect.Request[v1.SetNodesDecoyModeRequest]) (*connect.Response[v1.SetNodesDecoyModeResponse], error)
	// Restart one inbound or all inbounds of a node ("Restart profiles" button). Drops its sessions.
	RestartInbounds(context.Context, *connect.Request[v1.RestartInboundsRequest]) (*connect.Response[v1.RestartInboundsResponse], error)
	// The node's AmneziaWG kernel module (agents with "awg-prepare/1"). confirm = false only asks the node whether the
	// module is ready or can be built there (nothing changes); confirm = true starts building it in the background. The
	// node keeps its current backend meanwhile; when the module is built and loaded the panel switches the node to
	// awg_backend "kernel" (unless the admin chose another backend in the meantime). Fails with FAILED_PRECONDITION
	// "agent too old" / "the node is not connected".
	PrepareAwgKernel(context.Context, *connect.Request[v1.PrepareAwgKernelRequest]) (*connect.Response[v1.PrepareAwgKernelResponse], error)
	// Asks the connected agent (capability "bandwidth/1") to measure how fast the node reaches the internet: three runs, about 30 seconds,
	// up to 1.5 GB through a public speed server (the nearest Ookla one, else Cloudflare and others), the best run counts, and the traffic of the people already using the node during the test is part of the result. It only returns the result; it never changes bandwidth_mbps (the admin
	// chooses to use it). Owner only, closed to API tokens and MCP: it makes the node push traffic. Fails with
	// FAILED_PRECONDITION "node_offline" / "agent too old"; an answer the node itself gave (busy, no server reachable...) is
	// in error_code. One measurement per node at a time.
	MeasureBandwidth(context.Context, *connect.Request[v1.MeasureBandwidthRequest]) (*connect.Response[v1.MeasureBandwidthResponse], error)
	// Checks that UDP datagrams sent to the node arrive (agents with "udpcheck/1"; design/udp-port-check.md): about 6 s per
	// 8 ports, about 300 KiB of UDP payload at most. Ports: the given ones (at most 7), else the node's enabled UDP inbound ports;
	// 443 is always added. Another node sends (both editions); a VPS panel with no other usable node sends
	// itself. Conclusive results are stored and shown in GetNodeResponse.port_checks.
	// The same call probes the node's TCP ports (agents with "tcpcheck/1"; design/vless.md section 7.4): port 80 only with an
	// ACME name on the node, the Hysteria2 site port and the VLESS ports. The rows are CheckPortsResponse.tcp and are stored for
	// GetNodeResponse.tcp_checks. Owner or helper; API tokens directly (like RunDoctor). Every "could not check" outcome is error_code, never an RPC error.
	CheckPorts(context.Context, *connect.Request[v1.CheckPortsRequest]) (*connect.Response[v1.CheckPortsResponse], error)
	// Checks from outside that an IPv6 address of the node answers (agents with "udpcheck/1"; the packets are those of CheckPorts):
	// the UDP delivery of the node's enabled UDP servers and the TLS identity of its TCP servers, sent to the address instead of the
	// node's main one by another node whose IPv6 works (the panel itself last; Globalping connects to one TLS port when no
	// node can). Nothing is changed on any host and port_check / tcp_check are not touched; the answer is kept in Node.ipv6.last_check (UpdateIpv6Entry uses a passing one for ten minutes) and audited as node.ipv6_check. The address has
	// to be one the node's doctor lists as its uplink's (params addrs and src of the ipv6 check); FAILED_PRECONDITION with a reason
	// (no_ipv6, ipv6_broken, agent_old, not_checked, main_is_ipv6) when the node has no such address to give, INVALID_ARGUMENT for any other address. Every "could
	// not check" outcome is error_code, never an RPC error. Owner only; MCP node_ipv6_check.
	CheckIpv6(context.Context, *connect.Request[v1.CheckIpv6Request]) (*connect.Response[v1.CheckIpv6Response], error)
	// Turns the node's IPv6 entry on or off (Node.ipv6; the feature is described at NodeIpv6). ENABLE adds the server
	// "<node> · IPv6" next to each of the node's servers in everyone's subscription, at the next refresh of their apps; it needs a
	// check of the address (CheckIpv6) that passed less than 10 minutes ago, and runs one itself when there is none. A check
	// that does not pass changes nothing and is answered in error_code, like CheckIpv6's. DISABLE removes the servers again
	// and always works. Both are idempotent: asking for what already is changes nothing and is not audited. Owner only; closed to
	// API tokens; the MCP tool node_ipv6_plan / node_ipv6_apply goes through the owner's approval. Audited as node.ipv6_entry.
	UpdateIpv6Entry(context.Context, *connect.Request[v1.UpdateIpv6EntryRequest]) (*connect.Response[v1.UpdateIpv6EntryResponse], error)
	// "Retire from fleet": revoke the certificate, tell a connected agent to exit, remove the node from
	// every user's access. The row stays (audit, traffic history) with status RETIRED.
	RetireNode(context.Context, *connect.Request[v1.RetireNodeRequest]) (*connect.Response[v1.RetireNodeResponse], error)
	// Live log tail of the agent and its engines, relayed from the node. Ends with eof = true, on client
	// cancel, or when the node link drops (then the last chunk has error set).
	StreamLogs(context.Context, *connect.Request[v1.StreamLogsRequest], *connect.ServerStream[v1.StreamLogsResponse]) error
	// The connection counters of the node's inbounds over the last hours (agents with "links/1", agent.proto
	// LinkCounters): attempts, refusals, early drops, handshakes that do not complete, unknown keys. Counts only, no
	// address. A read: every role and API tokens (the MCP tool node_connections).
	GetNodeConnections(context.Context, *connect.Request[v1.GetNodeConnectionsRequest]) (*connect.Response[v1.GetNodeConnectionsResponse], error)
	// The saved journal of the nodes' agents and engines (agents with "journal/1", agent.proto JournalEntry): their warnings
	// and errors, grouped per hour, kept 7 days. Addresses are cut on the node and again in the panel. A read: every role and
	// API tokens (the MCP tool node_journal); the live tail (StreamLogs) stays the owner's.
	GetNodeJournal(context.Context, *connect.Request[v1.GetNodeJournalRequest]) (*connect.Response[v1.GetNodeJournalResponse], error)
	// GetNodeConnections of every node that is not retired, in one read (the MCP tool fleet_connections). A read: every role
	// and API tokens.
	GetFleetConnections(context.Context, *connect.Request[v1.GetFleetConnectionsRequest]) (*connect.Response[v1.GetFleetConnectionsResponse], error)
	// Per-inbound autonomous-system counters for a bounded window. Only ASNs and counts are stored or returned; no client address.
	GetNetworks(context.Context, *connect.Request[v1.GetNetworksRequest]) (*connect.Response[v1.GetNetworksResponse], error)
	// What the panel wants a node to run against what the node reports it runs, one node or every node that is not retired: the
	// desired and applied revision and hash, whether they agree, since when they have not, the last apply and, per inbound, the
	// panel's spec version, the applied spec hash, the node's state for it, its last error and certificate expiry. No
	// address, certificate pin or key. A read: every role and API tokens (the MCP tool node_runtime).
	GetNodeRuntime(context.Context, *connect.Request[v1.GetNodeRuntimeRequest]) (*connect.Response[v1.GetNodeRuntimeResponse], error)
	// A node's host load per hour (HostMetrics of every stats batch, rolled up by the panel, kept 90 days): means and peaks of CPU,
	// softirq, RAM, network and sessions. A read: every role and API tokens (the MCP tool node_metrics with hours).
	GetNodeHostHistory(context.Context, *connect.Request[v1.GetNodeHostHistoryRequest]) (*connect.Response[v1.GetNodeHostHistoryResponse], error)
	// The paths the UDP port check found lossy: from one node to another, with the loss and the other sender's result, and a
	// summary per target. Node names only, never an address. A read: every role and API tokens (the MCP tool path_loss_matrix).
	GetPathLoss(context.Context, *connect.Request[v1.GetPathLossRequest]) (*connect.Response[v1.GetPathLossResponse], error)
}

NodeServiceHandler is an implementation of the mistgate.admin.v1.NodeService service.

type ProfileServiceClient

type ProfileServiceClient interface {
	// Protocol plugins registered in this panel, with their schema and defaults. Small and static, the SPA
	// caches it.
	ListProtocols(context.Context, *connect.Request[v1.ListProtocolsRequest]) (*connect.Response[v1.ListProtocolsResponse], error)
	ListProfiles(context.Context, *connect.Request[v1.ListProfilesRequest]) (*connect.Response[v1.ListProfilesResponse], error)
	GetProfile(context.Context, *connect.Request[v1.GetProfileRequest]) (*connect.Response[v1.GetProfileResponse], error)
	// Validates, stores, returns the profile. Settings missing from settings_json take the plugin default
	// (including generated secrets).
	CreateProfile(context.Context, *connect.Request[v1.CreateProfileRequest]) (*connect.Response[v1.CreateProfileResponse], error)
	// Optimistic concurrency via expected_version (ABORTED on mismatch). With dry_run the request is only
	// validated and its impact is computed; nothing changes. A real update bumps the profile version and
	// the spec_version of its inbounds; connected users of a restarted inbound reconnect.
	UpdateProfile(context.Context, *connect.Request[v1.UpdateProfileRequest]) (*connect.Response[v1.UpdateProfileResponse], error)
	// Live validation and "What the client sees" preview while the form is edited. Never stores anything.
	PreviewProfile(context.Context, *connect.Request[v1.PreviewProfileRequest]) (*connect.Response[v1.PreviewProfileResponse], error)
	// Deletes a profile. FAILED_PRECONDITION while it is deployed on any node (delete its inbounds first).
	DeleteProfile(context.Context, *connect.Request[v1.DeleteProfileRequest]) (*connect.Response[v1.DeleteProfileResponse], error)
	// Deploy a profile on a node. The node must be ONLINE or PENDING; the desired state is pushed at once. With
	// validate_only (also on UpdateInbound) it is the check before the click: same refusals, nothing written.
	CreateInbound(context.Context, *connect.Request[v1.CreateInboundRequest]) (*connect.Response[v1.CreateInboundResponse], error)
	UpdateInbound(context.Context, *connect.Request[v1.UpdateInboundRequest]) (*connect.Response[v1.UpdateInboundResponse], error)
	// Remove the profile from the node; its users lose this endpoint.
	DeleteInbound(context.Context, *connect.Request[v1.DeleteInboundRequest]) (*connect.Response[v1.DeleteInboundResponse], error)
	// Remove the profile from several nodes at once, optionally deleting the profile in the same step. One transaction on the
	// panel: the inbounds are gone together or not at all, and a node that is offline drops the profile when it connects
	// again (the desired state is read from the panel). A node of the list that does not carry the profile is skipped, so a
	// repeated call is harmless. With delete_profile the list must cover every node the profile is on, else FAILED_PRECONDITION
	// "profile_deployed" names those left and nothing changes. Owner only.
	RemoveProfileFromNodes(context.Context, *connect.Request[v1.RemoveProfileFromNodesRequest]) (*connect.Response[v1.RemoveProfileFromNodesResponse], error)
	// "The same server with and without WARP": a twin of a profile whose exit is flipped (direct <-> WARP). Same
	// protocol and settings, the name with " · WARP" added or removed, a port that is free on every node, fresh secrets
	// (and, for AmneziaWG, its own client network), no port hopping. It goes on the nodes and into the groups the
	// profile is in; one failing step undoes the others. With dry_run nothing changes: the answer is the plan the
	// confirmation window shows. Owner only, like the CreateProfile / CreateInbound it stands for.
	TwinProfile(context.Context, *connect.Request[v1.TwinProfileRequest]) (*connect.Response[v1.TwinProfileResponse], error)
}

ProfileServiceClient is a client for the mistgate.admin.v1.ProfileService service.

func NewProfileServiceClient

func NewProfileServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProfileServiceClient

NewProfileServiceClient constructs a client for the mistgate.admin.v1.ProfileService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ProfileServiceHandler

type ProfileServiceHandler interface {
	// Protocol plugins registered in this panel, with their schema and defaults. Small and static, the SPA
	// caches it.
	ListProtocols(context.Context, *connect.Request[v1.ListProtocolsRequest]) (*connect.Response[v1.ListProtocolsResponse], error)
	ListProfiles(context.Context, *connect.Request[v1.ListProfilesRequest]) (*connect.Response[v1.ListProfilesResponse], error)
	GetProfile(context.Context, *connect.Request[v1.GetProfileRequest]) (*connect.Response[v1.GetProfileResponse], error)
	// Validates, stores, returns the profile. Settings missing from settings_json take the plugin default
	// (including generated secrets).
	CreateProfile(context.Context, *connect.Request[v1.CreateProfileRequest]) (*connect.Response[v1.CreateProfileResponse], error)
	// Optimistic concurrency via expected_version (ABORTED on mismatch). With dry_run the request is only
	// validated and its impact is computed; nothing changes. A real update bumps the profile version and
	// the spec_version of its inbounds; connected users of a restarted inbound reconnect.
	UpdateProfile(context.Context, *connect.Request[v1.UpdateProfileRequest]) (*connect.Response[v1.UpdateProfileResponse], error)
	// Live validation and "What the client sees" preview while the form is edited. Never stores anything.
	PreviewProfile(context.Context, *connect.Request[v1.PreviewProfileRequest]) (*connect.Response[v1.PreviewProfileResponse], error)
	// Deletes a profile. FAILED_PRECONDITION while it is deployed on any node (delete its inbounds first).
	DeleteProfile(context.Context, *connect.Request[v1.DeleteProfileRequest]) (*connect.Response[v1.DeleteProfileResponse], error)
	// Deploy a profile on a node. The node must be ONLINE or PENDING; the desired state is pushed at once. With
	// validate_only (also on UpdateInbound) it is the check before the click: same refusals, nothing written.
	CreateInbound(context.Context, *connect.Request[v1.CreateInboundRequest]) (*connect.Response[v1.CreateInboundResponse], error)
	UpdateInbound(context.Context, *connect.Request[v1.UpdateInboundRequest]) (*connect.Response[v1.UpdateInboundResponse], error)
	// Remove the profile from the node; its users lose this endpoint.
	DeleteInbound(context.Context, *connect.Request[v1.DeleteInboundRequest]) (*connect.Response[v1.DeleteInboundResponse], error)
	// Remove the profile from several nodes at once, optionally deleting the profile in the same step. One transaction on the
	// panel: the inbounds are gone together or not at all, and a node that is offline drops the profile when it connects
	// again (the desired state is read from the panel). A node of the list that does not carry the profile is skipped, so a
	// repeated call is harmless. With delete_profile the list must cover every node the profile is on, else FAILED_PRECONDITION
	// "profile_deployed" names those left and nothing changes. Owner only.
	RemoveProfileFromNodes(context.Context, *connect.Request[v1.RemoveProfileFromNodesRequest]) (*connect.Response[v1.RemoveProfileFromNodesResponse], error)
	// "The same server with and without WARP": a twin of a profile whose exit is flipped (direct <-> WARP). Same
	// protocol and settings, the name with " · WARP" added or removed, a port that is free on every node, fresh secrets
	// (and, for AmneziaWG, its own client network), no port hopping. It goes on the nodes and into the groups the
	// profile is in; one failing step undoes the others. With dry_run nothing changes: the answer is the plan the
	// confirmation window shows. Owner only, like the CreateProfile / CreateInbound it stands for.
	TwinProfile(context.Context, *connect.Request[v1.TwinProfileRequest]) (*connect.Response[v1.TwinProfileResponse], error)
}

ProfileServiceHandler is an implementation of the mistgate.admin.v1.ProfileService service.

type ProvisioningServiceClient

type ProvisioningServiceClient interface {
	GetSSHFingerprint(context.Context, *connect.Request[v1.GetSSHFingerprintRequest]) (*connect.Response[v1.GetSSHFingerprintResponse], error)
	GetPanelSSHKey(context.Context, *connect.Request[v1.GetPanelSSHKeyRequest]) (*connect.Response[v1.GetPanelSSHKeyResponse], error)
	CheckSSH(context.Context, *connect.Request[v1.CheckSSHRequest]) (*connect.Response[v1.CheckSSHResponse], error)
	StartNodeProvision(context.Context, *connect.Request[v1.StartNodeProvisionRequest]) (*connect.Response[v1.StartNodeProvisionResponse], error)
	RetryNodeProvision(context.Context, *connect.Request[v1.RetryNodeProvisionRequest]) (*connect.Response[v1.RetryNodeProvisionResponse], error)
	GetNodeProvision(context.Context, *connect.Request[v1.GetNodeProvisionRequest]) (*connect.Response[v1.GetNodeProvisionResponse], error)
	ListNodeProvisions(context.Context, *connect.Request[v1.ListNodeProvisionsRequest]) (*connect.Response[v1.ListNodeProvisionsResponse], error)
	ListNodeProvisionEvents(context.Context, *connect.Request[v1.ListNodeProvisionEventsRequest]) (*connect.Response[v1.ListNodeProvisionEventsResponse], error)
	ListNodeServerAccess(context.Context, *connect.Request[v1.ListNodeServerAccessRequest]) (*connect.Response[v1.ListNodeServerAccessResponse], error)
	ListNodeServerKeys(context.Context, *connect.Request[v1.ListNodeServerKeysRequest]) (*connect.Response[v1.ListNodeServerKeysResponse], error)
	AddNodeServerKey(context.Context, *connect.Request[v1.AddNodeServerKeyRequest]) (*connect.Response[v1.AddNodeServerKeyResponse], error)
	RemoveNodeServerKey(context.Context, *connect.Request[v1.RemoveNodeServerKeyRequest]) (*connect.Response[v1.RemoveNodeServerKeyResponse], error)
	AttachNodeServerAccess(context.Context, *connect.Request[v1.AttachNodeServerAccessRequest]) (*connect.Response[v1.AttachNodeServerAccessResponse], error)
	RotateNodeServerPassword(context.Context, *connect.Request[v1.RotateNodeServerPasswordRequest]) (*connect.Response[v1.RotateNodeServerPasswordResponse], error)
	RevealNodeServerPassword(context.Context, *connect.Request[v1.RevealNodeServerPasswordRequest]) (*connect.Response[v1.RevealNodeServerPasswordResponse], error)
	// Owner-only, step-up protected: deletes the saved access of a retired node, its sealed password included.
	ForgetNodeServerAccess(context.Context, *connect.Request[v1.ForgetNodeServerAccessRequest]) (*connect.Response[v1.ForgetNodeServerAccessResponse], error)
}

ProvisioningServiceClient is a client for the mistgate.admin.v1.ProvisioningService service.

func NewProvisioningServiceClient

func NewProvisioningServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProvisioningServiceClient

NewProvisioningServiceClient constructs a client for the mistgate.admin.v1.ProvisioningService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type ProvisioningServiceHandler

type ProvisioningServiceHandler interface {
	GetSSHFingerprint(context.Context, *connect.Request[v1.GetSSHFingerprintRequest]) (*connect.Response[v1.GetSSHFingerprintResponse], error)
	GetPanelSSHKey(context.Context, *connect.Request[v1.GetPanelSSHKeyRequest]) (*connect.Response[v1.GetPanelSSHKeyResponse], error)
	CheckSSH(context.Context, *connect.Request[v1.CheckSSHRequest]) (*connect.Response[v1.CheckSSHResponse], error)
	StartNodeProvision(context.Context, *connect.Request[v1.StartNodeProvisionRequest]) (*connect.Response[v1.StartNodeProvisionResponse], error)
	RetryNodeProvision(context.Context, *connect.Request[v1.RetryNodeProvisionRequest]) (*connect.Response[v1.RetryNodeProvisionResponse], error)
	GetNodeProvision(context.Context, *connect.Request[v1.GetNodeProvisionRequest]) (*connect.Response[v1.GetNodeProvisionResponse], error)
	ListNodeProvisions(context.Context, *connect.Request[v1.ListNodeProvisionsRequest]) (*connect.Response[v1.ListNodeProvisionsResponse], error)
	ListNodeProvisionEvents(context.Context, *connect.Request[v1.ListNodeProvisionEventsRequest]) (*connect.Response[v1.ListNodeProvisionEventsResponse], error)
	ListNodeServerAccess(context.Context, *connect.Request[v1.ListNodeServerAccessRequest]) (*connect.Response[v1.ListNodeServerAccessResponse], error)
	ListNodeServerKeys(context.Context, *connect.Request[v1.ListNodeServerKeysRequest]) (*connect.Response[v1.ListNodeServerKeysResponse], error)
	AddNodeServerKey(context.Context, *connect.Request[v1.AddNodeServerKeyRequest]) (*connect.Response[v1.AddNodeServerKeyResponse], error)
	RemoveNodeServerKey(context.Context, *connect.Request[v1.RemoveNodeServerKeyRequest]) (*connect.Response[v1.RemoveNodeServerKeyResponse], error)
	AttachNodeServerAccess(context.Context, *connect.Request[v1.AttachNodeServerAccessRequest]) (*connect.Response[v1.AttachNodeServerAccessResponse], error)
	RotateNodeServerPassword(context.Context, *connect.Request[v1.RotateNodeServerPasswordRequest]) (*connect.Response[v1.RotateNodeServerPasswordResponse], error)
	RevealNodeServerPassword(context.Context, *connect.Request[v1.RevealNodeServerPasswordRequest]) (*connect.Response[v1.RevealNodeServerPasswordResponse], error)
	// Owner-only, step-up protected: deletes the saved access of a retired node, its sealed password included.
	ForgetNodeServerAccess(context.Context, *connect.Request[v1.ForgetNodeServerAccessRequest]) (*connect.Response[v1.ForgetNodeServerAccessResponse], error)
}

ProvisioningServiceHandler is an implementation of the mistgate.admin.v1.ProvisioningService service.

type RelayServiceClient added in v0.1.65

type RelayServiceClient interface {
	// The relays, oldest first. node_id, when set, keeps those that have this node at either end.
	ListRelays(context.Context, *connect.Request[v1.ListRelaysRequest]) (*connect.Response[v1.ListRelaysResponse], error)
	// Makes a relay (switched off). port = 0 chooses: the port of the exit's server when it is free on the entry, else a
	// free one.
	CreateRelay(context.Context, *connect.Request[v1.CreateRelayRequest]) (*connect.Response[v1.CreateRelayResponse], error)
	// Switches a relay on or off, or moves it to another port on the entry.
	UpdateRelay(context.Context, *connect.Request[v1.UpdateRelayRequest]) (*connect.Response[v1.UpdateRelayResponse], error)
	DeleteRelay(context.Context, *connect.Request[v1.DeleteRelayRequest]) (*connect.Response[v1.DeleteRelayResponse], error)
	// Checks a relay, one at a time per exit (the same lock as the port check): the leg from the entry to the exit's
	// server, then, when the relay is on and the entry reported the forward, the path from a third node (never the entry
	// or the exit; the panel only when no node can) to the entry's port. Stores the result in the relay and returns it. It
	// changes no switch.
	CheckRelay(context.Context, *connect.Request[v1.CheckRelayRequest]) (*connect.Response[v1.CheckRelayResponse], error)
	// The servers of other nodes the entry could pass on, with what the panel knows about reaching them. Missing data is
	// "no_data", never a guess.
	ListRelayCandidates(context.Context, *connect.Request[v1.ListRelayCandidatesRequest]) (*connect.Response[v1.ListRelayCandidatesResponse], error)
}

RelayServiceClient is a client for the mistgate.admin.v1.RelayService service.

func NewRelayServiceClient added in v0.1.65

func NewRelayServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RelayServiceClient

NewRelayServiceClient constructs a client for the mistgate.admin.v1.RelayService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type RelayServiceHandler added in v0.1.65

type RelayServiceHandler interface {
	// The relays, oldest first. node_id, when set, keeps those that have this node at either end.
	ListRelays(context.Context, *connect.Request[v1.ListRelaysRequest]) (*connect.Response[v1.ListRelaysResponse], error)
	// Makes a relay (switched off). port = 0 chooses: the port of the exit's server when it is free on the entry, else a
	// free one.
	CreateRelay(context.Context, *connect.Request[v1.CreateRelayRequest]) (*connect.Response[v1.CreateRelayResponse], error)
	// Switches a relay on or off, or moves it to another port on the entry.
	UpdateRelay(context.Context, *connect.Request[v1.UpdateRelayRequest]) (*connect.Response[v1.UpdateRelayResponse], error)
	DeleteRelay(context.Context, *connect.Request[v1.DeleteRelayRequest]) (*connect.Response[v1.DeleteRelayResponse], error)
	// Checks a relay, one at a time per exit (the same lock as the port check): the leg from the entry to the exit's
	// server, then, when the relay is on and the entry reported the forward, the path from a third node (never the entry
	// or the exit; the panel only when no node can) to the entry's port. Stores the result in the relay and returns it. It
	// changes no switch.
	CheckRelay(context.Context, *connect.Request[v1.CheckRelayRequest]) (*connect.Response[v1.CheckRelayResponse], error)
	// The servers of other nodes the entry could pass on, with what the panel knows about reaching them. Missing data is
	// "no_data", never a guess.
	ListRelayCandidates(context.Context, *connect.Request[v1.ListRelayCandidatesRequest]) (*connect.Response[v1.ListRelayCandidatesResponse], error)
}

RelayServiceHandler is an implementation of the mistgate.admin.v1.RelayService service.

type SubscriptionServiceClient

type SubscriptionServiceClient interface {
	GetSubscriptionSettings(context.Context, *connect.Request[v1.GetSubscriptionSettingsRequest]) (*connect.Response[v1.GetSubscriptionSettingsResponse], error)
	UpdateSubscriptionSettings(context.Context, *connect.Request[v1.UpdateSubscriptionSettingsRequest]) (*connect.Response[v1.UpdateSubscriptionSettingsResponse], error)
	// "Formats & clients" tab: which client apps the registered protocol plugins support.
	ListClients(context.Context, *connect.Request[v1.ListClientsRequest]) (*connect.Response[v1.ListClientsResponse], error)
	// "Serving rules" tab: which rule and format a sample User-Agent gets.
	TestUserAgent(context.Context, *connect.Request[v1.TestUserAgentRequest]) (*connect.Response[v1.TestUserAgentResponse], error)
	// "Response headers" tab: the headers of the list (the editor's draft, checked like a save) one person gets with one
	// User-Agent. INVALID_ARGUMENT for a list that a save would refuse; NOT_FOUND for an unknown person.
	PreviewResponseHeaders(context.Context, *connect.Request[v1.PreviewResponseHeadersRequest]) (*connect.Response[v1.PreviewResponseHeadersResponse], error)
	// "Mihomo templates" tab: the profile one person would get from the editor's draft of a template, as the Mihomo answer builds it
	// (nothing is written: no device, no credential), and what the owner should look at. INVALID_ARGUMENT for a text that a save
	// would refuse; NOT_FOUND for an unknown person.
	PreviewMihomoTemplate(context.Context, *connect.Request[v1.PreviewMihomoTemplateRequest]) (*connect.Response[v1.PreviewMihomoTemplateResponse], error)
	// "Routing" tab: reads what the owner pasted (link, base64 or JSON) as a save does and returns the entry it would store, with its
	// info and the mode of a link. INVALID_ARGUMENT with the reason for a text that a save would refuse. Nothing is written.
	PreviewRoutingProfile(context.Context, *connect.Request[v1.PreviewRoutingProfileRequest]) (*connect.Response[v1.PreviewRoutingProfileResponse], error)
}

SubscriptionServiceClient is a client for the mistgate.admin.v1.SubscriptionService service.

func NewSubscriptionServiceClient

func NewSubscriptionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SubscriptionServiceClient

NewSubscriptionServiceClient constructs a client for the mistgate.admin.v1.SubscriptionService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type SubscriptionServiceHandler

type SubscriptionServiceHandler interface {
	GetSubscriptionSettings(context.Context, *connect.Request[v1.GetSubscriptionSettingsRequest]) (*connect.Response[v1.GetSubscriptionSettingsResponse], error)
	UpdateSubscriptionSettings(context.Context, *connect.Request[v1.UpdateSubscriptionSettingsRequest]) (*connect.Response[v1.UpdateSubscriptionSettingsResponse], error)
	// "Formats & clients" tab: which client apps the registered protocol plugins support.
	ListClients(context.Context, *connect.Request[v1.ListClientsRequest]) (*connect.Response[v1.ListClientsResponse], error)
	// "Serving rules" tab: which rule and format a sample User-Agent gets.
	TestUserAgent(context.Context, *connect.Request[v1.TestUserAgentRequest]) (*connect.Response[v1.TestUserAgentResponse], error)
	// "Response headers" tab: the headers of the list (the editor's draft, checked like a save) one person gets with one
	// User-Agent. INVALID_ARGUMENT for a list that a save would refuse; NOT_FOUND for an unknown person.
	PreviewResponseHeaders(context.Context, *connect.Request[v1.PreviewResponseHeadersRequest]) (*connect.Response[v1.PreviewResponseHeadersResponse], error)
	// "Mihomo templates" tab: the profile one person would get from the editor's draft of a template, as the Mihomo answer builds it
	// (nothing is written: no device, no credential), and what the owner should look at. INVALID_ARGUMENT for a text that a save
	// would refuse; NOT_FOUND for an unknown person.
	PreviewMihomoTemplate(context.Context, *connect.Request[v1.PreviewMihomoTemplateRequest]) (*connect.Response[v1.PreviewMihomoTemplateResponse], error)
	// "Routing" tab: reads what the owner pasted (link, base64 or JSON) as a save does and returns the entry it would store, with its
	// info and the mode of a link. INVALID_ARGUMENT with the reason for a text that a save would refuse. Nothing is written.
	PreviewRoutingProfile(context.Context, *connect.Request[v1.PreviewRoutingProfileRequest]) (*connect.Response[v1.PreviewRoutingProfileResponse], error)
}

SubscriptionServiceHandler is an implementation of the mistgate.admin.v1.SubscriptionService service.

type TelegramServiceClient added in v0.1.23

type TelegramServiceClient interface {
	// The bot, this admin's chat and (for the owner) everyone's. No secrets.
	GetTelegram(context.Context, *connect.Request[v1.GetTelegramRequest]) (*connect.Response[v1.GetTelegramResponse], error)
	// Sets or clears the bot token. Owner only; needs a step-up. A new bot unlinks every chat (chats belong to a bot).
	SetTelegramBot(context.Context, *connect.Request[v1.SetTelegramBotRequest]) (*connect.Response[v1.SetTelegramBotResponse], error)
	// Starts linking this admin's chat: a one-time code that lives 10 minutes. Needs a step-up.
	BeginTelegramLink(context.Context, *connect.Request[v1.BeginTelegramLinkRequest]) (*connect.Response[v1.BeginTelegramLinkResponse], error)
	// Forgets this admin's chat. Idempotent.
	UnlinkTelegram(context.Context, *connect.Request[v1.UnlinkTelegramRequest]) (*connect.Response[v1.UnlinkTelegramResponse], error)
	// Switches this admin's alerts on or off without unlinking.
	SetTelegramAlerts(context.Context, *connect.Request[v1.SetTelegramAlertsRequest]) (*connect.Response[v1.SetTelegramAlertsResponse], error)
	// Sends one short message to this admin's chat, to prove the path works.
	SendTelegramTest(context.Context, *connect.Request[v1.SendTelegramTestRequest]) (*connect.Response[v1.SendTelegramTestResponse], error)
}

TelegramServiceClient is a client for the mistgate.admin.v1.TelegramService service.

func NewTelegramServiceClient added in v0.1.23

func NewTelegramServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TelegramServiceClient

NewTelegramServiceClient constructs a client for the mistgate.admin.v1.TelegramService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type TelegramServiceHandler added in v0.1.23

type TelegramServiceHandler interface {
	// The bot, this admin's chat and (for the owner) everyone's. No secrets.
	GetTelegram(context.Context, *connect.Request[v1.GetTelegramRequest]) (*connect.Response[v1.GetTelegramResponse], error)
	// Sets or clears the bot token. Owner only; needs a step-up. A new bot unlinks every chat (chats belong to a bot).
	SetTelegramBot(context.Context, *connect.Request[v1.SetTelegramBotRequest]) (*connect.Response[v1.SetTelegramBotResponse], error)
	// Starts linking this admin's chat: a one-time code that lives 10 minutes. Needs a step-up.
	BeginTelegramLink(context.Context, *connect.Request[v1.BeginTelegramLinkRequest]) (*connect.Response[v1.BeginTelegramLinkResponse], error)
	// Forgets this admin's chat. Idempotent.
	UnlinkTelegram(context.Context, *connect.Request[v1.UnlinkTelegramRequest]) (*connect.Response[v1.UnlinkTelegramResponse], error)
	// Switches this admin's alerts on or off without unlinking.
	SetTelegramAlerts(context.Context, *connect.Request[v1.SetTelegramAlertsRequest]) (*connect.Response[v1.SetTelegramAlertsResponse], error)
	// Sends one short message to this admin's chat, to prove the path works.
	SendTelegramTest(context.Context, *connect.Request[v1.SendTelegramTestRequest]) (*connect.Response[v1.SendTelegramTestResponse], error)
}

TelegramServiceHandler is an implementation of the mistgate.admin.v1.TelegramService service.

type TspuProbeServiceClient added in v0.1.42

type TspuProbeServiceClient interface {
	// The settings, the nodes that can be the probe node, and the status of the last run. No secrets.
	GetTspuProbe(context.Context, *connect.Request[v1.GetTspuProbeRequest]) (*connect.Response[v1.GetTspuProbeResponse], error)
	// Changes the settings; absent fields stay. Owner only; needs a step-up. The probe node must be online and declare
	// country-probe/1; the interval is 30..1440 minutes (default 120).
	UpdateTspuProbe(context.Context, *connect.Request[v1.UpdateTspuProbeRequest]) (*connect.Response[v1.UpdateTspuProbeResponse], error)
	// One run now against the fleet, at most one per 60 seconds. It can take a few minutes (the probe node tests the other nodes
	// in batches). Returns the status of the run and the verdict per node; stores the rows like a scheduled run.
	TestTspuProbe(context.Context, *connect.Request[v1.TestTspuProbeRequest]) (*connect.Response[v1.TestTspuProbeResponse], error)
	// Disconnect: switches it off AND deletes the stored rows and the settings. Owner only; needs a step-up. Idempotent. A run in
	// flight is cancelled.
	DisconnectTspuProbe(context.Context, *connect.Request[v1.DisconnectTspuProbeRequest]) (*connect.Response[v1.DisconnectTspuProbeResponse], error)
}

TspuProbeServiceClient is a client for the mistgate.admin.v1.TspuProbeService service.

func NewTspuProbeServiceClient added in v0.1.42

func NewTspuProbeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TspuProbeServiceClient

NewTspuProbeServiceClient constructs a client for the mistgate.admin.v1.TspuProbeService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type TspuProbeServiceHandler added in v0.1.42

type TspuProbeServiceHandler interface {
	// The settings, the nodes that can be the probe node, and the status of the last run. No secrets.
	GetTspuProbe(context.Context, *connect.Request[v1.GetTspuProbeRequest]) (*connect.Response[v1.GetTspuProbeResponse], error)
	// Changes the settings; absent fields stay. Owner only; needs a step-up. The probe node must be online and declare
	// country-probe/1; the interval is 30..1440 minutes (default 120).
	UpdateTspuProbe(context.Context, *connect.Request[v1.UpdateTspuProbeRequest]) (*connect.Response[v1.UpdateTspuProbeResponse], error)
	// One run now against the fleet, at most one per 60 seconds. It can take a few minutes (the probe node tests the other nodes
	// in batches). Returns the status of the run and the verdict per node; stores the rows like a scheduled run.
	TestTspuProbe(context.Context, *connect.Request[v1.TestTspuProbeRequest]) (*connect.Response[v1.TestTspuProbeResponse], error)
	// Disconnect: switches it off AND deletes the stored rows and the settings. Owner only; needs a step-up. Idempotent. A run in
	// flight is cancelled.
	DisconnectTspuProbe(context.Context, *connect.Request[v1.DisconnectTspuProbeRequest]) (*connect.Response[v1.DisconnectTspuProbeResponse], error)
}

TspuProbeServiceHandler is an implementation of the mistgate.admin.v1.TspuProbeService service.

type UnimplementedApiTokenServiceHandler

type UnimplementedApiTokenServiceHandler struct{}

UnimplementedApiTokenServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedApprovalServiceHandler

type UnimplementedApprovalServiceHandler struct{}

UnimplementedApprovalServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedAssistantServiceHandler

type UnimplementedAssistantServiceHandler struct{}

UnimplementedAssistantServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedAuthServiceHandler

type UnimplementedAuthServiceHandler struct{}

UnimplementedAuthServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAuthServiceHandler) Me

type UnimplementedAwgServiceHandler

type UnimplementedAwgServiceHandler struct{}

UnimplementedAwgServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedBackupServiceHandler

type UnimplementedBackupServiceHandler struct{}

UnimplementedBackupServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedBackupServiceHandler) ConfirmRestore added in v0.1.80

func (UnimplementedBackupServiceHandler) DeleteKeptData added in v0.1.80

func (UnimplementedBackupServiceHandler) GetRestoreResult added in v0.1.80

func (UnimplementedBackupServiceHandler) ListKeptData added in v0.1.80

func (UnimplementedBackupServiceHandler) PrepareRestore added in v0.1.80

type UnimplementedBlocklistServiceHandler added in v0.1.41

type UnimplementedBlocklistServiceHandler struct{}

UnimplementedBlocklistServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedBlocklistServiceHandler) DisconnectBlocklist added in v0.1.41

func (UnimplementedBlocklistServiceHandler) GetBlocklist added in v0.1.41

func (UnimplementedBlocklistServiceHandler) TestBlocklist added in v0.1.41

func (UnimplementedBlocklistServiceHandler) UpdateBlocklist added in v0.1.41

type UnimplementedBsbordServiceHandler added in v0.1.63

type UnimplementedBsbordServiceHandler struct{}

UnimplementedBsbordServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedBsbordServiceHandler) DisconnectBsbord added in v0.1.63

func (UnimplementedBsbordServiceHandler) GetBsbord added in v0.1.63

func (UnimplementedBsbordServiceHandler) ListBsbordUnits added in v0.1.63

func (UnimplementedBsbordServiceHandler) PreviewBsbord added in v0.1.63

func (UnimplementedBsbordServiceHandler) TestBsbord added in v0.1.63

func (UnimplementedBsbordServiceHandler) UpdateBsbord added in v0.1.63

type UnimplementedCheburcheckServiceHandler added in v0.1.63

type UnimplementedCheburcheckServiceHandler struct{}

UnimplementedCheburcheckServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedCheburcheckServiceHandler) DisconnectCheburcheck added in v0.1.63

func (UnimplementedCheburcheckServiceHandler) GetCheburcheck added in v0.1.63

func (UnimplementedCheburcheckServiceHandler) TestCheburcheck added in v0.1.63

func (UnimplementedCheburcheckServiceHandler) UpdateCheburcheck added in v0.1.63

type UnimplementedClientApiServiceHandler

type UnimplementedClientApiServiceHandler struct{}

UnimplementedClientApiServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedClientCompatServiceHandler

type UnimplementedClientCompatServiceHandler struct{}

UnimplementedClientCompatServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedClientProbeServiceHandler added in v0.1.51

type UnimplementedClientProbeServiceHandler struct{}

UnimplementedClientProbeServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedClientProbeServiceHandler) DisconnectClientProbe added in v0.1.51

func (UnimplementedClientProbeServiceHandler) GetClientProbe added in v0.1.51

func (UnimplementedClientProbeServiceHandler) UpdateClientProbe added in v0.1.51

type UnimplementedCountryReachabilityServiceHandler added in v0.1.41

type UnimplementedCountryReachabilityServiceHandler struct{}

UnimplementedCountryReachabilityServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedCountryReachabilityServiceHandler) GetCountryReachability added in v0.1.41

func (UnimplementedCountryReachabilityServiceHandler) GetReachabilityHistory added in v0.1.43

func (UnimplementedCountryReachabilityServiceHandler) UpdateCountryReachability added in v0.1.41

type UnimplementedDeviceServiceHandler

type UnimplementedDeviceServiceHandler struct{}

UnimplementedDeviceServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedDnsServiceHandler

type UnimplementedDnsServiceHandler struct{}

UnimplementedDnsServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedDnsServiceHandler) GetUserDnsChoices added in v0.1.17

func (UnimplementedDnsServiceHandler) ListNodeDnsOptions added in v0.1.17

func (UnimplementedDnsServiceHandler) ResetUserDnsChoices added in v0.1.17

func (UnimplementedDnsServiceHandler) SetNodeDnsOptions added in v0.1.17

type UnimplementedFleetServiceHandler

type UnimplementedFleetServiceHandler struct{}

UnimplementedFleetServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedGlobalpingServiceHandler added in v0.1.41

type UnimplementedGlobalpingServiceHandler struct{}

UnimplementedGlobalpingServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedGlobalpingServiceHandler) DisconnectGlobalping added in v0.1.41

func (UnimplementedGlobalpingServiceHandler) GetGlobalping added in v0.1.41

func (UnimplementedGlobalpingServiceHandler) TestGlobalping added in v0.1.41

func (UnimplementedGlobalpingServiceHandler) UpdateGlobalping added in v0.1.41

type UnimplementedGroupServiceHandler

type UnimplementedGroupServiceHandler struct{}

UnimplementedGroupServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedHealthServiceHandler

type UnimplementedHealthServiceHandler struct{}

UnimplementedHealthServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedInstanceServiceHandler

type UnimplementedInstanceServiceHandler struct{}

UnimplementedInstanceServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedNodeServiceHandler

type UnimplementedNodeServiceHandler struct{}

UnimplementedNodeServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedNodeServiceHandler) CheckIpv6 added in v0.1.66

func (UnimplementedNodeServiceHandler) CheckPorts added in v0.1.28

func (UnimplementedNodeServiceHandler) GetFleetConnections added in v0.1.56

func (UnimplementedNodeServiceHandler) GetNodeConnections added in v0.1.53

func (UnimplementedNodeServiceHandler) GetNodeJournal added in v0.1.55

func (UnimplementedNodeServiceHandler) MeasureBandwidth added in v0.1.20

func (UnimplementedNodeServiceHandler) SetNodeDecoyMode added in v0.1.36

func (UnimplementedNodeServiceHandler) SetNodesDecoyMode added in v0.1.36

func (UnimplementedNodeServiceHandler) UpdateIpv6Entry added in v0.1.66

func (UnimplementedNodeServiceHandler) UploadNodeDecoy added in v0.1.36

type UnimplementedProfileServiceHandler

type UnimplementedProfileServiceHandler struct{}

UnimplementedProfileServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedProvisioningServiceHandler

type UnimplementedProvisioningServiceHandler struct{}

UnimplementedProvisioningServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedProvisioningServiceHandler) AddNodeServerKey added in v0.1.74

func (UnimplementedProvisioningServiceHandler) AttachNodeServerAccess added in v0.1.74

func (UnimplementedProvisioningServiceHandler) ForgetNodeServerAccess added in v0.1.15

func (UnimplementedProvisioningServiceHandler) GetPanelSSHKey added in v0.1.74

func (UnimplementedProvisioningServiceHandler) ListNodeServerKeys added in v0.1.74

func (UnimplementedProvisioningServiceHandler) RemoveNodeServerKey added in v0.1.74

type UnimplementedRelayServiceHandler added in v0.1.65

type UnimplementedRelayServiceHandler struct{}

UnimplementedRelayServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedRelayServiceHandler) CheckRelay added in v0.1.65

func (UnimplementedRelayServiceHandler) CreateRelay added in v0.1.65

func (UnimplementedRelayServiceHandler) DeleteRelay added in v0.1.65

func (UnimplementedRelayServiceHandler) ListRelayCandidates added in v0.1.65

func (UnimplementedRelayServiceHandler) ListRelays added in v0.1.65

func (UnimplementedRelayServiceHandler) UpdateRelay added in v0.1.65

type UnimplementedSubscriptionServiceHandler

type UnimplementedSubscriptionServiceHandler struct{}

UnimplementedSubscriptionServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedTelegramServiceHandler added in v0.1.23

type UnimplementedTelegramServiceHandler struct{}

UnimplementedTelegramServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedTelegramServiceHandler) GetTelegram added in v0.1.23

func (UnimplementedTelegramServiceHandler) SendTelegramTest added in v0.1.23

func (UnimplementedTelegramServiceHandler) SetTelegramAlerts added in v0.1.23

func (UnimplementedTelegramServiceHandler) SetTelegramBot added in v0.1.23

func (UnimplementedTelegramServiceHandler) UnlinkTelegram added in v0.1.23

type UnimplementedTspuProbeServiceHandler added in v0.1.42

type UnimplementedTspuProbeServiceHandler struct{}

UnimplementedTspuProbeServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedTspuProbeServiceHandler) DisconnectTspuProbe added in v0.1.42

func (UnimplementedTspuProbeServiceHandler) GetTspuProbe added in v0.1.42

func (UnimplementedTspuProbeServiceHandler) TestTspuProbe added in v0.1.42

func (UnimplementedTspuProbeServiceHandler) UpdateTspuProbe added in v0.1.42

type UnimplementedUpdateServiceHandler

type UnimplementedUpdateServiceHandler struct{}

UnimplementedUpdateServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedUpdateServiceHandler) ScheduleNodeUpdate added in v0.1.8

func (UnimplementedUpdateServiceHandler) SetUpdateChannel added in v0.1.80

func (UnimplementedUpdateServiceHandler) SetUpdateTimezone added in v0.1.8

type UnimplementedUserServiceHandler

type UnimplementedUserServiceHandler struct{}

UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedUserServiceHandler) GetUserConnection added in v0.1.53

func (UnimplementedUserServiceHandler) IssueTelegramKey added in v0.1.69

func (UnimplementedUserServiceHandler) RevokeTelegramKey added in v0.1.69

func (UnimplementedUserServiceHandler) RotateTelegramKey added in v0.1.69

func (UnimplementedUserServiceHandler) UnblockDevice added in v0.1.39

type UnimplementedWarpServiceHandler

type UnimplementedWarpServiceHandler struct{}

UnimplementedWarpServiceHandler returns CodeUnimplemented from all methods.

type UpdateServiceClient

type UpdateServiceClient interface {
	// The whole page in one call: this panel, the bundle, every node and the active or last rollout. Never
	// contacts a node and never rescans the bundle directory (RescanBundle does).
	GetUpdates(context.Context, *connect.Request[v1.GetUpdatesRequest]) (*connect.Response[v1.GetUpdatesResponse], error)
	// Stored snapshots only: does not contact nodes, run apt, or refresh package lists.
	GetOsUpdates(context.Context, *connect.Request[v1.GetOsUpdatesRequest]) (*connect.Response[v1.GetOsUpdatesResponse], error)
	// Start an OS update of 1..20 nodes (agent.proto "OS UPDATES"). The canary runs first, then batches wait for the
	// previous batch's health gate. Owner-only with a fresh step-up. Only one rollout of any kind is active at a time.
	// Audited.
	StartOsRollout(context.Context, *connect.Request[v1.StartOsRolloutRequest]) (*connect.Response[v1.StartOsRolloutResponse], error)
	// Stop a running, queued, paused, or failed OS rollout. A job already running on a node is never interrupted and is still
	// checked; nothing new starts. Owner-only with a fresh step-up.
	CancelOsRollout(context.Context, *connect.Request[v1.CancelOsRolloutRequest]) (*connect.Response[v1.CancelOsRolloutResponse], error)
	// Pause future OS jobs. A job already running on a node is never interrupted and is still checked.
	PauseOsRollout(context.Context, *connect.Request[v1.PauseOsRolloutRequest]) (*connect.Response[v1.PauseOsRolloutResponse], error)
	// Resume an OS rollout. A failed step is retried once by default; skip_failed marks it skipped and moves on.
	ResumeOsRollout(context.Context, *connect.Request[v1.ResumeOsRolloutRequest]) (*connect.Response[v1.ResumeOsRolloutResponse], error)
	// Refresh the package lists of nodes (apt-get update only; nothing is installed or rebooted). At most 3 nodes at a time
	// and once per node per 30 minutes; the answer says which were started. Owner-only, no step-up.
	RefreshOsUpdates(context.Context, *connect.Request[v1.RefreshOsUpdatesRequest]) (*connect.Response[v1.RefreshOsUpdatesResponse], error)
	// Force a fresh lookup of the latest stable GitHub release. The background checker also polls periodically.
	CheckPanelUpdate(context.Context, *connect.Request[v1.CheckPanelUpdateRequest]) (*connect.Response[v1.CheckPanelUpdateResponse], error)
	// Install the latest signed panel release through the root helper (a transient systemd unit or the fixed
	// mistgate-panel-update.service), which verifies the signed panel manifest again, replaces the binary and restarts
	// this panel. Owner-only with a fresh step-up; refused while a node rollout is active.
	InstallPanelUpdate(context.Context, *connect.Request[v1.InstallPanelUpdateRequest]) (*connect.Response[v1.InstallPanelUpdateResponse], error)
	// Start a rollout of the current (trusted) bundle. node_ids empty = every node whose state is OUTDATED (and
	// that can update); a listed node that is up to date, offline or unsupported is skipped and shows as such in the
	// steps. Only one rollout is active (RUNNING or PAUSED) at a time. Audited.
	StartRollout(context.Context, *connect.Request[v1.StartRolloutRequest]) (*connect.Response[v1.StartRolloutResponse], error)
	// Stop launching new steps; a step already sent finishes (and is gated) normally. A failed gate pauses by itself.
	PauseRollout(context.Context, *connect.Request[v1.PauseRolloutRequest]) (*connect.Response[v1.PauseRolloutResponse], error)
	// Continue a PAUSED rollout: steps that FAILED or were ROLLED_BACK stay as they are (retry them with a new
	// rollout), the remaining PENDING ones go on.
	ResumeRollout(context.Context, *connect.Request[v1.ResumeRolloutRequest]) (*connect.Response[v1.ResumeRolloutResponse], error)
	// End the rollout: PENDING steps become SKIPPED; a step that is in flight finishes and is gated but nothing new
	// starts. The nodes already updated stay updated.
	CancelRollout(context.Context, *connect.Request[v1.CancelRolloutRequest]) (*connect.Response[v1.CancelRolloutResponse], error)
	// Send RollbackAgent to one node (the .prev binary comes back, the agent re-executes). Works outside a rollout.
	RollbackNode(context.Context, *connect.Request[v1.RollbackNodeRequest]) (*connect.Response[v1.RollbackNodeResponse], error)
	// Re-read <data-dir>/dist now (the panel also notices a changed manifest by itself, within a minute).
	RescanBundle(context.Context, *connect.Request[v1.RescanBundleRequest]) (*connect.Response[v1.RescanBundleResponse], error)
	// Schedule the current trusted agent bundle for one node. local_datetime is YYYY-MM-DDTHH:mm in the supplied
	// configured fixed UTC offset. The request is rejected if that offset is no longer the panel setting.
	ScheduleNodeUpdate(context.Context, *connect.Request[v1.ScheduleNodeUpdateRequest]) (*connect.Response[v1.ScheduleNodeUpdateResponse], error)
	// Cancel a pending schedule for one node. Does not affect an update already in progress.
	CancelNodeUpdateSchedule(context.Context, *connect.Request[v1.CancelNodeUpdateScheduleRequest]) (*connect.Response[v1.CancelNodeUpdateScheduleResponse], error)
	// Change the fixed UTC offset used to enter new scheduled updates. Existing schedules keep their original offset.
	SetUpdateTimezone(context.Context, *connect.Request[v1.SetUpdateTimezoneRequest]) (*connect.Response[v1.SetUpdateTimezoneResponse], error)
	// Change the release channel this panel follows. Owner-only with a fresh step-up; never available to API tokens.
	SetUpdateChannel(context.Context, *connect.Request[v1.SetUpdateChannelRequest]) (*connect.Response[v1.SetUpdateChannelResponse], error)
	// Change the maximum time an agent may spend downloading one update binary. Owner-only with a fresh step-up.
	SetUpdateDownloadTimeout(context.Context, *connect.Request[v1.SetUpdateDownloadTimeoutRequest]) (*connect.Response[v1.SetUpdateDownloadTimeoutResponse], error)
	// Select optional node-update download sources. The panel always remains first. Owner-only with a fresh step-up.
	SetUpdateDownloadSources(context.Context, *connect.Request[v1.SetUpdateDownloadSourcesRequest]) (*connect.Response[v1.SetUpdateDownloadSourcesResponse], error)
}

UpdateServiceClient is a client for the mistgate.admin.v1.UpdateService service.

func NewUpdateServiceClient

func NewUpdateServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UpdateServiceClient

NewUpdateServiceClient constructs a client for the mistgate.admin.v1.UpdateService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UpdateServiceHandler

type UpdateServiceHandler interface {
	// The whole page in one call: this panel, the bundle, every node and the active or last rollout. Never
	// contacts a node and never rescans the bundle directory (RescanBundle does).
	GetUpdates(context.Context, *connect.Request[v1.GetUpdatesRequest]) (*connect.Response[v1.GetUpdatesResponse], error)
	// Stored snapshots only: does not contact nodes, run apt, or refresh package lists.
	GetOsUpdates(context.Context, *connect.Request[v1.GetOsUpdatesRequest]) (*connect.Response[v1.GetOsUpdatesResponse], error)
	// Start an OS update of 1..20 nodes (agent.proto "OS UPDATES"). The canary runs first, then batches wait for the
	// previous batch's health gate. Owner-only with a fresh step-up. Only one rollout of any kind is active at a time.
	// Audited.
	StartOsRollout(context.Context, *connect.Request[v1.StartOsRolloutRequest]) (*connect.Response[v1.StartOsRolloutResponse], error)
	// Stop a running, queued, paused, or failed OS rollout. A job already running on a node is never interrupted and is still
	// checked; nothing new starts. Owner-only with a fresh step-up.
	CancelOsRollout(context.Context, *connect.Request[v1.CancelOsRolloutRequest]) (*connect.Response[v1.CancelOsRolloutResponse], error)
	// Pause future OS jobs. A job already running on a node is never interrupted and is still checked.
	PauseOsRollout(context.Context, *connect.Request[v1.PauseOsRolloutRequest]) (*connect.Response[v1.PauseOsRolloutResponse], error)
	// Resume an OS rollout. A failed step is retried once by default; skip_failed marks it skipped and moves on.
	ResumeOsRollout(context.Context, *connect.Request[v1.ResumeOsRolloutRequest]) (*connect.Response[v1.ResumeOsRolloutResponse], error)
	// Refresh the package lists of nodes (apt-get update only; nothing is installed or rebooted). At most 3 nodes at a time
	// and once per node per 30 minutes; the answer says which were started. Owner-only, no step-up.
	RefreshOsUpdates(context.Context, *connect.Request[v1.RefreshOsUpdatesRequest]) (*connect.Response[v1.RefreshOsUpdatesResponse], error)
	// Force a fresh lookup of the latest stable GitHub release. The background checker also polls periodically.
	CheckPanelUpdate(context.Context, *connect.Request[v1.CheckPanelUpdateRequest]) (*connect.Response[v1.CheckPanelUpdateResponse], error)
	// Install the latest signed panel release through the root helper (a transient systemd unit or the fixed
	// mistgate-panel-update.service), which verifies the signed panel manifest again, replaces the binary and restarts
	// this panel. Owner-only with a fresh step-up; refused while a node rollout is active.
	InstallPanelUpdate(context.Context, *connect.Request[v1.InstallPanelUpdateRequest]) (*connect.Response[v1.InstallPanelUpdateResponse], error)
	// Start a rollout of the current (trusted) bundle. node_ids empty = every node whose state is OUTDATED (and
	// that can update); a listed node that is up to date, offline or unsupported is skipped and shows as such in the
	// steps. Only one rollout is active (RUNNING or PAUSED) at a time. Audited.
	StartRollout(context.Context, *connect.Request[v1.StartRolloutRequest]) (*connect.Response[v1.StartRolloutResponse], error)
	// Stop launching new steps; a step already sent finishes (and is gated) normally. A failed gate pauses by itself.
	PauseRollout(context.Context, *connect.Request[v1.PauseRolloutRequest]) (*connect.Response[v1.PauseRolloutResponse], error)
	// Continue a PAUSED rollout: steps that FAILED or were ROLLED_BACK stay as they are (retry them with a new
	// rollout), the remaining PENDING ones go on.
	ResumeRollout(context.Context, *connect.Request[v1.ResumeRolloutRequest]) (*connect.Response[v1.ResumeRolloutResponse], error)
	// End the rollout: PENDING steps become SKIPPED; a step that is in flight finishes and is gated but nothing new
	// starts. The nodes already updated stay updated.
	CancelRollout(context.Context, *connect.Request[v1.CancelRolloutRequest]) (*connect.Response[v1.CancelRolloutResponse], error)
	// Send RollbackAgent to one node (the .prev binary comes back, the agent re-executes). Works outside a rollout.
	RollbackNode(context.Context, *connect.Request[v1.RollbackNodeRequest]) (*connect.Response[v1.RollbackNodeResponse], error)
	// Re-read <data-dir>/dist now (the panel also notices a changed manifest by itself, within a minute).
	RescanBundle(context.Context, *connect.Request[v1.RescanBundleRequest]) (*connect.Response[v1.RescanBundleResponse], error)
	// Schedule the current trusted agent bundle for one node. local_datetime is YYYY-MM-DDTHH:mm in the supplied
	// configured fixed UTC offset. The request is rejected if that offset is no longer the panel setting.
	ScheduleNodeUpdate(context.Context, *connect.Request[v1.ScheduleNodeUpdateRequest]) (*connect.Response[v1.ScheduleNodeUpdateResponse], error)
	// Cancel a pending schedule for one node. Does not affect an update already in progress.
	CancelNodeUpdateSchedule(context.Context, *connect.Request[v1.CancelNodeUpdateScheduleRequest]) (*connect.Response[v1.CancelNodeUpdateScheduleResponse], error)
	// Change the fixed UTC offset used to enter new scheduled updates. Existing schedules keep their original offset.
	SetUpdateTimezone(context.Context, *connect.Request[v1.SetUpdateTimezoneRequest]) (*connect.Response[v1.SetUpdateTimezoneResponse], error)
	// Change the release channel this panel follows. Owner-only with a fresh step-up; never available to API tokens.
	SetUpdateChannel(context.Context, *connect.Request[v1.SetUpdateChannelRequest]) (*connect.Response[v1.SetUpdateChannelResponse], error)
	// Change the maximum time an agent may spend downloading one update binary. Owner-only with a fresh step-up.
	SetUpdateDownloadTimeout(context.Context, *connect.Request[v1.SetUpdateDownloadTimeoutRequest]) (*connect.Response[v1.SetUpdateDownloadTimeoutResponse], error)
	// Select optional node-update download sources. The panel always remains first. Owner-only with a fresh step-up.
	SetUpdateDownloadSources(context.Context, *connect.Request[v1.SetUpdateDownloadSourcesRequest]) (*connect.Response[v1.SetUpdateDownloadSourcesResponse], error)
}

UpdateServiceHandler is an implementation of the mistgate.admin.v1.UpdateService service.

type UserServiceClient

type UserServiceClient interface {
	ListUsers(context.Context, *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
	GetUser(context.Context, *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.GetUserResponse], error)
	// Returns the subscription link too (the UI copies it straight away).
	CreateUser(context.Context, *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.CreateUserResponse], error)
	UpdateUser(context.Context, *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.UpdateUserResponse], error)
	// Bulk bar and single actions share these two. Each returns the updated users.
	SetUsersEnabled(context.Context, *connect.Request[v1.SetUsersEnabledRequest]) (*connect.Response[v1.SetUsersEnabledResponse], error)
	// New expiry = max(now, current expiry) + days. Also lifts EXPIRED.
	ExtendUsers(context.Context, *connect.Request[v1.ExtendUsersRequest]) (*connect.Response[v1.ExtendUsersResponse], error)
	// Zeroes the traffic counter of the current quota period (used_bytes). The period and its end stay, history
	// (daily and per-node traffic) is kept, and LIMITED is lifted when the quota was the only reason. Audited.
	ResetUserTraffic(context.Context, *connect.Request[v1.ResetUserTrafficRequest]) (*connect.Response[v1.ResetUserTrafficResponse], error)
	// Removes one device: its credentials are revoked and dropped from every node, sessions are kicked.
	RevokeDevice(context.Context, *connect.Request[v1.RevokeDeviceRequest]) (*connect.Response[v1.RevokeDeviceResponse], error)
	// Lets a blocked device register again (RevokeDeviceRequest.block). Its old keys stay revoked: the app gets new ones
	// on its next fetch of the subscription.
	UnblockDevice(context.Context, *connect.Request[v1.UnblockDeviceRequest]) (*connect.Response[v1.UnblockDeviceResponse], error)
	// Deletes users for good: credentials are dropped from every node, sessions kicked, the link dies.
	// Their per-user traffic history goes too; node-level totals stay. The UI asks for the name first.
	DeleteUsers(context.Context, *connect.Request[v1.DeleteUsersRequest]) (*connect.Response[v1.DeleteUsersResponse], error)
	// "Link & QR". The QR is rendered by the SPA from the URL. rotate = issue a new token (old link dies).
	GetSubscriptionLink(context.Context, *connect.Request[v1.GetSubscriptionLinkRequest]) (*connect.Response[v1.GetSubscriptionLinkResponse], error)
	// The Telegram proxy of one person: whether they hold a key and the tg://proxy links of their MTProto inbounds, one per
	// node and profile. A read: it makes no device and no key and records no fetch. No links when Telegram is off, the
	// person has no key, or no MTProto profile runs for them.
	GetTelegramLinks(context.Context, *connect.Request[v1.GetTelegramLinksRequest]) (*connect.Response[v1.GetTelegramLinksResponse], error)
	// Makes the person's Telegram key if they have none (the same answer when they have one). Telegram has to be on for them.
	// The key is a device of the person (DEVICE_KIND_TELEGRAM_KEY, listed with their devices) but it does NOT count against
	// their device limit, so this never fails for want of room. Turning Telegram on in CreateUser or UpdateUser makes the key
	// the same way.
	IssueTelegramKey(context.Context, *connect.Request[v1.IssueTelegramKeyRequest]) (*connect.Response[v1.IssueTelegramKeyResponse], error)
	// Gives the key a new secret: every link made before stops working, the new links are in the answer. NOT_FOUND "key"
	// when the person has none.
	RotateTelegramKey(context.Context, *connect.Request[v1.RotateTelegramKeyRequest]) (*connect.Response[v1.RotateTelegramKeyResponse], error)
	// Revokes the key and frees its place among the devices; the nodes drop the secret with the next desired state. Telegram
	// stays on. Turning Telegram off or removing the key device (RevokeDevice) does the same.
	RevokeTelegramKey(context.Context, *connect.Request[v1.RevokeTelegramKeyRequest]) (*connect.Response[v1.RevokeTelegramKeyResponse], error)
	// What the nodes saw of this person's connections over the last hours, per device, node and protocol (agent.proto
	// LinkCounters): connects, refusals, early drops, handshakes that do not complete, time online. Counts only, no
	// address. A read like GetUser: every role and API tokens (the MCP tool user_connection).
	GetUserConnection(context.Context, *connect.Request[v1.GetUserConnectionRequest]) (*connect.Response[v1.GetUserConnectionResponse], error)
}

UserServiceClient is a client for the mistgate.admin.v1.UserService service.

func NewUserServiceClient

func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient

NewUserServiceClient constructs a client for the mistgate.admin.v1.UserService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UserServiceHandler

type UserServiceHandler interface {
	ListUsers(context.Context, *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
	GetUser(context.Context, *connect.Request[v1.GetUserRequest]) (*connect.Response[v1.GetUserResponse], error)
	// Returns the subscription link too (the UI copies it straight away).
	CreateUser(context.Context, *connect.Request[v1.CreateUserRequest]) (*connect.Response[v1.CreateUserResponse], error)
	UpdateUser(context.Context, *connect.Request[v1.UpdateUserRequest]) (*connect.Response[v1.UpdateUserResponse], error)
	// Bulk bar and single actions share these two. Each returns the updated users.
	SetUsersEnabled(context.Context, *connect.Request[v1.SetUsersEnabledRequest]) (*connect.Response[v1.SetUsersEnabledResponse], error)
	// New expiry = max(now, current expiry) + days. Also lifts EXPIRED.
	ExtendUsers(context.Context, *connect.Request[v1.ExtendUsersRequest]) (*connect.Response[v1.ExtendUsersResponse], error)
	// Zeroes the traffic counter of the current quota period (used_bytes). The period and its end stay, history
	// (daily and per-node traffic) is kept, and LIMITED is lifted when the quota was the only reason. Audited.
	ResetUserTraffic(context.Context, *connect.Request[v1.ResetUserTrafficRequest]) (*connect.Response[v1.ResetUserTrafficResponse], error)
	// Removes one device: its credentials are revoked and dropped from every node, sessions are kicked.
	RevokeDevice(context.Context, *connect.Request[v1.RevokeDeviceRequest]) (*connect.Response[v1.RevokeDeviceResponse], error)
	// Lets a blocked device register again (RevokeDeviceRequest.block). Its old keys stay revoked: the app gets new ones
	// on its next fetch of the subscription.
	UnblockDevice(context.Context, *connect.Request[v1.UnblockDeviceRequest]) (*connect.Response[v1.UnblockDeviceResponse], error)
	// Deletes users for good: credentials are dropped from every node, sessions kicked, the link dies.
	// Their per-user traffic history goes too; node-level totals stay. The UI asks for the name first.
	DeleteUsers(context.Context, *connect.Request[v1.DeleteUsersRequest]) (*connect.Response[v1.DeleteUsersResponse], error)
	// "Link & QR". The QR is rendered by the SPA from the URL. rotate = issue a new token (old link dies).
	GetSubscriptionLink(context.Context, *connect.Request[v1.GetSubscriptionLinkRequest]) (*connect.Response[v1.GetSubscriptionLinkResponse], error)
	// The Telegram proxy of one person: whether they hold a key and the tg://proxy links of their MTProto inbounds, one per
	// node and profile. A read: it makes no device and no key and records no fetch. No links when Telegram is off, the
	// person has no key, or no MTProto profile runs for them.
	GetTelegramLinks(context.Context, *connect.Request[v1.GetTelegramLinksRequest]) (*connect.Response[v1.GetTelegramLinksResponse], error)
	// Makes the person's Telegram key if they have none (the same answer when they have one). Telegram has to be on for them.
	// The key is a device of the person (DEVICE_KIND_TELEGRAM_KEY, listed with their devices) but it does NOT count against
	// their device limit, so this never fails for want of room. Turning Telegram on in CreateUser or UpdateUser makes the key
	// the same way.
	IssueTelegramKey(context.Context, *connect.Request[v1.IssueTelegramKeyRequest]) (*connect.Response[v1.IssueTelegramKeyResponse], error)
	// Gives the key a new secret: every link made before stops working, the new links are in the answer. NOT_FOUND "key"
	// when the person has none.
	RotateTelegramKey(context.Context, *connect.Request[v1.RotateTelegramKeyRequest]) (*connect.Response[v1.RotateTelegramKeyResponse], error)
	// Revokes the key and frees its place among the devices; the nodes drop the secret with the next desired state. Telegram
	// stays on. Turning Telegram off or removing the key device (RevokeDevice) does the same.
	RevokeTelegramKey(context.Context, *connect.Request[v1.RevokeTelegramKeyRequest]) (*connect.Response[v1.RevokeTelegramKeyResponse], error)
	// What the nodes saw of this person's connections over the last hours, per device, node and protocol (agent.proto
	// LinkCounters): connects, refusals, early drops, handshakes that do not complete, time online. Counts only, no
	// address. A read like GetUser: every role and API tokens (the MCP tool user_connection).
	GetUserConnection(context.Context, *connect.Request[v1.GetUserConnectionRequest]) (*connect.Response[v1.GetUserConnectionResponse], error)
}

UserServiceHandler is an implementation of the mistgate.admin.v1.UserService service.

type WarpServiceClient

type WarpServiceClient interface {
	// Account summary (no secrets), the node's last WarpHealth and whether the node has applied the account.
	GetWarp(context.Context, *connect.Request[v1.GetWarpRequest]) (*connect.Response[v1.GetWarpResponse], error)
	// Registers a new anonymous WARP device for this node and stores it encrypted. Step-up.
	RegisterWarp(context.Context, *connect.Request[v1.RegisterWarpRequest]) (*connect.Response[v1.RegisterWarpResponse], error)
	// Stores the account from wgcf-profile.conf (and wgcf-account.toml when given). Step-up.
	ImportWarp(context.Context, *connect.Request[v1.ImportWarpRequest]) (*connect.Response[v1.ImportWarpResponse], error)
	// Pause (false) or resume (true). Paused: the tunnel is torn down and egress "warp" inbounds fail closed.
	SetWarpEnabled(context.Context, *connect.Request[v1.SetWarpEnabledRequest]) (*connect.Response[v1.SetWarpEnabledResponse], error)
	// "Restart WARP": pause and resume as one action. The node tears the tunnel down and brings it up again with its
	// recovery ladder from the start. The resume always follows, also when the node does not confirm the pause in time
	// (and also when the browser goes away), so the call never leaves WARP paused. FAILED_PRECONDITION: node_offline,
	// no_account, account_paused (a paused account is resumed, not restarted).
	RestartWarp(context.Context, *connect.Request[v1.RestartWarpRequest]) (*connect.Response[v1.RestartWarpResponse], error)
	// Re-reads the account from Cloudflare (endpoint, addresses, client id); needs the access token, so an
	// imported profile without wgcf-account.toml cannot refresh. Creates nothing.
	RefreshWarp(context.Context, *connect.Request[v1.RefreshWarpRequest]) (*connect.Response[v1.RefreshWarpResponse], error)
	// Binds a paid WARP+ license key to the node's device at Cloudflare, reads the account back (its type becomes "plus"
	// when Cloudflare takes the key) and keeps the key sealed with the account's other secrets: a re-registration binds
	// the same key to the new device. Needs the access token (a profile imported without wgcf-account.toml has none).
	// The key is never returned. Step-up.
	SetWarpLicense(context.Context, *connect.Request[v1.SetWarpLicenseRequest]) (*connect.Response[v1.SetWarpLicenseResponse], error)
	// Deletes the device at Cloudflare when a token is known, then the local account; the node loses WARP
	// (a full desired state is sent). Step-up.
	DeleteWarp(context.Context, *connect.Request[v1.DeleteWarpRequest]) (*connect.Response[v1.DeleteWarpResponse], error)
	// Advanced: the constants the registration request is built from (they changed twice in 2026 and ship as
	// data, not code).
	GetWarpRegistrationParams(context.Context, *connect.Request[v1.GetWarpRegistrationParamsRequest]) (*connect.Response[v1.GetWarpRegistrationParamsResponse], error)
	UpdateWarpRegistrationParams(context.Context, *connect.Request[v1.UpdateWarpRegistrationParamsRequest]) (*connect.Response[v1.UpdateWarpRegistrationParamsResponse], error)
}

WarpServiceClient is a client for the mistgate.admin.v1.WarpService service.

func NewWarpServiceClient

func NewWarpServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) WarpServiceClient

NewWarpServiceClient constructs a client for the mistgate.admin.v1.WarpService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type WarpServiceHandler

type WarpServiceHandler interface {
	// Account summary (no secrets), the node's last WarpHealth and whether the node has applied the account.
	GetWarp(context.Context, *connect.Request[v1.GetWarpRequest]) (*connect.Response[v1.GetWarpResponse], error)
	// Registers a new anonymous WARP device for this node and stores it encrypted. Step-up.
	RegisterWarp(context.Context, *connect.Request[v1.RegisterWarpRequest]) (*connect.Response[v1.RegisterWarpResponse], error)
	// Stores the account from wgcf-profile.conf (and wgcf-account.toml when given). Step-up.
	ImportWarp(context.Context, *connect.Request[v1.ImportWarpRequest]) (*connect.Response[v1.ImportWarpResponse], error)
	// Pause (false) or resume (true). Paused: the tunnel is torn down and egress "warp" inbounds fail closed.
	SetWarpEnabled(context.Context, *connect.Request[v1.SetWarpEnabledRequest]) (*connect.Response[v1.SetWarpEnabledResponse], error)
	// "Restart WARP": pause and resume as one action. The node tears the tunnel down and brings it up again with its
	// recovery ladder from the start. The resume always follows, also when the node does not confirm the pause in time
	// (and also when the browser goes away), so the call never leaves WARP paused. FAILED_PRECONDITION: node_offline,
	// no_account, account_paused (a paused account is resumed, not restarted).
	RestartWarp(context.Context, *connect.Request[v1.RestartWarpRequest]) (*connect.Response[v1.RestartWarpResponse], error)
	// Re-reads the account from Cloudflare (endpoint, addresses, client id); needs the access token, so an
	// imported profile without wgcf-account.toml cannot refresh. Creates nothing.
	RefreshWarp(context.Context, *connect.Request[v1.RefreshWarpRequest]) (*connect.Response[v1.RefreshWarpResponse], error)
	// Binds a paid WARP+ license key to the node's device at Cloudflare, reads the account back (its type becomes "plus"
	// when Cloudflare takes the key) and keeps the key sealed with the account's other secrets: a re-registration binds
	// the same key to the new device. Needs the access token (a profile imported without wgcf-account.toml has none).
	// The key is never returned. Step-up.
	SetWarpLicense(context.Context, *connect.Request[v1.SetWarpLicenseRequest]) (*connect.Response[v1.SetWarpLicenseResponse], error)
	// Deletes the device at Cloudflare when a token is known, then the local account; the node loses WARP
	// (a full desired state is sent). Step-up.
	DeleteWarp(context.Context, *connect.Request[v1.DeleteWarpRequest]) (*connect.Response[v1.DeleteWarpResponse], error)
	// Advanced: the constants the registration request is built from (they changed twice in 2026 and ship as
	// data, not code).
	GetWarpRegistrationParams(context.Context, *connect.Request[v1.GetWarpRegistrationParamsRequest]) (*connect.Response[v1.GetWarpRegistrationParamsResponse], error)
	UpdateWarpRegistrationParams(context.Context, *connect.Request[v1.UpdateWarpRegistrationParamsRequest]) (*connect.Response[v1.UpdateWarpRegistrationParamsResponse], error)
}

WarpServiceHandler is an implementation of the mistgate.admin.v1.WarpService service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL