@sparkvault/sdk-mobile 7.0.0 → 7.0.2

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/src/types.ts CHANGED
@@ -743,11 +743,10 @@ export interface UploadResult {
743
743
  */
744
744
  created?: boolean;
745
745
  /**
746
- * The ingot status the upload last observed: `active` when the server
747
- * confirmed activation. Anything else means the transfer completed but the
748
- * activation poll budget ran out first - the ingot usually activates
749
- * moments later, but a caller recording "backed up" must not take that on
750
- * faith (resume the session later; Forge re-confirms finalization).
746
+ * The ingot status the upload confirmed: `active`, the server's read of
747
+ * the published ingot. An upload whose activation the poll budget could
748
+ * not confirm never resolves: it rejects with a `TusUploadError` whose
749
+ * `retryLater` is set.
751
750
  */
752
751
  status?: Ingot['status'];
753
752
  }
@@ -866,14 +865,23 @@ export interface MobileFileReader {
866
865
 
867
866
  /**
868
867
  * A tus upload session as Forge created it: the session URL, the per-upload
869
- * token every request on it must carry, and the chunk geometry Forge fixed
870
- * for it. Persist it to resume the upload after a failed attempt or a
871
- * relaunch (`ingots.resumeUpload`) instead of re-sending bytes Forge holds.
868
+ * token every request on it must carry, the chunk geometry Forge fixed for
869
+ * it, and when it lapses. Persist it to resume the upload after a failed
870
+ * attempt or a relaunch (`ingots.resumeUpload`) instead of re-sending bytes
871
+ * Forge holds.
872
872
  */
873
873
  export interface TusSessionInfo {
874
874
  uploadUrl: string;
875
875
  istk: string;
876
876
  chunkSize: number;
877
+ /**
878
+ * When the session lapses (epoch ms, Forge's `Upload-Expires`), or null
879
+ * when Forge named no expiry. Forge slides it forward on every committed
880
+ * chunk, so a caller that persists the session keeps this current through
881
+ * the upload's `onSessionExpiry`; past it, Forge refuses every request to
882
+ * the session (`isSessionExpired`).
883
+ */
884
+ expiresAt: number | null;
877
885
  }
878
886
 
879
887
  /**