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