@finueva/drive 0.18.0 → 0.20.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.
- package/CHANGELOG.md +26 -0
- package/dist/client.d.ts +3 -3
- package/dist/client.js +1 -1
- package/dist/contract.d.ts +566 -4
- package/dist/contract2.d.ts +9 -2
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/server.js +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @finueva/drive
|
|
2
2
|
|
|
3
|
+
## 0.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 580792c: Add organization-administrator handover of a departing member's items: `listOwnedItems` lists the items a member effectively owns (assigned owner, otherwise creator), optionally only subtree roots or trashed items, with their visitor-link counts; `transferItemOwnership` hands an item and, optionally, its same-owner descendants to a current organization member, optionally revoking the previous owner's visitor links; and `archiveItem` trashes an item under a retention hold that `restoreItem` always undoes. `collectOwnedItems` follows listing continuations up to 500 items. New error reasons `ownership_unchanged`, `ownership_successor_not_member`, `ownership_restricted_items` and `ownership_subtree_too_large` accompany `409 precondition_failed`, and transfers can return `429 rate_limited`.
|
|
8
|
+
|
|
9
|
+
## 0.19.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- e48484d: Readiness now reports refused private configuration. `GET /api/v1/readyz` answers `503` with `configuration: "private-values"` and a `values` array naming the private configuration values that could not satisfy their structural contract at load, alongside the existing `"app-environment"` and `"kibao-location"` refusals. Names only: the response never carries configured material. The Drive Worker validates `DRIVE_PAGINATION_CURSOR_KEYS`, `DRIVE_UPLOAD_VERIFICATION_KEYS`, `DRIVE_ARCHIVE_IDENTITY`, the recipient signing identity and the `D1_CAPACITY_*` decimals when configuration is loaded, so a malformed value fails deployment by name instead of disabling a subsystem at request time.
|
|
14
|
+
- d9c9ec3: Complete an upload without waiting for archive verification, and add `verification` to `completeUpload` and `uploadFile`.
|
|
15
|
+
|
|
16
|
+
`POST /uploads/{uploadId}/complete` now answers `202 verifying` as soon as the archive object is observed, the declaration is recorded and the verification checkpoint is admitted; the whole-file hash and the publication that follows it stay on the verification queue. `verification: "inline"` restores the previous single-request publish for strict callers, and editing commits keep using it. Nothing is reported `ready` before an independent readback matches, so the data-safety invariant is unchanged.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 17051d3: Send the signed storage PUT with `redirect: "manual"` and refuse a 3xx answer, instead of asking
|
|
21
|
+
the runtime for `redirect: "error"`. Node and browsers accept `"error"`, but workerd allows only
|
|
22
|
+
`"follow"` or `"manual"` and throws a `TypeError` before a byte leaves the process, so on
|
|
23
|
+
Cloudflare every single-shot and multipart upload failed at the transport: the SDK reported a
|
|
24
|
+
swallowed `network_error` and Drive then refused the completion with `precondition_failed`.
|
|
25
|
+
Refusing the 3xx ourselves keeps the original intent — a redirected storage endpoint is never
|
|
26
|
+
followed to an unexpected host — and now raises `invalid_response` carrying the redirect status on
|
|
27
|
+
every runtime rather than depending on a fetch option workerd cannot dispatch.
|
|
28
|
+
|
|
3
29
|
## 0.18.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { n as createVisitorSessionToken, t as
|
|
1
|
+
import { $ as ItemOwnershipTransfer, At as RestoreItemInput, Bt as UploadConfirmedPart, C as DriveClientConfig, D as DriveEditingClientConfig, Dt as RecordUploadPartInput, E as DriveEditingClient, Et as ReadyUpload, F as DriveVisitorClientConfig, Ft as TransferItemOwnershipInput, G as GetCurrentWorkspaceInput, Gt as UploadFileVersionInput, H as FileAccessContext, Ht as UploadFilePhase, It as TrashItemInput, J as GetUploadStatusInput, Jt as UploadSession, K as GetItemInput, Kt as UploadPartDescriptor, Lt as UpdateItemInput, Nt as RevokeVisitorGrantInput, Ot as RegisterItemRecipientInput, P as DriveVisitorClient, Pt as SearchWorkspaceItemsInput, Q as IncomingSharePage, R as EditingSession, S as DriveClient, T as DriveCredentialProvider, U as FolderItem, Ut as UploadFileProgress, Vt as UploadFileInput, W as FolderPage, Wt as UploadFileProgressCallback, X as GetWorkspaceUsageInput, Xt as UploadVerificationMode, Y as GetVisitorGrantInput, Yt as UploadStatus, Z as IncomingShareContext, Zt as VisitorChildren, _ as CreateVisitorGrantInput, _t as OwnedItemPage, a as CollectOwnedItemsInput, at as ListItemVersionsInput, b as DeleteItemInput, c as CompleteUploadInput, cn as WorkspaceDiscoveryPage, ct as ManagedDownloadDescriptor, d as CreateFileVersionUploadInput, dn as WorkspaceUsage, dt as ManagedItemVersion, et as ItemSharingPeoplePage, ft as ManagedItemVersionPage, gt as OwnedItem, h as CreateUploadPartDescriptorInput, ht as ManagedLifecycleItem, i as ChangeEditingSessionInput, in as VisitorItem, it as ListItemSharingPeopleInput, jt as RestoreItemVersionInput, kt as RegisteredRecipientDisplay, l as CreateDownloadInput, ln as WorkspaceItemSearchItem, lt as ManagedDownloadRestorePending, m as CreateUploadInput, mt as ManagedItemVersionRestoreResult, n as ArchiveItemInput, nn as VisitorGrantCreation, nt as ListIncomingSharesInput, o as CollectedOwnedItems, on as VisitorSession, ot as ListOwnedItemsInput, pt as ManagedItemVersionResource, q as GetItemVersionInput, qt as UploadPartResult, r as ArchivedItem, rn as VisitorGrantPage, s as CommitFileVersionInput, sn as WorkspaceDiscoveryItem, st as ListWorkspaceItemsInput, t as AbortUploadInput, tn as VisitorGrant, tt as ListFolderChildrenInput, u as CreateEditingSessionInput, un as WorkspaceItemSearchPage, ut as ManagedItemMetadata, v as CurrentWorkspace, vt as PendingUpload, wt as ProtectionClassification, x as DownloadItemResult, y as CurrentWorkspaceSources, z as EditingSessionCreation, zt as UploadCompletion } from "./contract.js";
|
|
2
|
+
import { n as createDriveVisitorClient, r as createVisitorSessionToken, t as collectOwnedItems } from "./contract2.js";
|
|
3
3
|
//#region src/client.d.ts
|
|
4
4
|
declare function createDriveEditingClient(config: DriveEditingClientConfig): DriveEditingClient;
|
|
5
5
|
declare function createDriveClient(config: DriveClientConfig): DriveClient;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { type AbortUploadInput, type ChangeEditingSessionInput, type CommitFileVersionInput, type CompleteUploadInput, type CreateDownloadInput, type CreateEditingSessionInput, type CreateFileVersionUploadInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CreateVisitorGrantInput, type CurrentWorkspace, type CurrentWorkspaceSources, type DeleteItemInput, type DownloadItemResult, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type DriveEditingClient, type DriveEditingClientConfig, type DriveVisitorClient, type DriveVisitorClientConfig, type EditingSession, type EditingSessionCreation, type FileAccessContext, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetUploadStatusInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type IncomingShareContext, type IncomingSharePage, type ItemSharingPeoplePage, type ListFolderChildrenInput, type ListIncomingSharesInput, type ListItemSharingPeopleInput, type ListItemVersionsInput, type ListWorkspaceItemsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type PendingUpload, type ProtectionClassification, type ReadyUpload, type RecordUploadPartInput, type RegisterItemRecipientInput, type RegisteredRecipientDisplay, type RestoreItemInput, type RestoreItemVersionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TrashItemInput, type UpdateItemInput, type UploadCompletion, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadFileVersionInput, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, type VisitorChildren, type VisitorGrant, type VisitorGrantCreation, type VisitorGrantPage, type VisitorItem, type VisitorSession, type WorkspaceDiscoveryItem, type WorkspaceDiscoveryPage, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, type WorkspaceUsage, createDriveClient, createDriveEditingClient, createDriveVisitorClient, createVisitorSessionToken };
|
|
7
|
+
export { type AbortUploadInput, type ArchiveItemInput, type ArchivedItem, type ChangeEditingSessionInput, type CollectOwnedItemsInput, type CollectedOwnedItems, type CommitFileVersionInput, type CompleteUploadInput, type CreateDownloadInput, type CreateEditingSessionInput, type CreateFileVersionUploadInput, type CreateUploadInput, type CreateUploadPartDescriptorInput, type CreateVisitorGrantInput, type CurrentWorkspace, type CurrentWorkspaceSources, type DeleteItemInput, type DownloadItemResult, type DriveClient, type DriveClientConfig, type DriveCredentialProvider, type DriveEditingClient, type DriveEditingClientConfig, type DriveVisitorClient, type DriveVisitorClientConfig, type EditingSession, type EditingSessionCreation, type FileAccessContext, type FolderItem, type FolderPage, type GetCurrentWorkspaceInput, type GetItemInput, type GetItemVersionInput, type GetUploadStatusInput, type GetVisitorGrantInput, type GetWorkspaceUsageInput, type IncomingShareContext, type IncomingSharePage, type ItemOwnershipTransfer, type ItemSharingPeoplePage, type ListFolderChildrenInput, type ListIncomingSharesInput, type ListItemSharingPeopleInput, type ListItemVersionsInput, type ListOwnedItemsInput, type ListWorkspaceItemsInput, type ManagedDownloadDescriptor, type ManagedDownloadRestorePending, type ManagedItemMetadata, type ManagedItemVersion, type ManagedItemVersionPage, type ManagedItemVersionResource, type ManagedItemVersionRestoreResult, type ManagedLifecycleItem, type OwnedItem, type OwnedItemPage, type PendingUpload, type ProtectionClassification, type ReadyUpload, type RecordUploadPartInput, type RegisterItemRecipientInput, type RegisteredRecipientDisplay, type RestoreItemInput, type RestoreItemVersionInput, type RevokeVisitorGrantInput, type SearchWorkspaceItemsInput, type TransferItemOwnershipInput, type TrashItemInput, type UpdateItemInput, type UploadCompletion, type UploadConfirmedPart, type UploadFileInput, type UploadFilePhase, type UploadFileProgress, type UploadFileProgressCallback, type UploadFileVersionInput, type UploadPartDescriptor, type UploadPartResult, type UploadSession, type UploadStatus, type UploadVerificationMode, type VisitorChildren, type VisitorGrant, type VisitorGrantCreation, type VisitorGrantPage, type VisitorItem, type VisitorSession, type WorkspaceDiscoveryItem, type WorkspaceDiscoveryPage, type WorkspaceItemSearchItem, type WorkspaceItemSearchPage, type WorkspaceUsage, collectOwnedItems, createDriveClient, createDriveEditingClient, createDriveVisitorClient, createVisitorSessionToken };
|