@sparkvault/sdk-mobile 9.0.2 → 9.0.3

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.
package/dist/types.d.ts CHANGED
@@ -493,6 +493,26 @@ export interface IdentitySessionResponse {
493
493
  user: SparkVaultUser | null;
494
494
  account: SparkVaultAccount | null;
495
495
  }
496
+ /**
497
+ * A company administrator a vault deletion's notice could not reach: the
498
+ * mail service declined their address, which it does not send to while the
499
+ * address stays suppressed, and the deletion does not wait for that notice.
500
+ * Until the deadline the notice is tried again at the address they hold
501
+ * then; one it reaches is named no longer. Core names these to a company
502
+ * administrator alone.
503
+ */
504
+ export interface UnreachedAdmin {
505
+ user_id: string;
506
+ /** The name the roster shows them by; null when they have none. */
507
+ name: string | null;
508
+ /** The address the mail service declined their notice for, which their roster entry still holds. */
509
+ email: string;
510
+ /**
511
+ * Why: `deliverability` (the address bounced or was reported as spam) or
512
+ * `consent` (email to it is blocked).
513
+ */
514
+ reason: string;
515
+ }
496
516
  export interface Vault {
497
517
  vault_id: string;
498
518
  name: string;
@@ -502,6 +522,12 @@ export interface Vault {
502
522
  deletion_scheduled_for?: number;
503
523
  deletion_requested_by?: string;
504
524
  deletion_schedule_id?: string;
525
+ /**
526
+ * With `deletion_scheduled`, read by a company administrator: each
527
+ * administrator the schedule's notice could not reach, empty when it
528
+ * reached every one; null while its notices are still being sent.
529
+ */
530
+ deletion_notice_unreached?: UnreachedAdmin[] | null;
505
531
  ingot_count: number;
506
532
  storage_bytes: number;
507
533
  created_at: number;
@@ -515,6 +541,13 @@ export interface ScheduleVaultDeletionResponse {
515
541
  deletion_scheduled_for: number;
516
542
  deletion_requested_by: string;
517
543
  deletion_schedule_id: string;
544
+ /**
545
+ * Each administrator the schedule's notice could not reach, empty when it
546
+ * reached every one; null while its notices are still being sent (a
547
+ * failed send waits for its retry), when the vault's read names them once
548
+ * they are.
549
+ */
550
+ deletion_notice_unreached: UnreachedAdmin[] | null;
518
551
  }
519
552
  /** A vault is created with its name alone; a description is set with `update`. */
520
553
  export interface CreateVaultRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparkvault/sdk-mobile",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
4
4
  "description": "Mobile SDK for SparkVault Identity, vault, folder, and ingot workflows",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/types.ts CHANGED
@@ -553,6 +553,27 @@ export interface IdentitySessionResponse {
553
553
  account: SparkVaultAccount | null;
554
554
  }
555
555
 
556
+ /**
557
+ * A company administrator a vault deletion's notice could not reach: the
558
+ * mail service declined their address, which it does not send to while the
559
+ * address stays suppressed, and the deletion does not wait for that notice.
560
+ * Until the deadline the notice is tried again at the address they hold
561
+ * then; one it reaches is named no longer. Core names these to a company
562
+ * administrator alone.
563
+ */
564
+ export interface UnreachedAdmin {
565
+ user_id: string;
566
+ /** The name the roster shows them by; null when they have none. */
567
+ name: string | null;
568
+ /** The address the mail service declined their notice for, which their roster entry still holds. */
569
+ email: string;
570
+ /**
571
+ * Why: `deliverability` (the address bounced or was reported as spam) or
572
+ * `consent` (email to it is blocked).
573
+ */
574
+ reason: string;
575
+ }
576
+
556
577
  export interface Vault {
557
578
  vault_id: string;
558
579
  name: string;
@@ -562,6 +583,12 @@ export interface Vault {
562
583
  deletion_scheduled_for?: number;
563
584
  deletion_requested_by?: string;
564
585
  deletion_schedule_id?: string;
586
+ /**
587
+ * With `deletion_scheduled`, read by a company administrator: each
588
+ * administrator the schedule's notice could not reach, empty when it
589
+ * reached every one; null while its notices are still being sent.
590
+ */
591
+ deletion_notice_unreached?: UnreachedAdmin[] | null;
565
592
  ingot_count: number;
566
593
  storage_bytes: number;
567
594
  created_at: number;
@@ -576,6 +603,13 @@ export interface ScheduleVaultDeletionResponse {
576
603
  deletion_scheduled_for: number;
577
604
  deletion_requested_by: string;
578
605
  deletion_schedule_id: string;
606
+ /**
607
+ * Each administrator the schedule's notice could not reach, empty when it
608
+ * reached every one; null while its notices are still being sent (a
609
+ * failed send waits for its retry), when the vault's read names them once
610
+ * they are.
611
+ */
612
+ deletion_notice_unreached: UnreachedAdmin[] | null;
579
613
  }
580
614
 
581
615
  /** A vault is created with its name alone; a description is set with `update`. */