@structured-id/proto 0.20.0 → 0.21.0

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.
@@ -77,6 +77,7 @@ import type { ResolvePrincipalResponse } from "./auth.js";
77
77
  import type { ResolvePrincipalRequest } from "./auth.js";
78
78
  import type { ValidateSessionResponse } from "./auth.js";
79
79
  import type { ValidateSessionRequest } from "./auth.js";
80
+ import type { BrowserSession } from "./auth.js";
80
81
  import type { RefreshNativeSessionResponse } from "./native_session.js";
81
82
  import type { RefreshNativeSessionRequest } from "./native_session.js";
82
83
  import type { LegacyMigrateFinishResponse } from "./auth.js";
@@ -300,6 +301,18 @@ export interface IAuthServiceClient {
300
301
  * @generated from protobuf rpc: RefreshNativeSession
301
302
  */
302
303
  refreshNativeSession(input: RefreshNativeSessionRequest, options?: RpcOptions): UnaryCall<RefreshNativeSessionRequest, RefreshNativeSessionResponse>;
304
+ /**
305
+ * The installation sign-in session of the calling browser, as a page on an
306
+ * admitted origin (the account pages, the administration console) reads
307
+ * it: whether one is signed in, the CSRF token its later calls echo in
308
+ * `x-csrf-token` with the session cookie, and whether its Profile
309
+ * administers the installation now. The cookie authenticates the read; a
310
+ * request from any other Origin is refused, so no other page learns the
311
+ * token. Reading it changes nothing.
312
+ *
313
+ * @generated from protobuf rpc: GetBrowserSession
314
+ */
315
+ getBrowserSession(input: Empty, options?: RpcOptions): UnaryCall<Empty, BrowserSession>;
303
316
  /**
304
317
  * Session validation.
305
318
  *
@@ -696,6 +709,18 @@ export declare class AuthServiceClient implements IAuthServiceClient, ServiceInf
696
709
  * @generated from protobuf rpc: RefreshNativeSession
697
710
  */
698
711
  refreshNativeSession(input: RefreshNativeSessionRequest, options?: RpcOptions): UnaryCall<RefreshNativeSessionRequest, RefreshNativeSessionResponse>;
712
+ /**
713
+ * The installation sign-in session of the calling browser, as a page on an
714
+ * admitted origin (the account pages, the administration console) reads
715
+ * it: whether one is signed in, the CSRF token its later calls echo in
716
+ * `x-csrf-token` with the session cookie, and whether its Profile
717
+ * administers the installation now. The cookie authenticates the read; a
718
+ * request from any other Origin is refused, so no other page learns the
719
+ * token. Reading it changes nothing.
720
+ *
721
+ * @generated from protobuf rpc: GetBrowserSession
722
+ */
723
+ getBrowserSession(input: Empty, options?: RpcOptions): UnaryCall<Empty, BrowserSession>;
699
724
  /**
700
725
  * Session validation.
701
726
  *
@@ -254,13 +254,28 @@ export class AuthServiceClient {
254
254
  const method = this.methods[23], opt = this._transport.mergeOptions(options);
255
255
  return stackIntercept("unary", this._transport, method, opt, input);
256
256
  }
257
+ /**
258
+ * The installation sign-in session of the calling browser, as a page on an
259
+ * admitted origin (the account pages, the administration console) reads
260
+ * it: whether one is signed in, the CSRF token its later calls echo in
261
+ * `x-csrf-token` with the session cookie, and whether its Profile
262
+ * administers the installation now. The cookie authenticates the read; a
263
+ * request from any other Origin is refused, so no other page learns the
264
+ * token. Reading it changes nothing.
265
+ *
266
+ * @generated from protobuf rpc: GetBrowserSession
267
+ */
268
+ getBrowserSession(input, options) {
269
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
270
+ return stackIntercept("unary", this._transport, method, opt, input);
271
+ }
257
272
  /**
258
273
  * Session validation.
259
274
  *
260
275
  * @generated from protobuf rpc: ValidateSession
261
276
  */
262
277
  validateSession(input, options) {
263
- const method = this.methods[24], opt = this._transport.mergeOptions(options);
278
+ const method = this.methods[25], opt = this._transport.mergeOptions(options);
264
279
  return stackIntercept("unary", this._transport, method, opt, input);
265
280
  }
266
281
  /**
@@ -269,7 +284,7 @@ export class AuthServiceClient {
269
284
  * @generated from protobuf rpc: ResolvePrincipal
270
285
  */
271
286
  resolvePrincipal(input, options) {
272
- const method = this.methods[25], opt = this._transport.mergeOptions(options);
287
+ const method = this.methods[26], opt = this._transport.mergeOptions(options);
273
288
  return stackIntercept("unary", this._transport, method, opt, input);
274
289
  }
275
290
  /**
@@ -278,7 +293,7 @@ export class AuthServiceClient {
278
293
  * @generated from protobuf rpc: GetZkppPolicy
279
294
  */
280
295
  getZkppPolicy(input, options) {
281
- const method = this.methods[26], opt = this._transport.mergeOptions(options);
296
+ const method = this.methods[27], opt = this._transport.mergeOptions(options);
282
297
  return stackIntercept("unary", this._transport, method, opt, input);
283
298
  }
284
299
  /**
@@ -288,7 +303,7 @@ export class AuthServiceClient {
288
303
  * @generated from protobuf rpc: SubmitDeferredZkProof
289
304
  */
290
305
  submitDeferredZkProof(input, options) {
291
- const method = this.methods[27], opt = this._transport.mergeOptions(options);
306
+ const method = this.methods[28], opt = this._transport.mergeOptions(options);
292
307
  return stackIntercept("unary", this._transport, method, opt, input);
293
308
  }
294
309
  // ── MFA TOTP ──
@@ -299,21 +314,21 @@ export class AuthServiceClient {
299
314
  * @generated from protobuf rpc: StartTotpEnrollment
300
315
  */
301
316
  startTotpEnrollment(input, options) {
302
- const method = this.methods[28], opt = this._transport.mergeOptions(options);
317
+ const method = this.methods[29], opt = this._transport.mergeOptions(options);
303
318
  return stackIntercept("unary", this._transport, method, opt, input);
304
319
  }
305
320
  /**
306
321
  * @generated from protobuf rpc: FinishTotpEnrollment
307
322
  */
308
323
  finishTotpEnrollment(input, options) {
309
- const method = this.methods[29], opt = this._transport.mergeOptions(options);
324
+ const method = this.methods[30], opt = this._transport.mergeOptions(options);
310
325
  return stackIntercept("unary", this._transport, method, opt, input);
311
326
  }
312
327
  /**
313
328
  * @generated from protobuf rpc: VerifyTotp
314
329
  */
315
330
  verifyTotp(input, options) {
316
- const method = this.methods[30], opt = this._transport.mergeOptions(options);
331
+ const method = this.methods[31], opt = this._transport.mergeOptions(options);
317
332
  return stackIntercept("unary", this._transport, method, opt, input);
318
333
  }
319
334
  // ── MFA SMS ──
@@ -321,14 +336,14 @@ export class AuthServiceClient {
321
336
  * @generated from protobuf rpc: VerifySmsMfa
322
337
  */
323
338
  verifySmsMfa(input, options) {
324
- const method = this.methods[31], opt = this._transport.mergeOptions(options);
339
+ const method = this.methods[32], opt = this._transport.mergeOptions(options);
325
340
  return stackIntercept("unary", this._transport, method, opt, input);
326
341
  }
327
342
  /**
328
343
  * @generated from protobuf rpc: ResendSmsMfa
329
344
  */
330
345
  resendSmsMfa(input, options) {
331
- const method = this.methods[32], opt = this._transport.mergeOptions(options);
346
+ const method = this.methods[33], opt = this._transport.mergeOptions(options);
332
347
  return stackIntercept("unary", this._transport, method, opt, input);
333
348
  }
334
349
  // ── MFA Recovery Codes ──
@@ -340,14 +355,14 @@ export class AuthServiceClient {
340
355
  * @generated from protobuf rpc: GenerateRecoveryCodes
341
356
  */
342
357
  generateRecoveryCodes(input, options) {
343
- const method = this.methods[33], opt = this._transport.mergeOptions(options);
358
+ const method = this.methods[34], opt = this._transport.mergeOptions(options);
344
359
  return stackIntercept("unary", this._transport, method, opt, input);
345
360
  }
346
361
  /**
347
362
  * @generated from protobuf rpc: VerifyRecoveryCode
348
363
  */
349
364
  verifyRecoveryCode(input, options) {
350
- const method = this.methods[34], opt = this._transport.mergeOptions(options);
365
+ const method = this.methods[35], opt = this._transport.mergeOptions(options);
351
366
  return stackIntercept("unary", this._transport, method, opt, input);
352
367
  }
353
368
  // ── OTP verification (email/phone, non-MFA) ──
@@ -355,21 +370,21 @@ export class AuthServiceClient {
355
370
  * @generated from protobuf rpc: RequestOtp
356
371
  */
357
372
  requestOtp(input, options) {
358
- const method = this.methods[35], opt = this._transport.mergeOptions(options);
373
+ const method = this.methods[36], opt = this._transport.mergeOptions(options);
359
374
  return stackIntercept("unary", this._transport, method, opt, input);
360
375
  }
361
376
  /**
362
377
  * @generated from protobuf rpc: VerifyOtp
363
378
  */
364
379
  verifyOtp(input, options) {
365
- const method = this.methods[36], opt = this._transport.mergeOptions(options);
380
+ const method = this.methods[37], opt = this._transport.mergeOptions(options);
366
381
  return stackIntercept("unary", this._transport, method, opt, input);
367
382
  }
368
383
  /**
369
384
  * @generated from protobuf rpc: ResendOtp
370
385
  */
371
386
  resendOtp(input, options) {
372
- const method = this.methods[37], opt = this._transport.mergeOptions(options);
387
+ const method = this.methods[38], opt = this._transport.mergeOptions(options);
373
388
  return stackIntercept("unary", this._transport, method, opt, input);
374
389
  }
375
390
  // ── Passwordless registration (email code, first passkey) ──
@@ -388,7 +403,7 @@ export class AuthServiceClient {
388
403
  * @generated from protobuf rpc: StartEmailRegistration
389
404
  */
390
405
  startEmailRegistration(input, options) {
391
- const method = this.methods[38], opt = this._transport.mergeOptions(options);
406
+ const method = this.methods[39], opt = this._transport.mergeOptions(options);
392
407
  return stackIntercept("unary", this._transport, method, opt, input);
393
408
  }
394
409
  /**
@@ -398,7 +413,7 @@ export class AuthServiceClient {
398
413
  * @generated from protobuf rpc: ResendEmailRegistration
399
414
  */
400
415
  resendEmailRegistration(input, options) {
401
- const method = this.methods[39], opt = this._transport.mergeOptions(options);
416
+ const method = this.methods[40], opt = this._transport.mergeOptions(options);
402
417
  return stackIntercept("unary", this._transport, method, opt, input);
403
418
  }
404
419
  /**
@@ -411,7 +426,7 @@ export class AuthServiceClient {
411
426
  * @generated from protobuf rpc: VerifyEmailRegistration
412
427
  */
413
428
  verifyEmailRegistration(input, options) {
414
- const method = this.methods[40], opt = this._transport.mergeOptions(options);
429
+ const method = this.methods[41], opt = this._transport.mergeOptions(options);
415
430
  return stackIntercept("unary", this._transport, method, opt, input);
416
431
  }
417
432
  /**
@@ -421,7 +436,7 @@ export class AuthServiceClient {
421
436
  * @generated from protobuf rpc: PasskeyRegistrationStart
422
437
  */
423
438
  passkeyRegistrationStart(input, options) {
424
- const method = this.methods[41], opt = this._transport.mergeOptions(options);
439
+ const method = this.methods[42], opt = this._transport.mergeOptions(options);
425
440
  return stackIntercept("unary", this._transport, method, opt, input);
426
441
  }
427
442
  /**
@@ -433,7 +448,7 @@ export class AuthServiceClient {
433
448
  * @generated from protobuf rpc: PasskeyRegistrationFinish
434
449
  */
435
450
  passkeyRegistrationFinish(input, options) {
436
- const method = this.methods[42], opt = this._transport.mergeOptions(options);
451
+ const method = this.methods[43], opt = this._transport.mergeOptions(options);
437
452
  return stackIntercept("unary", this._transport, method, opt, input);
438
453
  }
439
454
  // ── Email/Phone verification ──
@@ -441,21 +456,21 @@ export class AuthServiceClient {
441
456
  * @generated from protobuf rpc: ResendEmailVerification
442
457
  */
443
458
  resendEmailVerification(input, options) {
444
- const method = this.methods[43], opt = this._transport.mergeOptions(options);
459
+ const method = this.methods[44], opt = this._transport.mergeOptions(options);
445
460
  return stackIntercept("unary", this._transport, method, opt, input);
446
461
  }
447
462
  /**
448
463
  * @generated from protobuf rpc: VerifyPhone
449
464
  */
450
465
  verifyPhone(input, options) {
451
- const method = this.methods[44], opt = this._transport.mergeOptions(options);
466
+ const method = this.methods[45], opt = this._transport.mergeOptions(options);
452
467
  return stackIntercept("unary", this._transport, method, opt, input);
453
468
  }
454
469
  /**
455
470
  * @generated from protobuf rpc: ResendPhoneVerification
456
471
  */
457
472
  resendPhoneVerification(input, options) {
458
- const method = this.methods[45], opt = this._transport.mergeOptions(options);
473
+ const method = this.methods[46], opt = this._transport.mergeOptions(options);
459
474
  return stackIntercept("unary", this._transport, method, opt, input);
460
475
  }
461
476
  // ── IdP linking ──
@@ -463,7 +478,7 @@ export class AuthServiceClient {
463
478
  * @generated from protobuf rpc: ConfirmIdpLink
464
479
  */
465
480
  confirmIdpLink(input, options) {
466
- const method = this.methods[46], opt = this._transport.mergeOptions(options);
481
+ const method = this.methods[47], opt = this._transport.mergeOptions(options);
467
482
  return stackIntercept("unary", this._transport, method, opt, input);
468
483
  }
469
484
  // ── Organization selector (multi-org login) ──
@@ -471,14 +486,14 @@ export class AuthServiceClient {
471
486
  * @generated from protobuf rpc: ListUserOrganizations
472
487
  */
473
488
  listUserOrganizations(input, options) {
474
- const method = this.methods[47], opt = this._transport.mergeOptions(options);
489
+ const method = this.methods[48], opt = this._transport.mergeOptions(options);
475
490
  return stackIntercept("unary", this._transport, method, opt, input);
476
491
  }
477
492
  /**
478
493
  * @generated from protobuf rpc: SelectOrganization
479
494
  */
480
495
  selectOrganization(input, options) {
481
- const method = this.methods[48], opt = this._transport.mergeOptions(options);
496
+ const method = this.methods[49], opt = this._transport.mergeOptions(options);
482
497
  return stackIntercept("unary", this._transport, method, opt, input);
483
498
  }
484
499
  // ── Terms acceptance ──
@@ -486,14 +501,14 @@ export class AuthServiceClient {
486
501
  * @generated from protobuf rpc: GetTerms
487
502
  */
488
503
  getTerms(input, options) {
489
- const method = this.methods[49], opt = this._transport.mergeOptions(options);
504
+ const method = this.methods[50], opt = this._transport.mergeOptions(options);
490
505
  return stackIntercept("unary", this._transport, method, opt, input);
491
506
  }
492
507
  /**
493
508
  * @generated from protobuf rpc: AcceptTerms
494
509
  */
495
510
  acceptTerms(input, options) {
496
- const method = this.methods[50], opt = this._transport.mergeOptions(options);
511
+ const method = this.methods[51], opt = this._transport.mergeOptions(options);
497
512
  return stackIntercept("unary", this._transport, method, opt, input);
498
513
  }
499
514
  // ── CIBA consent ──
@@ -501,14 +516,14 @@ export class AuthServiceClient {
501
516
  * @generated from protobuf rpc: ApproveCiba
502
517
  */
503
518
  approveCiba(input, options) {
504
- const method = this.methods[51], opt = this._transport.mergeOptions(options);
519
+ const method = this.methods[52], opt = this._transport.mergeOptions(options);
505
520
  return stackIntercept("unary", this._transport, method, opt, input);
506
521
  }
507
522
  /**
508
523
  * @generated from protobuf rpc: DenyCiba
509
524
  */
510
525
  denyCiba(input, options) {
511
- const method = this.methods[52], opt = this._transport.mergeOptions(options);
526
+ const method = this.methods[53], opt = this._transport.mergeOptions(options);
512
527
  return stackIntercept("unary", this._transport, method, opt, input);
513
528
  }
514
529
  // ── Captcha ──
@@ -516,7 +531,7 @@ export class AuthServiceClient {
516
531
  * @generated from protobuf rpc: VerifyCaptcha
517
532
  */
518
533
  verifyCaptcha(input, options) {
519
- const method = this.methods[53], opt = this._transport.mergeOptions(options);
534
+ const method = this.methods[54], opt = this._transport.mergeOptions(options);
520
535
  return stackIntercept("unary", this._transport, method, opt, input);
521
536
  }
522
537
  // ── Dynamic prompt (custom auth steps) ──
@@ -524,14 +539,14 @@ export class AuthServiceClient {
524
539
  * @generated from protobuf rpc: GetDynamicPrompt
525
540
  */
526
541
  getDynamicPrompt(input, options) {
527
- const method = this.methods[54], opt = this._transport.mergeOptions(options);
542
+ const method = this.methods[55], opt = this._transport.mergeOptions(options);
528
543
  return stackIntercept("unary", this._transport, method, opt, input);
529
544
  }
530
545
  /**
531
546
  * @generated from protobuf rpc: SubmitDynamicPrompt
532
547
  */
533
548
  submitDynamicPrompt(input, options) {
534
- const method = this.methods[55], opt = this._transport.mergeOptions(options);
549
+ const method = this.methods[56], opt = this._transport.mergeOptions(options);
535
550
  return stackIntercept("unary", this._transport, method, opt, input);
536
551
  }
537
552
  // ── Step-up authentication ──
@@ -541,7 +556,7 @@ export class AuthServiceClient {
541
556
  * @generated from protobuf rpc: RequestStepUp
542
557
  */
543
558
  requestStepUp(input, options) {
544
- const method = this.methods[56], opt = this._transport.mergeOptions(options);
559
+ const method = this.methods[57], opt = this._transport.mergeOptions(options);
545
560
  return stackIntercept("unary", this._transport, method, opt, input);
546
561
  }
547
562
  /**
@@ -550,7 +565,7 @@ export class AuthServiceClient {
550
565
  * @generated from protobuf rpc: CompleteStepUp
551
566
  */
552
567
  completeStepUp(input, options) {
553
- const method = this.methods[57], opt = this._transport.mergeOptions(options);
568
+ const method = this.methods[58], opt = this._transport.mergeOptions(options);
554
569
  return stackIntercept("unary", this._transport, method, opt, input);
555
570
  }
556
571
  // ── MFA credential management ──
@@ -561,7 +576,7 @@ export class AuthServiceClient {
561
576
  * @generated from protobuf rpc: DeleteMfaCredential
562
577
  */
563
578
  deleteMfaCredential(input, options) {
564
- const method = this.methods[58], opt = this._transport.mergeOptions(options);
579
+ const method = this.methods[59], opt = this._transport.mergeOptions(options);
565
580
  return stackIntercept("unary", this._transport, method, opt, input);
566
581
  }
567
582
  // ── Account deletion confirmation ──
@@ -569,7 +584,7 @@ export class AuthServiceClient {
569
584
  * @generated from protobuf rpc: ConfirmAccountDeletion
570
585
  */
571
586
  confirmAccountDeletion(input, options) {
572
- const method = this.methods[59], opt = this._transport.mergeOptions(options);
587
+ const method = this.methods[60], opt = this._transport.mergeOptions(options);
573
588
  return stackIntercept("unary", this._transport, method, opt, input);
574
589
  }
575
590
  /**
@@ -578,14 +593,14 @@ export class AuthServiceClient {
578
593
  * @generated from protobuf rpc: RequestPasswordReset
579
594
  */
580
595
  requestPasswordReset(input, options) {
581
- const method = this.methods[60], opt = this._transport.mergeOptions(options);
596
+ const method = this.methods[61], opt = this._transport.mergeOptions(options);
582
597
  return stackIntercept("unary", this._transport, method, opt, input);
583
598
  }
584
599
  /**
585
600
  * @generated from protobuf rpc: VerifyPasswordReset
586
601
  */
587
602
  verifyPasswordReset(input, options) {
588
- const method = this.methods[61], opt = this._transport.mergeOptions(options);
603
+ const method = this.methods[62], opt = this._transport.mergeOptions(options);
589
604
  return stackIntercept("unary", this._transport, method, opt, input);
590
605
  }
591
606
  /**
@@ -595,7 +610,7 @@ export class AuthServiceClient {
595
610
  * @generated from protobuf rpc: ExecutePasswordReset
596
611
  */
597
612
  executePasswordReset(input, options) {
598
- const method = this.methods[62], opt = this._transport.mergeOptions(options);
613
+ const method = this.methods[63], opt = this._transport.mergeOptions(options);
599
614
  return stackIntercept("unary", this._transport, method, opt, input);
600
615
  }
601
616
  /**
@@ -605,7 +620,7 @@ export class AuthServiceClient {
605
620
  * @generated from protobuf rpc: CompletePasswordReset
606
621
  */
607
622
  completePasswordReset(input, options) {
608
- const method = this.methods[63], opt = this._transport.mergeOptions(options);
623
+ const method = this.methods[64], opt = this._transport.mergeOptions(options);
609
624
  return stackIntercept("unary", this._transport, method, opt, input);
610
625
  }
611
626
  }