@sparkvault/sdk-mobile 9.0.2 → 9.0.4

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/README.md CHANGED
@@ -147,7 +147,7 @@ const downloaded = await sparkVault.ingots.downloadToFile({
147
147
  ```
148
148
 
149
149
  - Uploads use Forge's tus v1.0.0: chunks sent over XHR are read through `fileReader`, while the background adapters (`backgroundTransfer`, `backgroundUploader`) read the file at `fileUri` themselves. Stage generated content to a file URI first, so every upload takes the same streaming path. Downloads stream through `fileDownloader` for every file size.
150
- - A cancel (`abortSignal`, with the default `abortBehavior` `terminate`) gives the upload up: Forge drops its chunks, and `uploadFromUri` ends the upload with the file its create made. An upload given up any other way ends the same way through `endUpload({ vaultId, vat, upload })`, given the placement `onIngotCreated` hands over (or `createUpload`'s result), which names the upload the create staged (`uploadId`): Core deletes the ingot only while it is still that upload's unfinished file, and the call resolves `deleted` (the file is gone) or `kept` (this end deleted nothing: the upload published it, a later upload took it over, or the create did not make it).
150
+ - A cancel (`abortSignal`, with the default `abortBehavior` `terminate`) gives the upload up: Forge drops its chunks, and `uploadFromUri` ends the upload with the file its create made. An upload given up any other way ends the same way through `endUpload({ vaultId, vat, upload })`, given the placement `onIngotCreated` hands over (or `createUpload`'s result), which names the upload the create staged (`uploadId`; what Core deletes: in the monorepo, `docs/FORGE.md` → ISTK Flow), and the call resolves `deleted` (the file is gone) or `kept` (this end deleted nothing: the upload published it, a later upload took it over, or the create did not make it).
151
151
  - `downloadToFile` deletes the file when it refuses an answer or a cancel lands during an attempt, but leaves what the adapter wrote when the adapter rejects (a transport failure, a timeout): once `downloadToFile` rejects, delete what is left at `fileUri`.
152
152
  - Transfers: [Upload, Download, Replace](https://sparkvault.com/api/docs/sdk-mobile/#use-case-transfer); the error classes: [Errors](https://sparkvault.com/api/docs/sdk-mobile/#errors). Resume, cancellation, the retry budget and the download rules: in the monorepo, `docs/SDK.md` → Mobile Vault and Ingot Transfer.
153
153
 
@@ -27,9 +27,9 @@ export function contentConflictReason(error: {
27
27
  * rename, a move, an upload landing, a race for the
28
28
  * same name): read it again and retry
29
29
  * DESTINATION_CHANGED another request moved the folder a move targets
30
- * NAME_UNSUPPORTED the file's name, stored before names were checked,
31
- * holds a character no name index takes yet: rename
32
- * the file, then retry
30
+ * NAME_UNSUPPORTED the file's or folder's name, stored before names
31
+ * were checked, holds a character no name index takes
32
+ * yet: rename it, then retry
33
33
  * FOLDER_DELETING a folder the change places content into, moves
34
34
  * content out of, or changes is being deleted:
35
35
  * `folder_id` names it and `role` the part it plays
@@ -17,9 +17,9 @@
17
17
  * rename, a move, an upload landing, a race for the
18
18
  * same name): read it again and retry
19
19
  * DESTINATION_CHANGED another request moved the folder a move targets
20
- * NAME_UNSUPPORTED the file's name, stored before names were checked,
21
- * holds a character no name index takes yet: rename
22
- * the file, then retry
20
+ * NAME_UNSUPPORTED the file's or folder's name, stored before names
21
+ * were checked, holds a character no name index takes
22
+ * yet: rename it, then retry
23
23
  * FOLDER_DELETING a folder the change places content into, moves
24
24
  * content out of, or changes is being deleted:
25
25
  * `folder_id` names it and `role` the part it plays
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.4",
4
4
  "description": "Mobile SDK for SparkVault Identity, vault, folder, and ingot workflows",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,9 +18,9 @@
18
18
  * rename, a move, an upload landing, a race for the
19
19
  * same name): read it again and retry
20
20
  * DESTINATION_CHANGED another request moved the folder a move targets
21
- * NAME_UNSUPPORTED the file's name, stored before names were checked,
22
- * holds a character no name index takes yet: rename
23
- * the file, then retry
21
+ * NAME_UNSUPPORTED the file's or folder's name, stored before names
22
+ * were checked, holds a character no name index takes
23
+ * yet: rename it, then retry
24
24
  * FOLDER_DELETING a folder the change places content into, moves
25
25
  * content out of, or changes is being deleted:
26
26
  * `folder_id` names it and `role` the part it plays
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`. */