@sparkvault/sdk-js 11.2.4 → 11.2.6
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/index.cjs +196 -75
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -9
- package/dist/index.mjs +196 -75
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/index.d.ts +16 -9
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/upload/api.d.ts +7 -5
- package/package.json +1 -1
package/dist/ingots/index.d.ts
CHANGED
|
@@ -45,10 +45,13 @@ export declare class IngotsModule {
|
|
|
45
45
|
* no longer holds (it expired, was cancelled, or its ingot was removed)
|
|
46
46
|
* rejects with code `session_gone`, and only a new upload session — a new
|
|
47
47
|
* {@link createUpload}, or {@link upload} again — can store the file. An
|
|
48
|
-
* upload the server refused
|
|
49
|
-
*
|
|
50
|
-
* `
|
|
51
|
-
*
|
|
48
|
+
* upload the server refused (the account's storage pool cannot take it, a
|
|
49
|
+
* later upload replaced it, or its vault is scheduled for deletion: a 409
|
|
50
|
+
* `VAULT_DELETION_SCHEDULED`, whose session the server keeps until the
|
|
51
|
+
* deletion runs or is cancelled, or the session lapses on its own) rejects
|
|
52
|
+
* at once with code `upload_refused`, its message the server's own sentence
|
|
53
|
+
* and its code in `details.coreCode`: a new upload is no remedy. A
|
|
54
|
+
* publication the server
|
|
52
55
|
* still defers at the transfer's idle limit rejects with code
|
|
53
56
|
* `upload_received_publishing`: every byte is received, and the server
|
|
54
57
|
* finishes the publication on its own, so never upload the file again; a
|
|
@@ -78,8 +81,11 @@ export declare class IngotsModule {
|
|
|
78
81
|
*
|
|
79
82
|
* It rejects as {@link sendUpload} does: `session_gone` once the server no
|
|
80
83
|
* longer holds the session (it expired, was cancelled, or ended when the
|
|
81
|
-
* server refused to publish it), `upload_refused` for an upload
|
|
82
|
-
*
|
|
84
|
+
* server refused to publish it), `upload_refused` for an upload the server
|
|
85
|
+
* refused (its storage pool, a later upload, or its vault scheduled for
|
|
86
|
+
* deletion, a 409 `VAULT_DELETION_SCHEDULED` that keeps the session, so a
|
|
87
|
+
* resume once the deletion is cancelled goes on while the session stands),
|
|
88
|
+
* `upload_received_publishing` again for a publication the server
|
|
83
89
|
* still defers at the transfer's idle limit, which leaves the session to
|
|
84
90
|
* resume again later. A session URL that is not an upload session on an
|
|
85
91
|
* allowed transfer host is refused (`invalid_forge_url`), and one whose
|
|
@@ -111,9 +117,10 @@ export declare class IngotsModule {
|
|
|
111
117
|
*
|
|
112
118
|
* Creates the upload session, streams the file to Forge over TUS, then
|
|
113
119
|
* confirms the server finalized the upload before resolving. A file the
|
|
114
|
-
* server refused
|
|
115
|
-
*
|
|
116
|
-
*
|
|
120
|
+
* server refused — another upload of it superseded this one, at its create
|
|
121
|
+
* or while it streamed, the storage pool cannot take it, or its vault is
|
|
122
|
+
* scheduled for deletion (a 409 `VAULT_DELETION_SCHEDULED`) — rejects with
|
|
123
|
+
* code `upload_refused`, as {@link sendUpload} does.
|
|
117
124
|
*
|
|
118
125
|
* @example
|
|
119
126
|
* const ingot = await sv.ingots.upload(unsealed, {
|