@octelium/apis 1.0.3 → 1.0.4

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.
@@ -302,6 +302,14 @@ export var Service_Spec_Mode;
302
302
  * @generated from protobuf enum value: DNS = 10;
303
303
  */
304
304
  Service_Spec_Mode[Service_Spec_Mode["DNS"] = 10] = "DNS";
305
+ /**
306
+ * @generated from protobuf enum value: SOCKS5 = 11;
307
+ */
308
+ Service_Spec_Mode[Service_Spec_Mode["SOCKS5"] = 11] = "SOCKS5";
309
+ /**
310
+ * @generated from protobuf enum value: RDP_WEB = 12;
311
+ */
312
+ Service_Spec_Mode[Service_Spec_Mode["RDP_WEB"] = 12] = "RDP_WEB";
305
313
  })(Service_Spec_Mode || (Service_Spec_Mode = {}));
306
314
  /**
307
315
  * @generated from protobuf enum octelium.api.main.core.v1.Session.Spec.State
@@ -1039,6 +1047,46 @@ export var AccessLog_Entry_Info_DNS_Type;
1039
1047
  */
1040
1048
  AccessLog_Entry_Info_DNS_Type[AccessLog_Entry_Info_DNS_Type["TYPE_OTHER"] = 6] = "TYPE_OTHER";
1041
1049
  })(AccessLog_Entry_Info_DNS_Type || (AccessLog_Entry_Info_DNS_Type = {}));
1050
+ /**
1051
+ * @generated from protobuf enum octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.Type
1052
+ */
1053
+ export var AccessLog_Entry_Info_SOCKS5_Type;
1054
+ (function (AccessLog_Entry_Info_SOCKS5_Type) {
1055
+ /**
1056
+ * @generated from protobuf enum value: TYPE_UNSPECIFIED = 0;
1057
+ */
1058
+ AccessLog_Entry_Info_SOCKS5_Type[AccessLog_Entry_Info_SOCKS5_Type["TYPE_UNSPECIFIED"] = 0] = "TYPE_UNSPECIFIED";
1059
+ /**
1060
+ * @generated from protobuf enum value: CONNECT = 1;
1061
+ */
1062
+ AccessLog_Entry_Info_SOCKS5_Type[AccessLog_Entry_Info_SOCKS5_Type["CONNECT"] = 1] = "CONNECT";
1063
+ /**
1064
+ * @generated from protobuf enum value: SESSION_END = 2;
1065
+ */
1066
+ AccessLog_Entry_Info_SOCKS5_Type[AccessLog_Entry_Info_SOCKS5_Type["SESSION_END"] = 2] = "SESSION_END";
1067
+ })(AccessLog_Entry_Info_SOCKS5_Type || (AccessLog_Entry_Info_SOCKS5_Type = {}));
1068
+ /**
1069
+ * @generated from protobuf enum octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.AddressType
1070
+ */
1071
+ export var AccessLog_Entry_Info_SOCKS5_AddressType;
1072
+ (function (AccessLog_Entry_Info_SOCKS5_AddressType) {
1073
+ /**
1074
+ * @generated from protobuf enum value: ADDRESS_TYPE_UNSPECIFIED = 0;
1075
+ */
1076
+ AccessLog_Entry_Info_SOCKS5_AddressType[AccessLog_Entry_Info_SOCKS5_AddressType["ADDRESS_TYPE_UNSPECIFIED"] = 0] = "ADDRESS_TYPE_UNSPECIFIED";
1077
+ /**
1078
+ * @generated from protobuf enum value: IPV4 = 1;
1079
+ */
1080
+ AccessLog_Entry_Info_SOCKS5_AddressType[AccessLog_Entry_Info_SOCKS5_AddressType["IPV4"] = 1] = "IPV4";
1081
+ /**
1082
+ * @generated from protobuf enum value: DOMAIN = 2;
1083
+ */
1084
+ AccessLog_Entry_Info_SOCKS5_AddressType[AccessLog_Entry_Info_SOCKS5_AddressType["DOMAIN"] = 2] = "DOMAIN";
1085
+ /**
1086
+ * @generated from protobuf enum value: IPV6 = 3;
1087
+ */
1088
+ AccessLog_Entry_Info_SOCKS5_AddressType[AccessLog_Entry_Info_SOCKS5_AddressType["IPV6"] = 3] = "IPV6";
1089
+ })(AccessLog_Entry_Info_SOCKS5_AddressType || (AccessLog_Entry_Info_SOCKS5_AddressType = {}));
1042
1090
  /**
1043
1091
  * @generated from protobuf enum octelium.api.main.core.v1.AccessLog.Entry.Common.Reason.Type
1044
1092
  */
@@ -1343,6 +1391,28 @@ export var ClusterConfig_Status_NetworkConfig_Mode;
1343
1391
  */
1344
1392
  ClusterConfig_Status_NetworkConfig_Mode[ClusterConfig_Status_NetworkConfig_Mode["V4_ONLY"] = 3] = "V4_ONLY";
1345
1393
  })(ClusterConfig_Status_NetworkConfig_Mode || (ClusterConfig_Status_NetworkConfig_Mode = {}));
1394
+ /**
1395
+ * @generated from protobuf enum octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect.AddressType
1396
+ */
1397
+ export var RequestContext_Request_SOCKS5_Connect_AddressType;
1398
+ (function (RequestContext_Request_SOCKS5_Connect_AddressType) {
1399
+ /**
1400
+ * @generated from protobuf enum value: ADDRESS_TYPE_UNSPECIFIED = 0;
1401
+ */
1402
+ RequestContext_Request_SOCKS5_Connect_AddressType[RequestContext_Request_SOCKS5_Connect_AddressType["ADDRESS_TYPE_UNSPECIFIED"] = 0] = "ADDRESS_TYPE_UNSPECIFIED";
1403
+ /**
1404
+ * @generated from protobuf enum value: IPV4 = 1;
1405
+ */
1406
+ RequestContext_Request_SOCKS5_Connect_AddressType[RequestContext_Request_SOCKS5_Connect_AddressType["IPV4"] = 1] = "IPV4";
1407
+ /**
1408
+ * @generated from protobuf enum value: DOMAIN = 2;
1409
+ */
1410
+ RequestContext_Request_SOCKS5_Connect_AddressType[RequestContext_Request_SOCKS5_Connect_AddressType["DOMAIN"] = 2] = "DOMAIN";
1411
+ /**
1412
+ * @generated from protobuf enum value: IPV6 = 3;
1413
+ */
1414
+ RequestContext_Request_SOCKS5_Connect_AddressType[RequestContext_Request_SOCKS5_Connect_AddressType["IPV6"] = 3] = "IPV6";
1415
+ })(RequestContext_Request_SOCKS5_Connect_AddressType || (RequestContext_Request_SOCKS5_Connect_AddressType = {}));
1346
1416
  /**
1347
1417
  * @generated from protobuf enum octelium.api.main.core.v1.ComponentLog.Entry.Level
1348
1418
  */
@@ -1426,6 +1496,28 @@ export var Authenticator_Status_Info_FIDO_Type;
1426
1496
  */
1427
1497
  Authenticator_Status_Info_FIDO_Type[Authenticator_Status_Info_FIDO_Type["PLATFORM"] = 2] = "PLATFORM";
1428
1498
  })(Authenticator_Status_Info_FIDO_Type || (Authenticator_Status_Info_FIDO_Type = {}));
1499
+ /**
1500
+ * @generated from protobuf enum octelium.api.main.core.v1.Authenticator.Status.Info.TOTP.Algorithm
1501
+ */
1502
+ export var Authenticator_Status_Info_TOTP_Algorithm;
1503
+ (function (Authenticator_Status_Info_TOTP_Algorithm) {
1504
+ /**
1505
+ * @generated from protobuf enum value: ALGORITHM_UNSET = 0;
1506
+ */
1507
+ Authenticator_Status_Info_TOTP_Algorithm[Authenticator_Status_Info_TOTP_Algorithm["ALGORITHM_UNSET"] = 0] = "ALGORITHM_UNSET";
1508
+ /**
1509
+ * @generated from protobuf enum value: SHA1 = 1;
1510
+ */
1511
+ Authenticator_Status_Info_TOTP_Algorithm[Authenticator_Status_Info_TOTP_Algorithm["SHA1"] = 1] = "SHA1";
1512
+ /**
1513
+ * @generated from protobuf enum value: SHA256 = 2;
1514
+ */
1515
+ Authenticator_Status_Info_TOTP_Algorithm[Authenticator_Status_Info_TOTP_Algorithm["SHA256"] = 2] = "SHA256";
1516
+ /**
1517
+ * @generated from protobuf enum value: SHA512 = 3;
1518
+ */
1519
+ Authenticator_Status_Info_TOTP_Algorithm[Authenticator_Status_Info_TOTP_Algorithm["SHA512"] = 3] = "SHA512";
1520
+ })(Authenticator_Status_Info_TOTP_Algorithm || (Authenticator_Status_Info_TOTP_Algorithm = {}));
1429
1521
  /**
1430
1522
  * @generated from protobuf enum octelium.api.main.core.v1.Authenticator.Status.Type
1431
1523
  */
@@ -2771,7 +2863,9 @@ class Service_Spec_Config$Type extends MessageType {
2771
2863
  { no: 5, name: "ssh", kind: "message", oneof: "type", T: () => Service_Spec_Config_SSH },
2772
2864
  { no: 6, name: "postgres", kind: "message", oneof: "type", T: () => Service_Spec_Config_Postgres },
2773
2865
  { no: 7, name: "mysql", kind: "message", oneof: "type", T: () => Service_Spec_Config_MySQL },
2774
- { no: 8, name: "kubernetes", kind: "message", oneof: "type", T: () => Service_Spec_Config_Kubernetes }
2866
+ { no: 8, name: "kubernetes", kind: "message", oneof: "type", T: () => Service_Spec_Config_Kubernetes },
2867
+ { no: 11, name: "socks5", kind: "message", oneof: "type", T: () => Service_Spec_Config_SOCKS5 },
2868
+ { no: 12, name: "rdp", kind: "message", oneof: "type", T: () => Service_Spec_Config_RDP }
2775
2869
  ]);
2776
2870
  }
2777
2871
  create(value) {
@@ -2833,6 +2927,18 @@ class Service_Spec_Config$Type extends MessageType {
2833
2927
  kubernetes: Service_Spec_Config_Kubernetes.internalBinaryRead(reader, reader.uint32(), options, message.type.kubernetes)
2834
2928
  };
2835
2929
  break;
2930
+ case /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5 socks5 */ 11:
2931
+ message.type = {
2932
+ oneofKind: "socks5",
2933
+ socks5: Service_Spec_Config_SOCKS5.internalBinaryRead(reader, reader.uint32(), options, message.type.socks5)
2934
+ };
2935
+ break;
2936
+ case /* octelium.api.main.core.v1.Service.Spec.Config.RDP rdp */ 12:
2937
+ message.type = {
2938
+ oneofKind: "rdp",
2939
+ rdp: Service_Spec_Config_RDP.internalBinaryRead(reader, reader.uint32(), options, message.type.rdp)
2940
+ };
2941
+ break;
2836
2942
  default:
2837
2943
  let u = options.readUnknownField;
2838
2944
  if (u === "throw")
@@ -2875,6 +2981,12 @@ class Service_Spec_Config$Type extends MessageType {
2875
2981
  /* octelium.api.main.core.v1.Service.Spec.Config.TLS tls = 10; */
2876
2982
  if (message.tls)
2877
2983
  Service_Spec_Config_TLS.internalBinaryWrite(message.tls, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
2984
+ /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5 socks5 = 11; */
2985
+ if (message.type.oneofKind === "socks5")
2986
+ Service_Spec_Config_SOCKS5.internalBinaryWrite(message.type.socks5, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
2987
+ /* octelium.api.main.core.v1.Service.Spec.Config.RDP rdp = 12; */
2988
+ if (message.type.oneofKind === "rdp")
2989
+ Service_Spec_Config_RDP.internalBinaryWrite(message.type.rdp, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
2878
2990
  let u = options.writeUnknownFields;
2879
2991
  if (u !== false)
2880
2992
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -6646,7 +6758,465 @@ class Service_Spec_Config_Kubernetes$Type extends MessageType {
6646
6758
  }
6647
6759
  create(value) {
6648
6760
  const message = globalThis.Object.create((this.messagePrototype));
6649
- message.type = { oneofKind: undefined };
6761
+ message.type = { oneofKind: undefined };
6762
+ if (value !== undefined)
6763
+ reflectionMergePartial(this, message, value);
6764
+ return message;
6765
+ }
6766
+ internalBinaryRead(reader, length, options, target) {
6767
+ let message = target ?? this.create(), end = reader.pos + length;
6768
+ while (reader.pos < end) {
6769
+ let [fieldNo, wireType] = reader.tag();
6770
+ switch (fieldNo) {
6771
+ case /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig kubeconfig */ 1:
6772
+ message.type = {
6773
+ oneofKind: "kubeconfig",
6774
+ kubeconfig: Service_Spec_Config_Kubernetes_Kubeconfig.internalBinaryRead(reader, reader.uint32(), options, message.type.kubeconfig)
6775
+ };
6776
+ break;
6777
+ case /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken bearerToken */ 2:
6778
+ message.type = {
6779
+ oneofKind: "bearerToken",
6780
+ bearerToken: Service_Spec_Config_Kubernetes_BearerToken.internalBinaryRead(reader, reader.uint32(), options, message.type.bearerToken)
6781
+ };
6782
+ break;
6783
+ case /* octelium.api.main.core.v1.Service.Spec.Config.ClientCertificate clientCertificate */ 3:
6784
+ message.type = {
6785
+ oneofKind: "clientCertificate",
6786
+ clientCertificate: Service_Spec_Config_ClientCertificate.internalBinaryRead(reader, reader.uint32(), options, message.type.clientCertificate)
6787
+ };
6788
+ break;
6789
+ default:
6790
+ let u = options.readUnknownField;
6791
+ if (u === "throw")
6792
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6793
+ let d = reader.skip(wireType);
6794
+ if (u !== false)
6795
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6796
+ }
6797
+ }
6798
+ return message;
6799
+ }
6800
+ internalBinaryWrite(message, writer, options) {
6801
+ /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig kubeconfig = 1; */
6802
+ if (message.type.oneofKind === "kubeconfig")
6803
+ Service_Spec_Config_Kubernetes_Kubeconfig.internalBinaryWrite(message.type.kubeconfig, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
6804
+ /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken bearerToken = 2; */
6805
+ if (message.type.oneofKind === "bearerToken")
6806
+ Service_Spec_Config_Kubernetes_BearerToken.internalBinaryWrite(message.type.bearerToken, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
6807
+ /* octelium.api.main.core.v1.Service.Spec.Config.ClientCertificate clientCertificate = 3; */
6808
+ if (message.type.oneofKind === "clientCertificate")
6809
+ Service_Spec_Config_ClientCertificate.internalBinaryWrite(message.type.clientCertificate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
6810
+ let u = options.writeUnknownFields;
6811
+ if (u !== false)
6812
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6813
+ return writer;
6814
+ }
6815
+ }
6816
+ /**
6817
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.Kubernetes
6818
+ */
6819
+ export const Service_Spec_Config_Kubernetes = new Service_Spec_Config_Kubernetes$Type();
6820
+ // @generated message type with reflection information, may provide speed optimized methods
6821
+ class Service_Spec_Config_Kubernetes_BearerToken$Type extends MessageType {
6822
+ constructor() {
6823
+ super("octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken", [
6824
+ { no: 1, name: "fromSecret", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ },
6825
+ { no: 2, name: "trustedCAs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
6826
+ ]);
6827
+ }
6828
+ create(value) {
6829
+ const message = globalThis.Object.create((this.messagePrototype));
6830
+ message.type = { oneofKind: undefined };
6831
+ message.trustedCAs = [];
6832
+ if (value !== undefined)
6833
+ reflectionMergePartial(this, message, value);
6834
+ return message;
6835
+ }
6836
+ internalBinaryRead(reader, length, options, target) {
6837
+ let message = target ?? this.create(), end = reader.pos + length;
6838
+ while (reader.pos < end) {
6839
+ let [fieldNo, wireType] = reader.tag();
6840
+ switch (fieldNo) {
6841
+ case /* string fromSecret */ 1:
6842
+ message.type = {
6843
+ oneofKind: "fromSecret",
6844
+ fromSecret: reader.string()
6845
+ };
6846
+ break;
6847
+ case /* repeated string trustedCAs */ 2:
6848
+ message.trustedCAs.push(reader.string());
6849
+ break;
6850
+ default:
6851
+ let u = options.readUnknownField;
6852
+ if (u === "throw")
6853
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6854
+ let d = reader.skip(wireType);
6855
+ if (u !== false)
6856
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6857
+ }
6858
+ }
6859
+ return message;
6860
+ }
6861
+ internalBinaryWrite(message, writer, options) {
6862
+ /* string fromSecret = 1; */
6863
+ if (message.type.oneofKind === "fromSecret")
6864
+ writer.tag(1, WireType.LengthDelimited).string(message.type.fromSecret);
6865
+ /* repeated string trustedCAs = 2; */
6866
+ for (let i = 0; i < message.trustedCAs.length; i++)
6867
+ writer.tag(2, WireType.LengthDelimited).string(message.trustedCAs[i]);
6868
+ let u = options.writeUnknownFields;
6869
+ if (u !== false)
6870
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6871
+ return writer;
6872
+ }
6873
+ }
6874
+ /**
6875
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken
6876
+ */
6877
+ export const Service_Spec_Config_Kubernetes_BearerToken = new Service_Spec_Config_Kubernetes_BearerToken$Type();
6878
+ // @generated message type with reflection information, may provide speed optimized methods
6879
+ class Service_Spec_Config_Kubernetes_Kubeconfig$Type extends MessageType {
6880
+ constructor() {
6881
+ super("octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig", [
6882
+ { no: 1, name: "fromSecret", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ },
6883
+ { no: 2, name: "context", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
6884
+ ]);
6885
+ }
6886
+ create(value) {
6887
+ const message = globalThis.Object.create((this.messagePrototype));
6888
+ message.type = { oneofKind: undefined };
6889
+ message.context = "";
6890
+ if (value !== undefined)
6891
+ reflectionMergePartial(this, message, value);
6892
+ return message;
6893
+ }
6894
+ internalBinaryRead(reader, length, options, target) {
6895
+ let message = target ?? this.create(), end = reader.pos + length;
6896
+ while (reader.pos < end) {
6897
+ let [fieldNo, wireType] = reader.tag();
6898
+ switch (fieldNo) {
6899
+ case /* string fromSecret */ 1:
6900
+ message.type = {
6901
+ oneofKind: "fromSecret",
6902
+ fromSecret: reader.string()
6903
+ };
6904
+ break;
6905
+ case /* string context */ 2:
6906
+ message.context = reader.string();
6907
+ break;
6908
+ default:
6909
+ let u = options.readUnknownField;
6910
+ if (u === "throw")
6911
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6912
+ let d = reader.skip(wireType);
6913
+ if (u !== false)
6914
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6915
+ }
6916
+ }
6917
+ return message;
6918
+ }
6919
+ internalBinaryWrite(message, writer, options) {
6920
+ /* string fromSecret = 1; */
6921
+ if (message.type.oneofKind === "fromSecret")
6922
+ writer.tag(1, WireType.LengthDelimited).string(message.type.fromSecret);
6923
+ /* string context = 2; */
6924
+ if (message.context !== "")
6925
+ writer.tag(2, WireType.LengthDelimited).string(message.context);
6926
+ let u = options.writeUnknownFields;
6927
+ if (u !== false)
6928
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6929
+ return writer;
6930
+ }
6931
+ }
6932
+ /**
6933
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig
6934
+ */
6935
+ export const Service_Spec_Config_Kubernetes_Kubeconfig = new Service_Spec_Config_Kubernetes_Kubeconfig$Type();
6936
+ // @generated message type with reflection information, may provide speed optimized methods
6937
+ class Service_Spec_Config_SOCKS5$Type extends MessageType {
6938
+ constructor() {
6939
+ super("octelium.api.main.core.v1.Service.Spec.Config.SOCKS5", [
6940
+ { no: 1, name: "auth", kind: "message", T: () => Service_Spec_Config_SOCKS5_Auth },
6941
+ { no: 2, name: "isEmbeddedMode", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
6942
+ ]);
6943
+ }
6944
+ create(value) {
6945
+ const message = globalThis.Object.create((this.messagePrototype));
6946
+ message.isEmbeddedMode = false;
6947
+ if (value !== undefined)
6948
+ reflectionMergePartial(this, message, value);
6949
+ return message;
6950
+ }
6951
+ internalBinaryRead(reader, length, options, target) {
6952
+ let message = target ?? this.create(), end = reader.pos + length;
6953
+ while (reader.pos < end) {
6954
+ let [fieldNo, wireType] = reader.tag();
6955
+ switch (fieldNo) {
6956
+ case /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth auth */ 1:
6957
+ message.auth = Service_Spec_Config_SOCKS5_Auth.internalBinaryRead(reader, reader.uint32(), options, message.auth);
6958
+ break;
6959
+ case /* bool isEmbeddedMode */ 2:
6960
+ message.isEmbeddedMode = reader.bool();
6961
+ break;
6962
+ default:
6963
+ let u = options.readUnknownField;
6964
+ if (u === "throw")
6965
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6966
+ let d = reader.skip(wireType);
6967
+ if (u !== false)
6968
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6969
+ }
6970
+ }
6971
+ return message;
6972
+ }
6973
+ internalBinaryWrite(message, writer, options) {
6974
+ /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth auth = 1; */
6975
+ if (message.auth)
6976
+ Service_Spec_Config_SOCKS5_Auth.internalBinaryWrite(message.auth, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
6977
+ /* bool isEmbeddedMode = 2; */
6978
+ if (message.isEmbeddedMode !== false)
6979
+ writer.tag(2, WireType.Varint).bool(message.isEmbeddedMode);
6980
+ let u = options.writeUnknownFields;
6981
+ if (u !== false)
6982
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
6983
+ return writer;
6984
+ }
6985
+ }
6986
+ /**
6987
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.SOCKS5
6988
+ */
6989
+ export const Service_Spec_Config_SOCKS5 = new Service_Spec_Config_SOCKS5$Type();
6990
+ // @generated message type with reflection information, may provide speed optimized methods
6991
+ class Service_Spec_Config_SOCKS5_Auth$Type extends MessageType {
6992
+ constructor() {
6993
+ super("octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth", [
6994
+ { no: 1, name: "noAuth", kind: "scalar", oneof: "type", T: 8 /*ScalarType.BOOL*/ },
6995
+ { no: 2, name: "usernamePassword", kind: "message", oneof: "type", T: () => Service_Spec_Config_SOCKS5_Auth_UsernamePassword }
6996
+ ]);
6997
+ }
6998
+ create(value) {
6999
+ const message = globalThis.Object.create((this.messagePrototype));
7000
+ message.type = { oneofKind: undefined };
7001
+ if (value !== undefined)
7002
+ reflectionMergePartial(this, message, value);
7003
+ return message;
7004
+ }
7005
+ internalBinaryRead(reader, length, options, target) {
7006
+ let message = target ?? this.create(), end = reader.pos + length;
7007
+ while (reader.pos < end) {
7008
+ let [fieldNo, wireType] = reader.tag();
7009
+ switch (fieldNo) {
7010
+ case /* bool noAuth */ 1:
7011
+ message.type = {
7012
+ oneofKind: "noAuth",
7013
+ noAuth: reader.bool()
7014
+ };
7015
+ break;
7016
+ case /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword usernamePassword */ 2:
7017
+ message.type = {
7018
+ oneofKind: "usernamePassword",
7019
+ usernamePassword: Service_Spec_Config_SOCKS5_Auth_UsernamePassword.internalBinaryRead(reader, reader.uint32(), options, message.type.usernamePassword)
7020
+ };
7021
+ break;
7022
+ default:
7023
+ let u = options.readUnknownField;
7024
+ if (u === "throw")
7025
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
7026
+ let d = reader.skip(wireType);
7027
+ if (u !== false)
7028
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
7029
+ }
7030
+ }
7031
+ return message;
7032
+ }
7033
+ internalBinaryWrite(message, writer, options) {
7034
+ /* bool noAuth = 1; */
7035
+ if (message.type.oneofKind === "noAuth")
7036
+ writer.tag(1, WireType.Varint).bool(message.type.noAuth);
7037
+ /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword usernamePassword = 2; */
7038
+ if (message.type.oneofKind === "usernamePassword")
7039
+ Service_Spec_Config_SOCKS5_Auth_UsernamePassword.internalBinaryWrite(message.type.usernamePassword, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
7040
+ let u = options.writeUnknownFields;
7041
+ if (u !== false)
7042
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
7043
+ return writer;
7044
+ }
7045
+ }
7046
+ /**
7047
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth
7048
+ */
7049
+ export const Service_Spec_Config_SOCKS5_Auth = new Service_Spec_Config_SOCKS5_Auth$Type();
7050
+ // @generated message type with reflection information, may provide speed optimized methods
7051
+ class Service_Spec_Config_SOCKS5_Auth_UsernamePassword$Type extends MessageType {
7052
+ constructor() {
7053
+ super("octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword", [
7054
+ { no: 1, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
7055
+ { no: 2, name: "password", kind: "message", T: () => Service_Spec_Config_SOCKS5_Auth_UsernamePassword_Password }
7056
+ ]);
7057
+ }
7058
+ create(value) {
7059
+ const message = globalThis.Object.create((this.messagePrototype));
7060
+ message.username = "";
7061
+ if (value !== undefined)
7062
+ reflectionMergePartial(this, message, value);
7063
+ return message;
7064
+ }
7065
+ internalBinaryRead(reader, length, options, target) {
7066
+ let message = target ?? this.create(), end = reader.pos + length;
7067
+ while (reader.pos < end) {
7068
+ let [fieldNo, wireType] = reader.tag();
7069
+ switch (fieldNo) {
7070
+ case /* string username */ 1:
7071
+ message.username = reader.string();
7072
+ break;
7073
+ case /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword.Password password */ 2:
7074
+ message.password = Service_Spec_Config_SOCKS5_Auth_UsernamePassword_Password.internalBinaryRead(reader, reader.uint32(), options, message.password);
7075
+ break;
7076
+ default:
7077
+ let u = options.readUnknownField;
7078
+ if (u === "throw")
7079
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
7080
+ let d = reader.skip(wireType);
7081
+ if (u !== false)
7082
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
7083
+ }
7084
+ }
7085
+ return message;
7086
+ }
7087
+ internalBinaryWrite(message, writer, options) {
7088
+ /* string username = 1; */
7089
+ if (message.username !== "")
7090
+ writer.tag(1, WireType.LengthDelimited).string(message.username);
7091
+ /* octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword.Password password = 2; */
7092
+ if (message.password)
7093
+ Service_Spec_Config_SOCKS5_Auth_UsernamePassword_Password.internalBinaryWrite(message.password, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
7094
+ let u = options.writeUnknownFields;
7095
+ if (u !== false)
7096
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
7097
+ return writer;
7098
+ }
7099
+ }
7100
+ /**
7101
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword
7102
+ */
7103
+ export const Service_Spec_Config_SOCKS5_Auth_UsernamePassword = new Service_Spec_Config_SOCKS5_Auth_UsernamePassword$Type();
7104
+ // @generated message type with reflection information, may provide speed optimized methods
7105
+ class Service_Spec_Config_SOCKS5_Auth_UsernamePassword_Password$Type extends MessageType {
7106
+ constructor() {
7107
+ super("octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword.Password", [
7108
+ { no: 1, name: "fromSecret", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ }
7109
+ ]);
7110
+ }
7111
+ create(value) {
7112
+ const message = globalThis.Object.create((this.messagePrototype));
7113
+ message.type = { oneofKind: undefined };
7114
+ if (value !== undefined)
7115
+ reflectionMergePartial(this, message, value);
7116
+ return message;
7117
+ }
7118
+ internalBinaryRead(reader, length, options, target) {
7119
+ let message = target ?? this.create(), end = reader.pos + length;
7120
+ while (reader.pos < end) {
7121
+ let [fieldNo, wireType] = reader.tag();
7122
+ switch (fieldNo) {
7123
+ case /* string fromSecret */ 1:
7124
+ message.type = {
7125
+ oneofKind: "fromSecret",
7126
+ fromSecret: reader.string()
7127
+ };
7128
+ break;
7129
+ default:
7130
+ let u = options.readUnknownField;
7131
+ if (u === "throw")
7132
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
7133
+ let d = reader.skip(wireType);
7134
+ if (u !== false)
7135
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
7136
+ }
7137
+ }
7138
+ return message;
7139
+ }
7140
+ internalBinaryWrite(message, writer, options) {
7141
+ /* string fromSecret = 1; */
7142
+ if (message.type.oneofKind === "fromSecret")
7143
+ writer.tag(1, WireType.LengthDelimited).string(message.type.fromSecret);
7144
+ let u = options.writeUnknownFields;
7145
+ if (u !== false)
7146
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
7147
+ return writer;
7148
+ }
7149
+ }
7150
+ /**
7151
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.SOCKS5.Auth.UsernamePassword.Password
7152
+ */
7153
+ export const Service_Spec_Config_SOCKS5_Auth_UsernamePassword_Password = new Service_Spec_Config_SOCKS5_Auth_UsernamePassword_Password$Type();
7154
+ // @generated message type with reflection information, may provide speed optimized methods
7155
+ class Service_Spec_Config_RDP$Type extends MessageType {
7156
+ constructor() {
7157
+ super("octelium.api.main.core.v1.Service.Spec.Config.RDP", [
7158
+ { no: 1, name: "auth", kind: "message", T: () => Service_Spec_Config_RDP_Auth },
7159
+ { no: 2, name: "upstreamTLS", kind: "message", T: () => Service_Spec_Config_RDP_UpstreamTLS }
7160
+ ]);
7161
+ }
7162
+ create(value) {
7163
+ const message = globalThis.Object.create((this.messagePrototype));
7164
+ if (value !== undefined)
7165
+ reflectionMergePartial(this, message, value);
7166
+ return message;
7167
+ }
7168
+ internalBinaryRead(reader, length, options, target) {
7169
+ let message = target ?? this.create(), end = reader.pos + length;
7170
+ while (reader.pos < end) {
7171
+ let [fieldNo, wireType] = reader.tag();
7172
+ switch (fieldNo) {
7173
+ case /* octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth auth */ 1:
7174
+ message.auth = Service_Spec_Config_RDP_Auth.internalBinaryRead(reader, reader.uint32(), options, message.auth);
7175
+ break;
7176
+ case /* octelium.api.main.core.v1.Service.Spec.Config.RDP.UpstreamTLS upstreamTLS */ 2:
7177
+ message.upstreamTLS = Service_Spec_Config_RDP_UpstreamTLS.internalBinaryRead(reader, reader.uint32(), options, message.upstreamTLS);
7178
+ break;
7179
+ default:
7180
+ let u = options.readUnknownField;
7181
+ if (u === "throw")
7182
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
7183
+ let d = reader.skip(wireType);
7184
+ if (u !== false)
7185
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
7186
+ }
7187
+ }
7188
+ return message;
7189
+ }
7190
+ internalBinaryWrite(message, writer, options) {
7191
+ /* octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth auth = 1; */
7192
+ if (message.auth)
7193
+ Service_Spec_Config_RDP_Auth.internalBinaryWrite(message.auth, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
7194
+ /* octelium.api.main.core.v1.Service.Spec.Config.RDP.UpstreamTLS upstreamTLS = 2; */
7195
+ if (message.upstreamTLS)
7196
+ Service_Spec_Config_RDP_UpstreamTLS.internalBinaryWrite(message.upstreamTLS, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
7197
+ let u = options.writeUnknownFields;
7198
+ if (u !== false)
7199
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
7200
+ return writer;
7201
+ }
7202
+ }
7203
+ /**
7204
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.RDP
7205
+ */
7206
+ export const Service_Spec_Config_RDP = new Service_Spec_Config_RDP$Type();
7207
+ // @generated message type with reflection information, may provide speed optimized methods
7208
+ class Service_Spec_Config_RDP_Auth$Type extends MessageType {
7209
+ constructor() {
7210
+ super("octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth", [
7211
+ { no: 1, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
7212
+ { no: 2, name: "domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
7213
+ { no: 3, name: "password", kind: "message", T: () => Service_Spec_Config_RDP_Auth_Password }
7214
+ ]);
7215
+ }
7216
+ create(value) {
7217
+ const message = globalThis.Object.create((this.messagePrototype));
7218
+ message.user = "";
7219
+ message.domain = "";
6650
7220
  if (value !== undefined)
6651
7221
  reflectionMergePartial(this, message, value);
6652
7222
  return message;
@@ -6656,23 +7226,14 @@ class Service_Spec_Config_Kubernetes$Type extends MessageType {
6656
7226
  while (reader.pos < end) {
6657
7227
  let [fieldNo, wireType] = reader.tag();
6658
7228
  switch (fieldNo) {
6659
- case /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig kubeconfig */ 1:
6660
- message.type = {
6661
- oneofKind: "kubeconfig",
6662
- kubeconfig: Service_Spec_Config_Kubernetes_Kubeconfig.internalBinaryRead(reader, reader.uint32(), options, message.type.kubeconfig)
6663
- };
7229
+ case /* string user */ 1:
7230
+ message.user = reader.string();
6664
7231
  break;
6665
- case /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken bearerToken */ 2:
6666
- message.type = {
6667
- oneofKind: "bearerToken",
6668
- bearerToken: Service_Spec_Config_Kubernetes_BearerToken.internalBinaryRead(reader, reader.uint32(), options, message.type.bearerToken)
6669
- };
7232
+ case /* string domain */ 2:
7233
+ message.domain = reader.string();
6670
7234
  break;
6671
- case /* octelium.api.main.core.v1.Service.Spec.Config.ClientCertificate clientCertificate */ 3:
6672
- message.type = {
6673
- oneofKind: "clientCertificate",
6674
- clientCertificate: Service_Spec_Config_ClientCertificate.internalBinaryRead(reader, reader.uint32(), options, message.type.clientCertificate)
6675
- };
7235
+ case /* octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth.Password password */ 3:
7236
+ message.password = Service_Spec_Config_RDP_Auth_Password.internalBinaryRead(reader, reader.uint32(), options, message.password);
6676
7237
  break;
6677
7238
  default:
6678
7239
  let u = options.readUnknownField;
@@ -6686,15 +7247,15 @@ class Service_Spec_Config_Kubernetes$Type extends MessageType {
6686
7247
  return message;
6687
7248
  }
6688
7249
  internalBinaryWrite(message, writer, options) {
6689
- /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig kubeconfig = 1; */
6690
- if (message.type.oneofKind === "kubeconfig")
6691
- Service_Spec_Config_Kubernetes_Kubeconfig.internalBinaryWrite(message.type.kubeconfig, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
6692
- /* octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken bearerToken = 2; */
6693
- if (message.type.oneofKind === "bearerToken")
6694
- Service_Spec_Config_Kubernetes_BearerToken.internalBinaryWrite(message.type.bearerToken, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
6695
- /* octelium.api.main.core.v1.Service.Spec.Config.ClientCertificate clientCertificate = 3; */
6696
- if (message.type.oneofKind === "clientCertificate")
6697
- Service_Spec_Config_ClientCertificate.internalBinaryWrite(message.type.clientCertificate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
7250
+ /* string user = 1; */
7251
+ if (message.user !== "")
7252
+ writer.tag(1, WireType.LengthDelimited).string(message.user);
7253
+ /* string domain = 2; */
7254
+ if (message.domain !== "")
7255
+ writer.tag(2, WireType.LengthDelimited).string(message.domain);
7256
+ /* octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth.Password password = 3; */
7257
+ if (message.password)
7258
+ Service_Spec_Config_RDP_Auth_Password.internalBinaryWrite(message.password, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
6698
7259
  let u = options.writeUnknownFields;
6699
7260
  if (u !== false)
6700
7261
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -6702,21 +7263,19 @@ class Service_Spec_Config_Kubernetes$Type extends MessageType {
6702
7263
  }
6703
7264
  }
6704
7265
  /**
6705
- * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.Kubernetes
7266
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth
6706
7267
  */
6707
- export const Service_Spec_Config_Kubernetes = new Service_Spec_Config_Kubernetes$Type();
7268
+ export const Service_Spec_Config_RDP_Auth = new Service_Spec_Config_RDP_Auth$Type();
6708
7269
  // @generated message type with reflection information, may provide speed optimized methods
6709
- class Service_Spec_Config_Kubernetes_BearerToken$Type extends MessageType {
7270
+ class Service_Spec_Config_RDP_Auth_Password$Type extends MessageType {
6710
7271
  constructor() {
6711
- super("octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken", [
6712
- { no: 1, name: "fromSecret", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ },
6713
- { no: 2, name: "trustedCAs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
7272
+ super("octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth.Password", [
7273
+ { no: 1, name: "fromSecret", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ }
6714
7274
  ]);
6715
7275
  }
6716
7276
  create(value) {
6717
7277
  const message = globalThis.Object.create((this.messagePrototype));
6718
7278
  message.type = { oneofKind: undefined };
6719
- message.trustedCAs = [];
6720
7279
  if (value !== undefined)
6721
7280
  reflectionMergePartial(this, message, value);
6722
7281
  return message;
@@ -6732,9 +7291,6 @@ class Service_Spec_Config_Kubernetes_BearerToken$Type extends MessageType {
6732
7291
  fromSecret: reader.string()
6733
7292
  };
6734
7293
  break;
6735
- case /* repeated string trustedCAs */ 2:
6736
- message.trustedCAs.push(reader.string());
6737
- break;
6738
7294
  default:
6739
7295
  let u = options.readUnknownField;
6740
7296
  if (u === "throw")
@@ -6750,9 +7306,6 @@ class Service_Spec_Config_Kubernetes_BearerToken$Type extends MessageType {
6750
7306
  /* string fromSecret = 1; */
6751
7307
  if (message.type.oneofKind === "fromSecret")
6752
7308
  writer.tag(1, WireType.LengthDelimited).string(message.type.fromSecret);
6753
- /* repeated string trustedCAs = 2; */
6754
- for (let i = 0; i < message.trustedCAs.length; i++)
6755
- writer.tag(2, WireType.LengthDelimited).string(message.trustedCAs[i]);
6756
7309
  let u = options.writeUnknownFields;
6757
7310
  if (u !== false)
6758
7311
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -6760,21 +7313,21 @@ class Service_Spec_Config_Kubernetes_BearerToken$Type extends MessageType {
6760
7313
  }
6761
7314
  }
6762
7315
  /**
6763
- * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.BearerToken
7316
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.RDP.Auth.Password
6764
7317
  */
6765
- export const Service_Spec_Config_Kubernetes_BearerToken = new Service_Spec_Config_Kubernetes_BearerToken$Type();
7318
+ export const Service_Spec_Config_RDP_Auth_Password = new Service_Spec_Config_RDP_Auth_Password$Type();
6766
7319
  // @generated message type with reflection information, may provide speed optimized methods
6767
- class Service_Spec_Config_Kubernetes_Kubeconfig$Type extends MessageType {
7320
+ class Service_Spec_Config_RDP_UpstreamTLS$Type extends MessageType {
6768
7321
  constructor() {
6769
- super("octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig", [
6770
- { no: 1, name: "fromSecret", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ },
6771
- { no: 2, name: "context", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
7322
+ super("octelium.api.main.core.v1.Service.Spec.Config.RDP.UpstreamTLS", [
7323
+ { no: 1, name: "pinnedCertSHA256", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
7324
+ { no: 2, name: "allowAnyCert", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
6772
7325
  ]);
6773
7326
  }
6774
7327
  create(value) {
6775
7328
  const message = globalThis.Object.create((this.messagePrototype));
6776
- message.type = { oneofKind: undefined };
6777
- message.context = "";
7329
+ message.pinnedCertSHA256 = [];
7330
+ message.allowAnyCert = false;
6778
7331
  if (value !== undefined)
6779
7332
  reflectionMergePartial(this, message, value);
6780
7333
  return message;
@@ -6784,14 +7337,11 @@ class Service_Spec_Config_Kubernetes_Kubeconfig$Type extends MessageType {
6784
7337
  while (reader.pos < end) {
6785
7338
  let [fieldNo, wireType] = reader.tag();
6786
7339
  switch (fieldNo) {
6787
- case /* string fromSecret */ 1:
6788
- message.type = {
6789
- oneofKind: "fromSecret",
6790
- fromSecret: reader.string()
6791
- };
7340
+ case /* repeated string pinnedCertSHA256 */ 1:
7341
+ message.pinnedCertSHA256.push(reader.string());
6792
7342
  break;
6793
- case /* string context */ 2:
6794
- message.context = reader.string();
7343
+ case /* bool allowAnyCert */ 2:
7344
+ message.allowAnyCert = reader.bool();
6795
7345
  break;
6796
7346
  default:
6797
7347
  let u = options.readUnknownField;
@@ -6805,12 +7355,12 @@ class Service_Spec_Config_Kubernetes_Kubeconfig$Type extends MessageType {
6805
7355
  return message;
6806
7356
  }
6807
7357
  internalBinaryWrite(message, writer, options) {
6808
- /* string fromSecret = 1; */
6809
- if (message.type.oneofKind === "fromSecret")
6810
- writer.tag(1, WireType.LengthDelimited).string(message.type.fromSecret);
6811
- /* string context = 2; */
6812
- if (message.context !== "")
6813
- writer.tag(2, WireType.LengthDelimited).string(message.context);
7358
+ /* repeated string pinnedCertSHA256 = 1; */
7359
+ for (let i = 0; i < message.pinnedCertSHA256.length; i++)
7360
+ writer.tag(1, WireType.LengthDelimited).string(message.pinnedCertSHA256[i]);
7361
+ /* bool allowAnyCert = 2; */
7362
+ if (message.allowAnyCert !== false)
7363
+ writer.tag(2, WireType.Varint).bool(message.allowAnyCert);
6814
7364
  let u = options.writeUnknownFields;
6815
7365
  if (u !== false)
6816
7366
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -6818,9 +7368,9 @@ class Service_Spec_Config_Kubernetes_Kubeconfig$Type extends MessageType {
6818
7368
  }
6819
7369
  }
6820
7370
  /**
6821
- * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.Kubernetes.Kubeconfig
7371
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.Service.Spec.Config.RDP.UpstreamTLS
6822
7372
  */
6823
- export const Service_Spec_Config_Kubernetes_Kubeconfig = new Service_Spec_Config_Kubernetes_Kubeconfig$Type();
7373
+ export const Service_Spec_Config_RDP_UpstreamTLS = new Service_Spec_Config_RDP_UpstreamTLS$Type();
6824
7374
  // @generated message type with reflection information, may provide speed optimized methods
6825
7375
  class Service_Spec_Config_Upstream$Type extends MessageType {
6826
7376
  constructor() {
@@ -9670,7 +10220,9 @@ class Session_Status_Connection$Type extends MessageType {
9670
10220
  { no: 10, name: "publishedServices", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Session_Status_Connection_PublishedService },
9671
10221
  { no: 11, name: "ignoreDNS", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
9672
10222
  { no: 12, name: "eSSHEnable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
9673
- { no: 13, name: "eSSHPort", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
10223
+ { no: 13, name: "eSSHPort", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
10224
+ { no: 14, name: "eSOCKS5Enable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
10225
+ { no: 15, name: "eSOCKS5Port", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
9674
10226
  ]);
9675
10227
  }
9676
10228
  create(value) {
@@ -9685,6 +10237,8 @@ class Session_Status_Connection$Type extends MessageType {
9685
10237
  message.ignoreDNS = false;
9686
10238
  message.eSSHEnable = false;
9687
10239
  message.eSSHPort = 0;
10240
+ message.eSOCKS5Enable = false;
10241
+ message.eSOCKS5Port = 0;
9688
10242
  if (value !== undefined)
9689
10243
  reflectionMergePartial(this, message, value);
9690
10244
  return message;
@@ -9733,6 +10287,12 @@ class Session_Status_Connection$Type extends MessageType {
9733
10287
  case /* int32 eSSHPort */ 13:
9734
10288
  message.eSSHPort = reader.int32();
9735
10289
  break;
10290
+ case /* bool eSOCKS5Enable */ 14:
10291
+ message.eSOCKS5Enable = reader.bool();
10292
+ break;
10293
+ case /* int32 eSOCKS5Port */ 15:
10294
+ message.eSOCKS5Port = reader.int32();
10295
+ break;
9736
10296
  default:
9737
10297
  let u = options.readUnknownField;
9738
10298
  if (u === "throw")
@@ -9784,6 +10344,12 @@ class Session_Status_Connection$Type extends MessageType {
9784
10344
  /* int32 eSSHPort = 13; */
9785
10345
  if (message.eSSHPort !== 0)
9786
10346
  writer.tag(13, WireType.Varint).int32(message.eSSHPort);
10347
+ /* bool eSOCKS5Enable = 14; */
10348
+ if (message.eSOCKS5Enable !== false)
10349
+ writer.tag(14, WireType.Varint).bool(message.eSOCKS5Enable);
10350
+ /* int32 eSOCKS5Port = 15; */
10351
+ if (message.eSOCKS5Port !== 0)
10352
+ writer.tag(15, WireType.Varint).int32(message.eSOCKS5Port);
9787
10353
  let u = options.writeUnknownFields;
9788
10354
  if (u !== false)
9789
10355
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -14129,7 +14695,8 @@ class AccessLog_Entry_Info$Type extends MessageType {
14129
14695
  { no: 6, name: "kubernetes", kind: "message", oneof: "type", T: () => AccessLog_Entry_Info_Kubernetes },
14130
14696
  { no: 7, name: "grpc", kind: "message", oneof: "type", T: () => AccessLog_Entry_Info_GRPC },
14131
14697
  { no: 8, name: "mysql", kind: "message", oneof: "type", T: () => AccessLog_Entry_Info_MySQL },
14132
- { no: 9, name: "dns", kind: "message", oneof: "type", T: () => AccessLog_Entry_Info_DNS }
14698
+ { no: 9, name: "dns", kind: "message", oneof: "type", T: () => AccessLog_Entry_Info_DNS },
14699
+ { no: 10, name: "socks5", kind: "message", oneof: "type", T: () => AccessLog_Entry_Info_SOCKS5 }
14133
14700
  ]);
14134
14701
  }
14135
14702
  create(value) {
@@ -14198,6 +14765,12 @@ class AccessLog_Entry_Info$Type extends MessageType {
14198
14765
  dns: AccessLog_Entry_Info_DNS.internalBinaryRead(reader, reader.uint32(), options, message.type.dns)
14199
14766
  };
14200
14767
  break;
14768
+ case /* octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5 socks5 */ 10:
14769
+ message.type = {
14770
+ oneofKind: "socks5",
14771
+ socks5: AccessLog_Entry_Info_SOCKS5.internalBinaryRead(reader, reader.uint32(), options, message.type.socks5)
14772
+ };
14773
+ break;
14201
14774
  default:
14202
14775
  let u = options.readUnknownField;
14203
14776
  if (u === "throw")
@@ -14237,6 +14810,9 @@ class AccessLog_Entry_Info$Type extends MessageType {
14237
14810
  /* octelium.api.main.core.v1.AccessLog.Entry.Info.DNS dns = 9; */
14238
14811
  if (message.type.oneofKind === "dns")
14239
14812
  AccessLog_Entry_Info_DNS.internalBinaryWrite(message.type.dns, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
14813
+ /* octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5 socks5 = 10; */
14814
+ if (message.type.oneofKind === "socks5")
14815
+ AccessLog_Entry_Info_SOCKS5.internalBinaryWrite(message.type.socks5, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
14240
14816
  let u = options.writeUnknownFields;
14241
14817
  if (u !== false)
14242
14818
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -15903,6 +16479,109 @@ class AccessLog_Entry_Info_DNS$Type extends MessageType {
15903
16479
  */
15904
16480
  export const AccessLog_Entry_Info_DNS = new AccessLog_Entry_Info_DNS$Type();
15905
16481
  // @generated message type with reflection information, may provide speed optimized methods
16482
+ class AccessLog_Entry_Info_SOCKS5$Type extends MessageType {
16483
+ constructor() {
16484
+ super("octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5", [
16485
+ { no: 1, name: "type", kind: "enum", T: () => ["octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.Type", AccessLog_Entry_Info_SOCKS5_Type] },
16486
+ { no: 2, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
16487
+ { no: 3, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
16488
+ { no: 4, name: "addressType", kind: "enum", T: () => ["octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.AddressType", AccessLog_Entry_Info_SOCKS5_AddressType] },
16489
+ { no: 5, name: "receivedBytes", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
16490
+ { no: 6, name: "sentBytes", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
16491
+ { no: 7, name: "upstreamHost", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
16492
+ { no: 8, name: "upstreamPort", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
16493
+ ]);
16494
+ }
16495
+ create(value) {
16496
+ const message = globalThis.Object.create((this.messagePrototype));
16497
+ message.type = 0;
16498
+ message.host = "";
16499
+ message.port = 0;
16500
+ message.addressType = 0;
16501
+ message.receivedBytes = 0;
16502
+ message.sentBytes = 0;
16503
+ message.upstreamHost = "";
16504
+ message.upstreamPort = 0;
16505
+ if (value !== undefined)
16506
+ reflectionMergePartial(this, message, value);
16507
+ return message;
16508
+ }
16509
+ internalBinaryRead(reader, length, options, target) {
16510
+ let message = target ?? this.create(), end = reader.pos + length;
16511
+ while (reader.pos < end) {
16512
+ let [fieldNo, wireType] = reader.tag();
16513
+ switch (fieldNo) {
16514
+ case /* octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.Type type */ 1:
16515
+ message.type = reader.int32();
16516
+ break;
16517
+ case /* string host */ 2:
16518
+ message.host = reader.string();
16519
+ break;
16520
+ case /* uint32 port */ 3:
16521
+ message.port = reader.uint32();
16522
+ break;
16523
+ case /* octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.AddressType addressType */ 4:
16524
+ message.addressType = reader.int32();
16525
+ break;
16526
+ case /* uint64 receivedBytes */ 5:
16527
+ message.receivedBytes = reader.uint64().toNumber();
16528
+ break;
16529
+ case /* uint64 sentBytes */ 6:
16530
+ message.sentBytes = reader.uint64().toNumber();
16531
+ break;
16532
+ case /* string upstreamHost */ 7:
16533
+ message.upstreamHost = reader.string();
16534
+ break;
16535
+ case /* uint32 upstreamPort */ 8:
16536
+ message.upstreamPort = reader.uint32();
16537
+ break;
16538
+ default:
16539
+ let u = options.readUnknownField;
16540
+ if (u === "throw")
16541
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
16542
+ let d = reader.skip(wireType);
16543
+ if (u !== false)
16544
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
16545
+ }
16546
+ }
16547
+ return message;
16548
+ }
16549
+ internalBinaryWrite(message, writer, options) {
16550
+ /* octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.Type type = 1; */
16551
+ if (message.type !== 0)
16552
+ writer.tag(1, WireType.Varint).int32(message.type);
16553
+ /* string host = 2; */
16554
+ if (message.host !== "")
16555
+ writer.tag(2, WireType.LengthDelimited).string(message.host);
16556
+ /* uint32 port = 3; */
16557
+ if (message.port !== 0)
16558
+ writer.tag(3, WireType.Varint).uint32(message.port);
16559
+ /* octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5.AddressType addressType = 4; */
16560
+ if (message.addressType !== 0)
16561
+ writer.tag(4, WireType.Varint).int32(message.addressType);
16562
+ /* uint64 receivedBytes = 5; */
16563
+ if (message.receivedBytes !== 0)
16564
+ writer.tag(5, WireType.Varint).uint64(message.receivedBytes);
16565
+ /* uint64 sentBytes = 6; */
16566
+ if (message.sentBytes !== 0)
16567
+ writer.tag(6, WireType.Varint).uint64(message.sentBytes);
16568
+ /* string upstreamHost = 7; */
16569
+ if (message.upstreamHost !== "")
16570
+ writer.tag(7, WireType.LengthDelimited).string(message.upstreamHost);
16571
+ /* uint32 upstreamPort = 8; */
16572
+ if (message.upstreamPort !== 0)
16573
+ writer.tag(8, WireType.Varint).uint32(message.upstreamPort);
16574
+ let u = options.writeUnknownFields;
16575
+ if (u !== false)
16576
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
16577
+ return writer;
16578
+ }
16579
+ }
16580
+ /**
16581
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.AccessLog.Entry.Info.SOCKS5
16582
+ */
16583
+ export const AccessLog_Entry_Info_SOCKS5 = new AccessLog_Entry_Info_SOCKS5$Type();
16584
+ // @generated message type with reflection information, may provide speed optimized methods
15906
16585
  class AccessLog_Entry_Common$Type extends MessageType {
15907
16586
  constructor() {
15908
16587
  super("octelium.api.main.core.v1.AccessLog.Entry.Common", [
@@ -20875,6 +21554,7 @@ class RequestContext_Request$Type extends MessageType {
20875
21554
  { no: 4, name: "grpc", kind: "message", oneof: "type", T: () => RequestContext_Request_GRPC },
20876
21555
  { no: 5, name: "postgres", kind: "message", oneof: "type", T: () => RequestContext_Request_Postgres },
20877
21556
  { no: 6, name: "dns", kind: "message", oneof: "type", T: () => RequestContext_Request_DNS },
21557
+ { no: 8, name: "socks5", kind: "message", oneof: "type", T: () => RequestContext_Request_SOCKS5 },
20878
21558
  { no: 7, name: "ip", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
20879
21559
  ]);
20880
21560
  }
@@ -20927,6 +21607,12 @@ class RequestContext_Request$Type extends MessageType {
20927
21607
  dns: RequestContext_Request_DNS.internalBinaryRead(reader, reader.uint32(), options, message.type.dns)
20928
21608
  };
20929
21609
  break;
21610
+ case /* octelium.api.main.core.v1.RequestContext.Request.SOCKS5 socks5 */ 8:
21611
+ message.type = {
21612
+ oneofKind: "socks5",
21613
+ socks5: RequestContext_Request_SOCKS5.internalBinaryRead(reader, reader.uint32(), options, message.type.socks5)
21614
+ };
21615
+ break;
20930
21616
  case /* string ip */ 7:
20931
21617
  message.ip = reader.string();
20932
21618
  break;
@@ -20963,6 +21649,9 @@ class RequestContext_Request$Type extends MessageType {
20963
21649
  /* string ip = 7; */
20964
21650
  if (message.ip !== "")
20965
21651
  writer.tag(7, WireType.LengthDelimited).string(message.ip);
21652
+ /* octelium.api.main.core.v1.RequestContext.Request.SOCKS5 socks5 = 8; */
21653
+ if (message.type.oneofKind === "socks5")
21654
+ RequestContext_Request_SOCKS5.internalBinaryWrite(message.type.socks5, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
20966
21655
  let u = options.writeUnknownFields;
20967
21656
  if (u !== false)
20968
21657
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -21707,6 +22396,119 @@ class RequestContext_Request_DNS$Type extends MessageType {
21707
22396
  */
21708
22397
  export const RequestContext_Request_DNS = new RequestContext_Request_DNS$Type();
21709
22398
  // @generated message type with reflection information, may provide speed optimized methods
22399
+ class RequestContext_Request_SOCKS5$Type extends MessageType {
22400
+ constructor() {
22401
+ super("octelium.api.main.core.v1.RequestContext.Request.SOCKS5", [
22402
+ { no: 1, name: "connect", kind: "message", oneof: "type", T: () => RequestContext_Request_SOCKS5_Connect }
22403
+ ]);
22404
+ }
22405
+ create(value) {
22406
+ const message = globalThis.Object.create((this.messagePrototype));
22407
+ message.type = { oneofKind: undefined };
22408
+ if (value !== undefined)
22409
+ reflectionMergePartial(this, message, value);
22410
+ return message;
22411
+ }
22412
+ internalBinaryRead(reader, length, options, target) {
22413
+ let message = target ?? this.create(), end = reader.pos + length;
22414
+ while (reader.pos < end) {
22415
+ let [fieldNo, wireType] = reader.tag();
22416
+ switch (fieldNo) {
22417
+ case /* octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect connect */ 1:
22418
+ message.type = {
22419
+ oneofKind: "connect",
22420
+ connect: RequestContext_Request_SOCKS5_Connect.internalBinaryRead(reader, reader.uint32(), options, message.type.connect)
22421
+ };
22422
+ break;
22423
+ default:
22424
+ let u = options.readUnknownField;
22425
+ if (u === "throw")
22426
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
22427
+ let d = reader.skip(wireType);
22428
+ if (u !== false)
22429
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
22430
+ }
22431
+ }
22432
+ return message;
22433
+ }
22434
+ internalBinaryWrite(message, writer, options) {
22435
+ /* octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect connect = 1; */
22436
+ if (message.type.oneofKind === "connect")
22437
+ RequestContext_Request_SOCKS5_Connect.internalBinaryWrite(message.type.connect, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
22438
+ let u = options.writeUnknownFields;
22439
+ if (u !== false)
22440
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
22441
+ return writer;
22442
+ }
22443
+ }
22444
+ /**
22445
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.RequestContext.Request.SOCKS5
22446
+ */
22447
+ export const RequestContext_Request_SOCKS5 = new RequestContext_Request_SOCKS5$Type();
22448
+ // @generated message type with reflection information, may provide speed optimized methods
22449
+ class RequestContext_Request_SOCKS5_Connect$Type extends MessageType {
22450
+ constructor() {
22451
+ super("octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect", [
22452
+ { no: 1, name: "host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
22453
+ { no: 2, name: "port", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
22454
+ { no: 3, name: "addressType", kind: "enum", T: () => ["octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect.AddressType", RequestContext_Request_SOCKS5_Connect_AddressType] }
22455
+ ]);
22456
+ }
22457
+ create(value) {
22458
+ const message = globalThis.Object.create((this.messagePrototype));
22459
+ message.host = "";
22460
+ message.port = 0;
22461
+ message.addressType = 0;
22462
+ if (value !== undefined)
22463
+ reflectionMergePartial(this, message, value);
22464
+ return message;
22465
+ }
22466
+ internalBinaryRead(reader, length, options, target) {
22467
+ let message = target ?? this.create(), end = reader.pos + length;
22468
+ while (reader.pos < end) {
22469
+ let [fieldNo, wireType] = reader.tag();
22470
+ switch (fieldNo) {
22471
+ case /* string host */ 1:
22472
+ message.host = reader.string();
22473
+ break;
22474
+ case /* uint32 port */ 2:
22475
+ message.port = reader.uint32();
22476
+ break;
22477
+ case /* octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect.AddressType addressType */ 3:
22478
+ message.addressType = reader.int32();
22479
+ break;
22480
+ default:
22481
+ let u = options.readUnknownField;
22482
+ if (u === "throw")
22483
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
22484
+ let d = reader.skip(wireType);
22485
+ if (u !== false)
22486
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
22487
+ }
22488
+ }
22489
+ return message;
22490
+ }
22491
+ internalBinaryWrite(message, writer, options) {
22492
+ /* string host = 1; */
22493
+ if (message.host !== "")
22494
+ writer.tag(1, WireType.LengthDelimited).string(message.host);
22495
+ /* uint32 port = 2; */
22496
+ if (message.port !== 0)
22497
+ writer.tag(2, WireType.Varint).uint32(message.port);
22498
+ /* octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect.AddressType addressType = 3; */
22499
+ if (message.addressType !== 0)
22500
+ writer.tag(3, WireType.Varint).int32(message.addressType);
22501
+ let u = options.writeUnknownFields;
22502
+ if (u !== false)
22503
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
22504
+ return writer;
22505
+ }
22506
+ }
22507
+ /**
22508
+ * @generated MessageType for protobuf message octelium.api.main.core.v1.RequestContext.Request.SOCKS5.Connect
22509
+ */
22510
+ export const RequestContext_Request_SOCKS5_Connect = new RequestContext_Request_SOCKS5_Connect$Type();
22511
+ // @generated message type with reflection information, may provide speed optimized methods
21710
22512
  class PolicyTrigger$Type extends MessageType {
21711
22513
  constructor() {
21712
22514
  super("octelium.api.main.core.v1.PolicyTrigger", [
@@ -21908,7 +22710,11 @@ class PolicyTrigger_Status_PreCondition$Type extends MessageType {
21908
22710
  { no: 5, name: "matchAny", kind: "scalar", oneof: "type", T: 8 /*ScalarType.BOOL*/ },
21909
22711
  { no: 6, name: "condition", kind: "message", oneof: "type", T: () => Condition },
21910
22712
  { no: 7, name: "any", kind: "message", oneof: "type", T: () => PolicyTrigger_Status_PreCondition_Any },
21911
- { no: 8, name: "all", kind: "message", oneof: "type", T: () => PolicyTrigger_Status_PreCondition_All }
22713
+ { no: 8, name: "all", kind: "message", oneof: "type", T: () => PolicyTrigger_Status_PreCondition_All },
22714
+ { no: 9, name: "serviceRef", kind: "message", oneof: "type", T: () => ObjectReference },
22715
+ { no: 10, name: "namespaceRef", kind: "message", oneof: "type", T: () => ObjectReference },
22716
+ { no: 11, name: "groupRef", kind: "message", oneof: "type", T: () => ObjectReference },
22717
+ { no: 12, name: "deviceRef", kind: "message", oneof: "type", T: () => ObjectReference }
21912
22718
  ]);
21913
22719
  }
21914
22720
  create(value) {
@@ -21971,6 +22777,30 @@ class PolicyTrigger_Status_PreCondition$Type extends MessageType {
21971
22777
  all: PolicyTrigger_Status_PreCondition_All.internalBinaryRead(reader, reader.uint32(), options, message.type.all)
21972
22778
  };
21973
22779
  break;
22780
+ case /* octelium.api.main.meta.v1.ObjectReference serviceRef */ 9:
22781
+ message.type = {
22782
+ oneofKind: "serviceRef",
22783
+ serviceRef: ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.type.serviceRef)
22784
+ };
22785
+ break;
22786
+ case /* octelium.api.main.meta.v1.ObjectReference namespaceRef */ 10:
22787
+ message.type = {
22788
+ oneofKind: "namespaceRef",
22789
+ namespaceRef: ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.type.namespaceRef)
22790
+ };
22791
+ break;
22792
+ case /* octelium.api.main.meta.v1.ObjectReference groupRef */ 11:
22793
+ message.type = {
22794
+ oneofKind: "groupRef",
22795
+ groupRef: ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.type.groupRef)
22796
+ };
22797
+ break;
22798
+ case /* octelium.api.main.meta.v1.ObjectReference deviceRef */ 12:
22799
+ message.type = {
22800
+ oneofKind: "deviceRef",
22801
+ deviceRef: ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.type.deviceRef)
22802
+ };
22803
+ break;
21974
22804
  default:
21975
22805
  let u = options.readUnknownField;
21976
22806
  if (u === "throw")
@@ -22007,6 +22837,18 @@ class PolicyTrigger_Status_PreCondition$Type extends MessageType {
22007
22837
  /* octelium.api.main.core.v1.PolicyTrigger.Status.PreCondition.All all = 8; */
22008
22838
  if (message.type.oneofKind === "all")
22009
22839
  PolicyTrigger_Status_PreCondition_All.internalBinaryWrite(message.type.all, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
22840
+ /* octelium.api.main.meta.v1.ObjectReference serviceRef = 9; */
22841
+ if (message.type.oneofKind === "serviceRef")
22842
+ ObjectReference.internalBinaryWrite(message.type.serviceRef, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
22843
+ /* octelium.api.main.meta.v1.ObjectReference namespaceRef = 10; */
22844
+ if (message.type.oneofKind === "namespaceRef")
22845
+ ObjectReference.internalBinaryWrite(message.type.namespaceRef, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
22846
+ /* octelium.api.main.meta.v1.ObjectReference groupRef = 11; */
22847
+ if (message.type.oneofKind === "groupRef")
22848
+ ObjectReference.internalBinaryWrite(message.type.groupRef, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
22849
+ /* octelium.api.main.meta.v1.ObjectReference deviceRef = 12; */
22850
+ if (message.type.oneofKind === "deviceRef")
22851
+ ObjectReference.internalBinaryWrite(message.type.deviceRef, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
22010
22852
  let u = options.writeUnknownFields;
22011
22853
  if (u !== false)
22012
22854
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -22958,11 +23800,20 @@ export const Authenticator_Status_Info_FIDO = new Authenticator_Status_Info_FIDO
22958
23800
  class Authenticator_Status_Info_TOTP$Type extends MessageType {
22959
23801
  constructor() {
22960
23802
  super("octelium.api.main.core.v1.Authenticator.Status.Info.TOTP", [
22961
- { no: 1, name: "sharedSecret", kind: "message", T: () => Authenticator_Status_EncryptedData }
23803
+ { no: 1, name: "sharedSecret", kind: "message", T: () => Authenticator_Status_EncryptedData },
23804
+ { no: 2, name: "periodSeconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
23805
+ { no: 3, name: "digits", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
23806
+ { no: 4, name: "algorithm", kind: "enum", T: () => ["octelium.api.main.core.v1.Authenticator.Status.Info.TOTP.Algorithm", Authenticator_Status_Info_TOTP_Algorithm] },
23807
+ { no: 5, name: "lastAcceptedTimeStep", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ },
23808
+ { no: 6, name: "lastAcceptedAt", kind: "message", T: () => Timestamp }
22962
23809
  ]);
22963
23810
  }
22964
23811
  create(value) {
22965
23812
  const message = globalThis.Object.create((this.messagePrototype));
23813
+ message.periodSeconds = 0;
23814
+ message.digits = 0;
23815
+ message.algorithm = 0;
23816
+ message.lastAcceptedTimeStep = 0;
22966
23817
  if (value !== undefined)
22967
23818
  reflectionMergePartial(this, message, value);
22968
23819
  return message;
@@ -22975,6 +23826,21 @@ class Authenticator_Status_Info_TOTP$Type extends MessageType {
22975
23826
  case /* octelium.api.main.core.v1.Authenticator.Status.EncryptedData sharedSecret */ 1:
22976
23827
  message.sharedSecret = Authenticator_Status_EncryptedData.internalBinaryRead(reader, reader.uint32(), options, message.sharedSecret);
22977
23828
  break;
23829
+ case /* uint32 periodSeconds */ 2:
23830
+ message.periodSeconds = reader.uint32();
23831
+ break;
23832
+ case /* uint32 digits */ 3:
23833
+ message.digits = reader.uint32();
23834
+ break;
23835
+ case /* octelium.api.main.core.v1.Authenticator.Status.Info.TOTP.Algorithm algorithm */ 4:
23836
+ message.algorithm = reader.int32();
23837
+ break;
23838
+ case /* uint64 lastAcceptedTimeStep */ 5:
23839
+ message.lastAcceptedTimeStep = reader.uint64().toNumber();
23840
+ break;
23841
+ case /* google.protobuf.Timestamp lastAcceptedAt */ 6:
23842
+ message.lastAcceptedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastAcceptedAt);
23843
+ break;
22978
23844
  default:
22979
23845
  let u = options.readUnknownField;
22980
23846
  if (u === "throw")
@@ -22990,6 +23856,21 @@ class Authenticator_Status_Info_TOTP$Type extends MessageType {
22990
23856
  /* octelium.api.main.core.v1.Authenticator.Status.EncryptedData sharedSecret = 1; */
22991
23857
  if (message.sharedSecret)
22992
23858
  Authenticator_Status_EncryptedData.internalBinaryWrite(message.sharedSecret, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
23859
+ /* uint32 periodSeconds = 2; */
23860
+ if (message.periodSeconds !== 0)
23861
+ writer.tag(2, WireType.Varint).uint32(message.periodSeconds);
23862
+ /* uint32 digits = 3; */
23863
+ if (message.digits !== 0)
23864
+ writer.tag(3, WireType.Varint).uint32(message.digits);
23865
+ /* octelium.api.main.core.v1.Authenticator.Status.Info.TOTP.Algorithm algorithm = 4; */
23866
+ if (message.algorithm !== 0)
23867
+ writer.tag(4, WireType.Varint).int32(message.algorithm);
23868
+ /* uint64 lastAcceptedTimeStep = 5; */
23869
+ if (message.lastAcceptedTimeStep !== 0)
23870
+ writer.tag(5, WireType.Varint).uint64(message.lastAcceptedTimeStep);
23871
+ /* google.protobuf.Timestamp lastAcceptedAt = 6; */
23872
+ if (message.lastAcceptedAt)
23873
+ Timestamp.internalBinaryWrite(message.lastAcceptedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
22993
23874
  let u = options.writeUnknownFields;
22994
23875
  if (u !== false)
22995
23876
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -23141,7 +24022,8 @@ class Authenticator_Status_AuthenticationAttempt$Type extends MessageType {
23141
24022
  { no: 2, name: "encryptedChallengeRequest", kind: "message", T: () => Authenticator_Status_EncryptedData },
23142
24023
  { no: 3, name: "encryptedDataMap", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => Authenticator_Status_EncryptedData } },
23143
24024
  { no: 4, name: "dataMap", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 12 /*ScalarType.BYTES*/ } },
23144
- { no: 5, name: "sessionRef", kind: "message", T: () => ObjectReference }
24025
+ { no: 5, name: "sessionRef", kind: "message", T: () => ObjectReference },
24026
+ { no: 6, name: "completedAt", kind: "message", T: () => Timestamp }
23145
24027
  ]);
23146
24028
  }
23147
24029
  create(value) {
@@ -23172,6 +24054,9 @@ class Authenticator_Status_AuthenticationAttempt$Type extends MessageType {
23172
24054
  case /* octelium.api.main.meta.v1.ObjectReference sessionRef */ 5:
23173
24055
  message.sessionRef = ObjectReference.internalBinaryRead(reader, reader.uint32(), options, message.sessionRef);
23174
24056
  break;
24057
+ case /* google.protobuf.Timestamp completedAt */ 6:
24058
+ message.completedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.completedAt);
24059
+ break;
23175
24060
  default:
23176
24061
  let u = options.readUnknownField;
23177
24062
  if (u === "throw")
@@ -23235,6 +24120,9 @@ class Authenticator_Status_AuthenticationAttempt$Type extends MessageType {
23235
24120
  /* octelium.api.main.meta.v1.ObjectReference sessionRef = 5; */
23236
24121
  if (message.sessionRef)
23237
24122
  ObjectReference.internalBinaryWrite(message.sessionRef, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
24123
+ /* google.protobuf.Timestamp completedAt = 6; */
24124
+ if (message.completedAt)
24125
+ Timestamp.internalBinaryWrite(message.completedAt, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
23238
24126
  let u = options.writeUnknownFields;
23239
24127
  if (u !== false)
23240
24128
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);