@octelium/apis 1.0.5 → 1.0.7

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.
Files changed (39) hide show
  1. package/google/protobuf/struct.d.ts +3 -3
  2. package/google/protobuf/struct.js +3 -3
  3. package/google/protobuf/struct.ts +3 -3
  4. package/main/authv1/authv1.client.d.ts +20 -0
  5. package/main/authv1/authv1.client.d.ts.map +1 -1
  6. package/main/authv1/authv1.client.js +14 -0
  7. package/main/authv1/authv1.client.js.map +1 -1
  8. package/main/authv1/authv1.client.ts +26 -0
  9. package/main/authv1/authv1.d.ts +265 -1
  10. package/main/authv1/authv1.d.ts.map +1 -1
  11. package/main/authv1/authv1.js +559 -4
  12. package/main/authv1/authv1.js.map +1 -1
  13. package/main/authv1/authv1.ts +726 -5
  14. package/main/cordiumv1/index.d.ts +1 -1
  15. package/main/cordiumv1/index.d.ts.map +1 -1
  16. package/main/cordiumv1/index.js +1 -1
  17. package/main/cordiumv1/index.js.map +1 -1
  18. package/main/cordiumv1/index.ts +1 -1
  19. package/main/corev1/corev1.client.d.ts +22 -12
  20. package/main/corev1/corev1.client.d.ts.map +1 -1
  21. package/main/corev1/corev1.client.js +11 -6
  22. package/main/corev1/corev1.client.js.map +1 -1
  23. package/main/corev1/corev1.client.ts +22 -12
  24. package/main/corev1/corev1.d.ts +6373 -1068
  25. package/main/corev1/corev1.d.ts.map +1 -1
  26. package/main/corev1/corev1.js +10345 -6764
  27. package/main/corev1/corev1.js.map +1 -1
  28. package/main/corev1/corev1.ts +20092 -12388
  29. package/main/metav1/metav1.d.ts +69 -9
  30. package/main/metav1/metav1.d.ts.map +1 -1
  31. package/main/metav1/metav1.js +17 -0
  32. package/main/metav1/metav1.js.map +1 -1
  33. package/main/metav1/metav1.ts +69 -9
  34. package/main/userv1/userv1.d.ts +9 -1
  35. package/main/userv1/userv1.d.ts.map +1 -1
  36. package/main/userv1/userv1.js +8 -0
  37. package/main/userv1/userv1.js.map +1 -1
  38. package/main/userv1/userv1.ts +9 -1
  39. package/package.json +1 -1
@@ -41,6 +41,14 @@ export var ClientLoginRequest_APIVersion;
41
41
  * @generated from protobuf enum value: V1 = 1;
42
42
  */
43
43
  ClientLoginRequest_APIVersion[ClientLoginRequest_APIVersion["V1"] = 1] = "V1";
44
+ /**
45
+ * Clients keep sending V1 until Clusters that reject unknown API versions
46
+ * have aged out. A V1 request carrying a codeChallenge is normalized to V2
47
+ * by the Cluster.
48
+ *
49
+ * @generated from protobuf enum value: V2 = 2;
50
+ */
51
+ ClientLoginRequest_APIVersion[ClientLoginRequest_APIVersion["V2"] = 2] = "V2";
44
52
  })(ClientLoginRequest_APIVersion || (ClientLoginRequest_APIVersion = {}));
45
53
  /**
46
54
  * @generated from protobuf enum octelium.api.main.auth.v1.RegisterDeviceBeginRequest.Info.OSType
@@ -193,7 +201,8 @@ class ClientLoginRequest$Type extends MessageType {
193
201
  super("octelium.api.main.auth.v1.ClientLoginRequest", [
194
202
  { no: 1, name: "apiVersion", kind: "enum", T: () => ["octelium.api.main.auth.v1.ClientLoginRequest.APIVersion", ClientLoginRequest_APIVersion] },
195
203
  { no: 2, name: "callbackPort", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
196
- { no: 3, name: "callbackSuffix", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
204
+ { no: 3, name: "callbackSuffix", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
205
+ { no: 4, name: "codeChallenge", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
197
206
  ]);
198
207
  }
199
208
  create(value) {
@@ -201,6 +210,7 @@ class ClientLoginRequest$Type extends MessageType {
201
210
  message.apiVersion = 0;
202
211
  message.callbackPort = 0;
203
212
  message.callbackSuffix = "";
213
+ message.codeChallenge = new Uint8Array(0);
204
214
  if (value !== undefined)
205
215
  reflectionMergePartial(this, message, value);
206
216
  return message;
@@ -219,6 +229,9 @@ class ClientLoginRequest$Type extends MessageType {
219
229
  case /* string callbackSuffix */ 3:
220
230
  message.callbackSuffix = reader.string();
221
231
  break;
232
+ case /* bytes codeChallenge */ 4:
233
+ message.codeChallenge = reader.bytes();
234
+ break;
222
235
  default:
223
236
  let u = options.readUnknownField;
224
237
  if (u === "throw")
@@ -240,6 +253,9 @@ class ClientLoginRequest$Type extends MessageType {
240
253
  /* string callbackSuffix = 3; */
241
254
  if (message.callbackSuffix !== "")
242
255
  writer.tag(3, WireType.LengthDelimited).string(message.callbackSuffix);
256
+ /* bytes codeChallenge = 4; */
257
+ if (message.codeChallenge.length)
258
+ writer.tag(4, WireType.LengthDelimited).bytes(message.codeChallenge);
243
259
  let u = options.writeUnknownFields;
244
260
  if (u !== false)
245
261
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -254,12 +270,14 @@ export const ClientLoginRequest = new ClientLoginRequest$Type();
254
270
  class ClientLoginResponse$Type extends MessageType {
255
271
  constructor() {
256
272
  super("octelium.api.main.auth.v1.ClientLoginResponse", [
257
- { no: 1, name: "authenticationToken", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
273
+ { no: 1, name: "authenticationToken", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
274
+ { no: 2, name: "codeChallenge", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
258
275
  ]);
259
276
  }
260
277
  create(value) {
261
278
  const message = globalThis.Object.create((this.messagePrototype));
262
279
  message.authenticationToken = "";
280
+ message.codeChallenge = new Uint8Array(0);
263
281
  if (value !== undefined)
264
282
  reflectionMergePartial(this, message, value);
265
283
  return message;
@@ -272,6 +290,9 @@ class ClientLoginResponse$Type extends MessageType {
272
290
  case /* string authenticationToken */ 1:
273
291
  message.authenticationToken = reader.string();
274
292
  break;
293
+ case /* bytes codeChallenge */ 2:
294
+ message.codeChallenge = reader.bytes();
295
+ break;
275
296
  default:
276
297
  let u = options.readUnknownField;
277
298
  if (u === "throw")
@@ -287,6 +308,9 @@ class ClientLoginResponse$Type extends MessageType {
287
308
  /* string authenticationToken = 1; */
288
309
  if (message.authenticationToken !== "")
289
310
  writer.tag(1, WireType.LengthDelimited).string(message.authenticationToken);
311
+ /* bytes codeChallenge = 2; */
312
+ if (message.codeChallenge.length)
313
+ writer.tag(2, WireType.LengthDelimited).bytes(message.codeChallenge);
290
314
  let u = options.writeUnknownFields;
291
315
  if (u !== false)
292
316
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -983,13 +1007,15 @@ class AuthenticateWithAuthenticationTokenRequest$Type extends MessageType {
983
1007
  constructor() {
984
1008
  super("octelium.api.main.auth.v1.AuthenticateWithAuthenticationTokenRequest", [
985
1009
  { no: 1, name: "authenticationToken", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
986
- { no: 2, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1010
+ { no: 2, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1011
+ { no: 3, name: "codeVerifier", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
987
1012
  ]);
988
1013
  }
989
1014
  create(value) {
990
1015
  const message = globalThis.Object.create((this.messagePrototype));
991
1016
  message.authenticationToken = "";
992
1017
  message.scopes = [];
1018
+ message.codeVerifier = new Uint8Array(0);
993
1019
  if (value !== undefined)
994
1020
  reflectionMergePartial(this, message, value);
995
1021
  return message;
@@ -1005,6 +1031,9 @@ class AuthenticateWithAuthenticationTokenRequest$Type extends MessageType {
1005
1031
  case /* repeated string scopes */ 2:
1006
1032
  message.scopes.push(reader.string());
1007
1033
  break;
1034
+ case /* bytes codeVerifier */ 3:
1035
+ message.codeVerifier = reader.bytes();
1036
+ break;
1008
1037
  default:
1009
1038
  let u = options.readUnknownField;
1010
1039
  if (u === "throw")
@@ -1023,6 +1052,9 @@ class AuthenticateWithAuthenticationTokenRequest$Type extends MessageType {
1023
1052
  /* repeated string scopes = 2; */
1024
1053
  for (let i = 0; i < message.scopes.length; i++)
1025
1054
  writer.tag(2, WireType.LengthDelimited).string(message.scopes[i]);
1055
+ /* bytes codeVerifier = 3; */
1056
+ if (message.codeVerifier.length)
1057
+ writer.tag(3, WireType.LengthDelimited).bytes(message.codeVerifier);
1026
1058
  let u = options.writeUnknownFields;
1027
1059
  if (u !== false)
1028
1060
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3143,6 +3175,527 @@ class AuthenticateWithPasskeyRequest$Type extends MessageType {
3143
3175
  * @generated MessageType for protobuf message octelium.api.main.auth.v1.AuthenticateWithPasskeyRequest
3144
3176
  */
3145
3177
  export const AuthenticateWithPasskeyRequest = new AuthenticateWithPasskeyRequest$Type();
3178
+ // @generated message type with reflection information, may provide speed optimized methods
3179
+ class RunDeviceProbeBeginRequest$Type extends MessageType {
3180
+ constructor() {
3181
+ super("octelium.api.main.auth.v1.RunDeviceProbeBeginRequest", []);
3182
+ }
3183
+ create(value) {
3184
+ const message = globalThis.Object.create((this.messagePrototype));
3185
+ if (value !== undefined)
3186
+ reflectionMergePartial(this, message, value);
3187
+ return message;
3188
+ }
3189
+ internalBinaryRead(reader, length, options, target) {
3190
+ let message = target ?? this.create(), end = reader.pos + length;
3191
+ while (reader.pos < end) {
3192
+ let [fieldNo, wireType] = reader.tag();
3193
+ switch (fieldNo) {
3194
+ default:
3195
+ let u = options.readUnknownField;
3196
+ if (u === "throw")
3197
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3198
+ let d = reader.skip(wireType);
3199
+ if (u !== false)
3200
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3201
+ }
3202
+ }
3203
+ return message;
3204
+ }
3205
+ internalBinaryWrite(message, writer, options) {
3206
+ let u = options.writeUnknownFields;
3207
+ if (u !== false)
3208
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3209
+ return writer;
3210
+ }
3211
+ }
3212
+ /**
3213
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeBeginRequest
3214
+ */
3215
+ export const RunDeviceProbeBeginRequest = new RunDeviceProbeBeginRequest$Type();
3216
+ // @generated message type with reflection information, may provide speed optimized methods
3217
+ class RunDeviceProbeBeginResponse$Type extends MessageType {
3218
+ constructor() {
3219
+ super("octelium.api.main.auth.v1.RunDeviceProbeBeginResponse", [
3220
+ { no: 1, name: "attemptUID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3221
+ { no: 2, name: "probes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DeviceProbe }
3222
+ ]);
3223
+ }
3224
+ create(value) {
3225
+ const message = globalThis.Object.create((this.messagePrototype));
3226
+ message.attemptUID = "";
3227
+ message.probes = [];
3228
+ if (value !== undefined)
3229
+ reflectionMergePartial(this, message, value);
3230
+ return message;
3231
+ }
3232
+ internalBinaryRead(reader, length, options, target) {
3233
+ let message = target ?? this.create(), end = reader.pos + length;
3234
+ while (reader.pos < end) {
3235
+ let [fieldNo, wireType] = reader.tag();
3236
+ switch (fieldNo) {
3237
+ case /* string attemptUID */ 1:
3238
+ message.attemptUID = reader.string();
3239
+ break;
3240
+ case /* repeated octelium.api.main.auth.v1.DeviceProbe probes */ 2:
3241
+ message.probes.push(DeviceProbe.internalBinaryRead(reader, reader.uint32(), options));
3242
+ break;
3243
+ default:
3244
+ let u = options.readUnknownField;
3245
+ if (u === "throw")
3246
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3247
+ let d = reader.skip(wireType);
3248
+ if (u !== false)
3249
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3250
+ }
3251
+ }
3252
+ return message;
3253
+ }
3254
+ internalBinaryWrite(message, writer, options) {
3255
+ /* string attemptUID = 1; */
3256
+ if (message.attemptUID !== "")
3257
+ writer.tag(1, WireType.LengthDelimited).string(message.attemptUID);
3258
+ /* repeated octelium.api.main.auth.v1.DeviceProbe probes = 2; */
3259
+ for (let i = 0; i < message.probes.length; i++)
3260
+ DeviceProbe.internalBinaryWrite(message.probes[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3261
+ let u = options.writeUnknownFields;
3262
+ if (u !== false)
3263
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3264
+ return writer;
3265
+ }
3266
+ }
3267
+ /**
3268
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeBeginResponse
3269
+ */
3270
+ export const RunDeviceProbeBeginResponse = new RunDeviceProbeBeginResponse$Type();
3271
+ // @generated message type with reflection information, may provide speed optimized methods
3272
+ class DeviceProbe$Type extends MessageType {
3273
+ constructor() {
3274
+ super("octelium.api.main.auth.v1.DeviceProbe", [
3275
+ { no: 1, name: "probeID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3276
+ { no: 2, name: "requireElevation", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
3277
+ { no: 3, name: "runCommand", kind: "message", oneof: "type", T: () => DeviceProbe_RunCommand },
3278
+ { no: 4, name: "readFile", kind: "message", oneof: "type", T: () => DeviceProbe_ReadFile },
3279
+ { no: 5, name: "readRegistry", kind: "message", oneof: "type", T: () => DeviceProbe_ReadRegistry }
3280
+ ]);
3281
+ }
3282
+ create(value) {
3283
+ const message = globalThis.Object.create((this.messagePrototype));
3284
+ message.probeID = "";
3285
+ message.requireElevation = false;
3286
+ message.type = { oneofKind: undefined };
3287
+ if (value !== undefined)
3288
+ reflectionMergePartial(this, message, value);
3289
+ return message;
3290
+ }
3291
+ internalBinaryRead(reader, length, options, target) {
3292
+ let message = target ?? this.create(), end = reader.pos + length;
3293
+ while (reader.pos < end) {
3294
+ let [fieldNo, wireType] = reader.tag();
3295
+ switch (fieldNo) {
3296
+ case /* string probeID */ 1:
3297
+ message.probeID = reader.string();
3298
+ break;
3299
+ case /* bool requireElevation */ 2:
3300
+ message.requireElevation = reader.bool();
3301
+ break;
3302
+ case /* octelium.api.main.auth.v1.DeviceProbe.RunCommand runCommand */ 3:
3303
+ message.type = {
3304
+ oneofKind: "runCommand",
3305
+ runCommand: DeviceProbe_RunCommand.internalBinaryRead(reader, reader.uint32(), options, message.type.runCommand)
3306
+ };
3307
+ break;
3308
+ case /* octelium.api.main.auth.v1.DeviceProbe.ReadFile readFile */ 4:
3309
+ message.type = {
3310
+ oneofKind: "readFile",
3311
+ readFile: DeviceProbe_ReadFile.internalBinaryRead(reader, reader.uint32(), options, message.type.readFile)
3312
+ };
3313
+ break;
3314
+ case /* octelium.api.main.auth.v1.DeviceProbe.ReadRegistry readRegistry */ 5:
3315
+ message.type = {
3316
+ oneofKind: "readRegistry",
3317
+ readRegistry: DeviceProbe_ReadRegistry.internalBinaryRead(reader, reader.uint32(), options, message.type.readRegistry)
3318
+ };
3319
+ break;
3320
+ default:
3321
+ let u = options.readUnknownField;
3322
+ if (u === "throw")
3323
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3324
+ let d = reader.skip(wireType);
3325
+ if (u !== false)
3326
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3327
+ }
3328
+ }
3329
+ return message;
3330
+ }
3331
+ internalBinaryWrite(message, writer, options) {
3332
+ /* string probeID = 1; */
3333
+ if (message.probeID !== "")
3334
+ writer.tag(1, WireType.LengthDelimited).string(message.probeID);
3335
+ /* bool requireElevation = 2; */
3336
+ if (message.requireElevation !== false)
3337
+ writer.tag(2, WireType.Varint).bool(message.requireElevation);
3338
+ /* octelium.api.main.auth.v1.DeviceProbe.RunCommand runCommand = 3; */
3339
+ if (message.type.oneofKind === "runCommand")
3340
+ DeviceProbe_RunCommand.internalBinaryWrite(message.type.runCommand, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3341
+ /* octelium.api.main.auth.v1.DeviceProbe.ReadFile readFile = 4; */
3342
+ if (message.type.oneofKind === "readFile")
3343
+ DeviceProbe_ReadFile.internalBinaryWrite(message.type.readFile, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
3344
+ /* octelium.api.main.auth.v1.DeviceProbe.ReadRegistry readRegistry = 5; */
3345
+ if (message.type.oneofKind === "readRegistry")
3346
+ DeviceProbe_ReadRegistry.internalBinaryWrite(message.type.readRegistry, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
3347
+ let u = options.writeUnknownFields;
3348
+ if (u !== false)
3349
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3350
+ return writer;
3351
+ }
3352
+ }
3353
+ /**
3354
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe
3355
+ */
3356
+ export const DeviceProbe = new DeviceProbe$Type();
3357
+ // @generated message type with reflection information, may provide speed optimized methods
3358
+ class DeviceProbe_RunCommand$Type extends MessageType {
3359
+ constructor() {
3360
+ super("octelium.api.main.auth.v1.DeviceProbe.RunCommand", [
3361
+ { no: 1, name: "command", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3362
+ { no: 2, name: "args", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
3363
+ { no: 3, name: "timeoutSeconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
3364
+ { no: 4, name: "maxOutputBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
3365
+ ]);
3366
+ }
3367
+ create(value) {
3368
+ const message = globalThis.Object.create((this.messagePrototype));
3369
+ message.command = "";
3370
+ message.args = [];
3371
+ message.timeoutSeconds = 0;
3372
+ message.maxOutputBytes = 0;
3373
+ if (value !== undefined)
3374
+ reflectionMergePartial(this, message, value);
3375
+ return message;
3376
+ }
3377
+ internalBinaryRead(reader, length, options, target) {
3378
+ let message = target ?? this.create(), end = reader.pos + length;
3379
+ while (reader.pos < end) {
3380
+ let [fieldNo, wireType] = reader.tag();
3381
+ switch (fieldNo) {
3382
+ case /* string command */ 1:
3383
+ message.command = reader.string();
3384
+ break;
3385
+ case /* repeated string args */ 2:
3386
+ message.args.push(reader.string());
3387
+ break;
3388
+ case /* uint32 timeoutSeconds */ 3:
3389
+ message.timeoutSeconds = reader.uint32();
3390
+ break;
3391
+ case /* uint32 maxOutputBytes */ 4:
3392
+ message.maxOutputBytes = reader.uint32();
3393
+ break;
3394
+ default:
3395
+ let u = options.readUnknownField;
3396
+ if (u === "throw")
3397
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3398
+ let d = reader.skip(wireType);
3399
+ if (u !== false)
3400
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3401
+ }
3402
+ }
3403
+ return message;
3404
+ }
3405
+ internalBinaryWrite(message, writer, options) {
3406
+ /* string command = 1; */
3407
+ if (message.command !== "")
3408
+ writer.tag(1, WireType.LengthDelimited).string(message.command);
3409
+ /* repeated string args = 2; */
3410
+ for (let i = 0; i < message.args.length; i++)
3411
+ writer.tag(2, WireType.LengthDelimited).string(message.args[i]);
3412
+ /* uint32 timeoutSeconds = 3; */
3413
+ if (message.timeoutSeconds !== 0)
3414
+ writer.tag(3, WireType.Varint).uint32(message.timeoutSeconds);
3415
+ /* uint32 maxOutputBytes = 4; */
3416
+ if (message.maxOutputBytes !== 0)
3417
+ writer.tag(4, WireType.Varint).uint32(message.maxOutputBytes);
3418
+ let u = options.writeUnknownFields;
3419
+ if (u !== false)
3420
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3421
+ return writer;
3422
+ }
3423
+ }
3424
+ /**
3425
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe.RunCommand
3426
+ */
3427
+ export const DeviceProbe_RunCommand = new DeviceProbe_RunCommand$Type();
3428
+ // @generated message type with reflection information, may provide speed optimized methods
3429
+ class DeviceProbe_ReadFile$Type extends MessageType {
3430
+ constructor() {
3431
+ super("octelium.api.main.auth.v1.DeviceProbe.ReadFile", [
3432
+ { no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3433
+ { no: 2, name: "maxBytes", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
3434
+ ]);
3435
+ }
3436
+ create(value) {
3437
+ const message = globalThis.Object.create((this.messagePrototype));
3438
+ message.path = "";
3439
+ message.maxBytes = 0;
3440
+ if (value !== undefined)
3441
+ reflectionMergePartial(this, message, value);
3442
+ return message;
3443
+ }
3444
+ internalBinaryRead(reader, length, options, target) {
3445
+ let message = target ?? this.create(), end = reader.pos + length;
3446
+ while (reader.pos < end) {
3447
+ let [fieldNo, wireType] = reader.tag();
3448
+ switch (fieldNo) {
3449
+ case /* string path */ 1:
3450
+ message.path = reader.string();
3451
+ break;
3452
+ case /* uint32 maxBytes */ 2:
3453
+ message.maxBytes = reader.uint32();
3454
+ break;
3455
+ default:
3456
+ let u = options.readUnknownField;
3457
+ if (u === "throw")
3458
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3459
+ let d = reader.skip(wireType);
3460
+ if (u !== false)
3461
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3462
+ }
3463
+ }
3464
+ return message;
3465
+ }
3466
+ internalBinaryWrite(message, writer, options) {
3467
+ /* string path = 1; */
3468
+ if (message.path !== "")
3469
+ writer.tag(1, WireType.LengthDelimited).string(message.path);
3470
+ /* uint32 maxBytes = 2; */
3471
+ if (message.maxBytes !== 0)
3472
+ writer.tag(2, WireType.Varint).uint32(message.maxBytes);
3473
+ let u = options.writeUnknownFields;
3474
+ if (u !== false)
3475
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3476
+ return writer;
3477
+ }
3478
+ }
3479
+ /**
3480
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe.ReadFile
3481
+ */
3482
+ export const DeviceProbe_ReadFile = new DeviceProbe_ReadFile$Type();
3483
+ // @generated message type with reflection information, may provide speed optimized methods
3484
+ class DeviceProbe_ReadRegistry$Type extends MessageType {
3485
+ constructor() {
3486
+ super("octelium.api.main.auth.v1.DeviceProbe.ReadRegistry", [
3487
+ { no: 1, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3488
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3489
+ ]);
3490
+ }
3491
+ create(value) {
3492
+ const message = globalThis.Object.create((this.messagePrototype));
3493
+ message.key = "";
3494
+ message.name = "";
3495
+ if (value !== undefined)
3496
+ reflectionMergePartial(this, message, value);
3497
+ return message;
3498
+ }
3499
+ internalBinaryRead(reader, length, options, target) {
3500
+ let message = target ?? this.create(), end = reader.pos + length;
3501
+ while (reader.pos < end) {
3502
+ let [fieldNo, wireType] = reader.tag();
3503
+ switch (fieldNo) {
3504
+ case /* string key */ 1:
3505
+ message.key = reader.string();
3506
+ break;
3507
+ case /* string name */ 2:
3508
+ message.name = reader.string();
3509
+ break;
3510
+ default:
3511
+ let u = options.readUnknownField;
3512
+ if (u === "throw")
3513
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3514
+ let d = reader.skip(wireType);
3515
+ if (u !== false)
3516
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3517
+ }
3518
+ }
3519
+ return message;
3520
+ }
3521
+ internalBinaryWrite(message, writer, options) {
3522
+ /* string key = 1; */
3523
+ if (message.key !== "")
3524
+ writer.tag(1, WireType.LengthDelimited).string(message.key);
3525
+ /* string name = 2; */
3526
+ if (message.name !== "")
3527
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
3528
+ let u = options.writeUnknownFields;
3529
+ if (u !== false)
3530
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3531
+ return writer;
3532
+ }
3533
+ }
3534
+ /**
3535
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbe.ReadRegistry
3536
+ */
3537
+ export const DeviceProbe_ReadRegistry = new DeviceProbe_ReadRegistry$Type();
3538
+ // @generated message type with reflection information, may provide speed optimized methods
3539
+ class DeviceProbeResult$Type extends MessageType {
3540
+ constructor() {
3541
+ super("octelium.api.main.auth.v1.DeviceProbeResult", [
3542
+ { no: 1, name: "probeID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3543
+ { no: 2, name: "output", kind: "scalar", oneof: "type", T: 12 /*ScalarType.BYTES*/ },
3544
+ { no: 3, name: "error", kind: "scalar", oneof: "type", T: 9 /*ScalarType.STRING*/ }
3545
+ ]);
3546
+ }
3547
+ create(value) {
3548
+ const message = globalThis.Object.create((this.messagePrototype));
3549
+ message.probeID = "";
3550
+ message.type = { oneofKind: undefined };
3551
+ if (value !== undefined)
3552
+ reflectionMergePartial(this, message, value);
3553
+ return message;
3554
+ }
3555
+ internalBinaryRead(reader, length, options, target) {
3556
+ let message = target ?? this.create(), end = reader.pos + length;
3557
+ while (reader.pos < end) {
3558
+ let [fieldNo, wireType] = reader.tag();
3559
+ switch (fieldNo) {
3560
+ case /* string probeID */ 1:
3561
+ message.probeID = reader.string();
3562
+ break;
3563
+ case /* bytes output */ 2:
3564
+ message.type = {
3565
+ oneofKind: "output",
3566
+ output: reader.bytes()
3567
+ };
3568
+ break;
3569
+ case /* string error */ 3:
3570
+ message.type = {
3571
+ oneofKind: "error",
3572
+ error: reader.string()
3573
+ };
3574
+ break;
3575
+ default:
3576
+ let u = options.readUnknownField;
3577
+ if (u === "throw")
3578
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3579
+ let d = reader.skip(wireType);
3580
+ if (u !== false)
3581
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3582
+ }
3583
+ }
3584
+ return message;
3585
+ }
3586
+ internalBinaryWrite(message, writer, options) {
3587
+ /* string probeID = 1; */
3588
+ if (message.probeID !== "")
3589
+ writer.tag(1, WireType.LengthDelimited).string(message.probeID);
3590
+ /* bytes output = 2; */
3591
+ if (message.type.oneofKind === "output")
3592
+ writer.tag(2, WireType.LengthDelimited).bytes(message.type.output);
3593
+ /* string error = 3; */
3594
+ if (message.type.oneofKind === "error")
3595
+ writer.tag(3, WireType.LengthDelimited).string(message.type.error);
3596
+ let u = options.writeUnknownFields;
3597
+ if (u !== false)
3598
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3599
+ return writer;
3600
+ }
3601
+ }
3602
+ /**
3603
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.DeviceProbeResult
3604
+ */
3605
+ export const DeviceProbeResult = new DeviceProbeResult$Type();
3606
+ // @generated message type with reflection information, may provide speed optimized methods
3607
+ class RunDeviceProbeFinishRequest$Type extends MessageType {
3608
+ constructor() {
3609
+ super("octelium.api.main.auth.v1.RunDeviceProbeFinishRequest", [
3610
+ { no: 1, name: "attemptUID", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3611
+ { no: 2, name: "results", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DeviceProbeResult }
3612
+ ]);
3613
+ }
3614
+ create(value) {
3615
+ const message = globalThis.Object.create((this.messagePrototype));
3616
+ message.attemptUID = "";
3617
+ message.results = [];
3618
+ if (value !== undefined)
3619
+ reflectionMergePartial(this, message, value);
3620
+ return message;
3621
+ }
3622
+ internalBinaryRead(reader, length, options, target) {
3623
+ let message = target ?? this.create(), end = reader.pos + length;
3624
+ while (reader.pos < end) {
3625
+ let [fieldNo, wireType] = reader.tag();
3626
+ switch (fieldNo) {
3627
+ case /* string attemptUID */ 1:
3628
+ message.attemptUID = reader.string();
3629
+ break;
3630
+ case /* repeated octelium.api.main.auth.v1.DeviceProbeResult results */ 2:
3631
+ message.results.push(DeviceProbeResult.internalBinaryRead(reader, reader.uint32(), options));
3632
+ break;
3633
+ default:
3634
+ let u = options.readUnknownField;
3635
+ if (u === "throw")
3636
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3637
+ let d = reader.skip(wireType);
3638
+ if (u !== false)
3639
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3640
+ }
3641
+ }
3642
+ return message;
3643
+ }
3644
+ internalBinaryWrite(message, writer, options) {
3645
+ /* string attemptUID = 1; */
3646
+ if (message.attemptUID !== "")
3647
+ writer.tag(1, WireType.LengthDelimited).string(message.attemptUID);
3648
+ /* repeated octelium.api.main.auth.v1.DeviceProbeResult results = 2; */
3649
+ for (let i = 0; i < message.results.length; i++)
3650
+ DeviceProbeResult.internalBinaryWrite(message.results[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3651
+ let u = options.writeUnknownFields;
3652
+ if (u !== false)
3653
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3654
+ return writer;
3655
+ }
3656
+ }
3657
+ /**
3658
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeFinishRequest
3659
+ */
3660
+ export const RunDeviceProbeFinishRequest = new RunDeviceProbeFinishRequest$Type();
3661
+ // @generated message type with reflection information, may provide speed optimized methods
3662
+ class RunDeviceProbeFinishResponse$Type extends MessageType {
3663
+ constructor() {
3664
+ super("octelium.api.main.auth.v1.RunDeviceProbeFinishResponse", []);
3665
+ }
3666
+ create(value) {
3667
+ const message = globalThis.Object.create((this.messagePrototype));
3668
+ if (value !== undefined)
3669
+ reflectionMergePartial(this, message, value);
3670
+ return message;
3671
+ }
3672
+ internalBinaryRead(reader, length, options, target) {
3673
+ let message = target ?? this.create(), end = reader.pos + length;
3674
+ while (reader.pos < end) {
3675
+ let [fieldNo, wireType] = reader.tag();
3676
+ switch (fieldNo) {
3677
+ default:
3678
+ let u = options.readUnknownField;
3679
+ if (u === "throw")
3680
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3681
+ let d = reader.skip(wireType);
3682
+ if (u !== false)
3683
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3684
+ }
3685
+ }
3686
+ return message;
3687
+ }
3688
+ internalBinaryWrite(message, writer, options) {
3689
+ let u = options.writeUnknownFields;
3690
+ if (u !== false)
3691
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3692
+ return writer;
3693
+ }
3694
+ }
3695
+ /**
3696
+ * @generated MessageType for protobuf message octelium.api.main.auth.v1.RunDeviceProbeFinishResponse
3697
+ */
3698
+ export const RunDeviceProbeFinishResponse = new RunDeviceProbeFinishResponse$Type();
3146
3699
  /**
3147
3700
  * @generated ServiceType for protobuf service octelium.api.main.auth.v1.MainService
3148
3701
  */
@@ -3164,6 +3717,8 @@ export const MainService = new ServiceType("octelium.api.main.auth.v1.MainServic
3164
3717
  { name: "AuthenticateAuthenticatorBegin", options: {}, I: AuthenticateAuthenticatorBeginRequest, O: AuthenticateAuthenticatorBeginResponse },
3165
3718
  { name: "GetAvailableAuthenticator", options: {}, I: GetAvailableAuthenticatorRequest, O: GetAvailableAuthenticatorResponse },
3166
3719
  { name: "AuthenticateWithPasskeyBegin", options: {}, I: AuthenticateWithPasskeyBeginRequest, O: AuthenticateWithPasskeyBeginResponse },
3167
- { name: "AuthenticateWithPasskey", options: {}, I: AuthenticateWithPasskeyRequest, O: SessionToken }
3720
+ { name: "AuthenticateWithPasskey", options: {}, I: AuthenticateWithPasskeyRequest, O: SessionToken },
3721
+ { name: "RunDeviceProbeBegin", options: {}, I: RunDeviceProbeBeginRequest, O: RunDeviceProbeBeginResponse },
3722
+ { name: "RunDeviceProbeFinish", options: {}, I: RunDeviceProbeFinishRequest, O: RunDeviceProbeFinishResponse }
3168
3723
  ]);
3169
3724
  //# sourceMappingURL=authv1.js.map