@octelium/apis 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/authv1/authv1.client.d.ts +20 -0
- package/main/authv1/authv1.client.d.ts.map +1 -1
- package/main/authv1/authv1.client.js +14 -0
- package/main/authv1/authv1.client.js.map +1 -1
- package/main/authv1/authv1.client.ts +26 -0
- package/main/authv1/authv1.d.ts +237 -0
- package/main/authv1/authv1.d.ts.map +1 -1
- package/main/authv1/authv1.js +524 -1
- package/main/authv1/authv1.js.map +1 -1
- package/main/authv1/authv1.ts +671 -1
- package/main/cordiumv1/index.d.ts +1 -1
- package/main/cordiumv1/index.d.ts.map +1 -1
- package/main/cordiumv1/index.js +1 -1
- package/main/cordiumv1/index.js.map +1 -1
- package/main/cordiumv1/index.ts +1 -1
- package/main/corev1/corev1.d.ts +474 -0
- package/main/corev1/corev1.d.ts.map +1 -1
- package/main/corev1/corev1.js +854 -3
- package/main/corev1/corev1.js.map +1 -1
- package/main/corev1/corev1.ts +1145 -31
- package/package.json +1 -1
package/main/corev1/corev1.ts
CHANGED
|
@@ -4915,6 +4915,280 @@ export interface Device_Status {
|
|
|
4915
4915
|
* @generated from protobuf field: repeated string macAddresses = 8
|
|
4916
4916
|
*/
|
|
4917
4917
|
macAddresses: string[];
|
|
4918
|
+
/**
|
|
4919
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Posture posture = 9
|
|
4920
|
+
*/
|
|
4921
|
+
posture?: Device_Status_Posture;
|
|
4922
|
+
/**
|
|
4923
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Binding binding = 10
|
|
4924
|
+
*/
|
|
4925
|
+
binding?: Device_Status_Binding;
|
|
4926
|
+
/**
|
|
4927
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.ProbeAttempt probeAttempt = 11
|
|
4928
|
+
*/
|
|
4929
|
+
probeAttempt?: Device_Status_ProbeAttempt;
|
|
4930
|
+
}
|
|
4931
|
+
/**
|
|
4932
|
+
* @generated from protobuf message octelium.api.main.core.v1.Device.Status.Posture
|
|
4933
|
+
*/
|
|
4934
|
+
export interface Device_Status_Posture {
|
|
4935
|
+
/**
|
|
4936
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Posture.RiskLevel riskLevel = 1
|
|
4937
|
+
*/
|
|
4938
|
+
riskLevel: Device_Status_Posture_RiskLevel;
|
|
4939
|
+
/**
|
|
4940
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Posture.SignalState diskEncryption = 2
|
|
4941
|
+
*/
|
|
4942
|
+
diskEncryption: Device_Status_Posture_SignalState;
|
|
4943
|
+
/**
|
|
4944
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Posture.SignalState compliant = 3
|
|
4945
|
+
*/
|
|
4946
|
+
compliant: Device_Status_Posture_SignalState;
|
|
4947
|
+
/**
|
|
4948
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Posture.SignalState threatFree = 4
|
|
4949
|
+
*/
|
|
4950
|
+
threatFree: Device_Status_Posture_SignalState;
|
|
4951
|
+
/**
|
|
4952
|
+
* @generated from protobuf field: map<string, octelium.api.main.core.v1.Device.Status.Posture.SignalState> signals = 5
|
|
4953
|
+
*/
|
|
4954
|
+
signals: {
|
|
4955
|
+
[key: string]: Device_Status_Posture_SignalState;
|
|
4956
|
+
};
|
|
4957
|
+
/**
|
|
4958
|
+
* @generated from protobuf field: google.protobuf.Timestamp lastSyncAt = 6
|
|
4959
|
+
*/
|
|
4960
|
+
lastSyncAt?: Timestamp;
|
|
4961
|
+
/**
|
|
4962
|
+
* @generated from protobuf field: google.protobuf.Timestamp lastSeenAt = 7
|
|
4963
|
+
*/
|
|
4964
|
+
lastSeenAt?: Timestamp;
|
|
4965
|
+
/**
|
|
4966
|
+
* The PDP MUST treat posture with expiresAt in the past as absent.
|
|
4967
|
+
* The device watcher additionally clears expired posture as hygiene.
|
|
4968
|
+
*
|
|
4969
|
+
* @generated from protobuf field: google.protobuf.Timestamp expiresAt = 8
|
|
4970
|
+
*/
|
|
4971
|
+
expiresAt?: Timestamp;
|
|
4972
|
+
/**
|
|
4973
|
+
* @generated from protobuf field: google.protobuf.Struct attrs = 9
|
|
4974
|
+
*/
|
|
4975
|
+
attrs?: Struct;
|
|
4976
|
+
}
|
|
4977
|
+
/**
|
|
4978
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Posture.RiskLevel
|
|
4979
|
+
*/
|
|
4980
|
+
export enum Device_Status_Posture_RiskLevel {
|
|
4981
|
+
/**
|
|
4982
|
+
* @generated from protobuf enum value: RISK_LEVEL_UNKNOWN = 0;
|
|
4983
|
+
*/
|
|
4984
|
+
RISK_LEVEL_UNKNOWN = 0,
|
|
4985
|
+
/**
|
|
4986
|
+
* @generated from protobuf enum value: LOW = 1;
|
|
4987
|
+
*/
|
|
4988
|
+
LOW = 1,
|
|
4989
|
+
/**
|
|
4990
|
+
* @generated from protobuf enum value: MEDIUM = 2;
|
|
4991
|
+
*/
|
|
4992
|
+
MEDIUM = 2,
|
|
4993
|
+
/**
|
|
4994
|
+
* @generated from protobuf enum value: HIGH = 3;
|
|
4995
|
+
*/
|
|
4996
|
+
HIGH = 3,
|
|
4997
|
+
/**
|
|
4998
|
+
* @generated from protobuf enum value: CRITICAL = 4;
|
|
4999
|
+
*/
|
|
5000
|
+
CRITICAL = 4
|
|
5001
|
+
}
|
|
5002
|
+
/**
|
|
5003
|
+
* SignalState semantics under the single-provider model: adapters MUST
|
|
5004
|
+
* set NOT_APPLICABLE for every named signal outside their provider's
|
|
5005
|
+
* domain (an EDR adapter sets compliant = NOT_APPLICABLE, an MDM
|
|
5006
|
+
* adapter sets threatFree = NOT_APPLICABLE). SIGNAL_STATE_UNKNOWN is
|
|
5007
|
+
* reserved for "the provider should know this but did not report it"
|
|
5008
|
+
* and fails closed in policy. Leaving a signal UNKNOWN when it is
|
|
5009
|
+
* actually out-of-domain will lock devices out under any policy that
|
|
5010
|
+
* requires that signal.
|
|
5011
|
+
*
|
|
5012
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Posture.SignalState
|
|
5013
|
+
*/
|
|
5014
|
+
export enum Device_Status_Posture_SignalState {
|
|
5015
|
+
/**
|
|
5016
|
+
* @generated from protobuf enum value: SIGNAL_STATE_UNKNOWN = 0;
|
|
5017
|
+
*/
|
|
5018
|
+
SIGNAL_STATE_UNKNOWN = 0,
|
|
5019
|
+
/**
|
|
5020
|
+
* @generated from protobuf enum value: PASS = 1;
|
|
5021
|
+
*/
|
|
5022
|
+
PASS = 1,
|
|
5023
|
+
/**
|
|
5024
|
+
* @generated from protobuf enum value: FAIL = 2;
|
|
5025
|
+
*/
|
|
5026
|
+
FAIL = 2,
|
|
5027
|
+
/**
|
|
5028
|
+
* @generated from protobuf enum value: NOT_APPLICABLE = 3;
|
|
5029
|
+
*/
|
|
5030
|
+
NOT_APPLICABLE = 3
|
|
5031
|
+
}
|
|
5032
|
+
/**
|
|
5033
|
+
* Binding is the singular, quasi-permanent link between this Device and
|
|
5034
|
+
* one DeviceManager. ownerRef lives here and only here; Posture validity
|
|
5035
|
+
* is defined as binding.state == ACCEPTED, so Posture does not carry a
|
|
5036
|
+
* duplicate ownerRef that could diverge.
|
|
5037
|
+
*
|
|
5038
|
+
* ACCEPTED and REJECTED are both sticky: reconciliation never overwrites
|
|
5039
|
+
* them, and only ResetDeviceBinding / ResetDeviceManagerBindings (or
|
|
5040
|
+
* DeviceManager deletion, which auto-resets) clears them. There is no
|
|
5041
|
+
* PENDING or EXPIRED state: attempt lifecycle belongs to ProbeAttempt,
|
|
5042
|
+
* and an unbound Device simply has no Binding, so nothing dead-ends.
|
|
5043
|
+
*
|
|
5044
|
+
* @generated from protobuf message octelium.api.main.core.v1.Device.Status.Binding
|
|
5045
|
+
*/
|
|
5046
|
+
export interface Device_Status_Binding {
|
|
5047
|
+
/**
|
|
5048
|
+
* @generated from protobuf field: string uid = 1
|
|
5049
|
+
*/
|
|
5050
|
+
uid: string;
|
|
5051
|
+
/**
|
|
5052
|
+
* @generated from protobuf field: octelium.api.main.meta.v1.ObjectReference ownerRef = 2
|
|
5053
|
+
*/
|
|
5054
|
+
ownerRef?: ObjectReference;
|
|
5055
|
+
/**
|
|
5056
|
+
* @generated from protobuf field: string externalID = 3
|
|
5057
|
+
*/
|
|
5058
|
+
externalID: string;
|
|
5059
|
+
/**
|
|
5060
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Binding.State state = 4
|
|
5061
|
+
*/
|
|
5062
|
+
state: Device_Status_Binding_State;
|
|
5063
|
+
/**
|
|
5064
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod acceptanceMethod = 5
|
|
5065
|
+
*/
|
|
5066
|
+
acceptanceMethod: Device_Status_Binding_AcceptanceMethod;
|
|
5067
|
+
/**
|
|
5068
|
+
* @generated from protobuf field: google.protobuf.Timestamp acceptedAt = 6
|
|
5069
|
+
*/
|
|
5070
|
+
acceptedAt?: Timestamp;
|
|
5071
|
+
/**
|
|
5072
|
+
* @generated from protobuf field: google.protobuf.Timestamp expiresAt = 7
|
|
5073
|
+
*/
|
|
5074
|
+
expiresAt?: Timestamp;
|
|
5075
|
+
/**
|
|
5076
|
+
* @generated from protobuf field: google.protobuf.Timestamp lastVerifiedAt = 8
|
|
5077
|
+
*/
|
|
5078
|
+
lastVerifiedAt?: Timestamp;
|
|
5079
|
+
/**
|
|
5080
|
+
* @generated from protobuf field: uint32 verificationFailures = 9
|
|
5081
|
+
*/
|
|
5082
|
+
verificationFailures: number;
|
|
5083
|
+
}
|
|
5084
|
+
/**
|
|
5085
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Binding.State
|
|
5086
|
+
*/
|
|
5087
|
+
export enum Device_Status_Binding_State {
|
|
5088
|
+
/**
|
|
5089
|
+
* @generated from protobuf enum value: STATE_UNKNOWN = 0;
|
|
5090
|
+
*/
|
|
5091
|
+
STATE_UNKNOWN = 0,
|
|
5092
|
+
/**
|
|
5093
|
+
* WAITING_APPROVAL means a unique candidate exists and MANUAL
|
|
5094
|
+
* approval mode requires administrator action before acceptance.
|
|
5095
|
+
* Expiry (per expiresAt) clears the Binding rather than tombstoning
|
|
5096
|
+
* it, so a later attempt can retry.
|
|
5097
|
+
*
|
|
5098
|
+
* @generated from protobuf enum value: WAITING_APPROVAL = 1;
|
|
5099
|
+
*/
|
|
5100
|
+
WAITING_APPROVAL = 1,
|
|
5101
|
+
/**
|
|
5102
|
+
* @generated from protobuf enum value: ACCEPTED = 2;
|
|
5103
|
+
*/
|
|
5104
|
+
ACCEPTED = 2,
|
|
5105
|
+
/**
|
|
5106
|
+
* REJECTED is a sticky record that this Device must not bind to
|
|
5107
|
+
* ownerRef, set by administrator rejection or by losing a uniqueness
|
|
5108
|
+
* claim to another Device. Cleared only by reset.
|
|
5109
|
+
*
|
|
5110
|
+
* @generated from protobuf enum value: REJECTED = 3;
|
|
5111
|
+
*/
|
|
5112
|
+
REJECTED = 3,
|
|
5113
|
+
/**
|
|
5114
|
+
* AMBIGUOUS means candidate selection could not resolve uniquely:
|
|
5115
|
+
* multiple DeviceManagers matched at equal priority, a provider
|
|
5116
|
+
* inventory matched non-uniquely, or probe and identity sources
|
|
5117
|
+
* disagreed within one DeviceManager. The specifics are in message.
|
|
5118
|
+
* Recomputed on each reconcile; clears itself once resolved.
|
|
5119
|
+
*
|
|
5120
|
+
* @generated from protobuf enum value: AMBIGUOUS = 4;
|
|
5121
|
+
*/
|
|
5122
|
+
AMBIGUOUS = 4
|
|
5123
|
+
}
|
|
5124
|
+
/**
|
|
5125
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod
|
|
5126
|
+
*/
|
|
5127
|
+
export enum Device_Status_Binding_AcceptanceMethod {
|
|
5128
|
+
/**
|
|
5129
|
+
* @generated from protobuf enum value: ACCEPTANCE_METHOD_UNKNOWN = 0;
|
|
5130
|
+
*/
|
|
5131
|
+
ACCEPTANCE_METHOD_UNKNOWN = 0,
|
|
5132
|
+
/**
|
|
5133
|
+
* @generated from protobuf enum value: AUTOMATIC = 1;
|
|
5134
|
+
*/
|
|
5135
|
+
AUTOMATIC = 1,
|
|
5136
|
+
/**
|
|
5137
|
+
* @generated from protobuf enum value: EMAIL = 2;
|
|
5138
|
+
*/
|
|
5139
|
+
EMAIL = 2,
|
|
5140
|
+
/**
|
|
5141
|
+
* @generated from protobuf enum value: MANUAL = 3;
|
|
5142
|
+
*/
|
|
5143
|
+
MANUAL = 3
|
|
5144
|
+
}
|
|
5145
|
+
/**
|
|
5146
|
+
* @generated from protobuf message octelium.api.main.core.v1.Device.Status.ProbeAttempt
|
|
5147
|
+
*/
|
|
5148
|
+
export interface Device_Status_ProbeAttempt {
|
|
5149
|
+
/**
|
|
5150
|
+
* @generated from protobuf field: string uid = 1
|
|
5151
|
+
*/
|
|
5152
|
+
uid: string;
|
|
5153
|
+
/**
|
|
5154
|
+
* @generated from protobuf field: google.protobuf.Timestamp startedAt = 2
|
|
5155
|
+
*/
|
|
5156
|
+
startedAt?: Timestamp;
|
|
5157
|
+
/**
|
|
5158
|
+
* @generated from protobuf field: repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes = 3
|
|
5159
|
+
*/
|
|
5160
|
+
probes: ClusterConfig_Status_Device_Probe[];
|
|
5161
|
+
/**
|
|
5162
|
+
* @generated from protobuf field: repeated octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result results = 4
|
|
5163
|
+
*/
|
|
5164
|
+
results: Device_Status_ProbeAttempt_Result[];
|
|
5165
|
+
}
|
|
5166
|
+
/**
|
|
5167
|
+
* @generated from protobuf message octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result
|
|
5168
|
+
*/
|
|
5169
|
+
export interface Device_Status_ProbeAttempt_Result {
|
|
5170
|
+
/**
|
|
5171
|
+
* @generated from protobuf field: string probeID = 1
|
|
5172
|
+
*/
|
|
5173
|
+
probeID: string;
|
|
5174
|
+
/**
|
|
5175
|
+
* @generated from protobuf oneof: type
|
|
5176
|
+
*/
|
|
5177
|
+
type: {
|
|
5178
|
+
oneofKind: "output";
|
|
5179
|
+
/**
|
|
5180
|
+
* @generated from protobuf field: bytes output = 2
|
|
5181
|
+
*/
|
|
5182
|
+
output: Uint8Array;
|
|
5183
|
+
} | {
|
|
5184
|
+
oneofKind: "error";
|
|
5185
|
+
/**
|
|
5186
|
+
* @generated from protobuf field: string error = 3
|
|
5187
|
+
*/
|
|
5188
|
+
error: string;
|
|
5189
|
+
} | {
|
|
5190
|
+
oneofKind: undefined;
|
|
5191
|
+
};
|
|
4918
5192
|
}
|
|
4919
5193
|
/**
|
|
4920
5194
|
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.OSType
|
|
@@ -7710,6 +7984,10 @@ export interface Gateway_Status {
|
|
|
7710
7984
|
* @generated from protobuf field: string hostname = 8
|
|
7711
7985
|
*/
|
|
7712
7986
|
hostname: string;
|
|
7987
|
+
/**
|
|
7988
|
+
* @generated from protobuf field: optional int32 index = 9
|
|
7989
|
+
*/
|
|
7990
|
+
index?: number;
|
|
7713
7991
|
}
|
|
7714
7992
|
/**
|
|
7715
7993
|
* @generated from protobuf message octelium.api.main.core.v1.Gateway.Status.WireGuard
|
|
@@ -8611,6 +8889,10 @@ export interface ClusterConfig_Status {
|
|
|
8611
8889
|
* @generated from protobuf field: octelium.api.main.core.v1.ClusterConfig.Status.SecretManager secretManager = 4
|
|
8612
8890
|
*/
|
|
8613
8891
|
secretManager?: ClusterConfig_Status_SecretManager;
|
|
8892
|
+
/**
|
|
8893
|
+
* @generated from protobuf field: octelium.api.main.core.v1.ClusterConfig.Status.Device device = 5
|
|
8894
|
+
*/
|
|
8895
|
+
device?: ClusterConfig_Status_Device;
|
|
8614
8896
|
}
|
|
8615
8897
|
/**
|
|
8616
8898
|
* @generated from protobuf message octelium.api.main.core.v1.ClusterConfig.Status.NetworkConfig
|
|
@@ -8799,6 +9081,107 @@ export interface ClusterConfig_Status_SecretManager {
|
|
|
8799
9081
|
*/
|
|
8800
9082
|
export interface ClusterConfig_Status_SecretManager_TLS {
|
|
8801
9083
|
}
|
|
9084
|
+
/**
|
|
9085
|
+
* @generated from protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device
|
|
9086
|
+
*/
|
|
9087
|
+
export interface ClusterConfig_Status_Device {
|
|
9088
|
+
/**
|
|
9089
|
+
* @generated from protobuf field: repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes = 1
|
|
9090
|
+
*/
|
|
9091
|
+
probes: ClusterConfig_Status_Device_Probe[];
|
|
9092
|
+
}
|
|
9093
|
+
/**
|
|
9094
|
+
* @generated from protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe
|
|
9095
|
+
*/
|
|
9096
|
+
export interface ClusterConfig_Status_Device_Probe {
|
|
9097
|
+
/**
|
|
9098
|
+
* @generated from protobuf field: octelium.api.main.meta.v1.ObjectReference ownerRef = 1
|
|
9099
|
+
*/
|
|
9100
|
+
ownerRef?: ObjectReference;
|
|
9101
|
+
/**
|
|
9102
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Device.Status.OSType osType = 2
|
|
9103
|
+
*/
|
|
9104
|
+
osType: Device_Status_OSType;
|
|
9105
|
+
/**
|
|
9106
|
+
* @generated from protobuf field: bool requireElevation = 3
|
|
9107
|
+
*/
|
|
9108
|
+
requireElevation: boolean;
|
|
9109
|
+
/**
|
|
9110
|
+
* @generated from protobuf field: octelium.api.main.core.v1.Condition condition = 4
|
|
9111
|
+
*/
|
|
9112
|
+
condition?: Condition;
|
|
9113
|
+
/**
|
|
9114
|
+
* @generated from protobuf oneof: type
|
|
9115
|
+
*/
|
|
9116
|
+
type: {
|
|
9117
|
+
oneofKind: "runCommand";
|
|
9118
|
+
/**
|
|
9119
|
+
* @generated from protobuf field: octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand runCommand = 5
|
|
9120
|
+
*/
|
|
9121
|
+
runCommand: ClusterConfig_Status_Device_Probe_RunCommand;
|
|
9122
|
+
} | {
|
|
9123
|
+
oneofKind: "readFile";
|
|
9124
|
+
/**
|
|
9125
|
+
* @generated from protobuf field: octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile readFile = 6
|
|
9126
|
+
*/
|
|
9127
|
+
readFile: ClusterConfig_Status_Device_Probe_ReadFile;
|
|
9128
|
+
} | {
|
|
9129
|
+
oneofKind: "readRegistry";
|
|
9130
|
+
/**
|
|
9131
|
+
* @generated from protobuf field: octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry readRegistry = 7
|
|
9132
|
+
*/
|
|
9133
|
+
readRegistry: ClusterConfig_Status_Device_Probe_ReadRegistry;
|
|
9134
|
+
} | {
|
|
9135
|
+
oneofKind: undefined;
|
|
9136
|
+
};
|
|
9137
|
+
}
|
|
9138
|
+
/**
|
|
9139
|
+
* @generated from protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand
|
|
9140
|
+
*/
|
|
9141
|
+
export interface ClusterConfig_Status_Device_Probe_RunCommand {
|
|
9142
|
+
/**
|
|
9143
|
+
* @generated from protobuf field: string command = 1
|
|
9144
|
+
*/
|
|
9145
|
+
command: string;
|
|
9146
|
+
/**
|
|
9147
|
+
* @generated from protobuf field: repeated string args = 2
|
|
9148
|
+
*/
|
|
9149
|
+
args: string[];
|
|
9150
|
+
/**
|
|
9151
|
+
* @generated from protobuf field: uint32 timeoutSeconds = 3
|
|
9152
|
+
*/
|
|
9153
|
+
timeoutSeconds: number;
|
|
9154
|
+
/**
|
|
9155
|
+
* @generated from protobuf field: uint32 maxOutputBytes = 4
|
|
9156
|
+
*/
|
|
9157
|
+
maxOutputBytes: number;
|
|
9158
|
+
}
|
|
9159
|
+
/**
|
|
9160
|
+
* @generated from protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile
|
|
9161
|
+
*/
|
|
9162
|
+
export interface ClusterConfig_Status_Device_Probe_ReadFile {
|
|
9163
|
+
/**
|
|
9164
|
+
* @generated from protobuf field: string path = 1
|
|
9165
|
+
*/
|
|
9166
|
+
path: string;
|
|
9167
|
+
/**
|
|
9168
|
+
* @generated from protobuf field: uint32 maxBytes = 2
|
|
9169
|
+
*/
|
|
9170
|
+
maxBytes: number;
|
|
9171
|
+
}
|
|
9172
|
+
/**
|
|
9173
|
+
* @generated from protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry
|
|
9174
|
+
*/
|
|
9175
|
+
export interface ClusterConfig_Status_Device_Probe_ReadRegistry {
|
|
9176
|
+
/**
|
|
9177
|
+
* @generated from protobuf field: string key = 1
|
|
9178
|
+
*/
|
|
9179
|
+
key: string;
|
|
9180
|
+
/**
|
|
9181
|
+
* @generated from protobuf field: string name = 2
|
|
9182
|
+
*/
|
|
9183
|
+
name: string;
|
|
9184
|
+
}
|
|
8802
9185
|
/**
|
|
8803
9186
|
* @generated from protobuf message octelium.api.main.core.v1.RequestContext
|
|
8804
9187
|
*/
|
|
@@ -21311,7 +21694,10 @@ class Device_Status$Type extends MessageType<Device_Status> {
|
|
|
21311
21694
|
{ no: 5, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
21312
21695
|
{ no: 6, name: "serialNumber", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
21313
21696
|
{ no: 7, name: "isLocked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
21314
|
-
{ no: 8, name: "macAddresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
21697
|
+
{ no: 8, name: "macAddresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
21698
|
+
{ no: 9, name: "posture", kind: "message", T: () => Device_Status_Posture },
|
|
21699
|
+
{ no: 10, name: "binding", kind: "message", T: () => Device_Status_Binding },
|
|
21700
|
+
{ no: 11, name: "probeAttempt", kind: "message", T: () => Device_Status_ProbeAttempt }
|
|
21315
21701
|
]);
|
|
21316
21702
|
}
|
|
21317
21703
|
create(value?: PartialMessage<Device_Status>): Device_Status {
|
|
@@ -21356,6 +21742,15 @@ class Device_Status$Type extends MessageType<Device_Status> {
|
|
|
21356
21742
|
case /* repeated string macAddresses */ 8:
|
|
21357
21743
|
message.macAddresses.push(reader.string());
|
|
21358
21744
|
break;
|
|
21745
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture posture */ 9:
|
|
21746
|
+
message.posture = Device_Status_Posture.internalBinaryRead(reader, reader.uint32(), options, message.posture);
|
|
21747
|
+
break;
|
|
21748
|
+
case /* octelium.api.main.core.v1.Device.Status.Binding binding */ 10:
|
|
21749
|
+
message.binding = Device_Status_Binding.internalBinaryRead(reader, reader.uint32(), options, message.binding);
|
|
21750
|
+
break;
|
|
21751
|
+
case /* octelium.api.main.core.v1.Device.Status.ProbeAttempt probeAttempt */ 11:
|
|
21752
|
+
message.probeAttempt = Device_Status_ProbeAttempt.internalBinaryRead(reader, reader.uint32(), options, message.probeAttempt);
|
|
21753
|
+
break;
|
|
21359
21754
|
default:
|
|
21360
21755
|
let u = options.readUnknownField;
|
|
21361
21756
|
if (u === "throw")
|
|
@@ -21412,6 +21807,15 @@ class Device_Status$Type extends MessageType<Device_Status> {
|
|
|
21412
21807
|
/* repeated string macAddresses = 8; */
|
|
21413
21808
|
for (let i = 0; i < message.macAddresses.length; i++)
|
|
21414
21809
|
writer.tag(8, WireType.LengthDelimited).string(message.macAddresses[i]);
|
|
21810
|
+
/* octelium.api.main.core.v1.Device.Status.Posture posture = 9; */
|
|
21811
|
+
if (message.posture)
|
|
21812
|
+
Device_Status_Posture.internalBinaryWrite(message.posture, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
21813
|
+
/* octelium.api.main.core.v1.Device.Status.Binding binding = 10; */
|
|
21814
|
+
if (message.binding)
|
|
21815
|
+
Device_Status_Binding.internalBinaryWrite(message.binding, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
21816
|
+
/* octelium.api.main.core.v1.Device.Status.ProbeAttempt probeAttempt = 11; */
|
|
21817
|
+
if (message.probeAttempt)
|
|
21818
|
+
Device_Status_ProbeAttempt.internalBinaryWrite(message.probeAttempt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
21415
21819
|
let u = options.writeUnknownFields;
|
|
21416
21820
|
if (u !== false)
|
|
21417
21821
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -21423,40 +21827,62 @@ class Device_Status$Type extends MessageType<Device_Status> {
|
|
|
21423
21827
|
*/
|
|
21424
21828
|
export const Device_Status = new Device_Status$Type();
|
|
21425
21829
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
21426
|
-
class
|
|
21830
|
+
class Device_Status_Posture$Type extends MessageType<Device_Status_Posture> {
|
|
21427
21831
|
constructor() {
|
|
21428
|
-
super("octelium.api.main.core.v1.
|
|
21429
|
-
{ no: 1, name: "
|
|
21430
|
-
{ no: 2, name: "
|
|
21431
|
-
{ no: 3, name: "
|
|
21432
|
-
{ no: 4, name: "
|
|
21832
|
+
super("octelium.api.main.core.v1.Device.Status.Posture", [
|
|
21833
|
+
{ no: 1, name: "riskLevel", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.RiskLevel", Device_Status_Posture_RiskLevel] },
|
|
21834
|
+
{ no: 2, name: "diskEncryption", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.SignalState", Device_Status_Posture_SignalState] },
|
|
21835
|
+
{ no: 3, name: "compliant", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.SignalState", Device_Status_Posture_SignalState] },
|
|
21836
|
+
{ no: 4, name: "threatFree", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.SignalState", Device_Status_Posture_SignalState] },
|
|
21837
|
+
{ no: 5, name: "signals", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.SignalState", Device_Status_Posture_SignalState] } },
|
|
21838
|
+
{ no: 6, name: "lastSyncAt", kind: "message", T: () => Timestamp },
|
|
21839
|
+
{ no: 7, name: "lastSeenAt", kind: "message", T: () => Timestamp },
|
|
21840
|
+
{ no: 8, name: "expiresAt", kind: "message", T: () => Timestamp },
|
|
21841
|
+
{ no: 9, name: "attrs", kind: "message", T: () => Struct }
|
|
21433
21842
|
]);
|
|
21434
21843
|
}
|
|
21435
|
-
create(value?: PartialMessage<
|
|
21844
|
+
create(value?: PartialMessage<Device_Status_Posture>): Device_Status_Posture {
|
|
21436
21845
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
21437
|
-
message.
|
|
21438
|
-
message.
|
|
21439
|
-
message.
|
|
21846
|
+
message.riskLevel = 0;
|
|
21847
|
+
message.diskEncryption = 0;
|
|
21848
|
+
message.compliant = 0;
|
|
21849
|
+
message.threatFree = 0;
|
|
21850
|
+
message.signals = {};
|
|
21440
21851
|
if (value !== undefined)
|
|
21441
|
-
reflectionMergePartial<
|
|
21852
|
+
reflectionMergePartial<Device_Status_Posture>(this, message, value);
|
|
21442
21853
|
return message;
|
|
21443
21854
|
}
|
|
21444
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
21855
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Device_Status_Posture): Device_Status_Posture {
|
|
21445
21856
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
21446
21857
|
while (reader.pos < end) {
|
|
21447
21858
|
let [fieldNo, wireType] = reader.tag();
|
|
21448
21859
|
switch (fieldNo) {
|
|
21449
|
-
case /*
|
|
21450
|
-
message.
|
|
21860
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.RiskLevel riskLevel */ 1:
|
|
21861
|
+
message.riskLevel = reader.int32();
|
|
21451
21862
|
break;
|
|
21452
|
-
case /*
|
|
21453
|
-
message.
|
|
21863
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.SignalState diskEncryption */ 2:
|
|
21864
|
+
message.diskEncryption = reader.int32();
|
|
21454
21865
|
break;
|
|
21455
|
-
case /*
|
|
21456
|
-
message.
|
|
21866
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.SignalState compliant */ 3:
|
|
21867
|
+
message.compliant = reader.int32();
|
|
21457
21868
|
break;
|
|
21458
|
-
case /* octelium.api.main.
|
|
21459
|
-
message.
|
|
21869
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.SignalState threatFree */ 4:
|
|
21870
|
+
message.threatFree = reader.int32();
|
|
21871
|
+
break;
|
|
21872
|
+
case /* map<string, octelium.api.main.core.v1.Device.Status.Posture.SignalState> signals */ 5:
|
|
21873
|
+
this.binaryReadMap5(message.signals, reader, options);
|
|
21874
|
+
break;
|
|
21875
|
+
case /* google.protobuf.Timestamp lastSyncAt */ 6:
|
|
21876
|
+
message.lastSyncAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSyncAt);
|
|
21877
|
+
break;
|
|
21878
|
+
case /* google.protobuf.Timestamp lastSeenAt */ 7:
|
|
21879
|
+
message.lastSeenAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSeenAt);
|
|
21880
|
+
break;
|
|
21881
|
+
case /* google.protobuf.Timestamp expiresAt */ 8:
|
|
21882
|
+
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
21883
|
+
break;
|
|
21884
|
+
case /* google.protobuf.Struct attrs */ 9:
|
|
21885
|
+
message.attrs = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attrs);
|
|
21460
21886
|
break;
|
|
21461
21887
|
default:
|
|
21462
21888
|
let u = options.readUnknownField;
|
|
@@ -21469,14 +21895,360 @@ class DeviceList$Type extends MessageType<DeviceList> {
|
|
|
21469
21895
|
}
|
|
21470
21896
|
return message;
|
|
21471
21897
|
}
|
|
21472
|
-
|
|
21473
|
-
|
|
21474
|
-
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
|
|
21898
|
+
private binaryReadMap5(map: Device_Status_Posture["signals"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
21899
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof Device_Status_Posture["signals"] | undefined, val: Device_Status_Posture["signals"][any] | undefined;
|
|
21900
|
+
while (reader.pos < end) {
|
|
21901
|
+
let [fieldNo, wireType] = reader.tag();
|
|
21902
|
+
switch (fieldNo) {
|
|
21903
|
+
case 1:
|
|
21904
|
+
key = reader.string();
|
|
21905
|
+
break;
|
|
21906
|
+
case 2:
|
|
21907
|
+
val = reader.int32();
|
|
21908
|
+
break;
|
|
21909
|
+
default: throw new globalThis.Error("unknown map entry field for octelium.api.main.core.v1.Device.Status.Posture.signals");
|
|
21910
|
+
}
|
|
21911
|
+
}
|
|
21912
|
+
map[key ?? ""] = val ?? 0;
|
|
21913
|
+
}
|
|
21914
|
+
internalBinaryWrite(message: Device_Status_Posture, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
21915
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.RiskLevel riskLevel = 1; */
|
|
21916
|
+
if (message.riskLevel !== 0)
|
|
21917
|
+
writer.tag(1, WireType.Varint).int32(message.riskLevel);
|
|
21918
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.SignalState diskEncryption = 2; */
|
|
21919
|
+
if (message.diskEncryption !== 0)
|
|
21920
|
+
writer.tag(2, WireType.Varint).int32(message.diskEncryption);
|
|
21921
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.SignalState compliant = 3; */
|
|
21922
|
+
if (message.compliant !== 0)
|
|
21923
|
+
writer.tag(3, WireType.Varint).int32(message.compliant);
|
|
21924
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.SignalState threatFree = 4; */
|
|
21925
|
+
if (message.threatFree !== 0)
|
|
21926
|
+
writer.tag(4, WireType.Varint).int32(message.threatFree);
|
|
21927
|
+
/* map<string, octelium.api.main.core.v1.Device.Status.Posture.SignalState> signals = 5; */
|
|
21928
|
+
for (let k of globalThis.Object.keys(message.signals))
|
|
21929
|
+
writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.Varint).int32(message.signals[k]).join();
|
|
21930
|
+
/* google.protobuf.Timestamp lastSyncAt = 6; */
|
|
21931
|
+
if (message.lastSyncAt)
|
|
21932
|
+
Timestamp.internalBinaryWrite(message.lastSyncAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
21933
|
+
/* google.protobuf.Timestamp lastSeenAt = 7; */
|
|
21934
|
+
if (message.lastSeenAt)
|
|
21935
|
+
Timestamp.internalBinaryWrite(message.lastSeenAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
21936
|
+
/* google.protobuf.Timestamp expiresAt = 8; */
|
|
21937
|
+
if (message.expiresAt)
|
|
21938
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
21939
|
+
/* google.protobuf.Struct attrs = 9; */
|
|
21940
|
+
if (message.attrs)
|
|
21941
|
+
Struct.internalBinaryWrite(message.attrs, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
21942
|
+
let u = options.writeUnknownFields;
|
|
21943
|
+
if (u !== false)
|
|
21944
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
21945
|
+
return writer;
|
|
21946
|
+
}
|
|
21947
|
+
}
|
|
21948
|
+
/**
|
|
21949
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.Posture
|
|
21950
|
+
*/
|
|
21951
|
+
export const Device_Status_Posture = new Device_Status_Posture$Type();
|
|
21952
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
21953
|
+
class Device_Status_Binding$Type extends MessageType<Device_Status_Binding> {
|
|
21954
|
+
constructor() {
|
|
21955
|
+
super("octelium.api.main.core.v1.Device.Status.Binding", [
|
|
21956
|
+
{ no: 1, name: "uid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
21957
|
+
{ no: 2, name: "ownerRef", kind: "message", T: () => ObjectReference },
|
|
21958
|
+
{ no: 3, name: "externalID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
21959
|
+
{ no: 4, name: "state", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Binding.State", Device_Status_Binding_State] },
|
|
21960
|
+
{ no: 5, name: "acceptanceMethod", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod", Device_Status_Binding_AcceptanceMethod] },
|
|
21961
|
+
{ no: 6, name: "acceptedAt", kind: "message", T: () => Timestamp },
|
|
21962
|
+
{ no: 7, name: "expiresAt", kind: "message", T: () => Timestamp },
|
|
21963
|
+
{ no: 8, name: "lastVerifiedAt", kind: "message", T: () => Timestamp },
|
|
21964
|
+
{ no: 9, name: "verificationFailures", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
21965
|
+
]);
|
|
21966
|
+
}
|
|
21967
|
+
create(value?: PartialMessage<Device_Status_Binding>): Device_Status_Binding {
|
|
21968
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
21969
|
+
message.uid = "";
|
|
21970
|
+
message.externalID = "";
|
|
21971
|
+
message.state = 0;
|
|
21972
|
+
message.acceptanceMethod = 0;
|
|
21973
|
+
message.verificationFailures = 0;
|
|
21974
|
+
if (value !== undefined)
|
|
21975
|
+
reflectionMergePartial<Device_Status_Binding>(this, message, value);
|
|
21976
|
+
return message;
|
|
21977
|
+
}
|
|
21978
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Device_Status_Binding): Device_Status_Binding {
|
|
21979
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
21980
|
+
while (reader.pos < end) {
|
|
21981
|
+
let [fieldNo, wireType] = reader.tag();
|
|
21982
|
+
switch (fieldNo) {
|
|
21983
|
+
case /* string uid */ 1:
|
|
21984
|
+
message.uid = reader.string();
|
|
21985
|
+
break;
|
|
21986
|
+
case /* octelium.api.main.meta.v1.ObjectReference ownerRef */ 2:
|
|
21987
|
+
message.ownerRef = ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.ownerRef);
|
|
21988
|
+
break;
|
|
21989
|
+
case /* string externalID */ 3:
|
|
21990
|
+
message.externalID = reader.string();
|
|
21991
|
+
break;
|
|
21992
|
+
case /* octelium.api.main.core.v1.Device.Status.Binding.State state */ 4:
|
|
21993
|
+
message.state = reader.int32();
|
|
21994
|
+
break;
|
|
21995
|
+
case /* octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod acceptanceMethod */ 5:
|
|
21996
|
+
message.acceptanceMethod = reader.int32();
|
|
21997
|
+
break;
|
|
21998
|
+
case /* google.protobuf.Timestamp acceptedAt */ 6:
|
|
21999
|
+
message.acceptedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.acceptedAt);
|
|
22000
|
+
break;
|
|
22001
|
+
case /* google.protobuf.Timestamp expiresAt */ 7:
|
|
22002
|
+
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
22003
|
+
break;
|
|
22004
|
+
case /* google.protobuf.Timestamp lastVerifiedAt */ 8:
|
|
22005
|
+
message.lastVerifiedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastVerifiedAt);
|
|
22006
|
+
break;
|
|
22007
|
+
case /* uint32 verificationFailures */ 9:
|
|
22008
|
+
message.verificationFailures = reader.uint32();
|
|
22009
|
+
break;
|
|
22010
|
+
default:
|
|
22011
|
+
let u = options.readUnknownField;
|
|
22012
|
+
if (u === "throw")
|
|
22013
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22014
|
+
let d = reader.skip(wireType);
|
|
22015
|
+
if (u !== false)
|
|
22016
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22017
|
+
}
|
|
22018
|
+
}
|
|
22019
|
+
return message;
|
|
22020
|
+
}
|
|
22021
|
+
internalBinaryWrite(message: Device_Status_Binding, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
22022
|
+
/* string uid = 1; */
|
|
22023
|
+
if (message.uid !== "")
|
|
22024
|
+
writer.tag(1, WireType.LengthDelimited).string(message.uid);
|
|
22025
|
+
/* octelium.api.main.meta.v1.ObjectReference ownerRef = 2; */
|
|
22026
|
+
if (message.ownerRef)
|
|
22027
|
+
ObjectReference.internalBinaryWrite(message.ownerRef, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
22028
|
+
/* string externalID = 3; */
|
|
22029
|
+
if (message.externalID !== "")
|
|
22030
|
+
writer.tag(3, WireType.LengthDelimited).string(message.externalID);
|
|
22031
|
+
/* octelium.api.main.core.v1.Device.Status.Binding.State state = 4; */
|
|
22032
|
+
if (message.state !== 0)
|
|
22033
|
+
writer.tag(4, WireType.Varint).int32(message.state);
|
|
22034
|
+
/* octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod acceptanceMethod = 5; */
|
|
22035
|
+
if (message.acceptanceMethod !== 0)
|
|
22036
|
+
writer.tag(5, WireType.Varint).int32(message.acceptanceMethod);
|
|
22037
|
+
/* google.protobuf.Timestamp acceptedAt = 6; */
|
|
22038
|
+
if (message.acceptedAt)
|
|
22039
|
+
Timestamp.internalBinaryWrite(message.acceptedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
22040
|
+
/* google.protobuf.Timestamp expiresAt = 7; */
|
|
22041
|
+
if (message.expiresAt)
|
|
22042
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
22043
|
+
/* google.protobuf.Timestamp lastVerifiedAt = 8; */
|
|
22044
|
+
if (message.lastVerifiedAt)
|
|
22045
|
+
Timestamp.internalBinaryWrite(message.lastVerifiedAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
22046
|
+
/* uint32 verificationFailures = 9; */
|
|
22047
|
+
if (message.verificationFailures !== 0)
|
|
22048
|
+
writer.tag(9, WireType.Varint).uint32(message.verificationFailures);
|
|
22049
|
+
let u = options.writeUnknownFields;
|
|
22050
|
+
if (u !== false)
|
|
22051
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22052
|
+
return writer;
|
|
22053
|
+
}
|
|
22054
|
+
}
|
|
22055
|
+
/**
|
|
22056
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.Binding
|
|
22057
|
+
*/
|
|
22058
|
+
export const Device_Status_Binding = new Device_Status_Binding$Type();
|
|
22059
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
22060
|
+
class Device_Status_ProbeAttempt$Type extends MessageType<Device_Status_ProbeAttempt> {
|
|
22061
|
+
constructor() {
|
|
22062
|
+
super("octelium.api.main.core.v1.Device.Status.ProbeAttempt", [
|
|
22063
|
+
{ no: 1, name: "uid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
22064
|
+
{ no: 2, name: "startedAt", kind: "message", T: () => Timestamp },
|
|
22065
|
+
{ no: 3, name: "probes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClusterConfig_Status_Device_Probe },
|
|
22066
|
+
{ no: 4, name: "results", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Device_Status_ProbeAttempt_Result }
|
|
22067
|
+
]);
|
|
22068
|
+
}
|
|
22069
|
+
create(value?: PartialMessage<Device_Status_ProbeAttempt>): Device_Status_ProbeAttempt {
|
|
22070
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
22071
|
+
message.uid = "";
|
|
22072
|
+
message.probes = [];
|
|
22073
|
+
message.results = [];
|
|
22074
|
+
if (value !== undefined)
|
|
22075
|
+
reflectionMergePartial<Device_Status_ProbeAttempt>(this, message, value);
|
|
22076
|
+
return message;
|
|
22077
|
+
}
|
|
22078
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Device_Status_ProbeAttempt): Device_Status_ProbeAttempt {
|
|
22079
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
22080
|
+
while (reader.pos < end) {
|
|
22081
|
+
let [fieldNo, wireType] = reader.tag();
|
|
22082
|
+
switch (fieldNo) {
|
|
22083
|
+
case /* string uid */ 1:
|
|
22084
|
+
message.uid = reader.string();
|
|
22085
|
+
break;
|
|
22086
|
+
case /* google.protobuf.Timestamp startedAt */ 2:
|
|
22087
|
+
message.startedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedAt);
|
|
22088
|
+
break;
|
|
22089
|
+
case /* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes */ 3:
|
|
22090
|
+
message.probes.push(ClusterConfig_Status_Device_Probe.internalBinaryRead(reader, reader.uint32(), options));
|
|
22091
|
+
break;
|
|
22092
|
+
case /* repeated octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result results */ 4:
|
|
22093
|
+
message.results.push(Device_Status_ProbeAttempt_Result.internalBinaryRead(reader, reader.uint32(), options));
|
|
22094
|
+
break;
|
|
22095
|
+
default:
|
|
22096
|
+
let u = options.readUnknownField;
|
|
22097
|
+
if (u === "throw")
|
|
22098
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22099
|
+
let d = reader.skip(wireType);
|
|
22100
|
+
if (u !== false)
|
|
22101
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22102
|
+
}
|
|
22103
|
+
}
|
|
22104
|
+
return message;
|
|
22105
|
+
}
|
|
22106
|
+
internalBinaryWrite(message: Device_Status_ProbeAttempt, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
22107
|
+
/* string uid = 1; */
|
|
22108
|
+
if (message.uid !== "")
|
|
22109
|
+
writer.tag(1, WireType.LengthDelimited).string(message.uid);
|
|
22110
|
+
/* google.protobuf.Timestamp startedAt = 2; */
|
|
22111
|
+
if (message.startedAt)
|
|
22112
|
+
Timestamp.internalBinaryWrite(message.startedAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
22113
|
+
/* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes = 3; */
|
|
22114
|
+
for (let i = 0; i < message.probes.length; i++)
|
|
22115
|
+
ClusterConfig_Status_Device_Probe.internalBinaryWrite(message.probes[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
22116
|
+
/* repeated octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result results = 4; */
|
|
22117
|
+
for (let i = 0; i < message.results.length; i++)
|
|
22118
|
+
Device_Status_ProbeAttempt_Result.internalBinaryWrite(message.results[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
22119
|
+
let u = options.writeUnknownFields;
|
|
22120
|
+
if (u !== false)
|
|
22121
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22122
|
+
return writer;
|
|
22123
|
+
}
|
|
22124
|
+
}
|
|
22125
|
+
/**
|
|
22126
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.ProbeAttempt
|
|
22127
|
+
*/
|
|
22128
|
+
export const Device_Status_ProbeAttempt = new Device_Status_ProbeAttempt$Type();
|
|
22129
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
22130
|
+
class Device_Status_ProbeAttempt_Result$Type extends MessageType<Device_Status_ProbeAttempt_Result> {
|
|
22131
|
+
constructor() {
|
|
22132
|
+
super("octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result", [
|
|
22133
|
+
{ no: 1, name: "probeID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
22134
|
+
{ no: 2, name: "output", kind: "scalar", oneof: "type", T: 12 /*ScalarType.BYTES*/ },
|
|
22135
|
+
{ no: 3, name: "error", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ }
|
|
22136
|
+
]);
|
|
22137
|
+
}
|
|
22138
|
+
create(value?: PartialMessage<Device_Status_ProbeAttempt_Result>): Device_Status_ProbeAttempt_Result {
|
|
22139
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
22140
|
+
message.probeID = "";
|
|
22141
|
+
message.type = { oneofKind: undefined };
|
|
22142
|
+
if (value !== undefined)
|
|
22143
|
+
reflectionMergePartial<Device_Status_ProbeAttempt_Result>(this, message, value);
|
|
22144
|
+
return message;
|
|
22145
|
+
}
|
|
22146
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Device_Status_ProbeAttempt_Result): Device_Status_ProbeAttempt_Result {
|
|
22147
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
22148
|
+
while (reader.pos < end) {
|
|
22149
|
+
let [fieldNo, wireType] = reader.tag();
|
|
22150
|
+
switch (fieldNo) {
|
|
22151
|
+
case /* string probeID */ 1:
|
|
22152
|
+
message.probeID = reader.string();
|
|
22153
|
+
break;
|
|
22154
|
+
case /* bytes output */ 2:
|
|
22155
|
+
message.type = {
|
|
22156
|
+
oneofKind: "output",
|
|
22157
|
+
output: reader.bytes()
|
|
22158
|
+
};
|
|
22159
|
+
break;
|
|
22160
|
+
case /* string error */ 3:
|
|
22161
|
+
message.type = {
|
|
22162
|
+
oneofKind: "error",
|
|
22163
|
+
error: reader.string()
|
|
22164
|
+
};
|
|
22165
|
+
break;
|
|
22166
|
+
default:
|
|
22167
|
+
let u = options.readUnknownField;
|
|
22168
|
+
if (u === "throw")
|
|
22169
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22170
|
+
let d = reader.skip(wireType);
|
|
22171
|
+
if (u !== false)
|
|
22172
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22173
|
+
}
|
|
22174
|
+
}
|
|
22175
|
+
return message;
|
|
22176
|
+
}
|
|
22177
|
+
internalBinaryWrite(message: Device_Status_ProbeAttempt_Result, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
22178
|
+
/* string probeID = 1; */
|
|
22179
|
+
if (message.probeID !== "")
|
|
22180
|
+
writer.tag(1, WireType.LengthDelimited).string(message.probeID);
|
|
22181
|
+
/* bytes output = 2; */
|
|
22182
|
+
if (message.type.oneofKind === "output")
|
|
22183
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.type.output);
|
|
22184
|
+
/* string error = 3; */
|
|
22185
|
+
if (message.type.oneofKind === "error")
|
|
22186
|
+
writer.tag(3, WireType.LengthDelimited).string(message.type.error);
|
|
22187
|
+
let u = options.writeUnknownFields;
|
|
22188
|
+
if (u !== false)
|
|
22189
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22190
|
+
return writer;
|
|
22191
|
+
}
|
|
22192
|
+
}
|
|
22193
|
+
/**
|
|
22194
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result
|
|
22195
|
+
*/
|
|
22196
|
+
export const Device_Status_ProbeAttempt_Result = new Device_Status_ProbeAttempt_Result$Type();
|
|
22197
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
22198
|
+
class DeviceList$Type extends MessageType<DeviceList> {
|
|
22199
|
+
constructor() {
|
|
22200
|
+
super("octelium.api.main.core.v1.DeviceList", [
|
|
22201
|
+
{ no: 1, name: "apiVersion", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
22202
|
+
{ no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
22203
|
+
{ no: 3, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Device },
|
|
22204
|
+
{ no: 4, name: "listResponseMeta", kind: "message", T: () => ListResponseMeta }
|
|
22205
|
+
]);
|
|
22206
|
+
}
|
|
22207
|
+
create(value?: PartialMessage<DeviceList>): DeviceList {
|
|
22208
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
22209
|
+
message.apiVersion = "";
|
|
22210
|
+
message.kind = "";
|
|
22211
|
+
message.items = [];
|
|
22212
|
+
if (value !== undefined)
|
|
22213
|
+
reflectionMergePartial<DeviceList>(this, message, value);
|
|
22214
|
+
return message;
|
|
22215
|
+
}
|
|
22216
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceList): DeviceList {
|
|
22217
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
22218
|
+
while (reader.pos < end) {
|
|
22219
|
+
let [fieldNo, wireType] = reader.tag();
|
|
22220
|
+
switch (fieldNo) {
|
|
22221
|
+
case /* string apiVersion */ 1:
|
|
22222
|
+
message.apiVersion = reader.string();
|
|
22223
|
+
break;
|
|
22224
|
+
case /* string kind */ 2:
|
|
22225
|
+
message.kind = reader.string();
|
|
22226
|
+
break;
|
|
22227
|
+
case /* repeated octelium.api.main.core.v1.Device items */ 3:
|
|
22228
|
+
message.items.push(Device.internalBinaryRead(reader, reader.uint32(), options));
|
|
22229
|
+
break;
|
|
22230
|
+
case /* octelium.api.main.meta.v1.ListResponseMeta listResponseMeta */ 4:
|
|
22231
|
+
message.listResponseMeta = ListResponseMeta.internalBinaryRead(reader, reader.uint32(), options, message.listResponseMeta);
|
|
22232
|
+
break;
|
|
22233
|
+
default:
|
|
22234
|
+
let u = options.readUnknownField;
|
|
22235
|
+
if (u === "throw")
|
|
22236
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22237
|
+
let d = reader.skip(wireType);
|
|
22238
|
+
if (u !== false)
|
|
22239
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22240
|
+
}
|
|
22241
|
+
}
|
|
22242
|
+
return message;
|
|
22243
|
+
}
|
|
22244
|
+
internalBinaryWrite(message: DeviceList, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
22245
|
+
/* string apiVersion = 1; */
|
|
22246
|
+
if (message.apiVersion !== "")
|
|
22247
|
+
writer.tag(1, WireType.LengthDelimited).string(message.apiVersion);
|
|
22248
|
+
/* string kind = 2; */
|
|
22249
|
+
if (message.kind !== "")
|
|
22250
|
+
writer.tag(2, WireType.LengthDelimited).string(message.kind);
|
|
22251
|
+
/* repeated octelium.api.main.core.v1.Device items = 3; */
|
|
21480
22252
|
for (let i = 0; i < message.items.length; i++)
|
|
21481
22253
|
Device.internalBinaryWrite(message.items[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
21482
22254
|
/* octelium.api.main.meta.v1.ListResponseMeta listResponseMeta = 4; */
|
|
@@ -27061,7 +27833,8 @@ class Gateway_Status$Type extends MessageType<Gateway_Status> {
|
|
|
27061
27833
|
{ no: 5, name: "wireguard", kind: "message", T: () => Gateway_Status_WireGuard },
|
|
27062
27834
|
{ no: 6, name: "quicv0", kind: "message", T: () => Gateway_Status_QUICV0 },
|
|
27063
27835
|
{ no: 7, name: "publicIPs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
27064
|
-
{ no: 8, name: "hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
27836
|
+
{ no: 8, name: "hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
27837
|
+
{ no: 9, name: "index", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
27065
27838
|
]);
|
|
27066
27839
|
}
|
|
27067
27840
|
create(value?: PartialMessage<Gateway_Status>): Gateway_Status {
|
|
@@ -27102,6 +27875,9 @@ class Gateway_Status$Type extends MessageType<Gateway_Status> {
|
|
|
27102
27875
|
case /* string hostname */ 8:
|
|
27103
27876
|
message.hostname = reader.string();
|
|
27104
27877
|
break;
|
|
27878
|
+
case /* optional int32 index */ 9:
|
|
27879
|
+
message.index = reader.int32();
|
|
27880
|
+
break;
|
|
27105
27881
|
default:
|
|
27106
27882
|
let u = options.readUnknownField;
|
|
27107
27883
|
if (u === "throw")
|
|
@@ -27138,6 +27914,9 @@ class Gateway_Status$Type extends MessageType<Gateway_Status> {
|
|
|
27138
27914
|
/* string hostname = 8; */
|
|
27139
27915
|
if (message.hostname !== "")
|
|
27140
27916
|
writer.tag(8, WireType.LengthDelimited).string(message.hostname);
|
|
27917
|
+
/* optional int32 index = 9; */
|
|
27918
|
+
if (message.index !== undefined)
|
|
27919
|
+
writer.tag(9, WireType.Varint).int32(message.index);
|
|
27141
27920
|
let u = options.writeUnknownFields;
|
|
27142
27921
|
if (u !== false)
|
|
27143
27922
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -29482,7 +30261,8 @@ class ClusterConfig_Status$Type extends MessageType<ClusterConfig_Status> {
|
|
|
29482
30261
|
{ no: 1, name: "domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
29483
30262
|
{ no: 2, name: "network", kind: "message", T: () => ClusterConfig_Status_Network },
|
|
29484
30263
|
{ no: 3, name: "networkConfig", kind: "message", T: () => ClusterConfig_Status_NetworkConfig },
|
|
29485
|
-
{ no: 4, name: "secretManager", kind: "message", T: () => ClusterConfig_Status_SecretManager }
|
|
30264
|
+
{ no: 4, name: "secretManager", kind: "message", T: () => ClusterConfig_Status_SecretManager },
|
|
30265
|
+
{ no: 5, name: "device", kind: "message", T: () => ClusterConfig_Status_Device }
|
|
29486
30266
|
]);
|
|
29487
30267
|
}
|
|
29488
30268
|
create(value?: PartialMessage<ClusterConfig_Status>): ClusterConfig_Status {
|
|
@@ -29509,6 +30289,9 @@ class ClusterConfig_Status$Type extends MessageType<ClusterConfig_Status> {
|
|
|
29509
30289
|
case /* octelium.api.main.core.v1.ClusterConfig.Status.SecretManager secretManager */ 4:
|
|
29510
30290
|
message.secretManager = ClusterConfig_Status_SecretManager.internalBinaryRead(reader, reader.uint32(), options, message.secretManager);
|
|
29511
30291
|
break;
|
|
30292
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device device */ 5:
|
|
30293
|
+
message.device = ClusterConfig_Status_Device.internalBinaryRead(reader, reader.uint32(), options, message.device);
|
|
30294
|
+
break;
|
|
29512
30295
|
default:
|
|
29513
30296
|
let u = options.readUnknownField;
|
|
29514
30297
|
if (u === "throw")
|
|
@@ -29533,6 +30316,9 @@ class ClusterConfig_Status$Type extends MessageType<ClusterConfig_Status> {
|
|
|
29533
30316
|
/* octelium.api.main.core.v1.ClusterConfig.Status.SecretManager secretManager = 4; */
|
|
29534
30317
|
if (message.secretManager)
|
|
29535
30318
|
ClusterConfig_Status_SecretManager.internalBinaryWrite(message.secretManager, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
30319
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device device = 5; */
|
|
30320
|
+
if (message.device)
|
|
30321
|
+
ClusterConfig_Status_Device.internalBinaryWrite(message.device, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
29536
30322
|
let u = options.writeUnknownFields;
|
|
29537
30323
|
if (u !== false)
|
|
29538
30324
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -30014,6 +30800,334 @@ class ClusterConfig_Status_SecretManager_TLS$Type extends MessageType<ClusterCon
|
|
|
30014
30800
|
*/
|
|
30015
30801
|
export const ClusterConfig_Status_SecretManager_TLS = new ClusterConfig_Status_SecretManager_TLS$Type();
|
|
30016
30802
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
30803
|
+
class ClusterConfig_Status_Device$Type extends MessageType<ClusterConfig_Status_Device> {
|
|
30804
|
+
constructor() {
|
|
30805
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device", [
|
|
30806
|
+
{ no: 1, name: "probes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClusterConfig_Status_Device_Probe }
|
|
30807
|
+
]);
|
|
30808
|
+
}
|
|
30809
|
+
create(value?: PartialMessage<ClusterConfig_Status_Device>): ClusterConfig_Status_Device {
|
|
30810
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
30811
|
+
message.probes = [];
|
|
30812
|
+
if (value !== undefined)
|
|
30813
|
+
reflectionMergePartial<ClusterConfig_Status_Device>(this, message, value);
|
|
30814
|
+
return message;
|
|
30815
|
+
}
|
|
30816
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClusterConfig_Status_Device): ClusterConfig_Status_Device {
|
|
30817
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
30818
|
+
while (reader.pos < end) {
|
|
30819
|
+
let [fieldNo, wireType] = reader.tag();
|
|
30820
|
+
switch (fieldNo) {
|
|
30821
|
+
case /* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes */ 1:
|
|
30822
|
+
message.probes.push(ClusterConfig_Status_Device_Probe.internalBinaryRead(reader, reader.uint32(), options));
|
|
30823
|
+
break;
|
|
30824
|
+
default:
|
|
30825
|
+
let u = options.readUnknownField;
|
|
30826
|
+
if (u === "throw")
|
|
30827
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
30828
|
+
let d = reader.skip(wireType);
|
|
30829
|
+
if (u !== false)
|
|
30830
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
30831
|
+
}
|
|
30832
|
+
}
|
|
30833
|
+
return message;
|
|
30834
|
+
}
|
|
30835
|
+
internalBinaryWrite(message: ClusterConfig_Status_Device, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
30836
|
+
/* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes = 1; */
|
|
30837
|
+
for (let i = 0; i < message.probes.length; i++)
|
|
30838
|
+
ClusterConfig_Status_Device_Probe.internalBinaryWrite(message.probes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
30839
|
+
let u = options.writeUnknownFields;
|
|
30840
|
+
if (u !== false)
|
|
30841
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
30842
|
+
return writer;
|
|
30843
|
+
}
|
|
30844
|
+
}
|
|
30845
|
+
/**
|
|
30846
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device
|
|
30847
|
+
*/
|
|
30848
|
+
export const ClusterConfig_Status_Device = new ClusterConfig_Status_Device$Type();
|
|
30849
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
30850
|
+
class ClusterConfig_Status_Device_Probe$Type extends MessageType<ClusterConfig_Status_Device_Probe> {
|
|
30851
|
+
constructor() {
|
|
30852
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe", [
|
|
30853
|
+
{ no: 1, name: "ownerRef", kind: "message", T: () => ObjectReference },
|
|
30854
|
+
{ no: 2, name: "osType", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.OSType", Device_Status_OSType] },
|
|
30855
|
+
{ no: 3, name: "requireElevation", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
30856
|
+
{ no: 4, name: "condition", kind: "message", T: () => Condition },
|
|
30857
|
+
{ no: 5, name: "runCommand", kind: "message", oneof: "type", T: () => ClusterConfig_Status_Device_Probe_RunCommand },
|
|
30858
|
+
{ no: 6, name: "readFile", kind: "message", oneof: "type", T: () => ClusterConfig_Status_Device_Probe_ReadFile },
|
|
30859
|
+
{ no: 7, name: "readRegistry", kind: "message", oneof: "type", T: () => ClusterConfig_Status_Device_Probe_ReadRegistry }
|
|
30860
|
+
]);
|
|
30861
|
+
}
|
|
30862
|
+
create(value?: PartialMessage<ClusterConfig_Status_Device_Probe>): ClusterConfig_Status_Device_Probe {
|
|
30863
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
30864
|
+
message.osType = 0;
|
|
30865
|
+
message.requireElevation = false;
|
|
30866
|
+
message.type = { oneofKind: undefined };
|
|
30867
|
+
if (value !== undefined)
|
|
30868
|
+
reflectionMergePartial<ClusterConfig_Status_Device_Probe>(this, message, value);
|
|
30869
|
+
return message;
|
|
30870
|
+
}
|
|
30871
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClusterConfig_Status_Device_Probe): ClusterConfig_Status_Device_Probe {
|
|
30872
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
30873
|
+
while (reader.pos < end) {
|
|
30874
|
+
let [fieldNo, wireType] = reader.tag();
|
|
30875
|
+
switch (fieldNo) {
|
|
30876
|
+
case /* octelium.api.main.meta.v1.ObjectReference ownerRef */ 1:
|
|
30877
|
+
message.ownerRef = ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.ownerRef);
|
|
30878
|
+
break;
|
|
30879
|
+
case /* octelium.api.main.core.v1.Device.Status.OSType osType */ 2:
|
|
30880
|
+
message.osType = reader.int32();
|
|
30881
|
+
break;
|
|
30882
|
+
case /* bool requireElevation */ 3:
|
|
30883
|
+
message.requireElevation = reader.bool();
|
|
30884
|
+
break;
|
|
30885
|
+
case /* octelium.api.main.core.v1.Condition condition */ 4:
|
|
30886
|
+
message.condition = Condition.internalBinaryRead(reader, reader.uint32(), options, message.condition);
|
|
30887
|
+
break;
|
|
30888
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand runCommand */ 5:
|
|
30889
|
+
message.type = {
|
|
30890
|
+
oneofKind: "runCommand",
|
|
30891
|
+
runCommand: ClusterConfig_Status_Device_Probe_RunCommand.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).runCommand)
|
|
30892
|
+
};
|
|
30893
|
+
break;
|
|
30894
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile readFile */ 6:
|
|
30895
|
+
message.type = {
|
|
30896
|
+
oneofKind: "readFile",
|
|
30897
|
+
readFile: ClusterConfig_Status_Device_Probe_ReadFile.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).readFile)
|
|
30898
|
+
};
|
|
30899
|
+
break;
|
|
30900
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry readRegistry */ 7:
|
|
30901
|
+
message.type = {
|
|
30902
|
+
oneofKind: "readRegistry",
|
|
30903
|
+
readRegistry: ClusterConfig_Status_Device_Probe_ReadRegistry.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).readRegistry)
|
|
30904
|
+
};
|
|
30905
|
+
break;
|
|
30906
|
+
default:
|
|
30907
|
+
let u = options.readUnknownField;
|
|
30908
|
+
if (u === "throw")
|
|
30909
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
30910
|
+
let d = reader.skip(wireType);
|
|
30911
|
+
if (u !== false)
|
|
30912
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
30913
|
+
}
|
|
30914
|
+
}
|
|
30915
|
+
return message;
|
|
30916
|
+
}
|
|
30917
|
+
internalBinaryWrite(message: ClusterConfig_Status_Device_Probe, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
30918
|
+
/* octelium.api.main.meta.v1.ObjectReference ownerRef = 1; */
|
|
30919
|
+
if (message.ownerRef)
|
|
30920
|
+
ObjectReference.internalBinaryWrite(message.ownerRef, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
30921
|
+
/* octelium.api.main.core.v1.Device.Status.OSType osType = 2; */
|
|
30922
|
+
if (message.osType !== 0)
|
|
30923
|
+
writer.tag(2, WireType.Varint).int32(message.osType);
|
|
30924
|
+
/* bool requireElevation = 3; */
|
|
30925
|
+
if (message.requireElevation !== false)
|
|
30926
|
+
writer.tag(3, WireType.Varint).bool(message.requireElevation);
|
|
30927
|
+
/* octelium.api.main.core.v1.Condition condition = 4; */
|
|
30928
|
+
if (message.condition)
|
|
30929
|
+
Condition.internalBinaryWrite(message.condition, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
30930
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand runCommand = 5; */
|
|
30931
|
+
if (message.type.oneofKind === "runCommand")
|
|
30932
|
+
ClusterConfig_Status_Device_Probe_RunCommand.internalBinaryWrite(message.type.runCommand, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
30933
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile readFile = 6; */
|
|
30934
|
+
if (message.type.oneofKind === "readFile")
|
|
30935
|
+
ClusterConfig_Status_Device_Probe_ReadFile.internalBinaryWrite(message.type.readFile, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
30936
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry readRegistry = 7; */
|
|
30937
|
+
if (message.type.oneofKind === "readRegistry")
|
|
30938
|
+
ClusterConfig_Status_Device_Probe_ReadRegistry.internalBinaryWrite(message.type.readRegistry, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
30939
|
+
let u = options.writeUnknownFields;
|
|
30940
|
+
if (u !== false)
|
|
30941
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
30942
|
+
return writer;
|
|
30943
|
+
}
|
|
30944
|
+
}
|
|
30945
|
+
/**
|
|
30946
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe
|
|
30947
|
+
*/
|
|
30948
|
+
export const ClusterConfig_Status_Device_Probe = new ClusterConfig_Status_Device_Probe$Type();
|
|
30949
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
30950
|
+
class ClusterConfig_Status_Device_Probe_RunCommand$Type extends MessageType<ClusterConfig_Status_Device_Probe_RunCommand> {
|
|
30951
|
+
constructor() {
|
|
30952
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand", [
|
|
30953
|
+
{ no: 1, name: "command", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
30954
|
+
{ no: 2, name: "args", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
30955
|
+
{ no: 3, name: "timeoutSeconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
30956
|
+
{ no: 4, name: "maxOutputBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
30957
|
+
]);
|
|
30958
|
+
}
|
|
30959
|
+
create(value?: PartialMessage<ClusterConfig_Status_Device_Probe_RunCommand>): ClusterConfig_Status_Device_Probe_RunCommand {
|
|
30960
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
30961
|
+
message.command = "";
|
|
30962
|
+
message.args = [];
|
|
30963
|
+
message.timeoutSeconds = 0;
|
|
30964
|
+
message.maxOutputBytes = 0;
|
|
30965
|
+
if (value !== undefined)
|
|
30966
|
+
reflectionMergePartial<ClusterConfig_Status_Device_Probe_RunCommand>(this, message, value);
|
|
30967
|
+
return message;
|
|
30968
|
+
}
|
|
30969
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClusterConfig_Status_Device_Probe_RunCommand): ClusterConfig_Status_Device_Probe_RunCommand {
|
|
30970
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
30971
|
+
while (reader.pos < end) {
|
|
30972
|
+
let [fieldNo, wireType] = reader.tag();
|
|
30973
|
+
switch (fieldNo) {
|
|
30974
|
+
case /* string command */ 1:
|
|
30975
|
+
message.command = reader.string();
|
|
30976
|
+
break;
|
|
30977
|
+
case /* repeated string args */ 2:
|
|
30978
|
+
message.args.push(reader.string());
|
|
30979
|
+
break;
|
|
30980
|
+
case /* uint32 timeoutSeconds */ 3:
|
|
30981
|
+
message.timeoutSeconds = reader.uint32();
|
|
30982
|
+
break;
|
|
30983
|
+
case /* uint32 maxOutputBytes */ 4:
|
|
30984
|
+
message.maxOutputBytes = reader.uint32();
|
|
30985
|
+
break;
|
|
30986
|
+
default:
|
|
30987
|
+
let u = options.readUnknownField;
|
|
30988
|
+
if (u === "throw")
|
|
30989
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
30990
|
+
let d = reader.skip(wireType);
|
|
30991
|
+
if (u !== false)
|
|
30992
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
30993
|
+
}
|
|
30994
|
+
}
|
|
30995
|
+
return message;
|
|
30996
|
+
}
|
|
30997
|
+
internalBinaryWrite(message: ClusterConfig_Status_Device_Probe_RunCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
30998
|
+
/* string command = 1; */
|
|
30999
|
+
if (message.command !== "")
|
|
31000
|
+
writer.tag(1, WireType.LengthDelimited).string(message.command);
|
|
31001
|
+
/* repeated string args = 2; */
|
|
31002
|
+
for (let i = 0; i < message.args.length; i++)
|
|
31003
|
+
writer.tag(2, WireType.LengthDelimited).string(message.args[i]);
|
|
31004
|
+
/* uint32 timeoutSeconds = 3; */
|
|
31005
|
+
if (message.timeoutSeconds !== 0)
|
|
31006
|
+
writer.tag(3, WireType.Varint).uint32(message.timeoutSeconds);
|
|
31007
|
+
/* uint32 maxOutputBytes = 4; */
|
|
31008
|
+
if (message.maxOutputBytes !== 0)
|
|
31009
|
+
writer.tag(4, WireType.Varint).uint32(message.maxOutputBytes);
|
|
31010
|
+
let u = options.writeUnknownFields;
|
|
31011
|
+
if (u !== false)
|
|
31012
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
31013
|
+
return writer;
|
|
31014
|
+
}
|
|
31015
|
+
}
|
|
31016
|
+
/**
|
|
31017
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand
|
|
31018
|
+
*/
|
|
31019
|
+
export const ClusterConfig_Status_Device_Probe_RunCommand = new ClusterConfig_Status_Device_Probe_RunCommand$Type();
|
|
31020
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
31021
|
+
class ClusterConfig_Status_Device_Probe_ReadFile$Type extends MessageType<ClusterConfig_Status_Device_Probe_ReadFile> {
|
|
31022
|
+
constructor() {
|
|
31023
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile", [
|
|
31024
|
+
{ no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
31025
|
+
{ no: 2, name: "maxBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
31026
|
+
]);
|
|
31027
|
+
}
|
|
31028
|
+
create(value?: PartialMessage<ClusterConfig_Status_Device_Probe_ReadFile>): ClusterConfig_Status_Device_Probe_ReadFile {
|
|
31029
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
31030
|
+
message.path = "";
|
|
31031
|
+
message.maxBytes = 0;
|
|
31032
|
+
if (value !== undefined)
|
|
31033
|
+
reflectionMergePartial<ClusterConfig_Status_Device_Probe_ReadFile>(this, message, value);
|
|
31034
|
+
return message;
|
|
31035
|
+
}
|
|
31036
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClusterConfig_Status_Device_Probe_ReadFile): ClusterConfig_Status_Device_Probe_ReadFile {
|
|
31037
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
31038
|
+
while (reader.pos < end) {
|
|
31039
|
+
let [fieldNo, wireType] = reader.tag();
|
|
31040
|
+
switch (fieldNo) {
|
|
31041
|
+
case /* string path */ 1:
|
|
31042
|
+
message.path = reader.string();
|
|
31043
|
+
break;
|
|
31044
|
+
case /* uint32 maxBytes */ 2:
|
|
31045
|
+
message.maxBytes = reader.uint32();
|
|
31046
|
+
break;
|
|
31047
|
+
default:
|
|
31048
|
+
let u = options.readUnknownField;
|
|
31049
|
+
if (u === "throw")
|
|
31050
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
31051
|
+
let d = reader.skip(wireType);
|
|
31052
|
+
if (u !== false)
|
|
31053
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
31054
|
+
}
|
|
31055
|
+
}
|
|
31056
|
+
return message;
|
|
31057
|
+
}
|
|
31058
|
+
internalBinaryWrite(message: ClusterConfig_Status_Device_Probe_ReadFile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
31059
|
+
/* string path = 1; */
|
|
31060
|
+
if (message.path !== "")
|
|
31061
|
+
writer.tag(1, WireType.LengthDelimited).string(message.path);
|
|
31062
|
+
/* uint32 maxBytes = 2; */
|
|
31063
|
+
if (message.maxBytes !== 0)
|
|
31064
|
+
writer.tag(2, WireType.Varint).uint32(message.maxBytes);
|
|
31065
|
+
let u = options.writeUnknownFields;
|
|
31066
|
+
if (u !== false)
|
|
31067
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
31068
|
+
return writer;
|
|
31069
|
+
}
|
|
31070
|
+
}
|
|
31071
|
+
/**
|
|
31072
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile
|
|
31073
|
+
*/
|
|
31074
|
+
export const ClusterConfig_Status_Device_Probe_ReadFile = new ClusterConfig_Status_Device_Probe_ReadFile$Type();
|
|
31075
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
31076
|
+
class ClusterConfig_Status_Device_Probe_ReadRegistry$Type extends MessageType<ClusterConfig_Status_Device_Probe_ReadRegistry> {
|
|
31077
|
+
constructor() {
|
|
31078
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry", [
|
|
31079
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
31080
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
31081
|
+
]);
|
|
31082
|
+
}
|
|
31083
|
+
create(value?: PartialMessage<ClusterConfig_Status_Device_Probe_ReadRegistry>): ClusterConfig_Status_Device_Probe_ReadRegistry {
|
|
31084
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
31085
|
+
message.key = "";
|
|
31086
|
+
message.name = "";
|
|
31087
|
+
if (value !== undefined)
|
|
31088
|
+
reflectionMergePartial<ClusterConfig_Status_Device_Probe_ReadRegistry>(this, message, value);
|
|
31089
|
+
return message;
|
|
31090
|
+
}
|
|
31091
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClusterConfig_Status_Device_Probe_ReadRegistry): ClusterConfig_Status_Device_Probe_ReadRegistry {
|
|
31092
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
31093
|
+
while (reader.pos < end) {
|
|
31094
|
+
let [fieldNo, wireType] = reader.tag();
|
|
31095
|
+
switch (fieldNo) {
|
|
31096
|
+
case /* string key */ 1:
|
|
31097
|
+
message.key = reader.string();
|
|
31098
|
+
break;
|
|
31099
|
+
case /* string name */ 2:
|
|
31100
|
+
message.name = reader.string();
|
|
31101
|
+
break;
|
|
31102
|
+
default:
|
|
31103
|
+
let u = options.readUnknownField;
|
|
31104
|
+
if (u === "throw")
|
|
31105
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
31106
|
+
let d = reader.skip(wireType);
|
|
31107
|
+
if (u !== false)
|
|
31108
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
31109
|
+
}
|
|
31110
|
+
}
|
|
31111
|
+
return message;
|
|
31112
|
+
}
|
|
31113
|
+
internalBinaryWrite(message: ClusterConfig_Status_Device_Probe_ReadRegistry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
31114
|
+
/* string key = 1; */
|
|
31115
|
+
if (message.key !== "")
|
|
31116
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
|
31117
|
+
/* string name = 2; */
|
|
31118
|
+
if (message.name !== "")
|
|
31119
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
31120
|
+
let u = options.writeUnknownFields;
|
|
31121
|
+
if (u !== false)
|
|
31122
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
31123
|
+
return writer;
|
|
31124
|
+
}
|
|
31125
|
+
}
|
|
31126
|
+
/**
|
|
31127
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry
|
|
31128
|
+
*/
|
|
31129
|
+
export const ClusterConfig_Status_Device_Probe_ReadRegistry = new ClusterConfig_Status_Device_Probe_ReadRegistry$Type();
|
|
31130
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
30017
31131
|
class RequestContext$Type extends MessageType<RequestContext> {
|
|
30018
31132
|
constructor() {
|
|
30019
31133
|
super("octelium.api.main.core.v1.RequestContext", [
|