@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.js
CHANGED
|
@@ -627,6 +627,126 @@ export var Device_Spec_State;
|
|
|
627
627
|
*/
|
|
628
628
|
Device_Spec_State[Device_Spec_State["REJECTED"] = 3] = "REJECTED";
|
|
629
629
|
})(Device_Spec_State || (Device_Spec_State = {}));
|
|
630
|
+
/**
|
|
631
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Posture.RiskLevel
|
|
632
|
+
*/
|
|
633
|
+
export var Device_Status_Posture_RiskLevel;
|
|
634
|
+
(function (Device_Status_Posture_RiskLevel) {
|
|
635
|
+
/**
|
|
636
|
+
* @generated from protobuf enum value: RISK_LEVEL_UNKNOWN = 0;
|
|
637
|
+
*/
|
|
638
|
+
Device_Status_Posture_RiskLevel[Device_Status_Posture_RiskLevel["RISK_LEVEL_UNKNOWN"] = 0] = "RISK_LEVEL_UNKNOWN";
|
|
639
|
+
/**
|
|
640
|
+
* @generated from protobuf enum value: LOW = 1;
|
|
641
|
+
*/
|
|
642
|
+
Device_Status_Posture_RiskLevel[Device_Status_Posture_RiskLevel["LOW"] = 1] = "LOW";
|
|
643
|
+
/**
|
|
644
|
+
* @generated from protobuf enum value: MEDIUM = 2;
|
|
645
|
+
*/
|
|
646
|
+
Device_Status_Posture_RiskLevel[Device_Status_Posture_RiskLevel["MEDIUM"] = 2] = "MEDIUM";
|
|
647
|
+
/**
|
|
648
|
+
* @generated from protobuf enum value: HIGH = 3;
|
|
649
|
+
*/
|
|
650
|
+
Device_Status_Posture_RiskLevel[Device_Status_Posture_RiskLevel["HIGH"] = 3] = "HIGH";
|
|
651
|
+
/**
|
|
652
|
+
* @generated from protobuf enum value: CRITICAL = 4;
|
|
653
|
+
*/
|
|
654
|
+
Device_Status_Posture_RiskLevel[Device_Status_Posture_RiskLevel["CRITICAL"] = 4] = "CRITICAL";
|
|
655
|
+
})(Device_Status_Posture_RiskLevel || (Device_Status_Posture_RiskLevel = {}));
|
|
656
|
+
/**
|
|
657
|
+
* SignalState semantics under the single-provider model: adapters MUST
|
|
658
|
+
* set NOT_APPLICABLE for every named signal outside their provider's
|
|
659
|
+
* domain (an EDR adapter sets compliant = NOT_APPLICABLE, an MDM
|
|
660
|
+
* adapter sets threatFree = NOT_APPLICABLE). SIGNAL_STATE_UNKNOWN is
|
|
661
|
+
* reserved for "the provider should know this but did not report it"
|
|
662
|
+
* and fails closed in policy. Leaving a signal UNKNOWN when it is
|
|
663
|
+
* actually out-of-domain will lock devices out under any policy that
|
|
664
|
+
* requires that signal.
|
|
665
|
+
*
|
|
666
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Posture.SignalState
|
|
667
|
+
*/
|
|
668
|
+
export var Device_Status_Posture_SignalState;
|
|
669
|
+
(function (Device_Status_Posture_SignalState) {
|
|
670
|
+
/**
|
|
671
|
+
* @generated from protobuf enum value: SIGNAL_STATE_UNKNOWN = 0;
|
|
672
|
+
*/
|
|
673
|
+
Device_Status_Posture_SignalState[Device_Status_Posture_SignalState["SIGNAL_STATE_UNKNOWN"] = 0] = "SIGNAL_STATE_UNKNOWN";
|
|
674
|
+
/**
|
|
675
|
+
* @generated from protobuf enum value: PASS = 1;
|
|
676
|
+
*/
|
|
677
|
+
Device_Status_Posture_SignalState[Device_Status_Posture_SignalState["PASS"] = 1] = "PASS";
|
|
678
|
+
/**
|
|
679
|
+
* @generated from protobuf enum value: FAIL = 2;
|
|
680
|
+
*/
|
|
681
|
+
Device_Status_Posture_SignalState[Device_Status_Posture_SignalState["FAIL"] = 2] = "FAIL";
|
|
682
|
+
/**
|
|
683
|
+
* @generated from protobuf enum value: NOT_APPLICABLE = 3;
|
|
684
|
+
*/
|
|
685
|
+
Device_Status_Posture_SignalState[Device_Status_Posture_SignalState["NOT_APPLICABLE"] = 3] = "NOT_APPLICABLE";
|
|
686
|
+
})(Device_Status_Posture_SignalState || (Device_Status_Posture_SignalState = {}));
|
|
687
|
+
/**
|
|
688
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Binding.State
|
|
689
|
+
*/
|
|
690
|
+
export var Device_Status_Binding_State;
|
|
691
|
+
(function (Device_Status_Binding_State) {
|
|
692
|
+
/**
|
|
693
|
+
* @generated from protobuf enum value: STATE_UNKNOWN = 0;
|
|
694
|
+
*/
|
|
695
|
+
Device_Status_Binding_State[Device_Status_Binding_State["STATE_UNKNOWN"] = 0] = "STATE_UNKNOWN";
|
|
696
|
+
/**
|
|
697
|
+
* WAITING_APPROVAL means a unique candidate exists and MANUAL
|
|
698
|
+
* approval mode requires administrator action before acceptance.
|
|
699
|
+
* Expiry (per expiresAt) clears the Binding rather than tombstoning
|
|
700
|
+
* it, so a later attempt can retry.
|
|
701
|
+
*
|
|
702
|
+
* @generated from protobuf enum value: WAITING_APPROVAL = 1;
|
|
703
|
+
*/
|
|
704
|
+
Device_Status_Binding_State[Device_Status_Binding_State["WAITING_APPROVAL"] = 1] = "WAITING_APPROVAL";
|
|
705
|
+
/**
|
|
706
|
+
* @generated from protobuf enum value: ACCEPTED = 2;
|
|
707
|
+
*/
|
|
708
|
+
Device_Status_Binding_State[Device_Status_Binding_State["ACCEPTED"] = 2] = "ACCEPTED";
|
|
709
|
+
/**
|
|
710
|
+
* REJECTED is a sticky record that this Device must not bind to
|
|
711
|
+
* ownerRef, set by administrator rejection or by losing a uniqueness
|
|
712
|
+
* claim to another Device. Cleared only by reset.
|
|
713
|
+
*
|
|
714
|
+
* @generated from protobuf enum value: REJECTED = 3;
|
|
715
|
+
*/
|
|
716
|
+
Device_Status_Binding_State[Device_Status_Binding_State["REJECTED"] = 3] = "REJECTED";
|
|
717
|
+
/**
|
|
718
|
+
* AMBIGUOUS means candidate selection could not resolve uniquely:
|
|
719
|
+
* multiple DeviceManagers matched at equal priority, a provider
|
|
720
|
+
* inventory matched non-uniquely, or probe and identity sources
|
|
721
|
+
* disagreed within one DeviceManager. The specifics are in message.
|
|
722
|
+
* Recomputed on each reconcile; clears itself once resolved.
|
|
723
|
+
*
|
|
724
|
+
* @generated from protobuf enum value: AMBIGUOUS = 4;
|
|
725
|
+
*/
|
|
726
|
+
Device_Status_Binding_State[Device_Status_Binding_State["AMBIGUOUS"] = 4] = "AMBIGUOUS";
|
|
727
|
+
})(Device_Status_Binding_State || (Device_Status_Binding_State = {}));
|
|
728
|
+
/**
|
|
729
|
+
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod
|
|
730
|
+
*/
|
|
731
|
+
export var Device_Status_Binding_AcceptanceMethod;
|
|
732
|
+
(function (Device_Status_Binding_AcceptanceMethod) {
|
|
733
|
+
/**
|
|
734
|
+
* @generated from protobuf enum value: ACCEPTANCE_METHOD_UNKNOWN = 0;
|
|
735
|
+
*/
|
|
736
|
+
Device_Status_Binding_AcceptanceMethod[Device_Status_Binding_AcceptanceMethod["ACCEPTANCE_METHOD_UNKNOWN"] = 0] = "ACCEPTANCE_METHOD_UNKNOWN";
|
|
737
|
+
/**
|
|
738
|
+
* @generated from protobuf enum value: AUTOMATIC = 1;
|
|
739
|
+
*/
|
|
740
|
+
Device_Status_Binding_AcceptanceMethod[Device_Status_Binding_AcceptanceMethod["AUTOMATIC"] = 1] = "AUTOMATIC";
|
|
741
|
+
/**
|
|
742
|
+
* @generated from protobuf enum value: EMAIL = 2;
|
|
743
|
+
*/
|
|
744
|
+
Device_Status_Binding_AcceptanceMethod[Device_Status_Binding_AcceptanceMethod["EMAIL"] = 2] = "EMAIL";
|
|
745
|
+
/**
|
|
746
|
+
* @generated from protobuf enum value: MANUAL = 3;
|
|
747
|
+
*/
|
|
748
|
+
Device_Status_Binding_AcceptanceMethod[Device_Status_Binding_AcceptanceMethod["MANUAL"] = 3] = "MANUAL";
|
|
749
|
+
})(Device_Status_Binding_AcceptanceMethod || (Device_Status_Binding_AcceptanceMethod = {}));
|
|
630
750
|
/**
|
|
631
751
|
* @generated from protobuf enum octelium.api.main.core.v1.Device.Status.OSType
|
|
632
752
|
*/
|
|
@@ -12753,7 +12873,10 @@ class Device_Status$Type extends MessageType {
|
|
|
12753
12873
|
{ no: 5, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12754
12874
|
{ no: 6, name: "serialNumber", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12755
12875
|
{ no: 7, name: "isLocked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
12756
|
-
{ no: 8, name: "macAddresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
12876
|
+
{ no: 8, name: "macAddresses", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
12877
|
+
{ no: 9, name: "posture", kind: "message", T: () => Device_Status_Posture },
|
|
12878
|
+
{ no: 10, name: "binding", kind: "message", T: () => Device_Status_Binding },
|
|
12879
|
+
{ no: 11, name: "probeAttempt", kind: "message", T: () => Device_Status_ProbeAttempt }
|
|
12757
12880
|
]);
|
|
12758
12881
|
}
|
|
12759
12882
|
create(value) {
|
|
@@ -12798,6 +12921,15 @@ class Device_Status$Type extends MessageType {
|
|
|
12798
12921
|
case /* repeated string macAddresses */ 8:
|
|
12799
12922
|
message.macAddresses.push(reader.string());
|
|
12800
12923
|
break;
|
|
12924
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture posture */ 9:
|
|
12925
|
+
message.posture = Device_Status_Posture.internalBinaryRead(reader, reader.uint32(), options, message.posture);
|
|
12926
|
+
break;
|
|
12927
|
+
case /* octelium.api.main.core.v1.Device.Status.Binding binding */ 10:
|
|
12928
|
+
message.binding = Device_Status_Binding.internalBinaryRead(reader, reader.uint32(), options, message.binding);
|
|
12929
|
+
break;
|
|
12930
|
+
case /* octelium.api.main.core.v1.Device.Status.ProbeAttempt probeAttempt */ 11:
|
|
12931
|
+
message.probeAttempt = Device_Status_ProbeAttempt.internalBinaryRead(reader, reader.uint32(), options, message.probeAttempt);
|
|
12932
|
+
break;
|
|
12801
12933
|
default:
|
|
12802
12934
|
let u = options.readUnknownField;
|
|
12803
12935
|
if (u === "throw")
|
|
@@ -12854,6 +12986,15 @@ class Device_Status$Type extends MessageType {
|
|
|
12854
12986
|
/* repeated string macAddresses = 8; */
|
|
12855
12987
|
for (let i = 0; i < message.macAddresses.length; i++)
|
|
12856
12988
|
writer.tag(8, WireType.LengthDelimited).string(message.macAddresses[i]);
|
|
12989
|
+
/* octelium.api.main.core.v1.Device.Status.Posture posture = 9; */
|
|
12990
|
+
if (message.posture)
|
|
12991
|
+
Device_Status_Posture.internalBinaryWrite(message.posture, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
12992
|
+
/* octelium.api.main.core.v1.Device.Status.Binding binding = 10; */
|
|
12993
|
+
if (message.binding)
|
|
12994
|
+
Device_Status_Binding.internalBinaryWrite(message.binding, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
12995
|
+
/* octelium.api.main.core.v1.Device.Status.ProbeAttempt probeAttempt = 11; */
|
|
12996
|
+
if (message.probeAttempt)
|
|
12997
|
+
Device_Status_ProbeAttempt.internalBinaryWrite(message.probeAttempt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
12857
12998
|
let u = options.writeUnknownFields;
|
|
12858
12999
|
if (u !== false)
|
|
12859
13000
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -12865,6 +13006,374 @@ class Device_Status$Type extends MessageType {
|
|
|
12865
13006
|
*/
|
|
12866
13007
|
export const Device_Status = new Device_Status$Type();
|
|
12867
13008
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
13009
|
+
class Device_Status_Posture$Type extends MessageType {
|
|
13010
|
+
constructor() {
|
|
13011
|
+
super("octelium.api.main.core.v1.Device.Status.Posture", [
|
|
13012
|
+
{ no: 1, name: "riskLevel", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.RiskLevel", Device_Status_Posture_RiskLevel] },
|
|
13013
|
+
{ no: 2, name: "diskEncryption", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.SignalState", Device_Status_Posture_SignalState] },
|
|
13014
|
+
{ no: 3, name: "compliant", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.SignalState", Device_Status_Posture_SignalState] },
|
|
13015
|
+
{ no: 4, name: "threatFree", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Posture.SignalState", Device_Status_Posture_SignalState] },
|
|
13016
|
+
{ 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] } },
|
|
13017
|
+
{ no: 6, name: "lastSyncAt", kind: "message", T: () => Timestamp },
|
|
13018
|
+
{ no: 7, name: "lastSeenAt", kind: "message", T: () => Timestamp },
|
|
13019
|
+
{ no: 8, name: "expiresAt", kind: "message", T: () => Timestamp },
|
|
13020
|
+
{ no: 9, name: "attrs", kind: "message", T: () => Struct }
|
|
13021
|
+
]);
|
|
13022
|
+
}
|
|
13023
|
+
create(value) {
|
|
13024
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
13025
|
+
message.riskLevel = 0;
|
|
13026
|
+
message.diskEncryption = 0;
|
|
13027
|
+
message.compliant = 0;
|
|
13028
|
+
message.threatFree = 0;
|
|
13029
|
+
message.signals = {};
|
|
13030
|
+
if (value !== undefined)
|
|
13031
|
+
reflectionMergePartial(this, message, value);
|
|
13032
|
+
return message;
|
|
13033
|
+
}
|
|
13034
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13035
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13036
|
+
while (reader.pos < end) {
|
|
13037
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13038
|
+
switch (fieldNo) {
|
|
13039
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.RiskLevel riskLevel */ 1:
|
|
13040
|
+
message.riskLevel = reader.int32();
|
|
13041
|
+
break;
|
|
13042
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.SignalState diskEncryption */ 2:
|
|
13043
|
+
message.diskEncryption = reader.int32();
|
|
13044
|
+
break;
|
|
13045
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.SignalState compliant */ 3:
|
|
13046
|
+
message.compliant = reader.int32();
|
|
13047
|
+
break;
|
|
13048
|
+
case /* octelium.api.main.core.v1.Device.Status.Posture.SignalState threatFree */ 4:
|
|
13049
|
+
message.threatFree = reader.int32();
|
|
13050
|
+
break;
|
|
13051
|
+
case /* map<string, octelium.api.main.core.v1.Device.Status.Posture.SignalState> signals */ 5:
|
|
13052
|
+
this.binaryReadMap5(message.signals, reader, options);
|
|
13053
|
+
break;
|
|
13054
|
+
case /* google.protobuf.Timestamp lastSyncAt */ 6:
|
|
13055
|
+
message.lastSyncAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSyncAt);
|
|
13056
|
+
break;
|
|
13057
|
+
case /* google.protobuf.Timestamp lastSeenAt */ 7:
|
|
13058
|
+
message.lastSeenAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastSeenAt);
|
|
13059
|
+
break;
|
|
13060
|
+
case /* google.protobuf.Timestamp expiresAt */ 8:
|
|
13061
|
+
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
13062
|
+
break;
|
|
13063
|
+
case /* google.protobuf.Struct attrs */ 9:
|
|
13064
|
+
message.attrs = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attrs);
|
|
13065
|
+
break;
|
|
13066
|
+
default:
|
|
13067
|
+
let u = options.readUnknownField;
|
|
13068
|
+
if (u === "throw")
|
|
13069
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13070
|
+
let d = reader.skip(wireType);
|
|
13071
|
+
if (u !== false)
|
|
13072
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13073
|
+
}
|
|
13074
|
+
}
|
|
13075
|
+
return message;
|
|
13076
|
+
}
|
|
13077
|
+
binaryReadMap5(map, reader, options) {
|
|
13078
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
13079
|
+
while (reader.pos < end) {
|
|
13080
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13081
|
+
switch (fieldNo) {
|
|
13082
|
+
case 1:
|
|
13083
|
+
key = reader.string();
|
|
13084
|
+
break;
|
|
13085
|
+
case 2:
|
|
13086
|
+
val = reader.int32();
|
|
13087
|
+
break;
|
|
13088
|
+
default: throw new globalThis.Error("unknown map entry field for octelium.api.main.core.v1.Device.Status.Posture.signals");
|
|
13089
|
+
}
|
|
13090
|
+
}
|
|
13091
|
+
map[key ?? ""] = val ?? 0;
|
|
13092
|
+
}
|
|
13093
|
+
internalBinaryWrite(message, writer, options) {
|
|
13094
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.RiskLevel riskLevel = 1; */
|
|
13095
|
+
if (message.riskLevel !== 0)
|
|
13096
|
+
writer.tag(1, WireType.Varint).int32(message.riskLevel);
|
|
13097
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.SignalState diskEncryption = 2; */
|
|
13098
|
+
if (message.diskEncryption !== 0)
|
|
13099
|
+
writer.tag(2, WireType.Varint).int32(message.diskEncryption);
|
|
13100
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.SignalState compliant = 3; */
|
|
13101
|
+
if (message.compliant !== 0)
|
|
13102
|
+
writer.tag(3, WireType.Varint).int32(message.compliant);
|
|
13103
|
+
/* octelium.api.main.core.v1.Device.Status.Posture.SignalState threatFree = 4; */
|
|
13104
|
+
if (message.threatFree !== 0)
|
|
13105
|
+
writer.tag(4, WireType.Varint).int32(message.threatFree);
|
|
13106
|
+
/* map<string, octelium.api.main.core.v1.Device.Status.Posture.SignalState> signals = 5; */
|
|
13107
|
+
for (let k of globalThis.Object.keys(message.signals))
|
|
13108
|
+
writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.Varint).int32(message.signals[k]).join();
|
|
13109
|
+
/* google.protobuf.Timestamp lastSyncAt = 6; */
|
|
13110
|
+
if (message.lastSyncAt)
|
|
13111
|
+
Timestamp.internalBinaryWrite(message.lastSyncAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
13112
|
+
/* google.protobuf.Timestamp lastSeenAt = 7; */
|
|
13113
|
+
if (message.lastSeenAt)
|
|
13114
|
+
Timestamp.internalBinaryWrite(message.lastSeenAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
13115
|
+
/* google.protobuf.Timestamp expiresAt = 8; */
|
|
13116
|
+
if (message.expiresAt)
|
|
13117
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
13118
|
+
/* google.protobuf.Struct attrs = 9; */
|
|
13119
|
+
if (message.attrs)
|
|
13120
|
+
Struct.internalBinaryWrite(message.attrs, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
13121
|
+
let u = options.writeUnknownFields;
|
|
13122
|
+
if (u !== false)
|
|
13123
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13124
|
+
return writer;
|
|
13125
|
+
}
|
|
13126
|
+
}
|
|
13127
|
+
/**
|
|
13128
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.Posture
|
|
13129
|
+
*/
|
|
13130
|
+
export const Device_Status_Posture = new Device_Status_Posture$Type();
|
|
13131
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
13132
|
+
class Device_Status_Binding$Type extends MessageType {
|
|
13133
|
+
constructor() {
|
|
13134
|
+
super("octelium.api.main.core.v1.Device.Status.Binding", [
|
|
13135
|
+
{ no: 1, name: "uid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13136
|
+
{ no: 2, name: "ownerRef", kind: "message", T: () => ObjectReference },
|
|
13137
|
+
{ no: 3, name: "externalID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13138
|
+
{ no: 4, name: "state", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Binding.State", Device_Status_Binding_State] },
|
|
13139
|
+
{ no: 5, name: "acceptanceMethod", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod", Device_Status_Binding_AcceptanceMethod] },
|
|
13140
|
+
{ no: 6, name: "acceptedAt", kind: "message", T: () => Timestamp },
|
|
13141
|
+
{ no: 7, name: "expiresAt", kind: "message", T: () => Timestamp },
|
|
13142
|
+
{ no: 8, name: "lastVerifiedAt", kind: "message", T: () => Timestamp },
|
|
13143
|
+
{ no: 9, name: "verificationFailures", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
13144
|
+
]);
|
|
13145
|
+
}
|
|
13146
|
+
create(value) {
|
|
13147
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
13148
|
+
message.uid = "";
|
|
13149
|
+
message.externalID = "";
|
|
13150
|
+
message.state = 0;
|
|
13151
|
+
message.acceptanceMethod = 0;
|
|
13152
|
+
message.verificationFailures = 0;
|
|
13153
|
+
if (value !== undefined)
|
|
13154
|
+
reflectionMergePartial(this, message, value);
|
|
13155
|
+
return message;
|
|
13156
|
+
}
|
|
13157
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13158
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13159
|
+
while (reader.pos < end) {
|
|
13160
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13161
|
+
switch (fieldNo) {
|
|
13162
|
+
case /* string uid */ 1:
|
|
13163
|
+
message.uid = reader.string();
|
|
13164
|
+
break;
|
|
13165
|
+
case /* octelium.api.main.meta.v1.ObjectReference ownerRef */ 2:
|
|
13166
|
+
message.ownerRef = ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.ownerRef);
|
|
13167
|
+
break;
|
|
13168
|
+
case /* string externalID */ 3:
|
|
13169
|
+
message.externalID = reader.string();
|
|
13170
|
+
break;
|
|
13171
|
+
case /* octelium.api.main.core.v1.Device.Status.Binding.State state */ 4:
|
|
13172
|
+
message.state = reader.int32();
|
|
13173
|
+
break;
|
|
13174
|
+
case /* octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod acceptanceMethod */ 5:
|
|
13175
|
+
message.acceptanceMethod = reader.int32();
|
|
13176
|
+
break;
|
|
13177
|
+
case /* google.protobuf.Timestamp acceptedAt */ 6:
|
|
13178
|
+
message.acceptedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.acceptedAt);
|
|
13179
|
+
break;
|
|
13180
|
+
case /* google.protobuf.Timestamp expiresAt */ 7:
|
|
13181
|
+
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
13182
|
+
break;
|
|
13183
|
+
case /* google.protobuf.Timestamp lastVerifiedAt */ 8:
|
|
13184
|
+
message.lastVerifiedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastVerifiedAt);
|
|
13185
|
+
break;
|
|
13186
|
+
case /* uint32 verificationFailures */ 9:
|
|
13187
|
+
message.verificationFailures = reader.uint32();
|
|
13188
|
+
break;
|
|
13189
|
+
default:
|
|
13190
|
+
let u = options.readUnknownField;
|
|
13191
|
+
if (u === "throw")
|
|
13192
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13193
|
+
let d = reader.skip(wireType);
|
|
13194
|
+
if (u !== false)
|
|
13195
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13196
|
+
}
|
|
13197
|
+
}
|
|
13198
|
+
return message;
|
|
13199
|
+
}
|
|
13200
|
+
internalBinaryWrite(message, writer, options) {
|
|
13201
|
+
/* string uid = 1; */
|
|
13202
|
+
if (message.uid !== "")
|
|
13203
|
+
writer.tag(1, WireType.LengthDelimited).string(message.uid);
|
|
13204
|
+
/* octelium.api.main.meta.v1.ObjectReference ownerRef = 2; */
|
|
13205
|
+
if (message.ownerRef)
|
|
13206
|
+
ObjectReference.internalBinaryWrite(message.ownerRef, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
13207
|
+
/* string externalID = 3; */
|
|
13208
|
+
if (message.externalID !== "")
|
|
13209
|
+
writer.tag(3, WireType.LengthDelimited).string(message.externalID);
|
|
13210
|
+
/* octelium.api.main.core.v1.Device.Status.Binding.State state = 4; */
|
|
13211
|
+
if (message.state !== 0)
|
|
13212
|
+
writer.tag(4, WireType.Varint).int32(message.state);
|
|
13213
|
+
/* octelium.api.main.core.v1.Device.Status.Binding.AcceptanceMethod acceptanceMethod = 5; */
|
|
13214
|
+
if (message.acceptanceMethod !== 0)
|
|
13215
|
+
writer.tag(5, WireType.Varint).int32(message.acceptanceMethod);
|
|
13216
|
+
/* google.protobuf.Timestamp acceptedAt = 6; */
|
|
13217
|
+
if (message.acceptedAt)
|
|
13218
|
+
Timestamp.internalBinaryWrite(message.acceptedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
13219
|
+
/* google.protobuf.Timestamp expiresAt = 7; */
|
|
13220
|
+
if (message.expiresAt)
|
|
13221
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
13222
|
+
/* google.protobuf.Timestamp lastVerifiedAt = 8; */
|
|
13223
|
+
if (message.lastVerifiedAt)
|
|
13224
|
+
Timestamp.internalBinaryWrite(message.lastVerifiedAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
13225
|
+
/* uint32 verificationFailures = 9; */
|
|
13226
|
+
if (message.verificationFailures !== 0)
|
|
13227
|
+
writer.tag(9, WireType.Varint).uint32(message.verificationFailures);
|
|
13228
|
+
let u = options.writeUnknownFields;
|
|
13229
|
+
if (u !== false)
|
|
13230
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13231
|
+
return writer;
|
|
13232
|
+
}
|
|
13233
|
+
}
|
|
13234
|
+
/**
|
|
13235
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.Binding
|
|
13236
|
+
*/
|
|
13237
|
+
export const Device_Status_Binding = new Device_Status_Binding$Type();
|
|
13238
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
13239
|
+
class Device_Status_ProbeAttempt$Type extends MessageType {
|
|
13240
|
+
constructor() {
|
|
13241
|
+
super("octelium.api.main.core.v1.Device.Status.ProbeAttempt", [
|
|
13242
|
+
{ no: 1, name: "uid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13243
|
+
{ no: 2, name: "startedAt", kind: "message", T: () => Timestamp },
|
|
13244
|
+
{ no: 3, name: "probes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClusterConfig_Status_Device_Probe },
|
|
13245
|
+
{ no: 4, name: "results", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Device_Status_ProbeAttempt_Result }
|
|
13246
|
+
]);
|
|
13247
|
+
}
|
|
13248
|
+
create(value) {
|
|
13249
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
13250
|
+
message.uid = "";
|
|
13251
|
+
message.probes = [];
|
|
13252
|
+
message.results = [];
|
|
13253
|
+
if (value !== undefined)
|
|
13254
|
+
reflectionMergePartial(this, message, value);
|
|
13255
|
+
return message;
|
|
13256
|
+
}
|
|
13257
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13258
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13259
|
+
while (reader.pos < end) {
|
|
13260
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13261
|
+
switch (fieldNo) {
|
|
13262
|
+
case /* string uid */ 1:
|
|
13263
|
+
message.uid = reader.string();
|
|
13264
|
+
break;
|
|
13265
|
+
case /* google.protobuf.Timestamp startedAt */ 2:
|
|
13266
|
+
message.startedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedAt);
|
|
13267
|
+
break;
|
|
13268
|
+
case /* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes */ 3:
|
|
13269
|
+
message.probes.push(ClusterConfig_Status_Device_Probe.internalBinaryRead(reader, reader.uint32(), options));
|
|
13270
|
+
break;
|
|
13271
|
+
case /* repeated octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result results */ 4:
|
|
13272
|
+
message.results.push(Device_Status_ProbeAttempt_Result.internalBinaryRead(reader, reader.uint32(), options));
|
|
13273
|
+
break;
|
|
13274
|
+
default:
|
|
13275
|
+
let u = options.readUnknownField;
|
|
13276
|
+
if (u === "throw")
|
|
13277
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13278
|
+
let d = reader.skip(wireType);
|
|
13279
|
+
if (u !== false)
|
|
13280
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13281
|
+
}
|
|
13282
|
+
}
|
|
13283
|
+
return message;
|
|
13284
|
+
}
|
|
13285
|
+
internalBinaryWrite(message, writer, options) {
|
|
13286
|
+
/* string uid = 1; */
|
|
13287
|
+
if (message.uid !== "")
|
|
13288
|
+
writer.tag(1, WireType.LengthDelimited).string(message.uid);
|
|
13289
|
+
/* google.protobuf.Timestamp startedAt = 2; */
|
|
13290
|
+
if (message.startedAt)
|
|
13291
|
+
Timestamp.internalBinaryWrite(message.startedAt, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
13292
|
+
/* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes = 3; */
|
|
13293
|
+
for (let i = 0; i < message.probes.length; i++)
|
|
13294
|
+
ClusterConfig_Status_Device_Probe.internalBinaryWrite(message.probes[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
13295
|
+
/* repeated octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result results = 4; */
|
|
13296
|
+
for (let i = 0; i < message.results.length; i++)
|
|
13297
|
+
Device_Status_ProbeAttempt_Result.internalBinaryWrite(message.results[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
13298
|
+
let u = options.writeUnknownFields;
|
|
13299
|
+
if (u !== false)
|
|
13300
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13301
|
+
return writer;
|
|
13302
|
+
}
|
|
13303
|
+
}
|
|
13304
|
+
/**
|
|
13305
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.ProbeAttempt
|
|
13306
|
+
*/
|
|
13307
|
+
export const Device_Status_ProbeAttempt = new Device_Status_ProbeAttempt$Type();
|
|
13308
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
13309
|
+
class Device_Status_ProbeAttempt_Result$Type extends MessageType {
|
|
13310
|
+
constructor() {
|
|
13311
|
+
super("octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result", [
|
|
13312
|
+
{ no: 1, name: "probeID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
13313
|
+
{ no: 2, name: "output", kind: "scalar", oneof: "type", T: 12 /*ScalarType.BYTES*/ },
|
|
13314
|
+
{ no: 3, name: "error", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ }
|
|
13315
|
+
]);
|
|
13316
|
+
}
|
|
13317
|
+
create(value) {
|
|
13318
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
13319
|
+
message.probeID = "";
|
|
13320
|
+
message.type = { oneofKind: undefined };
|
|
13321
|
+
if (value !== undefined)
|
|
13322
|
+
reflectionMergePartial(this, message, value);
|
|
13323
|
+
return message;
|
|
13324
|
+
}
|
|
13325
|
+
internalBinaryRead(reader, length, options, target) {
|
|
13326
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
13327
|
+
while (reader.pos < end) {
|
|
13328
|
+
let [fieldNo, wireType] = reader.tag();
|
|
13329
|
+
switch (fieldNo) {
|
|
13330
|
+
case /* string probeID */ 1:
|
|
13331
|
+
message.probeID = reader.string();
|
|
13332
|
+
break;
|
|
13333
|
+
case /* bytes output */ 2:
|
|
13334
|
+
message.type = {
|
|
13335
|
+
oneofKind: "output",
|
|
13336
|
+
output: reader.bytes()
|
|
13337
|
+
};
|
|
13338
|
+
break;
|
|
13339
|
+
case /* string error */ 3:
|
|
13340
|
+
message.type = {
|
|
13341
|
+
oneofKind: "error",
|
|
13342
|
+
error: reader.string()
|
|
13343
|
+
};
|
|
13344
|
+
break;
|
|
13345
|
+
default:
|
|
13346
|
+
let u = options.readUnknownField;
|
|
13347
|
+
if (u === "throw")
|
|
13348
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
13349
|
+
let d = reader.skip(wireType);
|
|
13350
|
+
if (u !== false)
|
|
13351
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
13352
|
+
}
|
|
13353
|
+
}
|
|
13354
|
+
return message;
|
|
13355
|
+
}
|
|
13356
|
+
internalBinaryWrite(message, writer, options) {
|
|
13357
|
+
/* string probeID = 1; */
|
|
13358
|
+
if (message.probeID !== "")
|
|
13359
|
+
writer.tag(1, WireType.LengthDelimited).string(message.probeID);
|
|
13360
|
+
/* bytes output = 2; */
|
|
13361
|
+
if (message.type.oneofKind === "output")
|
|
13362
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.type.output);
|
|
13363
|
+
/* string error = 3; */
|
|
13364
|
+
if (message.type.oneofKind === "error")
|
|
13365
|
+
writer.tag(3, WireType.LengthDelimited).string(message.type.error);
|
|
13366
|
+
let u = options.writeUnknownFields;
|
|
13367
|
+
if (u !== false)
|
|
13368
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
13369
|
+
return writer;
|
|
13370
|
+
}
|
|
13371
|
+
}
|
|
13372
|
+
/**
|
|
13373
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.Device.Status.ProbeAttempt.Result
|
|
13374
|
+
*/
|
|
13375
|
+
export const Device_Status_ProbeAttempt_Result = new Device_Status_ProbeAttempt_Result$Type();
|
|
13376
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
12868
13377
|
class DeviceList$Type extends MessageType {
|
|
12869
13378
|
constructor() {
|
|
12870
13379
|
super("octelium.api.main.core.v1.DeviceList", [
|
|
@@ -18503,7 +19012,8 @@ class Gateway_Status$Type extends MessageType {
|
|
|
18503
19012
|
{ no: 5, name: "wireguard", kind: "message", T: () => Gateway_Status_WireGuard },
|
|
18504
19013
|
{ no: 6, name: "quicv0", kind: "message", T: () => Gateway_Status_QUICV0 },
|
|
18505
19014
|
{ no: 7, name: "publicIPs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
18506
|
-
{ no: 8, name: "hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
19015
|
+
{ no: 8, name: "hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
19016
|
+
{ no: 9, name: "index", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
18507
19017
|
]);
|
|
18508
19018
|
}
|
|
18509
19019
|
create(value) {
|
|
@@ -18544,6 +19054,9 @@ class Gateway_Status$Type extends MessageType {
|
|
|
18544
19054
|
case /* string hostname */ 8:
|
|
18545
19055
|
message.hostname = reader.string();
|
|
18546
19056
|
break;
|
|
19057
|
+
case /* optional int32 index */ 9:
|
|
19058
|
+
message.index = reader.int32();
|
|
19059
|
+
break;
|
|
18547
19060
|
default:
|
|
18548
19061
|
let u = options.readUnknownField;
|
|
18549
19062
|
if (u === "throw")
|
|
@@ -18580,6 +19093,9 @@ class Gateway_Status$Type extends MessageType {
|
|
|
18580
19093
|
/* string hostname = 8; */
|
|
18581
19094
|
if (message.hostname !== "")
|
|
18582
19095
|
writer.tag(8, WireType.LengthDelimited).string(message.hostname);
|
|
19096
|
+
/* optional int32 index = 9; */
|
|
19097
|
+
if (message.index !== undefined)
|
|
19098
|
+
writer.tag(9, WireType.Varint).int32(message.index);
|
|
18583
19099
|
let u = options.writeUnknownFields;
|
|
18584
19100
|
if (u !== false)
|
|
18585
19101
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -20924,7 +21440,8 @@ class ClusterConfig_Status$Type extends MessageType {
|
|
|
20924
21440
|
{ no: 1, name: "domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
20925
21441
|
{ no: 2, name: "network", kind: "message", T: () => ClusterConfig_Status_Network },
|
|
20926
21442
|
{ no: 3, name: "networkConfig", kind: "message", T: () => ClusterConfig_Status_NetworkConfig },
|
|
20927
|
-
{ no: 4, name: "secretManager", kind: "message", T: () => ClusterConfig_Status_SecretManager }
|
|
21443
|
+
{ no: 4, name: "secretManager", kind: "message", T: () => ClusterConfig_Status_SecretManager },
|
|
21444
|
+
{ no: 5, name: "device", kind: "message", T: () => ClusterConfig_Status_Device }
|
|
20928
21445
|
]);
|
|
20929
21446
|
}
|
|
20930
21447
|
create(value) {
|
|
@@ -20951,6 +21468,9 @@ class ClusterConfig_Status$Type extends MessageType {
|
|
|
20951
21468
|
case /* octelium.api.main.core.v1.ClusterConfig.Status.SecretManager secretManager */ 4:
|
|
20952
21469
|
message.secretManager = ClusterConfig_Status_SecretManager.internalBinaryRead(reader, reader.uint32(), options, message.secretManager);
|
|
20953
21470
|
break;
|
|
21471
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device device */ 5:
|
|
21472
|
+
message.device = ClusterConfig_Status_Device.internalBinaryRead(reader, reader.uint32(), options, message.device);
|
|
21473
|
+
break;
|
|
20954
21474
|
default:
|
|
20955
21475
|
let u = options.readUnknownField;
|
|
20956
21476
|
if (u === "throw")
|
|
@@ -20975,6 +21495,9 @@ class ClusterConfig_Status$Type extends MessageType {
|
|
|
20975
21495
|
/* octelium.api.main.core.v1.ClusterConfig.Status.SecretManager secretManager = 4; */
|
|
20976
21496
|
if (message.secretManager)
|
|
20977
21497
|
ClusterConfig_Status_SecretManager.internalBinaryWrite(message.secretManager, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
21498
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device device = 5; */
|
|
21499
|
+
if (message.device)
|
|
21500
|
+
ClusterConfig_Status_Device.internalBinaryWrite(message.device, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
20978
21501
|
let u = options.writeUnknownFields;
|
|
20979
21502
|
if (u !== false)
|
|
20980
21503
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -21456,6 +21979,334 @@ class ClusterConfig_Status_SecretManager_TLS$Type extends MessageType {
|
|
|
21456
21979
|
*/
|
|
21457
21980
|
export const ClusterConfig_Status_SecretManager_TLS = new ClusterConfig_Status_SecretManager_TLS$Type();
|
|
21458
21981
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
21982
|
+
class ClusterConfig_Status_Device$Type extends MessageType {
|
|
21983
|
+
constructor() {
|
|
21984
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device", [
|
|
21985
|
+
{ no: 1, name: "probes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClusterConfig_Status_Device_Probe }
|
|
21986
|
+
]);
|
|
21987
|
+
}
|
|
21988
|
+
create(value) {
|
|
21989
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
21990
|
+
message.probes = [];
|
|
21991
|
+
if (value !== undefined)
|
|
21992
|
+
reflectionMergePartial(this, message, value);
|
|
21993
|
+
return message;
|
|
21994
|
+
}
|
|
21995
|
+
internalBinaryRead(reader, length, options, target) {
|
|
21996
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
21997
|
+
while (reader.pos < end) {
|
|
21998
|
+
let [fieldNo, wireType] = reader.tag();
|
|
21999
|
+
switch (fieldNo) {
|
|
22000
|
+
case /* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes */ 1:
|
|
22001
|
+
message.probes.push(ClusterConfig_Status_Device_Probe.internalBinaryRead(reader, reader.uint32(), options));
|
|
22002
|
+
break;
|
|
22003
|
+
default:
|
|
22004
|
+
let u = options.readUnknownField;
|
|
22005
|
+
if (u === "throw")
|
|
22006
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22007
|
+
let d = reader.skip(wireType);
|
|
22008
|
+
if (u !== false)
|
|
22009
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22010
|
+
}
|
|
22011
|
+
}
|
|
22012
|
+
return message;
|
|
22013
|
+
}
|
|
22014
|
+
internalBinaryWrite(message, writer, options) {
|
|
22015
|
+
/* repeated octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe probes = 1; */
|
|
22016
|
+
for (let i = 0; i < message.probes.length; i++)
|
|
22017
|
+
ClusterConfig_Status_Device_Probe.internalBinaryWrite(message.probes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
22018
|
+
let u = options.writeUnknownFields;
|
|
22019
|
+
if (u !== false)
|
|
22020
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22021
|
+
return writer;
|
|
22022
|
+
}
|
|
22023
|
+
}
|
|
22024
|
+
/**
|
|
22025
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device
|
|
22026
|
+
*/
|
|
22027
|
+
export const ClusterConfig_Status_Device = new ClusterConfig_Status_Device$Type();
|
|
22028
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
22029
|
+
class ClusterConfig_Status_Device_Probe$Type extends MessageType {
|
|
22030
|
+
constructor() {
|
|
22031
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe", [
|
|
22032
|
+
{ no: 1, name: "ownerRef", kind: "message", T: () => ObjectReference },
|
|
22033
|
+
{ no: 2, name: "osType", kind: "enum", T: () => ["octelium.api.main.core.v1.Device.Status.OSType", Device_Status_OSType] },
|
|
22034
|
+
{ no: 3, name: "requireElevation", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
22035
|
+
{ no: 4, name: "condition", kind: "message", T: () => Condition },
|
|
22036
|
+
{ no: 5, name: "runCommand", kind: "message", oneof: "type", T: () => ClusterConfig_Status_Device_Probe_RunCommand },
|
|
22037
|
+
{ no: 6, name: "readFile", kind: "message", oneof: "type", T: () => ClusterConfig_Status_Device_Probe_ReadFile },
|
|
22038
|
+
{ no: 7, name: "readRegistry", kind: "message", oneof: "type", T: () => ClusterConfig_Status_Device_Probe_ReadRegistry }
|
|
22039
|
+
]);
|
|
22040
|
+
}
|
|
22041
|
+
create(value) {
|
|
22042
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22043
|
+
message.osType = 0;
|
|
22044
|
+
message.requireElevation = false;
|
|
22045
|
+
message.type = { oneofKind: undefined };
|
|
22046
|
+
if (value !== undefined)
|
|
22047
|
+
reflectionMergePartial(this, message, value);
|
|
22048
|
+
return message;
|
|
22049
|
+
}
|
|
22050
|
+
internalBinaryRead(reader, length, options, target) {
|
|
22051
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
22052
|
+
while (reader.pos < end) {
|
|
22053
|
+
let [fieldNo, wireType] = reader.tag();
|
|
22054
|
+
switch (fieldNo) {
|
|
22055
|
+
case /* octelium.api.main.meta.v1.ObjectReference ownerRef */ 1:
|
|
22056
|
+
message.ownerRef = ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.ownerRef);
|
|
22057
|
+
break;
|
|
22058
|
+
case /* octelium.api.main.core.v1.Device.Status.OSType osType */ 2:
|
|
22059
|
+
message.osType = reader.int32();
|
|
22060
|
+
break;
|
|
22061
|
+
case /* bool requireElevation */ 3:
|
|
22062
|
+
message.requireElevation = reader.bool();
|
|
22063
|
+
break;
|
|
22064
|
+
case /* octelium.api.main.core.v1.Condition condition */ 4:
|
|
22065
|
+
message.condition = Condition.internalBinaryRead(reader, reader.uint32(), options, message.condition);
|
|
22066
|
+
break;
|
|
22067
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand runCommand */ 5:
|
|
22068
|
+
message.type = {
|
|
22069
|
+
oneofKind: "runCommand",
|
|
22070
|
+
runCommand: ClusterConfig_Status_Device_Probe_RunCommand.internalBinaryRead(reader, reader.uint32(), options, message.type.runCommand)
|
|
22071
|
+
};
|
|
22072
|
+
break;
|
|
22073
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile readFile */ 6:
|
|
22074
|
+
message.type = {
|
|
22075
|
+
oneofKind: "readFile",
|
|
22076
|
+
readFile: ClusterConfig_Status_Device_Probe_ReadFile.internalBinaryRead(reader, reader.uint32(), options, message.type.readFile)
|
|
22077
|
+
};
|
|
22078
|
+
break;
|
|
22079
|
+
case /* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry readRegistry */ 7:
|
|
22080
|
+
message.type = {
|
|
22081
|
+
oneofKind: "readRegistry",
|
|
22082
|
+
readRegistry: ClusterConfig_Status_Device_Probe_ReadRegistry.internalBinaryRead(reader, reader.uint32(), options, message.type.readRegistry)
|
|
22083
|
+
};
|
|
22084
|
+
break;
|
|
22085
|
+
default:
|
|
22086
|
+
let u = options.readUnknownField;
|
|
22087
|
+
if (u === "throw")
|
|
22088
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22089
|
+
let d = reader.skip(wireType);
|
|
22090
|
+
if (u !== false)
|
|
22091
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22092
|
+
}
|
|
22093
|
+
}
|
|
22094
|
+
return message;
|
|
22095
|
+
}
|
|
22096
|
+
internalBinaryWrite(message, writer, options) {
|
|
22097
|
+
/* octelium.api.main.meta.v1.ObjectReference ownerRef = 1; */
|
|
22098
|
+
if (message.ownerRef)
|
|
22099
|
+
ObjectReference.internalBinaryWrite(message.ownerRef, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
22100
|
+
/* octelium.api.main.core.v1.Device.Status.OSType osType = 2; */
|
|
22101
|
+
if (message.osType !== 0)
|
|
22102
|
+
writer.tag(2, WireType.Varint).int32(message.osType);
|
|
22103
|
+
/* bool requireElevation = 3; */
|
|
22104
|
+
if (message.requireElevation !== false)
|
|
22105
|
+
writer.tag(3, WireType.Varint).bool(message.requireElevation);
|
|
22106
|
+
/* octelium.api.main.core.v1.Condition condition = 4; */
|
|
22107
|
+
if (message.condition)
|
|
22108
|
+
Condition.internalBinaryWrite(message.condition, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
22109
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand runCommand = 5; */
|
|
22110
|
+
if (message.type.oneofKind === "runCommand")
|
|
22111
|
+
ClusterConfig_Status_Device_Probe_RunCommand.internalBinaryWrite(message.type.runCommand, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
22112
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile readFile = 6; */
|
|
22113
|
+
if (message.type.oneofKind === "readFile")
|
|
22114
|
+
ClusterConfig_Status_Device_Probe_ReadFile.internalBinaryWrite(message.type.readFile, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
22115
|
+
/* octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry readRegistry = 7; */
|
|
22116
|
+
if (message.type.oneofKind === "readRegistry")
|
|
22117
|
+
ClusterConfig_Status_Device_Probe_ReadRegistry.internalBinaryWrite(message.type.readRegistry, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
22118
|
+
let u = options.writeUnknownFields;
|
|
22119
|
+
if (u !== false)
|
|
22120
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22121
|
+
return writer;
|
|
22122
|
+
}
|
|
22123
|
+
}
|
|
22124
|
+
/**
|
|
22125
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe
|
|
22126
|
+
*/
|
|
22127
|
+
export const ClusterConfig_Status_Device_Probe = new ClusterConfig_Status_Device_Probe$Type();
|
|
22128
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
22129
|
+
class ClusterConfig_Status_Device_Probe_RunCommand$Type extends MessageType {
|
|
22130
|
+
constructor() {
|
|
22131
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand", [
|
|
22132
|
+
{ no: 1, name: "command", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
22133
|
+
{ no: 2, name: "args", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
22134
|
+
{ no: 3, name: "timeoutSeconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
22135
|
+
{ no: 4, name: "maxOutputBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
22136
|
+
]);
|
|
22137
|
+
}
|
|
22138
|
+
create(value) {
|
|
22139
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22140
|
+
message.command = "";
|
|
22141
|
+
message.args = [];
|
|
22142
|
+
message.timeoutSeconds = 0;
|
|
22143
|
+
message.maxOutputBytes = 0;
|
|
22144
|
+
if (value !== undefined)
|
|
22145
|
+
reflectionMergePartial(this, message, value);
|
|
22146
|
+
return message;
|
|
22147
|
+
}
|
|
22148
|
+
internalBinaryRead(reader, length, options, target) {
|
|
22149
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
22150
|
+
while (reader.pos < end) {
|
|
22151
|
+
let [fieldNo, wireType] = reader.tag();
|
|
22152
|
+
switch (fieldNo) {
|
|
22153
|
+
case /* string command */ 1:
|
|
22154
|
+
message.command = reader.string();
|
|
22155
|
+
break;
|
|
22156
|
+
case /* repeated string args */ 2:
|
|
22157
|
+
message.args.push(reader.string());
|
|
22158
|
+
break;
|
|
22159
|
+
case /* uint32 timeoutSeconds */ 3:
|
|
22160
|
+
message.timeoutSeconds = reader.uint32();
|
|
22161
|
+
break;
|
|
22162
|
+
case /* uint32 maxOutputBytes */ 4:
|
|
22163
|
+
message.maxOutputBytes = reader.uint32();
|
|
22164
|
+
break;
|
|
22165
|
+
default:
|
|
22166
|
+
let u = options.readUnknownField;
|
|
22167
|
+
if (u === "throw")
|
|
22168
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22169
|
+
let d = reader.skip(wireType);
|
|
22170
|
+
if (u !== false)
|
|
22171
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22172
|
+
}
|
|
22173
|
+
}
|
|
22174
|
+
return message;
|
|
22175
|
+
}
|
|
22176
|
+
internalBinaryWrite(message, writer, options) {
|
|
22177
|
+
/* string command = 1; */
|
|
22178
|
+
if (message.command !== "")
|
|
22179
|
+
writer.tag(1, WireType.LengthDelimited).string(message.command);
|
|
22180
|
+
/* repeated string args = 2; */
|
|
22181
|
+
for (let i = 0; i < message.args.length; i++)
|
|
22182
|
+
writer.tag(2, WireType.LengthDelimited).string(message.args[i]);
|
|
22183
|
+
/* uint32 timeoutSeconds = 3; */
|
|
22184
|
+
if (message.timeoutSeconds !== 0)
|
|
22185
|
+
writer.tag(3, WireType.Varint).uint32(message.timeoutSeconds);
|
|
22186
|
+
/* uint32 maxOutputBytes = 4; */
|
|
22187
|
+
if (message.maxOutputBytes !== 0)
|
|
22188
|
+
writer.tag(4, WireType.Varint).uint32(message.maxOutputBytes);
|
|
22189
|
+
let u = options.writeUnknownFields;
|
|
22190
|
+
if (u !== false)
|
|
22191
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22192
|
+
return writer;
|
|
22193
|
+
}
|
|
22194
|
+
}
|
|
22195
|
+
/**
|
|
22196
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.RunCommand
|
|
22197
|
+
*/
|
|
22198
|
+
export const ClusterConfig_Status_Device_Probe_RunCommand = new ClusterConfig_Status_Device_Probe_RunCommand$Type();
|
|
22199
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
22200
|
+
class ClusterConfig_Status_Device_Probe_ReadFile$Type extends MessageType {
|
|
22201
|
+
constructor() {
|
|
22202
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile", [
|
|
22203
|
+
{ no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
22204
|
+
{ no: 2, name: "maxBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
22205
|
+
]);
|
|
22206
|
+
}
|
|
22207
|
+
create(value) {
|
|
22208
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22209
|
+
message.path = "";
|
|
22210
|
+
message.maxBytes = 0;
|
|
22211
|
+
if (value !== undefined)
|
|
22212
|
+
reflectionMergePartial(this, message, value);
|
|
22213
|
+
return message;
|
|
22214
|
+
}
|
|
22215
|
+
internalBinaryRead(reader, length, options, target) {
|
|
22216
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
22217
|
+
while (reader.pos < end) {
|
|
22218
|
+
let [fieldNo, wireType] = reader.tag();
|
|
22219
|
+
switch (fieldNo) {
|
|
22220
|
+
case /* string path */ 1:
|
|
22221
|
+
message.path = reader.string();
|
|
22222
|
+
break;
|
|
22223
|
+
case /* uint32 maxBytes */ 2:
|
|
22224
|
+
message.maxBytes = reader.uint32();
|
|
22225
|
+
break;
|
|
22226
|
+
default:
|
|
22227
|
+
let u = options.readUnknownField;
|
|
22228
|
+
if (u === "throw")
|
|
22229
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22230
|
+
let d = reader.skip(wireType);
|
|
22231
|
+
if (u !== false)
|
|
22232
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22233
|
+
}
|
|
22234
|
+
}
|
|
22235
|
+
return message;
|
|
22236
|
+
}
|
|
22237
|
+
internalBinaryWrite(message, writer, options) {
|
|
22238
|
+
/* string path = 1; */
|
|
22239
|
+
if (message.path !== "")
|
|
22240
|
+
writer.tag(1, WireType.LengthDelimited).string(message.path);
|
|
22241
|
+
/* uint32 maxBytes = 2; */
|
|
22242
|
+
if (message.maxBytes !== 0)
|
|
22243
|
+
writer.tag(2, WireType.Varint).uint32(message.maxBytes);
|
|
22244
|
+
let u = options.writeUnknownFields;
|
|
22245
|
+
if (u !== false)
|
|
22246
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22247
|
+
return writer;
|
|
22248
|
+
}
|
|
22249
|
+
}
|
|
22250
|
+
/**
|
|
22251
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadFile
|
|
22252
|
+
*/
|
|
22253
|
+
export const ClusterConfig_Status_Device_Probe_ReadFile = new ClusterConfig_Status_Device_Probe_ReadFile$Type();
|
|
22254
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
22255
|
+
class ClusterConfig_Status_Device_Probe_ReadRegistry$Type extends MessageType {
|
|
22256
|
+
constructor() {
|
|
22257
|
+
super("octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry", [
|
|
22258
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
22259
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
22260
|
+
]);
|
|
22261
|
+
}
|
|
22262
|
+
create(value) {
|
|
22263
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22264
|
+
message.key = "";
|
|
22265
|
+
message.name = "";
|
|
22266
|
+
if (value !== undefined)
|
|
22267
|
+
reflectionMergePartial(this, message, value);
|
|
22268
|
+
return message;
|
|
22269
|
+
}
|
|
22270
|
+
internalBinaryRead(reader, length, options, target) {
|
|
22271
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
22272
|
+
while (reader.pos < end) {
|
|
22273
|
+
let [fieldNo, wireType] = reader.tag();
|
|
22274
|
+
switch (fieldNo) {
|
|
22275
|
+
case /* string key */ 1:
|
|
22276
|
+
message.key = reader.string();
|
|
22277
|
+
break;
|
|
22278
|
+
case /* string name */ 2:
|
|
22279
|
+
message.name = reader.string();
|
|
22280
|
+
break;
|
|
22281
|
+
default:
|
|
22282
|
+
let u = options.readUnknownField;
|
|
22283
|
+
if (u === "throw")
|
|
22284
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
22285
|
+
let d = reader.skip(wireType);
|
|
22286
|
+
if (u !== false)
|
|
22287
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
22288
|
+
}
|
|
22289
|
+
}
|
|
22290
|
+
return message;
|
|
22291
|
+
}
|
|
22292
|
+
internalBinaryWrite(message, writer, options) {
|
|
22293
|
+
/* string key = 1; */
|
|
22294
|
+
if (message.key !== "")
|
|
22295
|
+
writer.tag(1, WireType.LengthDelimited).string(message.key);
|
|
22296
|
+
/* string name = 2; */
|
|
22297
|
+
if (message.name !== "")
|
|
22298
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
22299
|
+
let u = options.writeUnknownFields;
|
|
22300
|
+
if (u !== false)
|
|
22301
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
22302
|
+
return writer;
|
|
22303
|
+
}
|
|
22304
|
+
}
|
|
22305
|
+
/**
|
|
22306
|
+
* @generated MessageType for protobuf message octelium.api.main.core.v1.ClusterConfig.Status.Device.Probe.ReadRegistry
|
|
22307
|
+
*/
|
|
22308
|
+
export const ClusterConfig_Status_Device_Probe_ReadRegistry = new ClusterConfig_Status_Device_Probe_ReadRegistry$Type();
|
|
22309
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
21459
22310
|
class RequestContext$Type extends MessageType {
|
|
21460
22311
|
constructor() {
|
|
21461
22312
|
super("octelium.api.main.core.v1.RequestContext", [
|