@octelium/apis 1.0.4 → 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.
@@ -909,6 +909,153 @@ export interface AuthenticateWithPasskeyRequest {
909
909
  */
910
910
  response: string;
911
911
  }
912
+ /**
913
+ * @generated from protobuf message octelium.api.main.auth.v1.RunDeviceProbeBeginRequest
914
+ */
915
+ export interface RunDeviceProbeBeginRequest {
916
+ }
917
+ /**
918
+ * @generated from protobuf message octelium.api.main.auth.v1.RunDeviceProbeBeginResponse
919
+ */
920
+ export interface RunDeviceProbeBeginResponse {
921
+ /**
922
+ * @generated from protobuf field: string attemptUID = 1
923
+ */
924
+ attemptUID: string;
925
+ /**
926
+ * @generated from protobuf field: repeated octelium.api.main.auth.v1.DeviceProbe probes = 2
927
+ */
928
+ probes: DeviceProbe[];
929
+ }
930
+ /**
931
+ * @generated from protobuf message octelium.api.main.auth.v1.DeviceProbe
932
+ */
933
+ export interface DeviceProbe {
934
+ /**
935
+ * @generated from protobuf field: string probeID = 1
936
+ */
937
+ probeID: string;
938
+ /**
939
+ * @generated from protobuf field: bool requireElevation = 2
940
+ */
941
+ requireElevation: boolean;
942
+ /**
943
+ * @generated from protobuf oneof: type
944
+ */
945
+ type: {
946
+ oneofKind: "runCommand";
947
+ /**
948
+ * @generated from protobuf field: octelium.api.main.auth.v1.DeviceProbe.RunCommand runCommand = 3
949
+ */
950
+ runCommand: DeviceProbe_RunCommand;
951
+ } | {
952
+ oneofKind: "readFile";
953
+ /**
954
+ * @generated from protobuf field: octelium.api.main.auth.v1.DeviceProbe.ReadFile readFile = 4
955
+ */
956
+ readFile: DeviceProbe_ReadFile;
957
+ } | {
958
+ oneofKind: "readRegistry";
959
+ /**
960
+ * @generated from protobuf field: octelium.api.main.auth.v1.DeviceProbe.ReadRegistry readRegistry = 5
961
+ */
962
+ readRegistry: DeviceProbe_ReadRegistry;
963
+ } | {
964
+ oneofKind: undefined;
965
+ };
966
+ }
967
+ /**
968
+ * @generated from protobuf message octelium.api.main.auth.v1.DeviceProbe.RunCommand
969
+ */
970
+ export interface DeviceProbe_RunCommand {
971
+ /**
972
+ * @generated from protobuf field: string command = 1
973
+ */
974
+ command: string;
975
+ /**
976
+ * @generated from protobuf field: repeated string args = 2
977
+ */
978
+ args: string[];
979
+ /**
980
+ * @generated from protobuf field: uint32 timeoutSeconds = 3
981
+ */
982
+ timeoutSeconds: number;
983
+ /**
984
+ * @generated from protobuf field: uint32 maxOutputBytes = 4
985
+ */
986
+ maxOutputBytes: number;
987
+ }
988
+ /**
989
+ * @generated from protobuf message octelium.api.main.auth.v1.DeviceProbe.ReadFile
990
+ */
991
+ export interface DeviceProbe_ReadFile {
992
+ /**
993
+ * @generated from protobuf field: string path = 1
994
+ */
995
+ path: string;
996
+ /**
997
+ * @generated from protobuf field: uint32 maxBytes = 2
998
+ */
999
+ maxBytes: number;
1000
+ }
1001
+ /**
1002
+ * @generated from protobuf message octelium.api.main.auth.v1.DeviceProbe.ReadRegistry
1003
+ */
1004
+ export interface DeviceProbe_ReadRegistry {
1005
+ /**
1006
+ * @generated from protobuf field: string key = 1
1007
+ */
1008
+ key: string;
1009
+ /**
1010
+ * @generated from protobuf field: string name = 2
1011
+ */
1012
+ name: string;
1013
+ }
1014
+ /**
1015
+ * @generated from protobuf message octelium.api.main.auth.v1.DeviceProbeResult
1016
+ */
1017
+ export interface DeviceProbeResult {
1018
+ /**
1019
+ * @generated from protobuf field: string probeID = 1
1020
+ */
1021
+ probeID: string;
1022
+ /**
1023
+ * @generated from protobuf oneof: type
1024
+ */
1025
+ type: {
1026
+ oneofKind: "output";
1027
+ /**
1028
+ * @generated from protobuf field: bytes output = 2
1029
+ */
1030
+ output: Uint8Array;
1031
+ } | {
1032
+ oneofKind: "error";
1033
+ /**
1034
+ * @generated from protobuf field: string error = 3
1035
+ */
1036
+ error: string;
1037
+ } | {
1038
+ oneofKind: undefined;
1039
+ };
1040
+ }
1041
+ /**
1042
+ * @generated from protobuf message octelium.api.main.auth.v1.RunDeviceProbeFinishRequest
1043
+ */
1044
+ export interface RunDeviceProbeFinishRequest {
1045
+ /**
1046
+ * @generated from protobuf field: string attemptUID = 1
1047
+ */
1048
+ attemptUID: string;
1049
+ /**
1050
+ * @generated from protobuf field: repeated octelium.api.main.auth.v1.DeviceProbeResult results = 2
1051
+ */
1052
+ results: DeviceProbeResult[];
1053
+ }
1054
+ /**
1055
+ * @generated from protobuf message octelium.api.main.auth.v1.RunDeviceProbeFinishResponse
1056
+ */
1057
+ export interface RunDeviceProbeFinishResponse {
1058
+ }
912
1059
  // @generated message type with reflection information, may provide speed optimized methods
913
1060
  class SessionToken$Type extends MessageType<SessionToken> {
914
1061
  constructor() {
@@ -3936,6 +4083,527 @@ class AuthenticateWithPasskeyRequest$Type extends MessageType<AuthenticateWithPa
3936
4083
  * @generated MessageType for protobuf message octelium.api.main.auth.v1.AuthenticateWithPasskeyRequest
3937
4084
  */
3938
4085
  export const AuthenticateWithPasskeyRequest = new AuthenticateWithPasskeyRequest$Type();
4086
+ // @generated message type with reflection information, may provide speed optimized methods
4087
+ class RunDeviceProbeBeginRequest$Type extends MessageType<RunDeviceProbeBeginRequest> {
4088
+ constructor() {
4089
+ super("octelium.api.main.auth.v1.RunDeviceProbeBeginRequest", []);
4090
+ }
4091
+ create(value?: PartialMessage<RunDeviceProbeBeginRequest>): RunDeviceProbeBeginRequest {
4092
+ const message = globalThis.Object.create((this.messagePrototype!));
4093
+ if (value !== undefined)
4094
+ reflectionMergePartial<RunDeviceProbeBeginRequest>(this, message, value);
4095
+ return message;
4096
+ }
4097
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunDeviceProbeBeginRequest): RunDeviceProbeBeginRequest {
4098
+ let message = target ?? this.create(), end = reader.pos + length;
4099
+ while (reader.pos < end) {
4100
+ let [fieldNo, wireType] = reader.tag();
4101
+ switch (fieldNo) {
4102
+ default:
4103
+ let u = options.readUnknownField;
4104
+ if (u === "throw")
4105
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4106
+ let d = reader.skip(wireType);
4107
+ if (u !== false)
4108
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4109
+ }
4110
+ }
4111
+ return message;
4112
+ }
4113
+ internalBinaryWrite(message: RunDeviceProbeBeginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4114
+ let u = options.writeUnknownFields;
4115
+ if (u !== false)
4116
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4117
+ return writer;
4118
+ }
4119
+ }
4120
+ /**
4121
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeBeginRequest
4122
+ */
4123
+ export const RunDeviceProbeBeginRequest = new RunDeviceProbeBeginRequest$Type();
4124
+ // @generated message type with reflection information, may provide speed optimized methods
4125
+ class RunDeviceProbeBeginResponse$Type extends MessageType<RunDeviceProbeBeginResponse> {
4126
+ constructor() {
4127
+ super("octelium.api.main.auth.v1.RunDeviceProbeBeginResponse", [
4128
+ { no: 1, name: "attemptUID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4129
+ { no: 2, name: "probes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DeviceProbe }
4130
+ ]);
4131
+ }
4132
+ create(value?: PartialMessage<RunDeviceProbeBeginResponse>): RunDeviceProbeBeginResponse {
4133
+ const message = globalThis.Object.create((this.messagePrototype!));
4134
+ message.attemptUID = "";
4135
+ message.probes = [];
4136
+ if (value !== undefined)
4137
+ reflectionMergePartial<RunDeviceProbeBeginResponse>(this, message, value);
4138
+ return message;
4139
+ }
4140
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunDeviceProbeBeginResponse): RunDeviceProbeBeginResponse {
4141
+ let message = target ?? this.create(), end = reader.pos + length;
4142
+ while (reader.pos < end) {
4143
+ let [fieldNo, wireType] = reader.tag();
4144
+ switch (fieldNo) {
4145
+ case /* string attemptUID */ 1:
4146
+ message.attemptUID = reader.string();
4147
+ break;
4148
+ case /* repeated octelium.api.main.auth.v1.DeviceProbe probes */ 2:
4149
+ message.probes.push(DeviceProbe.internalBinaryRead(reader, reader.uint32(), options));
4150
+ break;
4151
+ default:
4152
+ let u = options.readUnknownField;
4153
+ if (u === "throw")
4154
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4155
+ let d = reader.skip(wireType);
4156
+ if (u !== false)
4157
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4158
+ }
4159
+ }
4160
+ return message;
4161
+ }
4162
+ internalBinaryWrite(message: RunDeviceProbeBeginResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4163
+ /* string attemptUID = 1; */
4164
+ if (message.attemptUID !== "")
4165
+ writer.tag(1, WireType.LengthDelimited).string(message.attemptUID);
4166
+ /* repeated octelium.api.main.auth.v1.DeviceProbe probes = 2; */
4167
+ for (let i = 0; i < message.probes.length; i++)
4168
+ DeviceProbe.internalBinaryWrite(message.probes[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4169
+ let u = options.writeUnknownFields;
4170
+ if (u !== false)
4171
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4172
+ return writer;
4173
+ }
4174
+ }
4175
+ /**
4176
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeBeginResponse
4177
+ */
4178
+ export const RunDeviceProbeBeginResponse = new RunDeviceProbeBeginResponse$Type();
4179
+ // @generated message type with reflection information, may provide speed optimized methods
4180
+ class DeviceProbe$Type extends MessageType<DeviceProbe> {
4181
+ constructor() {
4182
+ super("octelium.api.main.auth.v1.DeviceProbe", [
4183
+ { no: 1, name: "probeID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4184
+ { no: 2, name: "requireElevation", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
4185
+ { no: 3, name: "runCommand", kind: "message", oneof: "type", T: () => DeviceProbe_RunCommand },
4186
+ { no: 4, name: "readFile", kind: "message", oneof: "type", T: () => DeviceProbe_ReadFile },
4187
+ { no: 5, name: "readRegistry", kind: "message", oneof: "type", T: () => DeviceProbe_ReadRegistry }
4188
+ ]);
4189
+ }
4190
+ create(value?: PartialMessage<DeviceProbe>): DeviceProbe {
4191
+ const message = globalThis.Object.create((this.messagePrototype!));
4192
+ message.probeID = "";
4193
+ message.requireElevation = false;
4194
+ message.type = { oneofKind: undefined };
4195
+ if (value !== undefined)
4196
+ reflectionMergePartial<DeviceProbe>(this, message, value);
4197
+ return message;
4198
+ }
4199
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceProbe): DeviceProbe {
4200
+ let message = target ?? this.create(), end = reader.pos + length;
4201
+ while (reader.pos < end) {
4202
+ let [fieldNo, wireType] = reader.tag();
4203
+ switch (fieldNo) {
4204
+ case /* string probeID */ 1:
4205
+ message.probeID = reader.string();
4206
+ break;
4207
+ case /* bool requireElevation */ 2:
4208
+ message.requireElevation = reader.bool();
4209
+ break;
4210
+ case /* octelium.api.main.auth.v1.DeviceProbe.RunCommand runCommand */ 3:
4211
+ message.type = {
4212
+ oneofKind: "runCommand",
4213
+ runCommand: DeviceProbe_RunCommand.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).runCommand)
4214
+ };
4215
+ break;
4216
+ case /* octelium.api.main.auth.v1.DeviceProbe.ReadFile readFile */ 4:
4217
+ message.type = {
4218
+ oneofKind: "readFile",
4219
+ readFile: DeviceProbe_ReadFile.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).readFile)
4220
+ };
4221
+ break;
4222
+ case /* octelium.api.main.auth.v1.DeviceProbe.ReadRegistry readRegistry */ 5:
4223
+ message.type = {
4224
+ oneofKind: "readRegistry",
4225
+ readRegistry: DeviceProbe_ReadRegistry.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).readRegistry)
4226
+ };
4227
+ break;
4228
+ default:
4229
+ let u = options.readUnknownField;
4230
+ if (u === "throw")
4231
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4232
+ let d = reader.skip(wireType);
4233
+ if (u !== false)
4234
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4235
+ }
4236
+ }
4237
+ return message;
4238
+ }
4239
+ internalBinaryWrite(message: DeviceProbe, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4240
+ /* string probeID = 1; */
4241
+ if (message.probeID !== "")
4242
+ writer.tag(1, WireType.LengthDelimited).string(message.probeID);
4243
+ /* bool requireElevation = 2; */
4244
+ if (message.requireElevation !== false)
4245
+ writer.tag(2, WireType.Varint).bool(message.requireElevation);
4246
+ /* octelium.api.main.auth.v1.DeviceProbe.RunCommand runCommand = 3; */
4247
+ if (message.type.oneofKind === "runCommand")
4248
+ DeviceProbe_RunCommand.internalBinaryWrite(message.type.runCommand, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
4249
+ /* octelium.api.main.auth.v1.DeviceProbe.ReadFile readFile = 4; */
4250
+ if (message.type.oneofKind === "readFile")
4251
+ DeviceProbe_ReadFile.internalBinaryWrite(message.type.readFile, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
4252
+ /* octelium.api.main.auth.v1.DeviceProbe.ReadRegistry readRegistry = 5; */
4253
+ if (message.type.oneofKind === "readRegistry")
4254
+ DeviceProbe_ReadRegistry.internalBinaryWrite(message.type.readRegistry, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
4255
+ let u = options.writeUnknownFields;
4256
+ if (u !== false)
4257
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4258
+ return writer;
4259
+ }
4260
+ }
4261
+ /**
4262
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe
4263
+ */
4264
+ export const DeviceProbe = new DeviceProbe$Type();
4265
+ // @generated message type with reflection information, may provide speed optimized methods
4266
+ class DeviceProbe_RunCommand$Type extends MessageType<DeviceProbe_RunCommand> {
4267
+ constructor() {
4268
+ super("octelium.api.main.auth.v1.DeviceProbe.RunCommand", [
4269
+ { no: 1, name: "command", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4270
+ { no: 2, name: "args", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
4271
+ { no: 3, name: "timeoutSeconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
4272
+ { no: 4, name: "maxOutputBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
4273
+ ]);
4274
+ }
4275
+ create(value?: PartialMessage<DeviceProbe_RunCommand>): DeviceProbe_RunCommand {
4276
+ const message = globalThis.Object.create((this.messagePrototype!));
4277
+ message.command = "";
4278
+ message.args = [];
4279
+ message.timeoutSeconds = 0;
4280
+ message.maxOutputBytes = 0;
4281
+ if (value !== undefined)
4282
+ reflectionMergePartial<DeviceProbe_RunCommand>(this, message, value);
4283
+ return message;
4284
+ }
4285
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceProbe_RunCommand): DeviceProbe_RunCommand {
4286
+ let message = target ?? this.create(), end = reader.pos + length;
4287
+ while (reader.pos < end) {
4288
+ let [fieldNo, wireType] = reader.tag();
4289
+ switch (fieldNo) {
4290
+ case /* string command */ 1:
4291
+ message.command = reader.string();
4292
+ break;
4293
+ case /* repeated string args */ 2:
4294
+ message.args.push(reader.string());
4295
+ break;
4296
+ case /* uint32 timeoutSeconds */ 3:
4297
+ message.timeoutSeconds = reader.uint32();
4298
+ break;
4299
+ case /* uint32 maxOutputBytes */ 4:
4300
+ message.maxOutputBytes = reader.uint32();
4301
+ break;
4302
+ default:
4303
+ let u = options.readUnknownField;
4304
+ if (u === "throw")
4305
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4306
+ let d = reader.skip(wireType);
4307
+ if (u !== false)
4308
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4309
+ }
4310
+ }
4311
+ return message;
4312
+ }
4313
+ internalBinaryWrite(message: DeviceProbe_RunCommand, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4314
+ /* string command = 1; */
4315
+ if (message.command !== "")
4316
+ writer.tag(1, WireType.LengthDelimited).string(message.command);
4317
+ /* repeated string args = 2; */
4318
+ for (let i = 0; i < message.args.length; i++)
4319
+ writer.tag(2, WireType.LengthDelimited).string(message.args[i]);
4320
+ /* uint32 timeoutSeconds = 3; */
4321
+ if (message.timeoutSeconds !== 0)
4322
+ writer.tag(3, WireType.Varint).uint32(message.timeoutSeconds);
4323
+ /* uint32 maxOutputBytes = 4; */
4324
+ if (message.maxOutputBytes !== 0)
4325
+ writer.tag(4, WireType.Varint).uint32(message.maxOutputBytes);
4326
+ let u = options.writeUnknownFields;
4327
+ if (u !== false)
4328
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4329
+ return writer;
4330
+ }
4331
+ }
4332
+ /**
4333
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe.RunCommand
4334
+ */
4335
+ export const DeviceProbe_RunCommand = new DeviceProbe_RunCommand$Type();
4336
+ // @generated message type with reflection information, may provide speed optimized methods
4337
+ class DeviceProbe_ReadFile$Type extends MessageType<DeviceProbe_ReadFile> {
4338
+ constructor() {
4339
+ super("octelium.api.main.auth.v1.DeviceProbe.ReadFile", [
4340
+ { no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4341
+ { no: 2, name: "maxBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
4342
+ ]);
4343
+ }
4344
+ create(value?: PartialMessage<DeviceProbe_ReadFile>): DeviceProbe_ReadFile {
4345
+ const message = globalThis.Object.create((this.messagePrototype!));
4346
+ message.path = "";
4347
+ message.maxBytes = 0;
4348
+ if (value !== undefined)
4349
+ reflectionMergePartial<DeviceProbe_ReadFile>(this, message, value);
4350
+ return message;
4351
+ }
4352
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceProbe_ReadFile): DeviceProbe_ReadFile {
4353
+ let message = target ?? this.create(), end = reader.pos + length;
4354
+ while (reader.pos < end) {
4355
+ let [fieldNo, wireType] = reader.tag();
4356
+ switch (fieldNo) {
4357
+ case /* string path */ 1:
4358
+ message.path = reader.string();
4359
+ break;
4360
+ case /* uint32 maxBytes */ 2:
4361
+ message.maxBytes = reader.uint32();
4362
+ break;
4363
+ default:
4364
+ let u = options.readUnknownField;
4365
+ if (u === "throw")
4366
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4367
+ let d = reader.skip(wireType);
4368
+ if (u !== false)
4369
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4370
+ }
4371
+ }
4372
+ return message;
4373
+ }
4374
+ internalBinaryWrite(message: DeviceProbe_ReadFile, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4375
+ /* string path = 1; */
4376
+ if (message.path !== "")
4377
+ writer.tag(1, WireType.LengthDelimited).string(message.path);
4378
+ /* uint32 maxBytes = 2; */
4379
+ if (message.maxBytes !== 0)
4380
+ writer.tag(2, WireType.Varint).uint32(message.maxBytes);
4381
+ let u = options.writeUnknownFields;
4382
+ if (u !== false)
4383
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4384
+ return writer;
4385
+ }
4386
+ }
4387
+ /**
4388
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe.ReadFile
4389
+ */
4390
+ export const DeviceProbe_ReadFile = new DeviceProbe_ReadFile$Type();
4391
+ // @generated message type with reflection information, may provide speed optimized methods
4392
+ class DeviceProbe_ReadRegistry$Type extends MessageType<DeviceProbe_ReadRegistry> {
4393
+ constructor() {
4394
+ super("octelium.api.main.auth.v1.DeviceProbe.ReadRegistry", [
4395
+ { no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4396
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4397
+ ]);
4398
+ }
4399
+ create(value?: PartialMessage<DeviceProbe_ReadRegistry>): DeviceProbe_ReadRegistry {
4400
+ const message = globalThis.Object.create((this.messagePrototype!));
4401
+ message.key = "";
4402
+ message.name = "";
4403
+ if (value !== undefined)
4404
+ reflectionMergePartial<DeviceProbe_ReadRegistry>(this, message, value);
4405
+ return message;
4406
+ }
4407
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceProbe_ReadRegistry): DeviceProbe_ReadRegistry {
4408
+ let message = target ?? this.create(), end = reader.pos + length;
4409
+ while (reader.pos < end) {
4410
+ let [fieldNo, wireType] = reader.tag();
4411
+ switch (fieldNo) {
4412
+ case /* string key */ 1:
4413
+ message.key = reader.string();
4414
+ break;
4415
+ case /* string name */ 2:
4416
+ message.name = reader.string();
4417
+ break;
4418
+ default:
4419
+ let u = options.readUnknownField;
4420
+ if (u === "throw")
4421
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4422
+ let d = reader.skip(wireType);
4423
+ if (u !== false)
4424
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4425
+ }
4426
+ }
4427
+ return message;
4428
+ }
4429
+ internalBinaryWrite(message: DeviceProbe_ReadRegistry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4430
+ /* string key = 1; */
4431
+ if (message.key !== "")
4432
+ writer.tag(1, WireType.LengthDelimited).string(message.key);
4433
+ /* string name = 2; */
4434
+ if (message.name !== "")
4435
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
4436
+ let u = options.writeUnknownFields;
4437
+ if (u !== false)
4438
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4439
+ return writer;
4440
+ }
4441
+ }
4442
+ /**
4443
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe.ReadRegistry
4444
+ */
4445
+ export const DeviceProbe_ReadRegistry = new DeviceProbe_ReadRegistry$Type();
4446
+ // @generated message type with reflection information, may provide speed optimized methods
4447
+ class DeviceProbeResult$Type extends MessageType<DeviceProbeResult> {
4448
+ constructor() {
4449
+ super("octelium.api.main.auth.v1.DeviceProbeResult", [
4450
+ { no: 1, name: "probeID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4451
+ { no: 2, name: "output", kind: "scalar", oneof: "type", T: 12 /*ScalarType.BYTES*/ },
4452
+ { no: 3, name: "error", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ }
4453
+ ]);
4454
+ }
4455
+ create(value?: PartialMessage<DeviceProbeResult>): DeviceProbeResult {
4456
+ const message = globalThis.Object.create((this.messagePrototype!));
4457
+ message.probeID = "";
4458
+ message.type = { oneofKind: undefined };
4459
+ if (value !== undefined)
4460
+ reflectionMergePartial<DeviceProbeResult>(this, message, value);
4461
+ return message;
4462
+ }
4463
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeviceProbeResult): DeviceProbeResult {
4464
+ let message = target ?? this.create(), end = reader.pos + length;
4465
+ while (reader.pos < end) {
4466
+ let [fieldNo, wireType] = reader.tag();
4467
+ switch (fieldNo) {
4468
+ case /* string probeID */ 1:
4469
+ message.probeID = reader.string();
4470
+ break;
4471
+ case /* bytes output */ 2:
4472
+ message.type = {
4473
+ oneofKind: "output",
4474
+ output: reader.bytes()
4475
+ };
4476
+ break;
4477
+ case /* string error */ 3:
4478
+ message.type = {
4479
+ oneofKind: "error",
4480
+ error: reader.string()
4481
+ };
4482
+ break;
4483
+ default:
4484
+ let u = options.readUnknownField;
4485
+ if (u === "throw")
4486
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4487
+ let d = reader.skip(wireType);
4488
+ if (u !== false)
4489
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4490
+ }
4491
+ }
4492
+ return message;
4493
+ }
4494
+ internalBinaryWrite(message: DeviceProbeResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4495
+ /* string probeID = 1; */
4496
+ if (message.probeID !== "")
4497
+ writer.tag(1, WireType.LengthDelimited).string(message.probeID);
4498
+ /* bytes output = 2; */
4499
+ if (message.type.oneofKind === "output")
4500
+ writer.tag(2, WireType.LengthDelimited).bytes(message.type.output);
4501
+ /* string error = 3; */
4502
+ if (message.type.oneofKind === "error")
4503
+ writer.tag(3, WireType.LengthDelimited).string(message.type.error);
4504
+ let u = options.writeUnknownFields;
4505
+ if (u !== false)
4506
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4507
+ return writer;
4508
+ }
4509
+ }
4510
+ /**
4511
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbeResult
4512
+ */
4513
+ export const DeviceProbeResult = new DeviceProbeResult$Type();
4514
+ // @generated message type with reflection information, may provide speed optimized methods
4515
+ class RunDeviceProbeFinishRequest$Type extends MessageType<RunDeviceProbeFinishRequest> {
4516
+ constructor() {
4517
+ super("octelium.api.main.auth.v1.RunDeviceProbeFinishRequest", [
4518
+ { no: 1, name: "attemptUID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4519
+ { no: 2, name: "results", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DeviceProbeResult }
4520
+ ]);
4521
+ }
4522
+ create(value?: PartialMessage<RunDeviceProbeFinishRequest>): RunDeviceProbeFinishRequest {
4523
+ const message = globalThis.Object.create((this.messagePrototype!));
4524
+ message.attemptUID = "";
4525
+ message.results = [];
4526
+ if (value !== undefined)
4527
+ reflectionMergePartial<RunDeviceProbeFinishRequest>(this, message, value);
4528
+ return message;
4529
+ }
4530
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunDeviceProbeFinishRequest): RunDeviceProbeFinishRequest {
4531
+ let message = target ?? this.create(), end = reader.pos + length;
4532
+ while (reader.pos < end) {
4533
+ let [fieldNo, wireType] = reader.tag();
4534
+ switch (fieldNo) {
4535
+ case /* string attemptUID */ 1:
4536
+ message.attemptUID = reader.string();
4537
+ break;
4538
+ case /* repeated octelium.api.main.auth.v1.DeviceProbeResult results */ 2:
4539
+ message.results.push(DeviceProbeResult.internalBinaryRead(reader, reader.uint32(), options));
4540
+ break;
4541
+ default:
4542
+ let u = options.readUnknownField;
4543
+ if (u === "throw")
4544
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4545
+ let d = reader.skip(wireType);
4546
+ if (u !== false)
4547
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4548
+ }
4549
+ }
4550
+ return message;
4551
+ }
4552
+ internalBinaryWrite(message: RunDeviceProbeFinishRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4553
+ /* string attemptUID = 1; */
4554
+ if (message.attemptUID !== "")
4555
+ writer.tag(1, WireType.LengthDelimited).string(message.attemptUID);
4556
+ /* repeated octelium.api.main.auth.v1.DeviceProbeResult results = 2; */
4557
+ for (let i = 0; i < message.results.length; i++)
4558
+ DeviceProbeResult.internalBinaryWrite(message.results[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4559
+ let u = options.writeUnknownFields;
4560
+ if (u !== false)
4561
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4562
+ return writer;
4563
+ }
4564
+ }
4565
+ /**
4566
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeFinishRequest
4567
+ */
4568
+ export const RunDeviceProbeFinishRequest = new RunDeviceProbeFinishRequest$Type();
4569
+ // @generated message type with reflection information, may provide speed optimized methods
4570
+ class RunDeviceProbeFinishResponse$Type extends MessageType<RunDeviceProbeFinishResponse> {
4571
+ constructor() {
4572
+ super("octelium.api.main.auth.v1.RunDeviceProbeFinishResponse", []);
4573
+ }
4574
+ create(value?: PartialMessage<RunDeviceProbeFinishResponse>): RunDeviceProbeFinishResponse {
4575
+ const message = globalThis.Object.create((this.messagePrototype!));
4576
+ if (value !== undefined)
4577
+ reflectionMergePartial<RunDeviceProbeFinishResponse>(this, message, value);
4578
+ return message;
4579
+ }
4580
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunDeviceProbeFinishResponse): RunDeviceProbeFinishResponse {
4581
+ let message = target ?? this.create(), end = reader.pos + length;
4582
+ while (reader.pos < end) {
4583
+ let [fieldNo, wireType] = reader.tag();
4584
+ switch (fieldNo) {
4585
+ default:
4586
+ let u = options.readUnknownField;
4587
+ if (u === "throw")
4588
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4589
+ let d = reader.skip(wireType);
4590
+ if (u !== false)
4591
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4592
+ }
4593
+ }
4594
+ return message;
4595
+ }
4596
+ internalBinaryWrite(message: RunDeviceProbeFinishResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4597
+ let u = options.writeUnknownFields;
4598
+ if (u !== false)
4599
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4600
+ return writer;
4601
+ }
4602
+ }
4603
+ /**
4604
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeFinishResponse
4605
+ */
4606
+ export const RunDeviceProbeFinishResponse = new RunDeviceProbeFinishResponse$Type();
3939
4607
  /**
3940
4608
  * @generated ServiceType for protobuf service octelium.api.main.auth.v1.MainService
3941
4609
  */
@@ -3957,5 +4625,7 @@ export const MainService = new ServiceType("octelium.api.main.auth.v1.MainServic
3957
4625
  { name: "AuthenticateAuthenticatorBegin", options: {}, I: AuthenticateAuthenticatorBeginRequest, O: AuthenticateAuthenticatorBeginResponse },
3958
4626
  { name: "GetAvailableAuthenticator", options: {}, I: GetAvailableAuthenticatorRequest, O: GetAvailableAuthenticatorResponse },
3959
4627
  { name: "AuthenticateWithPasskeyBegin", options: {}, I: AuthenticateWithPasskeyBeginRequest, O: AuthenticateWithPasskeyBeginResponse },
3960
- { name: "AuthenticateWithPasskey", options: {}, I: AuthenticateWithPasskeyRequest, O: SessionToken }
4628
+ { name: "AuthenticateWithPasskey", options: {}, I: AuthenticateWithPasskeyRequest, O: SessionToken },
4629
+ { name: "RunDeviceProbeBegin", options: {}, I: RunDeviceProbeBeginRequest, O: RunDeviceProbeBeginResponse },
4630
+ { name: "RunDeviceProbeFinish", options: {}, I: RunDeviceProbeFinishRequest, O: RunDeviceProbeFinishResponse }
3961
4631
  ]);